$ the-wire · showcase
Router escapes pipe in static paths, test-utils drops Rollup
By RepoJournal · Filed · About Vue.js · Composed from the cited sources · methodology
vuejs/router 5.5.1 fixes route matching for literal pipe characters and adds dev warnings for scalar repeatable params, while @vue/test-utils moves its build to rolldown and tightens its TypeScript strictness.
fix: escape | in static path tokens vuejs/router
Static path segments containing a literal | no longer escape into a top-level alternation in the generated route regexp, so those routes match as written in both the matcher and file-based routing codegen. Custom param patterns can still use | to express alternation, which is the case the escape had to preserve.
build: replace rollup and its plugins with rolldown vuejs/test-utils
rolldown, already present transitively through Vite 8, replaces Rollup along with five @rollup/plugin-* packages and tslib; resolve, commonjs, json and TypeScript support are built in. The commit notes this also removes the deepmerge advisory that has no fix, and rolldown.config.ts maps the old config one-to-one with replace moved to transform.define and target left at es2015.
feat: warn on repeatable params being passed as scalars vuejs/router
Both routers now warn in development when a repeatable param is passed as a scalar rather than an array, and when an optional param is removed with an empty string instead of null. Repeatable params resolve as arrays even when a single value is supplied, so the warning flags a call that works but misstates intent.
perf(matcher): refine param separator matching vuejs/router
Matching for adjacent params separated by static text now handles multi-character and regex-special separators, along with optional and repeatable params, custom patterns and backreferences in those routes. danielroe's change covers the long non-matching cases the old separator logic got wrong.
chore: enable noUncheckedIndexedAccess vuejs/test-utils
The root TypeScript config turns on noUncheckedIndexedAccess, so library and test code must account for missing array and record entries; the follow-up enables it after strictNullChecks inheritance was restored in type tests. Expect the usual reshaping: value iteration and narrowed locals for lookups, guarded key modifiers, and optional indexed results in wrapper type assertions. The documentat...
Action items