Skip to content

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: vp as the primary toolchain interface, backed by Bun-managed dependencies in frontend/package.json, with a root-level vite-plus helper pin in package.json for workspace commands such as vp run ... and vp config

For the frontend, vp is the command surface we use day to day:

  • vp owns 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 ​

TypeExampleUsual handling
Patch1.2.3 -> 1.2.4Routine update
Minor1.2 -> 1.3Routine update with full verification
Major1.x -> 2.0Planned 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 ​

bash
cd frontend && vp update -- --dry-run
cd backend && composer update --dry-run

Then 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/:

bash
cd frontend
vp update

Review 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:

bash
cd frontend
vp update vite-plus vite vitest

If 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:

bash
vp check
vp test

Backend ​

These commands are mutating. They may also trigger Composer post-update hooks that regenerate published assets.

Run from backend/:

bash
cd backend
composer update

In 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:

bash
php artisan test --parallel --processes=4
composer phpstan
composer deptrac

The 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:

bash
cd backend
composer outdated --direct --major-only

This shows direct dependencies where a newer major exists.

Useful variants:

bash
composer outdated --direct
composer outdated --direct --format=json

Interpretation:

  • composer update answers: "What can we safely install within current constraints?"
  • composer outdated --major-only answers: "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:

bash
cd backend
composer audit
composer why brick/math
composer prohibits brick/math 0.17.1

Interpretation:

  • If composer audit is clean, there is usually no urgency.
  • composer why shows which direct or transitive packages pull the dependency into the graph.
  • composer prohibits shows 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:

bash
cd frontend
vp outdated

The output includes:

  • Current: installed version
  • Update: newest version allowed by the current range
  • Latest: newest version published

After the Vite+ migration, pay particular attention to the toolchain packages in frontend/package.json:

  • vite-plus
  • vite (aliased to @voidzero-dev/vite-plus-core)
  • vitest (upstream, pinned exactly to the version vite-plus bundles, in both devDependencies and overrides)

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 Update and Latest are the same, your current range can already reach the latest release.
  • If Update is behind Latest, 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:

text
| 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.

Use two different rhythms:

1. Routine dependency maintenance ​

Do this regularly:

  • cd frontend && vp update
  • cd backend && composer update
  • Run the normal verification suite

2. Major-version scan ​

Do this on a schedule, for example once a month:

bash
cd frontend && vp outdated
cd backend && composer outdated --direct --major-only

This 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:

2. Establish a clean baseline ​

Do the safe rehearsal first so you know whether the branch is already unstable before you mutate anything.

bash
# Backend
cd backend
php artisan test --parallel --processes=4
composer phpstan
composer deptrac

# Frontend
cd ../frontend
vp update -- --dry-run
vp check
vp test

If 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:

bash
git checkout -b upgrade/filament-6

4. Upgrade the dependency explicitly ​

Examples:

bash
# Composer
cd backend
composer require filament/filament:^6.0 --update-with-dependencies

# Bun
cd ../frontend
vp add some-package@1.2.3

For 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:

bash
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-interactive

It 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:

  1. Static analysis and type checks
  2. Automated tests
  3. Manual smoke testing of the affected flows

6. Regenerate artifacts when relevant ​

If backend API signatures changed:

bash
cd frontend
vp run api:generate

7. 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 update command 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 204 with 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:docker rewrites the tracked backend/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 only version and versionMajorMinor. Tools that parse with it keep working only if they bring their own copy. @lingual/i18n-check installs TypeScript 5.9 and @formatjs/* install 6.0 as nested dependencies, so i18n:* is unaffected.
  • dependency-cruiser supports TypeScript <7.0.0 || >=7.1.0. On 7.0, lint:deps reports "no dependency violations found" after cruising 0 modules and exits 0. .dependency-cruiser.cjs now sets parser: 'swc' with @swc/core as 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 keeps import type edges. Check that the module count is non-zero after any parser or TypeScript change.
  • typescript-eslint still 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-panels 4.26, Recharts 3.11.2, ESLint 10.16; Symfony 8.1.13, swagger-php 7.11.0, Spatie Permission 8.5.1 and related lockfile updates. The generated spec came out identical
  • Frontend majors: dotenv 18, glob 14, unpdf 2 (still pinned exactly), @testing-library/jest-dom 8, jsdom 31, MSW 3, @hookform/resolvers 7, i18next 27 with react-i18next 18, and vite-plugin-pwa 2
  • Backend majors: L5-Swagger 12 and laravel-notification-channels/telegram 8
  • Left for the next PR: TypeScript 7. A trial on 7.0.2 passed vp check, vp test, vp build and i18n:ci, and generated an identical API client. @lingual/i18n-check and @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.0 lint:deps cruises 0 modules and still exits 0. The typescript-eslint cap of <6.1.0 that 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: Vitest 5.1.2, because Vite+ 1.8.0 bundles 5.1.1. bun audit reports two moderate glob and minimatch advisories, both reached only through @lingual/i18n-check and workbox-build

Local lessons:

  • L5-Swagger 12 scans in hybrid mode by default. On this codebase that drops shared schemas such as ApiMessageResponse and Pagination and copies the ResponseSchemas.php file docblock onto every schema in it. config/l5-swagger.php sets scanOptions.mode to classic, which reproduces the previous spec byte for byte. Moving to hybrid is separate work.
  • MSW 3 renames onUnhandledRequest to onUnhandledFrame({ frame, defaults }); an HTTP frame carries the request at frame.data.request. It also resolves responses a tick later, which exposed three MainPage tests that waited for a heading the loading skeleton already renders.
  • jest-dom 8 types matchers as void under Vitest 5, so waitFor(() => expect(...).toBeInTheDocument()) trips no-confusing-void-expression. Use a block body, as the rest of the suite does.
  • i18next 27's TFunction is not assignable to (key: string, options?) => string. Type helper parameters as TFunction from i18next, and pass {} instead of undefined for interpolation options.
  • Telegram channel 8 never returns null from sendMessage(), and Mockery enforces the return type, so stubs of NotificationChannels\Telegram\Telegram must return a PSR-7 response.
  • vite-plugin-pwa 2 only widens a peer range: sw.js and 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-core follows Vite's version plus a build suffix (8.3.8000, 8.3.8001) instead of the vite-plus version. Take the vite alias target from npm view vite-plus@<version> dependencies.vite, not from the vite-plus number. vp outdated then lists the core package as Latest 8.3.x, which is that alias and not a major.
  • The 1.8 type check reports declaration errors that composite: true in tsconfig.app.json always implied, and 1.5 stayed silent on: TS4058 and TS4023, exported values whose inferred type names something that cannot be imported. Plain tsc -p tsconfig.app.json already failed on both. The fix was exporting TelegramMiniAppManualOptions and giving the i18n toast wrapper an explicit type, because sonner does not export the interfaces in toast.promise's return type.
  • vp check at the repository root reports formatting in 69 files before and after this upgrade. CI runs it from frontend/ only.

Routine Composer and frontend refresh (November 2026, end of month) ​

In-range refresh only:

  • Frontend: TanStack Query 5.108.4, Lucide 1.80, Recharts 3.11.1, React Router 7.18.7, Orval 8.49, typescript-eslint 8.74, rollup-plugin-visualizer 7.3, and related patch/minor updates
  • Backend: Laravel 13.43.0 -> 13.44.1, Filament 5.11.4 -> 5.12.0, Fortify 1.44, ParaTest 7.30, Symfony 8.1.12, swagger-php 7.8.0 -> 7.10.0, and related lockfile updates. The generated spec came out identical. Filament's resource HasAuthorization concern did not change in this release, so the can*() note below still holds
  • Left for dedicated work: Vite+ 1.8 (with Vitest 5.1.1), i18next 27 with react-i18next 18, @testing-library/jest-dom 8, TypeScript 7, MSW 3, jsdom 31, vite-plugin-pwa 2, unpdf 2, glob 14, dotenv 18, and laravel-notification-channels/telegram 8

Routine Composer and frontend refresh (November 2026, late) ​

In-range refresh only:

  • Frontend: TanStack Query 5.108, altcha 3.7, Lucide 1.77, Recharts 3.11, React Router, ESLint plugins, and related patch/minor updates
  • Backend: Laravel 13.42.0 -> 13.43.0, Fortify 1.43, Sanctum 4.5, Reverb 1.14, PHPUnit 13.4.8, swagger-php 7.7.0 -> 7.8.0 with L5-Swagger 11.4.1, and related lockfile updates. The generated spec came out identical. laravel/passkeys 0.2 -> 0.3 arrives through Fortify; the app does not use it directly
  • Left for dedicated work: Vite+ 1.7 (with Vitest 5.1.1), i18next 27 with react-i18next 18, @testing-library/jest-dom 8, TypeScript 7, MSW 3, jsdom 31, vite-plugin-pwa 2, unpdf 2, glob 14, dotenv 18, and laravel-notification-channels/telegram 8

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/test 1.65.0 -> 1.65.1, with the .woodpecker/test.yml image tag moved to match
  • Backend: Laravel 13.40.0 -> 13.42.0, Filament 5.11.1 -> 5.11.4, Larastan 3.14.0 -> 3.15.0, PHPUnit 13.4.6 -> 13.4.7, swagger-php 7.3.0 -> 7.7.0, and related lockfile updates. The generated spec came out identical
  • Left for dedicated work: Vite+ 1.6, i18next 27 with react-i18next 18, TypeScript 7, MSW 3, jsdom 31, vite-plugin-pwa 2, unpdf 2, glob 14, dotenv 18, and laravel-notification-channels/telegram 8. bun audit still reports the glob and minimatch advisories those majors would clear

Local lessons:

  • Filament 5.11.4 runs the model policy before a resource's canView() override, so the override can only narrow it. The admin panel's Group, Habit, Ledger, Litter and Pet view pages returned 403 for admins, because those policies are membership-based and AuthServiceProvider gives admins no shortcut. The resources now override getViewAuthorizationResponse() through App\Filament\Concerns\AuthorizesRecordViewByAdminRole. Other can*() 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 migrate at the root also rewrote frontend/ test files, and it added test.clearMocks: false to the root vite.config.ts as 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 to frontend/vite.config.ts.
  • The migrator's install left orphaned nested @vitest/browser/...@4.1.11 entries in frontend/bun.lock, which bun audit still counted. Delete such entries and run bun install.
  • oxfmt 0.76 formats HTML, so public/offline.html needed 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.
  • oxlint 1.91 adds 16 warnings, none of them errors: react(purity) for useMemo(() => new Date(), []) and similar (10), react(immutability) for a let channel assigned inside an effect's async setup, the known oxc#28401 false positive (5 new), and react(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.json now pins its esbuild override exactly to 0.27.2
  • Removed the root docs npm 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/mocker it pins), glob 14 and minimatch 11 (frontend), VitePress with vite 6 (docs), and deepmerge, which has no fixed release

Local lessons:

  • vp update and bun update move direct dependencies only, so a transitive advisory survives every routine refresh. To re-resolve one package within its parents' ranges, delete its entries from bun.lock and run bun install. Count with bun audit --json. The text report counts every dependency path, so it showed 141 advisories and 1 critical where the JSON had 82 and none.
  • esbuild 0.27.7 breaks the VitePress build under vite 5 with Transforming destructuring to the configured target environment ... is not supported yet. 0.27.2 works, which is why the docs override is exact now.
  • Transitive majors can slip into a routine Composer update. zircote/swagger-php went from 6.18 to 7.3 through 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-v8 5.0.3 -> 5.1.0, with the frontend and root overrides synced, and @tanstack/react-table 9.2.4 -> 9.3.1
  • Playwright: @playwright/test 1.64.1 -> 1.65.0, with the .woodpecker/test.yml image tag moved to match
  • Backend: Laravel 13.38.0 -> 13.40.0, Filament 5.10.3 -> 5.11.1, Larastan 3.13.1 -> 3.14.0, PHPUnit 13.4.3 -> 13.4.6, and related lockfile updates. This cleared all 19 composer audit advisories, mostly Symfony
  • Composer direct majors: laravel-notification-channels/telegram 8.0.0, left for dedicated work
  • Frontend upgrades left for dedicated work: Vite+ 1.x, TypeScript 7, MSW 3, jsdom 31, vite-plugin-pwa 2, @hookform/resolvers 7, glob 14, and dotenv 18. typescript-eslint 8.72.1 still requires TypeScript <6.1.0

Local lessons:

  • Changing an override in the root package.json leaves the root bun.lock stale, and vp update in frontend/ does not refresh it. Run bun install --lockfile-only from the repository root. The CI gate installs only from frontend/, 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-core 0.3.0 -> 0.3.2, vitest / @vitest/coverage-v8 5.0.0 -> 5.0.1, with root helper pin and overrides synced
  • Backend: Laravel 13.30.1 -> 13.32.0, Filament 5.7.8 -> 5.8.2, Larastan 3.11.0 -> 3.12.1, PHPUnit 13.3.2 -> 13.3.4, swagger-php 6.7.1 -> 6.9.0, and related lockfile updates
  • Composer direct majors: laravel-notification-channels/telegram 8.0.0, left for dedicated work
  • Frontend upgrades left for dedicated work: TypeScript 7

Local lessons:

  • jsdom 30.1.0 broke upload tests with Cannot read properties of undefined (reading '_buffer'). The bug was Vitest's jsdom Blob shim, not jsdom or MSW (vitest-dev/vitest#11336), fixed in Vitest 5.0.3. jsdom ^30.1.1 needs 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.12 checks relation names in load() strings. It caught helperProfile.photos in GetResponderProfileController: photos is an accessor, not a relation, so the endpoint threw RelationNotFoundException. It now eager-loads media.

Major frontend dependencies (September 2026) ​

This pass completed three previously deferred upgrades:

  • @shadcn/react 0.2.1 -> 0.3.1
  • TanStack Table 8.21.3 -> 9.2.4
  • Vitest and @vitest/coverage-v8 4.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() with useTable() and makes table features explicit through tableFeatures(). Registering no optional features is enough for the sync issues table and reduced its built chunk from about 55 KB to 38 KB. Using stockFeatures doubled 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, Filament 5.7.6 -> 5.7.8, Larastan 3.10.0 -> 3.11.0, PHPUnit 13.3.1 -> 13.3.2, and related lockfile updates
  • Composer direct majors: none available
  • Frontend upgrades left for dedicated work: @shadcn/react 0.3, TanStack Table 9, Vitest 5, and TypeScript 7

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-v8 4.1.10 -> 4.1.11, with the exact frontend and root overrides synced
  • Backend: Laravel 13.25.0 -> 13.27.0, Intervention Image 4.2.1 -> 4.3.1, Socialite 5.29.0 -> 5.30.1, and related lockfile updates
  • Composer direct majors: none available
  • Frontend upgrades left for dedicated work: shadcn 0.3, TanStack Table 9, TypeScript 7, and Vite+ 0.3

Local lessons:

  • TanStack Query 5.102 deprecates queryClient.prefetchQuery() in favor of queryClient.query().
  • PHPStan 2.2.9 no longer resolved the runtime \URL alias in AppServiceProvider; importing and using Illuminate\Support\Facades\URL fixed 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-core 0.2.2 → 0.2.4, vitest / @vitest/coverage-v8 4.1.9 → 4.1.10, with root helper pin and overrides synced
  • Backend: Laravel 13.18.1 → 13.20.0, PHPUnit 13.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 (Latest 7.0.2)

Local lessons:

  • Exact pins and overrides for Vite+/Vitest mean a plain vp update will not move the toolchain; bump devDependencies and both frontend/root overrides together, then reinstall.
  • vp add -D (capital D) is the save-dev flag; -d is 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/node 25 → 26
  • dependency-cruiser 17 → 18 (drops Node 20/25 engine support; fine on Node 24)
  • vite-plus 0.1.23 → 0.2.2 via vp update vite-plus --latest and vp migrate, with the root helper pin synced to 0.2.2 and vitest overrides pointed at upstream 4.1.9 instead of @voidzero-dev/vite-plus-test

Local lessons:

  • Vite+ 0.2 enables stricter oxlint rules such as typescript/no-unnecessary-type-assertion; vp check --fix cleared most of them automatically.
  • matchMedia test mocks that still define deprecated addListener/removeListener need scoped oxlint-disable comments 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 outside config/ with larastan.noEnvCallsOutsideOfConfig; move those values into config keys and read them with config() 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 hoisted vi.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
  • SpatieLaravelTranslatablePlugin was replaced by LaraZeus\\SpatieTranslatable\\SpatieTranslatablePlugin for Filament v5 compatibility
  • filament-shield, filament-users, and filament-impersonate all 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 ​

DependencyVersion
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