---
title: "Vue Router v5.4.0 Release Notes & Breaking Changes | VueDigest"
description: "Vue Router v5.4.0 introduces breaking changes by normalizing query values to arrays and adds new features such as accepting prebuilt matchers in `create…"
canonical_url: "https://vuedigest.com/github-releases/vuejs/router/v5.4.0"
meta:
  "og:description": "Vue Router v5.4.0 introduces breaking changes by normalizing query values to arrays and adds new features such as accepting prebuilt matchers in `create…"
  "og:image": "https://vuedigest.com/_og/d/c_Template.takumi%2Cdescription_~VnVlIFJvdXRlciB2NS40LjAgaW50cm9kdWNlcyBicmVha2luZyBjaGFuZ2VzIGJ5IG5vcm1hbGl6aW5nIHF1ZXJ5IHZhbHVlcyB0byBhcnJheXMgYW5kIGFkZHMgbmV3IGZlYXR1cmVzIHN1Y2ggYXMgYWNjZXB0aW5nIHByZWJ1aWx0IG1hdGNoZXJzIGluIGBjcmVhdGXigKY%2Ctitle_Vue%2BRouter%2Bv5.4.0%2Cp_Ii9naXRodWItcmVsZWFzZXMvdnVlanMvcm91dGVyL3Y1LjQuMCI%2Cs_JK3Nf-zRaeghigtw.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Vue Router v5.4.0 Release Notes & Breaking Changes"
  "twitter:description": "Vue Router v5.4.0 introduces breaking changes by normalizing query values to arrays and adds new features such as accepting prebuilt matchers in `create…"
  "twitter:image": "https://vuedigest.com/_og/d/c_Template.takumi%2Cdescription_~VnVlIFJvdXRlciB2NS40LjAgaW50cm9kdWNlcyBicmVha2luZyBjaGFuZ2VzIGJ5IG5vcm1hbGl6aW5nIHF1ZXJ5IHZhbHVlcyB0byBhcnJheXMgYW5kIGFkZHMgbmV3IGZlYXR1cmVzIHN1Y2ggYXMgYWNjZXB0aW5nIHByZWJ1aWx0IG1hdGNoZXJzIGluIGBjcmVhdGXigKY%2Ctitle_Vue%2BRouter%2Bv5.4.0%2Cp_Ii9naXRodWItcmVsZWFzZXMvdnVlanMvcm91dGVyL3Y1LjQuMCI%2Cs_JK3Nf-zRaeghigtw.png"
  "twitter:title": "Vue Router v5.4.0 Release Notes & Breaking Changes"
---

> Index of every page on this site: [llms.txt](https://vuedigest.com/llms.txt)

# **Vue Router v5.4.0**

[View on GitHub](https://github.com/vuejs/router/releases/tag/v5.4.0)

vuejs/router· Released October 7, 2026Breaking changes

Share [Share on X](https://x.com/intent/tweet?text=Vue+Router+v5.4.0&url=http%3A%2F%2Flocalhost%2Fgithub-releases%2Fvuejs%2Frouter%2Fv5.4.0)

**Summary**

Vue Router v5.4.0 introduces breaking changes by normalizing query values to arrays and adds new features such as accepting prebuilt matchers in \`createRouter\` and enhanced scroll restoration capabilities. Additionally, there are several bug fixes and performance improvements, particularly around hash and query parameter handling.

## **Breaking changes in v5.4.0**

- **experimental**: Normalize query values to arrays  -  by @posva in https://github.com/vuejs/router/issues/2824 [(f1fbc)](https://github.com/vuejs/router/commit/f1fbc067)

## **Full release notes **

###    🚨 Breaking Changes

- **experimental**: Normalize query values to arrays  -  by @posva in https://github.com/vuejs/router/issues/2824 [(f1fbc)](https://github.com/vuejs/router/commit/f1fbc067)

###    🚀 Features

- Accept a prebuilt matcher in `createRouter`  -  by @danielroe in https://github.com/vuejs/router/issues/2804 [(9de96)](https://github.com/vuejs/router/commit/9de967f4)
- UseScrollRestoration and onRouteRendered  -  by @posva in https://github.com/vuejs/router/issues/2805 [(e3dde)](https://github.com/vuejs/router/commit/e3dde5eb)
- Diagnose experimental beforeEnter migration  -  by @posva [(b695c)](https://github.com/vuejs/router/commit/b695cd0f)
- **experimental**:
  - Warn about legacy optional param removal  -  by @posva in https://github.com/vuejs/router/issues/2818 [(c2f92)](https://github.com/vuejs/router/commit/c2f92a4d)
  - Extract hash params with definePage  -  by @posva [(dbf2d)](https://github.com/vuejs/router/commit/dbf2d9e2)
  - Configure required and default hash params  -  by @posva [(cef5c)](https://github.com/vuejs/router/commit/cef5cfae)
  - Never decode the hash, protect-only encoding  -  by @posva in https://github.com/vuejs/router/issues/2760 [(aca2c)](https://github.com/vuejs/router/commit/aca2c83a)
  - Allow custom regexp for path params in definePage  -  by @posva in https://github.com/vuejs/router/issues/2822 [(3a192)](https://github.com/vuejs/router/commit/3a192ad1)
- **router**:
  - Restore hashes and top by default  -  by @posva [(7c385)](https://github.com/vuejs/router/commit/7c3851f8)

###    🐞 Bug Fixes

- Resolve experimental guard redirects against target on history navigation  -  by @posva [(2c5fb)](https://github.com/vuejs/router/commit/2c5fbd63)
- **experimental**:
  - Keep declared case of static prefix in MatcherPatternPathStar.build()  -  by @contactjawad in https://github.com/vuejs/router/issues/2798 [(4dc6b)](https://github.com/vuejs/router/commit/4dc6bfa1)
  - Make hash params optional and nullable  -  by @posva [(d9a4c)](https://github.com/vuejs/router/commit/d9a4ceb0)
  - Exclude defaults from required hash params  -  by @posva [(346e2)](https://github.com/vuejs/router/commit/346e2cde)
  - Align hash parameter parsing with queries  -  by @posva [(cf251)](https://github.com/vuejs/router/commit/cf25179f)
  - Keep last hash param instead of throwing  -  by @posva [(d1e8a)](https://github.com/vuejs/router/commit/d1e8ac17)
  - Disallow required with a default for query params  -  by @posva [(f60e9)](https://github.com/vuejs/router/commit/f60e9e37)
  - Make query params with a default optional on push  -  by @posva [(fb604)](https://github.com/vuejs/router/commit/fb604ea6)
  - Do not inherit params, query, or hash on redirects  -  by @posva [(02a92)](https://github.com/vuejs/router/commit/02a92656)
- **history**:
  - Invalidate obsolete scroll positions  -  by @posva and @liuly0322 in https://github.com/vuejs/router/issues/2814 [(071f1)](https://github.com/vuejs/router/commit/071f1969)
- **unplugin**:
  - Sanitize named view in definePage import  -  by @giaBaoJS in https://github.com/vuejs/router/issues/2809 [(0711d)](https://github.com/vuejs/router/commit/0711dff9)
  - Keep hex character codes in param segments regexp  -  by @kwy404 in https://github.com/vuejs/router/issues/2811 [(07663)](https://github.com/vuejs/router/commit/07663eb6)

###    🏎 Performance

- **unplugin**: Cache merged route overrides  -  by @posva in https://github.com/vuejs/router/issues/2821 [(732b7)](https://github.com/vuejs/router/commit/732b723e)

#####      [View changes on GitHub](https://github.com/vuejs/router/compare/v5.3.1...v5.4.0)

## **Latest Vue Router releases **

[All releases](https://vuedigest.com/github-releases/vuejs/router)

- [**v5.5.1**November 13, 2026](https://vuedigest.com/github-releases/vuejs/router/v5.5.1)
- [**v4.6.5**November 13, 2026](https://vuedigest.com/github-releases/vuejs/router/v4.6.5)
- [**v5.5.0**November 10, 2026](https://vuedigest.com/github-releases/vuejs/router/v5.5.0)
- [**v5.3.1**September 2, 2026](https://vuedigest.com/github-releases/vuejs/router/v5.3.1)
- [**v5.3.0**August 27, 2026](https://vuedigest.com/github-releases/vuejs/router/v5.3.0)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://vuedigest.com/#website","@type":"WebSite","description":"Your daily dose of Vue.js and Nuxt news. Curated articles, tutorials, and updates from the Vue ecosystem.","inLanguage":"en","name":"VueDigest","url":"https://vuedigest.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://vuedigest.com/news?search={search_term_string}"},"query-input":"required name=search_term_string"}],"publisher":{"@id":"https://vuedigest.com/#identity"}},{"@id":"https://vuedigest.com/github-releases/vuejs/router/v5.4.0#webpage","@type":"WebPage","dateModified":"2026-10-07T16:00:47.773Z","datePublished":"2026-10-07T15:33:16.000Z","description":"Vue Router v5.4.0 introduces breaking changes by normalizing query values to arrays and adds new features such as accepting prebuilt matchers in `create…","name":"Vue Router v5.4.0 Release Notes & Breaking Changes","url":"https://vuedigest.com/github-releases/vuejs/router/v5.4.0","breadcrumb":{"@id":"https://vuedigest.com/github-releases/vuejs/router/v5.4.0#breadcrumb"},"isPartOf":{"@id":"https://vuedigest.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://vuedigest.com/github-releases/vuejs/router/v5.4.0"]}],"primaryImageOfPage":{"@id":"https://vuedigest.com/#logo"}},{"@id":"https://vuedigest.com/#identity","@type":"Organization","name":"VueDigest","url":"https://vuedigest.com","logo":{"@id":"https://vuedigest.com/#logo"}},{"@id":"https://vuedigest.com/github-releases/vuejs/router/v5.4.0#article","about":"Vue Router 5.4.0","dateModified":"2026-10-07T16:00:47.773Z","datePublished":"2026-10-07T15:33:16.000Z","description":"Vue Router v5.4.0 introduces breaking changes by normalizing query values to arrays and adds new features such as accepting prebuilt matchers in `create…","headline":"Vue Router v5.4.0 Release Notes & Breaking Changes","inLanguage":"en","thumbnailUrl":"https://vuedigest.com/_og/d/c_Template.takumi%2Cdescription_~VnVlIFJvdXRlciB2NS40LjAgaW50cm9kdWNlcyBicmVha2luZyBjaGFuZ2VzIGJ5IG5vcm1hbGl6aW5nIHF1ZXJ5IHZhbHVlcyB0byBhcnJheXMgYW5kIGFkZHMgbmV3IGZlYXR1cmVzIHN1Y2ggYXMgYWNjZXB0aW5nIHByZWJ1aWx0IG1hdGNoZXJzIGluIGBjcmVhdGXigKY%2Ctitle_Vue%2BRouter%2Bv5.4.0%2Cp_Ii9naXRodWItcmVsZWFzZXMvdnVlanMvcm91dGVyL3Y1LjQuMCI%2Cs_JK3Nf-zRaeghigtw.png","@type":["Article","TechArticle"],"author":{"@id":"https://vuedigest.com/#identity"},"image":{"@id":"https://vuedigest.com/#/schema/image/1"},"isPartOf":{"@id":"https://vuedigest.com/github-releases/vuejs/router/v5.4.0#webpage"},"keywords":["Vue Router","release notes","changelog"],"mainEntityOfPage":{"@id":"https://vuedigest.com/github-releases/vuejs/router/v5.4.0#webpage"},"publisher":{"@id":"https://vuedigest.com/#identity"}},{"@id":"https://vuedigest.com/github-releases/vuejs/router/v5.4.0#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","item":"https://vuedigest.com/github-releases","name":"GitHub Releases","position":1},{"@type":"ListItem","item":"https://vuedigest.com/github-releases/vuejs/router","name":"Vue Router","position":2},{"@type":"ListItem","name":"v5.4.0","position":3}]},{"@id":"https://vuedigest.com/#logo","@type":"ImageObject","caption":"VueDigest","contentUrl":"https://mokkapps.twic.pics/vuedigest.com/logo.png","inLanguage":"en","url":"https://mokkapps.twic.pics/vuedigest.com/logo.png"},{"@id":"https://vuedigest.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://vuedigest.com/_og/d/c_Template.takumi%2Cdescription_~VnVlIFJvdXRlciB2NS40LjAgaW50cm9kdWNlcyBicmVha2luZyBjaGFuZ2VzIGJ5IG5vcm1hbGl6aW5nIHF1ZXJ5IHZhbHVlcyB0byBhcnJheXMgYW5kIGFkZHMgbmV3IGZlYXR1cmVzIHN1Y2ggYXMgYWNjZXB0aW5nIHByZWJ1aWx0IG1hdGNoZXJzIGluIGBjcmVhdGXigKY%2Ctitle_Vue%2BRouter%2Bv5.4.0%2Cp_Ii9naXRodWItcmVsZWFzZXMvdnVlanMvcm91dGVyL3Y1LjQuMCI%2Cs_JK3Nf-zRaeghigtw.png","inLanguage":"en","url":"https://vuedigest.com/_og/d/c_Template.takumi%2Cdescription_~VnVlIFJvdXRlciB2NS40LjAgaW50cm9kdWNlcyBicmVha2luZyBjaGFuZ2VzIGJ5IG5vcm1hbGl6aW5nIHF1ZXJ5IHZhbHVlcyB0byBhcnJheXMgYW5kIGFkZHMgbmV3IGZlYXR1cmVzIHN1Y2ggYXMgYWNjZXB0aW5nIHByZWJ1aWx0IG1hdGNoZXJzIGluIGBjcmVhdGXigKY%2Ctitle_Vue%2BRouter%2Bv5.4.0%2Cp_Ii9naXRodWItcmVsZWFzZXMvdnVlanMvcm91dGVyL3Y1LjQuMCI%2Cs_JK3Nf-zRaeghigtw.png"}]}
```

## Sitemap

See the full [sitemap](https://vuedigest.com/sitemap.md) for all pages.
