feat: upgrade to Lattice 0.59 and bump all dependencies - #6
Merged
Conversation
Migrate off the pre-split Lattice\Lattice namespace onto the extracted package namespaces (Lattice\Core, Lattice\Ui, Lattice\Form, Lattice\Table, Lattice\Actions) and adopt the 0.35-0.59 breaking changes: - AsPage container: PageContainer is gone; the PageWidth::Full default matches the old behaviour, so the parameter is dropped - openModal() takes a Modal instance now; the two-factor setup modal is shipped from the enable action instead of sitting in the page tree - form handlers return Effects::respond()->toast() instead of the removed FormDefinition::toast() helper - labelAction() takes a component, so the forgot-password link is a Link - JS: createPlugin is a plain object satisfying Plugin; Button/Input/ IconRenderer/useT now import from @lattice-php/ui; ComponentProps augmentation targets @lattice-php/core Dependency bumps: lattice 0.34 -> 0.59 (composer + npm, plus direct @lattice-php/core and @lattice-php/ui deps), Pest 4 -> 5 (PHPUnit 13), TypeScript 5.9 -> 6, @vitejs/plugin-react 5 -> 6, @laravel/passkeys 0.4, CI node 22 -> 24, and latest minors across the board. tsconfig drops the TS6-deprecated baseUrl; vite.config uses import.meta.dirname. Adds a regression test asserting the enable-2FA action ships the open-modal effect.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades the starter kit from Lattice 0.34 to 0.59 and brings every dependency to its latest compatible version.
Lattice migration (0.35 → 0.59 breaking changes)
Lattice\Lattice\*onto the extracted package namespaces (Lattice\Core,Lattice\Ui,Lattice\Form,Lattice\Table,Lattice\Actions) across 43 filesPageContaineris gone — thePageWidth::Fulldefault matches the old::Default, so the attribute parameter is dropped on all pagesopenModal()takes aModalinstance now: the two-factor setup modal is shipped from the enable action instead of sitting in the page tree; covered by a new regression test asserting theopen-modaleffectEffects::respond()->toast()(theFormDefinition::toast()helper was removed)labelAction()takes a component — the forgot-password link is aLink::make()createPluginreplaced by a plain objectsatisfies Plugin;Button/Input/IconRenderer/useTimport from@lattice-php/ui;ComponentPropsaugmentation targets@lattice-php/core;@lattice-php/coreand@lattice-php/uiadded as direct npm depscontext.inherited_keysandfrontend.pluginskeys,typescript.module→@lattice-php/core;boost.jsongains thelattice-closuresskillDependency bumps
baseUrl),@vitejs/plugin-react5 → 6,@laravel/passkeys0.2 → 0.4, CI node 22 → 24, latest minors everywhere else (Inertia 3.7, Vite 8.2, Tailwind 4.3.3, oxlint/oxfmt, Playwright)@types/nodeat ^24 to match the CI node versionVerification
tsc --noEmit, Pint, PHPStan, the Vite build, and the full Pest suite (72 tests incl. the 4 browser tests) all pass;composer outdated --directis clean.