Upgrade vue-router 4.3.0 → 5.2.0 (major)
Dependabot PR #7857. Runtime dependency (dependencies, ^4.2.5); the app router — createRouter in frontend/src/routes.js, plus useRouter/useRoute across frontend/src/. Pulled out of the weekly Dependabot slot per the major-version process — needs an owner and verification, not a batch merge.
Compatibility pre-check
- Vue peer
^3.5.34 || ^4.0.0 vs installed vue@3.5.38 — ✅
- Extra peers (
vite ^7.3.0 || ^8.0.0, pinia, @pinia/colada, @vue/compiler-sfc) are all optional: true — for the merged file-based/typed-routes tooling we don't use; installed vite@6.4.2 / pinia@3.0.4 unaffected — ✅
- No
engines field on vue-router@5.2.0 — ✅
Breaking changes to review
- v4→v5 is a "boring" release merging unplugin-vue-router into core; migration guide states no breaking changes for non-file-based users (source: v4-to-v5 migration guide).
- IIFE build no longer bundles
@vue/devtools-api (v8) — only affects the standalone browser build, not bundled apps.
- 5.0.3:
next()-callback guards emit deprecation warnings; NavigationResult deprecated in favor of reroute(to) (experimental APIs) — to confirm from changelog.
To do before merge
Refs
Upgrade vue-router 4.3.0 → 5.2.0 (major)
Dependabot PR #7857. Runtime dependency (
dependencies,^4.2.5); the app router —createRouterinfrontend/src/routes.js, plususeRouter/useRouteacrossfrontend/src/. Pulled out of the weekly Dependabot slot per the major-version process — needs an owner and verification, not a batch merge.Compatibility pre-check
^3.5.34 || ^4.0.0vs installedvue@3.5.38— ✅vite ^7.3.0 || ^8.0.0,pinia,@pinia/colada,@vue/compiler-sfc) are alloptional: true— for the merged file-based/typed-routes tooling we don't use; installedvite@6.4.2/pinia@3.0.4unaffected — ✅enginesfield on vue-router@5.2.0 — ✅Breaking changes to review
@vue/devtools-api(v8) — only affects the standalone browser build, not bundled apps.next()-callback guards emit deprecation warnings;NavigationResultdeprecated in favor ofreroute(to)(experimental APIs) — to confirm from changelog.To do before merge
createRouter+createWebHistoryinfrontend/src/routes.js.next()-callback guards for new deprecation warnings:beforeEachinroutes.js, andbeforeEnterguardsensurePermission.ts/ensureAdmin.ts.Refs
dependabot/npm_and_yarn/vue-router-5.2.0