Skip to content

Add support for vue-router v5#20

Closed
djscruggs wants to merge 1 commit into
mainfrom
feature/vue-router-v5
Closed

Add support for vue-router v5#20
djscruggs wants to merge 1 commit into
mainfrom
feature/vue-router-v5

Conversation

@djscruggs

Copy link
Copy Markdown

Summary

Adds support for vue-router v5 by widening the peer dependency range. Closes #18.

Per the v5.0.0 release notes, v5 is a non-breaking release that merges unplugin-vue-router into the core package. The only breaking change is the IIFE build dropping bundled @vue/devtools-api, which bedrock-vue does not use.

vue-router is a peer dependency only — there are no vue-router imports in lib/ or components/. The router is created by the consuming app and passed into augmentRouter({app, router}), which uses only stable, unchanged APIs (addRoute, currentRoute.value, beforeEach). No source changes are required.

Changes

  • package.json: peer dep widened to ^4.0.15 || ^5.0.0; version bumped 5.1.1-05.2.0.
  • CHANGELOG.md: new 5.2.0 entry.
  • README.md: note that both v4 and v5 are supported.

Widening (rather than replacing) keeps existing v4 consumers working, so this is a backward-compatible minor release.

Verification

  • npm install succeeds with the widened range.
  • npm run lint passes (the only CI check).
  • No automated tests exist in this repo; behavior is unchanged since no source code was modified.

🤖 Generated with Claude Code

Widen the vue-router peer dependency range to "^4.0.15 || ^5.0.0" so
consumers may use vue-router v5. v5 is a non-breaking release that merges
unplugin-vue-router into core; bedrock-vue uses only stable router APIs
(addRoute, currentRoute.value, beforeEach) via augmentRouter, so no source
changes are required. Existing v4 consumers remain supported.

Addresses #18.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@djscruggs djscruggs requested a review from dlongley June 5, 2026 01:41
@djscruggs

Copy link
Copy Markdown
Author

Closing — already fixed by another PR.

@djscruggs djscruggs closed this Jun 5, 2026
@djscruggs djscruggs deleted the feature/vue-router-v5 branch June 5, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to vue-router v5

1 participant