Vue Router v5.0.7
vuejs/router
Summary
Vue Router v5.0.7 introduces Babel 8 support, enhances `defineParamParser()` for better usability, and upgrades `@vue/devtools-api`. Key bug fixes include improvements to param handling and preventing prototype pollution in queries, ensuring a more robust routing experience.
Full release notes
🚀 Features
- Upgrade to babel 8 - by @posva (8d3e6)
- Make
defineParamParser()more intuitive - by @posva (8715b) - Upgrade
@vue/devtools-api- by @posva (87c3a) - matcher: Hint at
params: {}workaround in discarded params warning - by @posva and shanliuling in https://github.com/vuejs/router/issues/2689 (c2b13) - param-parsers: Add include/exclude options - by @posva (91cde)
🐞 Bug Fixes
- matcher:
- Finalize param token before processing escaped colon - by @babu-ch and @posva in https://github.com/vuejs/router/issues/2654 (20521)
- query:
- Use Object.create(null) to prevent prototype pollution - by @wdskuki, wdsmini and @posva in https://github.com/vuejs/router/issues/2661 (be88c)
- resolve:
- Omit empty optional params from resolved params - by @babu-ch and @posva in https://github.com/vuejs/router/issues/2434 (1ef09)
- types:
- Wire RouteNamedMap via generated routes.d.ts - by @posva in https://github.com/vuejs/router/issues/2700 (aef99)
- unplugin:
- Avoid generating empty routes - by @FrontEndDog and @posva in https://github.com/vuejs/router/issues/2642 (10a8b)
- Apply definePage path-param parser overrides - by @posva in https://github.com/vuejs/router/issues/2699 (c8074)
- volar:
- Drop runtime
@vue/language-coreimport - by @danielroe in https://github.com/vuejs/router/issues/2710 (8af50)
- Drop runtime
