Upgrading Dependencies
Dependency upgrades are part of normal maintenance, but not all upgrades should be treated the same way.
- Patch and minor updates are usually routine.
- Major updates are deliberate engineering work.
- The important distinction is not only "how do we install updates?" but also "how do we notice versions that our current constraints intentionally do not allow?"
This project uses two ecosystems:
- Backend: Composer in
backend/composer.json - Frontend:
vpas the primary toolchain interface, backed by Bun-managed dependencies infrontend/package.json, with a root-levelvite-plushelper pin inpackage.jsonfor workspace commands such asvp run ...andvp config
For the frontend, vp is the command surface we use day to day:
vpowns the dev/build/test/lint/package-management command surface (vp dev,vp build,vp check,vp test,vp install,vp update,vp outdated).- Bun still owns the underlying package resolution and lockfile format through
vp.
Most direct dependencies use SemVer ranges such as ^13 or ^5.2. That is good for stability, but it also means composer update and frontend package-manager updates will usually stop at the newest version inside the current major line. They do not automatically move us to a new major version.
Upgrade Tiers
| Type | Example | Usual handling |
|---|---|---|
| Patch | 1.2.3 -> 1.2.4 | Routine update |
| Minor | 1.2 -> 1.3 | Routine update with full verification |
| Major | 1.x -> 2.0 | Planned upgrade branch |
Even patch and minor updates can break in practice, so every upgrade should be followed by the relevant tests and checks.
Execution Modes
There are two useful ways to run this protocol:
- Rehearsal mode: non-mutating checks that prove the process works before touching lockfiles.
- Real update mode: actually change dependencies, lockfiles, and any generated artifacts triggered by package-manager hooks.
Use rehearsal mode first when you want a safe signal about whether the current branch is healthy enough for upgrade work.
Rehearsal Mode
cd frontend && vp update -- --dry-run
cd backend && composer update --dry-runThen run the same verification suite you would use after a real update.
Routine Updates
Frontend
These commands are mutating. In this repo, vp update updates the installed dependency graph, refreshes frontend/bun.lock, and may also rewrite version ranges in frontend/package.json to the newer resolved releases.
Run from the repository root or from frontend/:
cd frontend
vp updateReview both frontend/package.json and frontend/bun.lock after the update instead of assuming the manifest stayed unchanged.
If the goal is specifically to refresh the frontend toolchain itself, check the Vite+ packages too:
cd frontend
vp update vite-plus vite vitestIf you intentionally change the Vite+ toolchain version, also sync the root package.json helper pin (vite-plus plus the root vite alias, which appears in both devDependencies and overrides) so workspace-level vp run ... and vp config stay aligned with the frontend. Since Vite+ 1.x the root needs no vitest override: vite-plus bundles the Vitest it runs.
Then verify:
vp check
vp testBackend
These commands are mutating. They may also trigger Composer post-update hooks that regenerate published assets.
Run from backend/:
cd backend
composer updateIn this repo, composer update runs Laravel and Filament post-update hooks. Filament republishes generated assets under backend/public/{js,css,fonts}/filament, but those paths are gitignored. Regenerate them locally with composer install or php artisan filament:upgrade; Docker entrypoint also refreshes them on container start. Review composer.lock and application changes, not Filament public asset diffs.
Then verify:
php artisan test --parallel --processes=4
composer phpstan
composer deptracThe repository defaults to four ParaTest workers because higher process counts can exhaust PostgreSQL's shared lock table while parallel databases are migrated or dropped. You may override --processes=4 on a suitably provisioned machine. If a custom higher count fails with out of shared memory or max_locks_per_transaction, treat that as a local database-capacity issue first, not automatic evidence of an upgrade regression.
How To Detect New Major Versions
This is the part people often miss.
When a dependency is constrained with ^, the package manager will usually not upgrade across a major boundary during a normal update. So we need a separate "major scan".
Composer
Composer has first-class support for this:
cd backend
composer outdated --direct --major-onlyThis shows direct dependencies where a newer major exists.
Useful variants:
composer outdated --direct
composer outdated --direct --format=jsonInterpretation:
composer updateanswers: "What can we safely install within current constraints?"composer outdated --major-onlyanswers: "What new major lines exist beyond our current constraints?"
Composer Transitive Dependencies
Sometimes composer outdated surfaces a package that we do not require directly. Treat that as a dependency-graph question, not an automatic upgrade task.
Recommended check order:
cd backend
composer audit
composer why brick/math
composer prohibits brick/math 0.17.1Interpretation:
- If
composer auditis clean, there is usually no urgency. composer whyshows which direct or transitive packages pull the dependency into the graph.composer prohibitsshows which package is blocking a specific target version.
Do not add a transitive package to composer.json just to force a newer version unless we have a concrete reason, such as a security advisory, a bug we are actually hitting, or a direct feature/API need.
Example: brick/math 0.14.8 may appear outdated while still being the correct resolved version. In this repo, Laravel allows newer brick/math, but ramsey/uuid 4.9.2 still limits it to ^0.14, so trying to force brick/math 0.17.1 creates solver friction without practical benefit.
Frontend (vp)
vp does not have a dedicated --major-only flag like Composer, but vp outdated gives the information we need:
cd frontend
vp outdatedThe output includes:
Current: installed versionUpdate: newest version allowed by the current rangeLatest: newest version published
After the Vite+ migration, pay particular attention to the toolchain packages in frontend/package.json:
vite-plusvite(aliased to@voidzero-dev/vite-plus-core)vitest(upstream, pinned exactly to the versionvite-plusbundles, in bothdevDependenciesandoverrides)
And remember that the repository root also carries a vite-plus helper pin plus the vite alias in package.json. That root file does not drive the SPA build itself, but it does affect root-level vp workflows.
Interpretation:
- If
UpdateandLatestare the same, your current range can already reach the latest release. - If
Updateis behindLatest, a newer version exists outside your current allowed range. - In practice, that often means a new major is available and your
^range is intentionally blocking it.
Example:
| Package | Current | Update | Latest |
| lucide-react | 0.562.0 | 0.562.0 | 0.577.0 |That means a newer release exists, but vp update will not take it with the current constraint.
Recommended Cadence
Use two different rhythms:
1. Routine dependency maintenance
Do this regularly:
cd frontend && vp updatecd backend && composer update- Run the normal verification suite
2. Major-version scan
Do this on a schedule, for example once a month:
cd frontend && vp outdated
cd backend && composer outdated --direct --major-onlyThis keeps major upgrades visible without forcing them into every routine maintenance pass.
Major Upgrade Process
When we decide to take a major version, treat it as a small project.
Principles
- Upgrade one major dependency at a time when feasible.
- Do not combine unrelated major upgrades in one branch unless there is a strong reason.
- Read the official upgrade guide before changing code.
- Start from a clean baseline with passing tests and analysis.
- Prefer small, reviewable commits over one giant "upgrade everything" diff.
Workflow
1. Read the upstream guide
Examples:
- Laravel: the target major's upgrade guide, for example https://laravel.com/docs/13.x/upgrade when moving onto Laravel 13
- Filament: the target major's upgrade guide, for example https://filamentphp.com/docs/5.x/upgrade-guide when moving onto Filament 5
- React ecosystem packages: release notes / migration docs for the specific package
2. Establish a clean baseline
Do the safe rehearsal first so you know whether the branch is already unstable before you mutate anything.
# Backend
cd backend
php artisan test --parallel --processes=4
composer phpstan
composer deptrac
# Frontend
cd ../frontend
vp update -- --dry-run
vp check
vp testIf the baseline is already broken, fix that first. Upgrade work is much harder to reason about on top of existing failures.
3. Create a dedicated branch
Example:
git checkout -b upgrade/filament-64. Upgrade the dependency explicitly
Examples:
# Composer
cd backend
composer require filament/filament:^6.0 --update-with-dependencies
# Bun
cd ../frontend
vp add some-package@1.2.3For frontend packages, prefer an explicit target version instead of blindly taking latest, especially when the toolchain is still evolving quickly.
For a Vite+ major, run the target release's migrator before changing any dependency, once at the root and once in frontend/. The root and frontend/ are separate packages, not a workspace:
TARGET_VP=1.5.0
npx --package=vite-plus@"$TARGET_VP" vp migrate --no-interactive
cd frontend && npx --package=vite-plus@"$TARGET_VP" vp migrate --no-interactiveIt moves vite-plus and the vite alias in both places. Check that the root package.json and both frontend/package.json entries (devDependencies and overrides) end on the same version, and that vitest matches the version vite-plus bundles (npm view vite-plus@"$TARGET_VP" dependencies.vitest), before reviewing the combined lockfile diff.
After the real update command finishes, inspect lockfile and generated-asset diffs before assuming every changed file represents a real behavioral change.
5. Fix breakages iteratively
Suggested order:
- Static analysis and type checks
- Automated tests
- Manual smoke testing of the affected flows
6. Regenerate artifacts when relevant
If backend API signatures changed:
cd frontend
vp run api:generate7. Document what changed
If the upgrade taught us project-specific lessons, add them to this document so the next upgrade starts from real local knowledge, not memory.
What Not To Assume
- A normal
updatecommand does not mean "we are fully up to date". - A green lockfile refresh does not mean "no major upgrades exist".
- SemVer helps, but it does not remove the need for tests.
- Some ecosystems, especially frontend tooling, occasionally ship breaking behavior in minor releases. Verify, do not trust blindly.
Version History
CI helper images and L5-Swagger patch (November 2026)
The CI helper steps move from alpine:3.20 to alpine:3.24 and from curlimages/curl:8.16.0 to 8.23.0, in all three workflows and in utils/e2e-run.sh. Every package the steps apk add (openssh-client, git, bash, docker-cli, curl, jq) installs on 3.24. darkaonline/l5-swagger 12.0.0 -> 12.0.1 brings in-range minors with it, mostly Symfony 8.1 -> 8.2. The spec is byte-identical, and phpstan, deptrac and the backend suite pass.
PostgreSQL 19.0 is out, but postgres:18-alpine stays. Dev and production use the shared external server (DB_SERVICE_MODE=external), so the image here pins only local development and CI. Bumping it ahead of the shared server would test against a version production does not run. Upgrade the shared server first, then follow it here. For local volumes, the 18+ image keeps data under /var/lib/postgresql/<major>/docker, so a 19 image starts a fresh empty cluster beside the old one instead of failing. Local data looks gone until it is migrated with pg_upgrade or reseeded.
Node 26 in CI (November 2026)
The frontend and build steps in .woodpecker/test.yml move from node:24 to node:26, the current LTS line and the version local development and the Playwright image already run. Replayed in node:26, the steps pass unchanged: install, api:generate, i18n:ci, icons:test, vp check, all 1431 tests, and build:docker.
Local lessons:
- A Node gap between CI and local hides failures. MSW 3 on Node 24 turned a stubbed
204with a JSON body into a network error that Node 26 let through, so seven tests failed only in CI. Keep the CI image on the Node line developers run. bun run build:dockerrewrites the trackedbackend/public/offline.html. Restore it after a local replay of the CI build step.
TypeScript 7 (November 2026)
typescript 6.0.3 -> 7.0.2, the Go-based compiler. No source changes: vp check, tsc -p tsconfig.typecheck.json, vp test, vp build, i18n:ci and ts-prune all pass unchanged, and the generated API client is identical.
Local lessons:
- TypeScript 7's package no longer exports the classic compiler API:
require('typescript')returns onlyversionandversionMajorMinor. Tools that parse with it keep working only if they bring their own copy.@lingual/i18n-checkinstalls TypeScript5.9and@formatjs/*install6.0as nested dependencies, soi18n:*is unaffected. - dependency-cruiser supports TypeScript
<7.0.0 || >=7.1.0. On 7.0,lint:depsreports "no dependency violations found" after cruising 0 modules and exits 0..dependency-cruiser.cjsnow setsparser: 'swc'with@swc/coreas a dev dependency. It cruises the same 1180 modules and reports the same 51 warnings, and it counts more dependencies (3549 instead of 2947), most likely because swc keepsimport typeedges. Check that the module count is non-zero after any parser or TypeScript change. typescript-eslintstill declares TypeScript<6.1.0, which only adds a peer warning: linting runs through oxlint, and the repository has no ESLint config.
Routine refresh and deferred majors (November 2026, last pass)
In-range refresh first, then every deferred major that had no blocker:
- In range: Lucide
1.83,react-resizable-panels4.26, Recharts3.11.2, ESLint10.16; Symfony8.1.13, swagger-php7.11.0, Spatie Permission8.5.1and related lockfile updates. The generated spec came out identical - Frontend majors:
dotenv18,glob14,unpdf2(still pinned exactly),@testing-library/jest-dom8, jsdom31, MSW3,@hookform/resolvers7, i18next27with react-i18next18, andvite-plugin-pwa2 - Backend majors: L5-Swagger
12andlaravel-notification-channels/telegram8 - Left for the next PR: TypeScript
7. A trial on7.0.2passedvp check,vp test,vp buildandi18n:ci, and generated an identical API client.@lingual/i18n-checkand@formatjs/*call the classic compiler API that TypeScript 7's package no longer exports, but each installs its own nested TypeScript (5.9 and 6.0). The only casualty is dependency-cruiser, which supports<7.0.0 || >=7.1.0: on 7.0lint:depscruises 0 modules and still exits 0. Thetypescript-eslintcap of<6.1.0that earlier entries cite is not a blocker either: there is no ESLint config, linting runs through oxlint, and the package only adds a peer warning. Also left: Vitest5.1.2, because Vite+1.8.0bundles5.1.1.bun auditreports two moderateglobandminimatchadvisories, both reached only through@lingual/i18n-checkandworkbox-build
Local lessons:
- L5-Swagger 12 scans in
hybridmode by default. On this codebase that drops shared schemas such asApiMessageResponseandPaginationand copies theResponseSchemas.phpfile docblock onto every schema in it.config/l5-swagger.phpsetsscanOptions.modetoclassic, which reproduces the previous spec byte for byte. Moving tohybridis separate work. - MSW 3 renames
onUnhandledRequesttoonUnhandledFrame({ frame, defaults }); an HTTP frame carries the request atframe.data.request. It also resolves responses a tick later, which exposed threeMainPagetests that waited for a heading the loading skeleton already renders. - jest-dom 8 types matchers as
voidunder Vitest 5, sowaitFor(() => expect(...).toBeInTheDocument())tripsno-confusing-void-expression. Use a block body, as the rest of the suite does. - i18next 27's
TFunctionis not assignable to(key: string, options?) => string. Type helper parameters asTFunctionfromi18next, and pass{}instead ofundefinedfor interpolation options. - Telegram channel 8 never returns
nullfromsendMessage(), and Mockery enforces the return type, so stubs ofNotificationChannels\Telegram\Telegrammust return a PSR-7 response. vite-plugin-pwa2 only widens a peer range:sw.jsand the web manifests came out byte-identical.
Vite+ 1.8 (November 2026)
vite-plus 1.5.0 -> 1.8.0 at the root and in frontend/, with Vitest and @vitest/coverage-v8 5.1.0 -> 5.1.1, the version 1.8.0 bundles. A minor, so no vp migrate: the pins were moved by hand and both lockfiles refreshed. It brings oxlint 1.94.0, oxfmt 0.79.0 and a tsrs 7.1 beta.
Local lessons:
- Since Vite+ 1.7,
@voidzero-dev/vite-plus-corefollows Vite's version plus a build suffix (8.3.8000,8.3.8001) instead of thevite-plusversion. Take thevitealias target fromnpm view vite-plus@<version> dependencies.vite, not from thevite-plusnumber.vp outdatedthen lists the core package asLatest 8.3.x, which is that alias and not a major. - The 1.8 type check reports declaration errors that
composite: trueintsconfig.app.jsonalways implied, and 1.5 stayed silent on: TS4058 and TS4023, exported values whose inferred type names something that cannot be imported. Plaintsc -p tsconfig.app.jsonalready failed on both. The fix was exportingTelegramMiniAppManualOptionsand giving the i18ntoastwrapper an explicit type, because sonner does not export the interfaces intoast.promise's return type. vp checkat the repository root reports formatting in 69 files before and after this upgrade. CI runs it fromfrontend/only.
Routine Composer and frontend refresh (November 2026, end of month)
In-range refresh only:
- Frontend: TanStack Query
5.108.4, Lucide1.80, Recharts3.11.1, React Router7.18.7, Orval8.49,typescript-eslint8.74,rollup-plugin-visualizer7.3, and related patch/minor updates - Backend: Laravel
13.43.0->13.44.1, Filament5.11.4->5.12.0, Fortify1.44, ParaTest7.30, Symfony8.1.12, swagger-php7.8.0->7.10.0, and related lockfile updates. The generated spec came out identical. Filament's resourceHasAuthorizationconcern did not change in this release, so thecan*()note below still holds - Left for dedicated work: Vite+
1.8(with Vitest5.1.1), i18next27with react-i18next18,@testing-library/jest-dom8, TypeScript7, MSW3, jsdom31,vite-plugin-pwa2,unpdf2,glob14,dotenv18, andlaravel-notification-channels/telegram8
Routine Composer and frontend refresh (November 2026, late)
In-range refresh only:
- Frontend: TanStack Query
5.108, altcha3.7, Lucide1.77, Recharts3.11, React Router, ESLint plugins, and related patch/minor updates - Backend: Laravel
13.42.0->13.43.0, Fortify1.43, Sanctum4.5, Reverb1.14, PHPUnit13.4.8, swagger-php7.7.0->7.8.0with L5-Swagger11.4.1, and related lockfile updates. The generated spec came out identical.laravel/passkeys0.2->0.3arrives through Fortify; the app does not use it directly - Left for dedicated work: Vite+
1.7(with Vitest5.1.1), i18next27with react-i18next18,@testing-library/jest-dom8, TypeScript7, MSW3, jsdom31,vite-plugin-pwa2,unpdf2,glob14,dotenv18, andlaravel-notification-channels/telegram8
Routine Composer and frontend refresh (November 2026, mid-month)
In-range refresh, plus the Playwright CI image:
- Frontend: Axios, altcha, Lucide, React Hook Form,
react-resizable-panels, Orval, ESLint plugins, and related patch/minor updates - Playwright:
@playwright/test1.65.0->1.65.1, with the.woodpecker/test.ymlimage tag moved to match - Backend: Laravel
13.40.0->13.42.0, Filament5.11.1->5.11.4, Larastan3.14.0->3.15.0, PHPUnit13.4.6->13.4.7, swagger-php7.3.0->7.7.0, and related lockfile updates. The generated spec came out identical - Left for dedicated work: Vite+
1.6, i18next27with react-i18next18, TypeScript7, MSW3, jsdom31,vite-plugin-pwa2,unpdf2,glob14,dotenv18, andlaravel-notification-channels/telegram8.bun auditstill reports theglobandminimatchadvisories those majors would clear
Local lessons:
- Filament
5.11.4runs the model policy before a resource'scanView()override, so the override can only narrow it. The admin panel's Group, Habit, Ledger, Litter and Pet view pages returned403for admins, because those policies are membership-based andAuthServiceProvidergives admins no shortcut. The resources now overridegetViewAuthorizationResponse()throughApp\Filament\Concerns\AuthorizesRecordViewByAdminRole. Othercan*()overrides still replace the policy in this release; check that again on the next Filament bump.
Vite+ 1.x (November 2026)
vite-plus and @voidzero-dev/vite-plus-core 0.3.2 -> 1.5.0 at the root and in frontend/, with vp migrate from the 1.5.0 release. That moves bundled vite to 8.3.5, oxlint to 1.91.0 and oxfmt to 0.76.0. Vitest stays on 5.1.0, the version 1.5.0 bundles. 1.4.0 was the older, safer pick, but it bundles Vitest 5.0.5.
The upgrade cleared the remaining Vite+ advisories: 8 at the root, 8 in frontend/, and the minimatch denial of service in the Vite+ CLI.
Local lessons:
vp migrateat the root also rewrotefrontend/test files, and it addedtest.clearMocks: falseto the rootvite.config.tsas Vitest 4 compatibility. The frontend already ran on Vitest 5 defaults and the root has no tests, so that block came back out. The frontend migration added nothing tofrontend/vite.config.ts.- The migrator's install left orphaned nested
@vitest/browser/...@4.1.11entries infrontend/bun.lock, whichbun auditstill counted. Delete such entries and runbun install. oxfmt0.76 formats HTML, sopublic/offline.htmlneeded one reformat.- CI timed out in different tests on consecutive runs, and the shared runner showed heavy swap use when inspected. Limit Vitest to two workers in CI to leave memory for the backend suite and other host services; local runs keep the default worker count.
oxlint1.91 adds 16 warnings, none of them errors:react(purity)foruseMemo(() => new Date(), [])and similar (10),react(immutability)for alet channelassigned inside an effect's async setup, the known oxc#28401 false positive (5 new), andreact(globals)in one test.
Transitive bun audit cleanup (November 2026)
The previous refresh left bun audit reporting 82 advisories in frontend/, 18 in docs/ and 18 at the root. None reached the browser bundle: all were build and test tooling. The few that bun why traced to a production dependency were a Node-only axios adapter (follow-redirects), Tailwind's build chain (source-map-js) and a nested zod under an ESLint plugin.
- Re-resolved the affected transitive packages within their parents' ranges, which cleared 71 frontend, 9 docs and 10 root advisories
docs/package.jsonnow pins itsesbuildoverride exactly to0.27.2- Removed the root
docsnpm dependency (0.3.2-canary.0, an unrelated third-party CLI). The January npm-to-bun migration added it by accident, and nothing used it - Left for dedicated work: Vite+
1.x(root and frontend, including the@vitest/mockerit pins),glob14andminimatch11(frontend), VitePress withvite6(docs), anddeepmerge, which has no fixed release
Local lessons:
vp updateandbun updatemove direct dependencies only, so a transitive advisory survives every routine refresh. To re-resolve one package within its parents' ranges, delete its entries frombun.lockand runbun install. Count withbun audit --json. The text report counts every dependency path, so it showed 141 advisories and 1 critical where the JSON had 82 and none.esbuild0.27.7breaks the VitePress build undervite5withTransforming destructuring to the configured target environment ... is not supported yet.0.27.2works, which is why the docs override is exact now.- Transitive majors can slip into a routine Composer update.
zircote/swagger-phpwent from6.18to7.3through L5-Swagger and changed how nullable$refs are written in the spec. The generated client came out byte-identical, but compare the spec when the generator moves.
Routine Composer and frontend refresh (November 2026)
This pass refreshed packages within the existing constraints, plus three exact pins and the Playwright CI image:
- Frontend: TanStack Query, Axios, i18next, Lucide, React Hook Form, React Router, Orval, and related patch/minor updates
- Exact pins:
vitest/@vitest/coverage-v85.0.3->5.1.0, with the frontend and root overrides synced, and@tanstack/react-table9.2.4->9.3.1 - Playwright:
@playwright/test1.64.1->1.65.0, with the.woodpecker/test.ymlimage tag moved to match - Backend: Laravel
13.38.0->13.40.0, Filament5.10.3->5.11.1, Larastan3.13.1->3.14.0, PHPUnit13.4.3->13.4.6, and related lockfile updates. This cleared all 19composer auditadvisories, mostly Symfony - Composer direct majors:
laravel-notification-channels/telegram8.0.0, left for dedicated work - Frontend upgrades left for dedicated work: Vite+
1.x, TypeScript7, MSW3, jsdom31,vite-plugin-pwa2,@hookform/resolvers7,glob14, anddotenv18.typescript-eslint8.72.1still requires TypeScript<6.1.0
Local lessons:
- Changing an override in the root
package.jsonleaves the rootbun.lockstale, andvp updateinfrontend/does not refresh it. Runbun install --lockfile-onlyfrom the repository root. The CI gate installs only fromfrontend/, so it will not catch this.
Routine Composer and frontend refresh (September 2026, mid-month)
This pass refreshed packages within the existing constraints plus an intentional Vite+ patch bump:
- Frontend: React
19.3, TanStack Query, Zod, Orval, Lucide, Playwright, and related patch/minor updates - Frontend toolchain:
vite-plus/@voidzero-dev/vite-plus-core0.3.0->0.3.2,vitest/@vitest/coverage-v85.0.0->5.0.1, with root helper pin and overrides synced - Backend: Laravel
13.30.1->13.32.0, Filament5.7.8->5.8.2, Larastan3.11.0->3.12.1, PHPUnit13.3.2->13.3.4, swagger-php6.7.1->6.9.0, and related lockfile updates - Composer direct majors:
laravel-notification-channels/telegram8.0.0, left for dedicated work - Frontend upgrades left for dedicated work: TypeScript
7
Local lessons:
- jsdom
30.1.0broke upload tests withCannot read properties of undefined (reading '_buffer'). The bug was Vitest's jsdom Blob shim, not jsdom or MSW (vitest-dev/vitest#11336), fixed in Vitest5.0.3. jsdom^30.1.1needs Vitest>=5.0.3; a closed issue upstream is not proof of a fixed release, so rerun the upload tests (PetPhoto.test.tsx) after bumping either. - Larastan
3.12checks relation names inload()strings. It caughthelperProfile.photosinGetResponderProfileController:photosis an accessor, not a relation, so the endpoint threwRelationNotFoundException. It now eager-loadsmedia.
Major frontend dependencies (September 2026)
This pass completed three previously deferred upgrades:
@shadcn/react0.2.1->0.3.1- TanStack Table
8.21.3->9.2.4 - Vitest and
@vitest/coverage-v84.1.11->5.0.0, with the frontend and root overrides synced
TypeScript remains on 6.0.3. TypeScript 7.0.2 is available, but typescript-eslint and @typescript-eslint/parser 8.69.0 require TypeScript <6.1.0. Their published canary versions have the same limit.
Local lessons:
- TanStack Table 9 replaces
useReactTable()withuseTable()and makes table features explicit throughtableFeatures(). Registering no optional features is enough for the sync issues table and reduced its built chunk from about 55 KB to 38 KB. UsingstockFeaturesdoubled it to about 110 KB. - TanStack Table 9's column helper takes the feature-set type before the row-data type. Wrap mixed-value column definitions with
columnHelper.columns()to preserve their individual value types. - Vitest 5 works with the repository's Vite+ 0.3 setup. The full frontend suite and V8 coverage provider run without configuration changes.
Routine Composer and frontend refresh (September 2026)
This pass refreshed packages within the existing version constraints:
- Frontend: TanStack Query, Axios, i18next, Lucide, React Hook Form, React Router, Zod, Orval, and related patch/minor updates
- Backend: Laravel
13.27.0->13.30.1, Filament5.7.6->5.7.8, Larastan3.10.0->3.11.0, PHPUnit13.3.1->13.3.2, and related lockfile updates - Composer direct majors: none available
- Frontend upgrades left for dedicated work:
@shadcn/react0.3, TanStack Table9, Vitest5, and TypeScript7
Routine Composer and frontend refresh (August 2026)
This pass refreshed packages within the existing major-version constraints:
- Frontend: TanStack Query, i18next, React Hook Form, Orval, ESLint, and related patch/minor updates
- Frontend test runner: Vitest and
@vitest/coverage-v84.1.10->4.1.11, with the exact frontend and root overrides synced - Backend: Laravel
13.25.0->13.27.0, Intervention Image4.2.1->4.3.1, Socialite5.29.0->5.30.1, and related lockfile updates - Composer direct majors: none available
- Frontend upgrades left for dedicated work: shadcn
0.3, TanStack Table9, TypeScript7, and Vite+0.3
Local lessons:
- TanStack Query
5.102deprecatesqueryClient.prefetchQuery()in favor ofqueryClient.query(). - PHPStan
2.2.9no longer resolved the runtime\URLalias inAppServiceProvider; importing and usingIlluminate\Support\Facades\URLfixed the error.
Routine Composer and frontend refresh (July 2026, mid-month)
In-range refresh plus an intentional Vite+ patch bump:
- Frontend: Radix, i18next, ESLint plugins, MSW, Orval, dependency-cruiser, and related patch/minor bumps via
vp update - Frontend toolchain:
vite-plus/@voidzero-dev/vite-plus-core0.2.2→0.2.4,vitest/@vitest/coverage-v84.1.9→4.1.10, with root helper pin and overrides synced - Backend: Laravel
13.18.1→13.20.0, PHPUnit13.2.2→13.2.4, plus Guzzle, Intervention Image, Medialibrary, Filament Impersonate, and related lockfile bumps - Composer direct majors: none available
- Frontend majors still blocked by range: TypeScript
~6.0(Latest7.0.2)
Local lessons:
- Exact pins and
overridesfor Vite+/Vitest mean a plainvp updatewill not move the toolchain; bumpdevDependenciesand both frontend/root overrides together, then reinstall. vp add -D(capital D) is the save-dev flag;-dis rejected by the current CLI.
Major frontend toolchain and dev-deps (July 2026)
This pass took the blocked major lines that remained after the routine refresh:
@types/node25 → 26dependency-cruiser17 → 18 (drops Node 20/25 engine support; fine on Node 24)vite-plus0.1.23 → 0.2.2 viavp update vite-plus --latestandvp migrate, with the root helper pin synced to0.2.2andvitestoverrides pointed at upstream4.1.9instead of@voidzero-dev/vite-plus-test
Local lessons:
- Vite+ 0.2 enables stricter oxlint rules such as
typescript/no-unnecessary-type-assertion;vp check --fixcleared most of them automatically. matchMediatest mocks that still define deprecatedaddListener/removeListenerneed scopedoxlint-disablecomments until the mocked libraries stop using those APIs.
Routine Composer and frontend refresh (July 2026)
This was a routine in-range dependency refresh, not a major-version upgrade.
Local lessons:
- Newer Larastan reports
env()calls outsideconfig/withlarastan.noEnvCallsOutsideOfConfig; move those values into config keys and read them withconfig()from providers, helpers, services, and controllers. - Newer Vite+/Vitest mock handling is stricter about missing mocked exports and hoisting. If a module imports more of a mocked package, update the mock to expose those exports, and use
vi.hoisted()for state referenced by a hoistedvi.mock()factory. - Full frontend test runs may time out under heavy parallel load even when the affected files pass directly. Rerun the listed failing files before assuming the upgrade introduced deterministic regressions.
PHP 8.2 -> 8.5 and Filament 3.1 -> 5.0 (February 2026)
This was completed together, which worked, but is not the preferred pattern for future upgrades.
Main breakage areas:
- Filament resource and page APIs changed significantly between v3 and v5:
Form->Schema, actions moved namespaces, and layout/schema components shifted SpatieLaravelTranslatablePluginwas replaced byLaraZeus\\SpatieTranslatable\\SpatieTranslatablePluginfor Filament v5 compatibilityfilament-shield,filament-users, andfilament-impersonateall required major-version alignment with Filament itself- PHPUnit major upgrades tightened some mocking behavior and required test updates; the first sharp edge in this repo showed up during 11 -> 12, and the current line is now
^13.1 - PHP 8.5 itself was relatively smooth thanks to existing static analysis coverage
Current Versions
| Dependency | Version |
|---|---|
| PHP | ^8.5 |
| Laravel | ^13.0 |
| Filament | ^5.2 |
| PHPUnit | ^13.1 |
| React | ^19.3 |
| Vite+ (frontend toolchain) | 1.8.0 |
| Vite+ (root helper pin) | 1.8.0 |
| TypeScript | ~7.0 |
| dependency-cruiser | ^18.0 |
| @types/node | ^26.1 |