Vue Router v5.1.0

vuejs/router
Share
Summary
Vue Router v5.1.0 introduces several enhancements including typed parameters for definePage, support for raw param parsers, and runtime warnings for invalid query formats. Bug fixes improve auto-import functionality and ensure better handling of query parameters, including allowing undefined values. Additionally, Vite is now an optional peer dependency.

Full release notes

   🚀 Features

  • Typed definePage params.path  -  by @posva in https://github.com/vuejs/router/issues/2716 (d65de)
  • Strict type for definePage param default  -  by @posva (0ae10)
  • Support raw param parsers  -  by @posva (eadec)
  • Force array type raw param parsers  -  by @posva (7a68b)
  • Allow overriding the global Router type  -  by @posva (1cd93)
  • Emit runtime warning for invalid format in query params  -  by @posva (8259a)
  • Override useRouter() return with experimental types config  -  by @posva (39a34)
  • Allow string as a param parser for convenience  -  by @posva (be37b)

   🐞 Bug Fixes

  • Fix auto import fixes and make experimental esm only  -  by @posva (db3a6)
  • Deterministic param parser types order  -  by @posva (bf0fc)
  • Avoid importing unused param parsers  -  by @posva (41c00)
  • Filter invalid query params without failing to match  -  by @posva (db717)
  • Detect not set format  -  by @posva (aa89e)
  • Allow undefined values for params in query  -  by @posva (4726e)
  • experimental: Repeatable params in subsegments  -  by @posva (84664)
  • types: Add vite as optional peer dependency  -  by @ForgottenR, @posva and shihuijie in https://github.com/vuejs/router/issues/2712 (facbf)
    View changes on GitHub

Latest Vue Router releases

All releases