Vue Router v5.5.0

vuejs/router
Share
Summary
Vue Router v5.5.0 introduces several enhancements including warnings for colliding query parameters with route params, customizable scroll restoration capture listeners, and improved type safety for route record props. Notable bug fixes address scroll position handling and named-view props preservation, while performance improvements include optimizations for build-time properties and dev server file watching.

Full release notes

   🚀 Features

  • Warn on colliding query with params  -  by @posva (57a20)
  • experimental:
    • Customize scroll restoration capture listeners  -  by @posva (062fa)
    • Export default scroll capture listener setup  -  by @posva (ce337)
    • Support type safe route record props  -  by @posva (f7f8f)
  • scroll-restoration:
    • Make capture triggers configurable  -  by @posva (607f2)
  • unplugin:
    • Declare route params in defineProps() with definePage props true  -  by @posva (b659e)
  • volar:
    • Type defineProps() with route params when definePage props is true  -  by @posva (ca85a)
    • Add typedDefineProps option to sfc-typed-router  -  by @posva (bc409)

   🐞 Bug Fixes

   🏎 Performance

  • Strip build-time definePage properties  -  by @posva (6202f)
  • unplugin: Watch page files only in dev server  -  by @posva (e407f)
    View changes on GitHub

Latest Vue Router releases

All releases