$ the-wire · showcase
Relative router.resolve() lands, pushState keeps userinfo
By RepoJournal · Filed · About Vue.js · Composed from the cited sources · methodology
Three vuejs/router fixes from posva land in one day: relative object locations resolve against the current route, pushState stops stripping userinfo, and the build drops four unused dependencies.
fix(experimental): resolve relative object locations against the current route (#2890) vuejs/router
Relative object locations now resolve against the current route, and without the fix those calls crash in production with TypeError reading 'name' of undefined. The commit is explicit that it was written by an AI agent and "Not reviewed by a human."
fix(experimental): resolve relative object locations against the current route vuejs/router
router.push(), router.replace(), router.resolve() and <RouterLink> accept relative locations that inherit the current route's params, query and hash unless overridden; named locations do not inherit those values.
fix(history): keep userinfo by using relative urls in pushState vuejs/router
pushState and replaceState now receive relative URLs so the browser preserves userinfo, and dev builds warn to use hash history on file:// URLs. It also hardens handling of paths containing host-like slashes, backslashes, tabs or newlines; the change closes three issues.
build: upgrade dependencies and remove unused ones vuejs/router
The dependency cleanup removes unused tsup, rimraf, simple-git and @standard-schema/spec, bumps chokidar to 6 (which requires Node >= 22.22), and moves the Playwright image to v1.65.0. TypeScript 7 and muggle-string stay pinned at 1.
Action items
- → Ensure build and CI environments for vuejs/router run Node >= 22.22 for chokidar 6 vuejs/router [plan]