Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 15, 2022

This PR contains the following updates:

Package Change Age Confidence
vue-router (source) 4.0.54.6.4 age confidence

Release Notes

vuejs/router (vue-router)

v4.6.4

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v4.6.3

Compare Source

Please refer to CHANGELOG.md for details.

v4.6.2

Compare Source

Please refer to CHANGELOG.md for details.

v4.6.1

Compare Source

Please refer to CHANGELOG.md for details.

v4.6.0

Compare Source

Please refer to CHANGELOG.md for details.

v4.5.1

Compare Source

Please refer to CHANGELOG.md for details.

v4.5.0

Compare Source

Please refer to CHANGELOG.md for details.

v4.4.5

Compare Source

Please refer to CHANGELOG.md for details.

v4.4.4

Compare Source

Please refer to CHANGELOG.md for details.

v4.4.3

Compare Source

Please refer to CHANGELOG.md for details.

v4.4.2

Compare Source

Please refer to CHANGELOG.md for details.

v4.4.1

Compare Source

Please refer to CHANGELOG.md for details.

v4.4.0

Compare Source

Please refer to CHANGELOG.md for details.

v4.3.3

Compare Source

Please refer to CHANGELOG.md for details.

v4.3.2

Compare Source

Please refer to CHANGELOG.md for details.

v4.3.1

Compare Source

Please refer to CHANGELOG.md for details.

v4.3.0

Compare Source

Please refer to CHANGELOG.md for details.

v4.2.5

Compare Source

Please refer to CHANGELOG.md for details.

v4.2.4

Compare Source

Please refer to CHANGELOG.md for details.

v4.2.3

Compare Source

Please refer to CHANGELOG.md for details.

v4.2.2

Compare Source

Please refer to CHANGELOG.md for details.

v4.2.1

Compare Source

Please refer to CHANGELOG.md for details.

v4.2.0

Compare Source

Please refer to CHANGELOG.md for details.

v4.1.6

Compare Source

Please refer to CHANGELOG.md for details.

v4.1.5

Compare Source

Please refer to CHANGELOG.md for details.

v4.1.4

Compare Source

Please refer to CHANGELOG.md for details.

v4.1.3

Compare Source

Please refer to CHANGELOG.md for details.

v4.1.2

Compare Source

Please refer to CHANGELOG.md for details.

v4.1.1

Compare Source

Please refer to CHANGELOG.md for details.

v4.1.0

Compare Source

Vue Router 4.1

We are excited to announce the release of Vue Router 4.1 with a few new interesting features, better support for Node ESM and no breaking changes.

Omitting the component/components option in routes

It's now possible to completely omit the component option when defining routes with children. While nested routes are about defining layouts, they are also directly connected to a path and users often found themselves defining a pass through component that would just render a <RouterView> component to reuse the path structure. You can now simplify this to:

- import { RouterView } from 'vue-router'
- import { h } from 'vue'
-
 const routes = [
   {
     path: '/admin',
-     component: () => h(RouterView),
     children: [
       { path: 'users', component: AdminUserList },
       { path: 'users/:id', component: AdminUserDetails },
     ],
   },
 ]

In other words, you can now nest paths without having to define a component.

Passing History State in navigations

Passing History State through router.push() has been implemented and used by the router since its version 4.0 but hasn't been exposed as a public API until now. This enables passing a state property when calling router.push() or router.replace(). This is useful to pass global state to be associated with the history entry that cannot be shared by copying the URL. One common example of this are Modals:

// go to /users/24 but show a modal instead
router.push({ name: 'UserDetail', params: { id: 24 } state: { backgroundView: ... } })

To see a full example, check the modal e2e test, it has been updated to use the state property.

It's worth noting this shouldn't be used to pass fetched data or complex objects such as classes because of type and size limitations. Check the History State documentation for more information about the state property.

Given the nature of the <RouterView>'s route prop, there is also a new function loadRouteLocation() that can be used on a resolved route location to load a route with lazy loading:

import { loadRouteLocation } from 'vue-router'

const loadedRoute = await loadRouteLocation(router.resolve('/users/24'))

Typed Routes

RouterLink to autocomplete

In v4.1 we were initially planning to introduce types to automatically detect the params from a path property, creating autocomplete and type safety in router.push() and <RouterLink>'s to prop. It was implemented but also turned out to be extremely slow after ~50 routes due to the nature of the types relying on nesting and complex unions. Instead, we are introducing a build plugin to generate the types of the routes for you based your file structure. This is similar to Nuxt and Vite Plugin Pages but with full type support (similar to nuxt-typed-router) while allowing you to keep using the exact same API, just with Autocompletion and typing hints 😄. The plugin currently supports Vite, Webpack (with some caveats), and rollup and it's currently experimental to gather feedback from the community and build a flexible solution. We hope to release a stable version in the following months.

Check out the plugin GitHub repository for installation instructions and documentation.

Here are some other examples of how much this plugin can improves your developer experience:

params validation in RouterLink Route infer from if condition Typed routes in navigation guards

CJS/MJS support for Node

We now expose a few extra entry points for Node but kept the old ones as well to prevent any disruption to the existing users. You can find more information about this in the corresponding pull request.


Please refer to CHANGELOG.md for details.

v4.0.16

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.15

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.14

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.13

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.12

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.11

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.10

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.9

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.8

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.7

Compare Source

Please refer to CHANGELOG.md for details.

v4.0.6

Compare Source

Please refer to CHANGELOG.md for details.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 25c84a8 to 41f519c Compare June 18, 2022 17:58
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.0.15 fix(deps): update dependency vue-router to v4.0.16 Jun 18, 2022
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 41f519c to 9006bec Compare September 25, 2022 22:10
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.0.16 fix(deps): update dependency vue-router to v4.1.5 Sep 25, 2022
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 9006bec to 73b0364 Compare November 20, 2022 15:13
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.1.5 fix(deps): update dependency vue-router to v4.1.6 Nov 20, 2022
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.1.6 fix(deps): update dependency vue-router to v4.2.2 May 31, 2023
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 73b0364 to f2d6d66 Compare May 31, 2023 01:57
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.2.2 fix(deps): update dependency vue-router to v4.2.3 Jul 5, 2023
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from f2d6d66 to 8cce9af Compare July 5, 2023 14:01
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.2.3 fix(deps): update dependency vue-router to v4.2.4 Jul 6, 2023
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 8cce9af to 30cd623 Compare July 6, 2023 16:48
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.2.4 fix(deps): update dependency vue-router to v4.2.5 Sep 22, 2023
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 30cd623 to 0febab8 Compare September 22, 2023 10:55
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 0febab8 to 69c10ea Compare February 22, 2024 08:15
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.2.5 fix(deps): update dependency vue-router to v4.3.0 Feb 22, 2024
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 69c10ea to 1644fc9 Compare April 17, 2024 10:08
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.3.0 fix(deps): update dependency vue-router to v4.3.1 Apr 17, 2024
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 1644fc9 to 6946c95 Compare April 18, 2024 11:29
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.3.1 fix(deps): update dependency vue-router to v4.3.2 Apr 18, 2024
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 6946c95 to 73a620f Compare June 10, 2024 16:51
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.3.2 fix(deps): update dependency vue-router to v4.3.3 Jun 10, 2024
@coderabbitai
Copy link

coderabbitai bot commented Jun 10, 2024

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The primary change involves updating the vue-router dependency in the package.json file from version 4.0.5 to 4.4.3. This update is expected to bring enhancements such as bug fixes, performance improvements, and potentially new features that could affect the application's routing behavior. Overall, it aims to ensure that the project remains up-to-date with the latest developments in the vue-router library.

Changes

File Change Summary
package.json Updated vue-router from 4.0.5 to 4.4.3.

Poem

In the garden of code where the routers play,
A hop, a skip, they’ve brightened the day!
With fixes and tweaks, so sleek and so neat,
Our paths now align, oh, how sweet!
So let’s leap with joy, with a twitch of our ears,
For new routes await, let’s banish our fears! 🐇✨


Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 73a620f to 967b50a Compare June 21, 2024 16:20
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.3.3 fix(deps): update dependency vue-router to v4.4.0 Jun 21, 2024
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.4.0 fix(deps): update dependency vue-router to v4.4.1 Jul 31, 2024
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 967b50a to 193db54 Compare July 31, 2024 19:36
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.4.1 fix(deps): update dependency vue-router to v4.4.2 Aug 1, 2024
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch 2 times, most recently from 6f581c7 to 377385e Compare August 6, 2024 19:20
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.4.2 fix(deps): update dependency vue-router to v4.4.3 Aug 6, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 8e1fe27 and 377385e.

Files selected for processing (1)
  • package.json (1 hunks)
Additional comments not posted (1)
package.json (1)

44-44: Verify compatibility of vue-router version 4.4.3.

The update from 4.0.5 to 4.4.3 likely includes various enhancements and bug fixes. Ensure that the new version does not introduce breaking changes or incompatibilities with the existing codebase.

@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 377385e to 56a0851 Compare September 10, 2024 19:40
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.4.3 fix(deps): update dependency vue-router to v4.4.4 Sep 10, 2024
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 56a0851 to 860a4cc Compare September 13, 2024 09:01
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.4.4 fix(deps): update dependency vue-router to v4.4.5 Sep 13, 2024
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.4.5 fix(deps): update dependency vue-router to v4.5.0 Nov 25, 2024
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 860a4cc to 22d9128 Compare November 25, 2024 18:42
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 22d9128 to 746f34e Compare April 25, 2025 17:43
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.5.0 fix(deps): update dependency vue-router to v4.5.1 Apr 25, 2025
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 746f34e to 3a2b47e Compare October 14, 2025 10:41
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.5.1 fix(deps): update dependency vue-router to v4.6.0 Oct 14, 2025
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.6.0 fix(deps): update dependency vue-router to v4.6.2 Oct 15, 2025
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch 2 times, most recently from 3906cc3 to 6e53e08 Compare October 16, 2025 05:45
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.6.2 fix(deps): update dependency vue-router to v4.6.3 Oct 16, 2025
@renovate renovate bot force-pushed the renovate/vue-router-4.x branch from 6e53e08 to a28819d Compare December 11, 2025 20:51
@renovate renovate bot changed the title fix(deps): update dependency vue-router to v4.6.3 fix(deps): update dependency vue-router to v4.6.4 Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants