Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Update vue-router to v4.4.2 [skip netlify] - autoclosed #54

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 23, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vue-router 4.0.6 -> 4.4.2 age adoption passing confidence

Release Notes

vuejs/router (vue-router)

v4.4.2

Compare Source

Please refer to CHANGELOG.md for details.

v4.4.1

Compare Source

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.


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.

@changeset-bot
Copy link

changeset-bot bot commented Jun 23, 2022

⚠️ No Changeset found

Latest commit: 39b8d88

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 9a3df2d to 0b12093 Compare September 25, 2022 11:34
@renovate renovate bot changed the title Chore: Update vue-router to v4.0.16 [skip netlify] Chore: Update vue-router to v4.1.5 [skip netlify] Sep 25, 2022
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 0b12093 to 10deb7d Compare November 20, 2022 10:06
@renovate renovate bot changed the title Chore: Update vue-router to v4.1.5 [skip netlify] Chore: Update vue-router to v4.1.6 [skip netlify] Nov 20, 2022
@renovate renovate bot changed the title Chore: Update vue-router to v4.1.6 [skip netlify] Chore: Update vue-router to v4.2.1 [skip netlify] May 28, 2023
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 10deb7d to 3ccb876 Compare May 28, 2023 10:34
@renovate renovate bot changed the title Chore: Update vue-router to v4.2.1 [skip netlify] Chore: Update vue-router to v4.2.2 [skip netlify] May 29, 2023
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 3ccb876 to 1d04c6a Compare May 29, 2023 10:19
@renovate renovate bot changed the title Chore: Update vue-router to v4.2.2 [skip netlify] Chore: Update vue-router to v4.2.3 [skip netlify] Jul 5, 2023
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 1d04c6a to 1214fdb Compare July 5, 2023 17:44
@renovate renovate bot changed the title Chore: Update vue-router to v4.2.3 [skip netlify] Chore: Update vue-router to v4.2.4 [skip netlify] Jul 6, 2023
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 1214fdb to 58e97b2 Compare July 6, 2023 20:09
@renovate renovate bot changed the title Chore: Update vue-router to v4.2.4 [skip netlify] Chore: Update vue-router to v4.2.5 [skip netlify] Sep 22, 2023
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 58e97b2 to 13ebf7f Compare September 22, 2023 13:09
@renovate renovate bot changed the title Chore: Update vue-router to v4.2.5 [skip netlify] Chore: Update vue-router to v4.3.0 [skip netlify] Mar 2, 2024
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 13ebf7f to 860be9f Compare March 2, 2024 11:51
@renovate renovate bot changed the title Chore: Update vue-router to v4.3.0 [skip netlify] Chore: Update vue-router to v4.3.1 [skip netlify] Apr 17, 2024
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 860be9f to 5c1cafe Compare April 17, 2024 10:28
@renovate renovate bot changed the title Chore: Update vue-router to v4.3.1 [skip netlify] Chore: Update vue-router to v4.3.2 [skip netlify] Apr 18, 2024
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 5c1cafe to 37664d8 Compare April 18, 2024 10:50
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 37664d8 to 404a2a3 Compare June 10, 2024 14:02
@renovate renovate bot changed the title Chore: Update vue-router to v4.3.2 [skip netlify] Chore: Update vue-router to v4.3.3 [skip netlify] Jun 10, 2024
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 404a2a3 to 9cebe00 Compare June 21, 2024 14:26
@renovate renovate bot changed the title Chore: Update vue-router to v4.3.3 [skip netlify] Chore: Update vue-router to v4.4.0 [skip netlify] Jun 21, 2024
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 9cebe00 to 75ac4cc Compare July 31, 2024 19:42
@renovate renovate bot changed the title Chore: Update vue-router to v4.4.0 [skip netlify] Chore: Update vue-router to v4.4.1 [skip netlify] Jul 31, 2024
@renovate renovate bot force-pushed the renovate/dev/vue-router-4.x branch from 75ac4cc to 39b8d88 Compare August 1, 2024 09:35
@renovate renovate bot changed the title Chore: Update vue-router to v4.4.1 [skip netlify] Chore: Update vue-router to v4.4.2 [skip netlify] Aug 1, 2024
@renovate renovate bot changed the title Chore: Update vue-router to v4.4.2 [skip netlify] Chore: Update vue-router to v4.4.2 [skip netlify] - autoclosed Aug 6, 2024
@renovate renovate bot closed this Aug 6, 2024
@renovate renovate bot deleted the renovate/dev/vue-router-4.x branch August 6, 2024 08:18
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