
"The headline change in Vue Router 5 is the absorption of unplugin-vue-router, a build-time plugin that provided file-based routing with full TypeScript support. Previously maintained as a separate package, this functionality is now available directly from vue-router imports, eliminating the need for an additional dependency."
"Data loaders, now importable from vue-router/experimental, provide a standardised way to tie data fetching directly to route definitions. This approach ensures components only render once their required data is available, reducing the need for manual loading state management."
"The release, which maintainer Eduardo San Martin Morote (posva) has described as intentionally 'boring', ships with no breaking changes for existing Vue Router 4 users. For developers already using unplugin-vue-router, migration is primarily a matter of updating import paths."
Vue Router 5.0 represents a transition release that absorbs the unplugin-vue-router plugin directly into the core package, eliminating the need for a separate dependency. The release maintains backward compatibility with Vue Router 4, requiring only import path updates for existing users. New experimental features include data loaders for standardized data fetching tied to route definitions, Volar plugin support for enhanced editor tooling, route JSON schema validation, and runtime errors for missing parameter parsers. The devtools API upgraded to v8, with the only breaking change being the removal of @vue/devtools-api from the IIFE build. Community reception has been positive, with developers appreciating the seamless migration path.
Read at InfoQ
Unable to calculate read time
Collection
[
|
...
]