vue3-realworld-example-app
vue3-realworld-example-app copied to clipboard
chore(deps): bump vue-router from 4.0.16 to 4.1.3
Bumps vue-router from 4.0.16 to 4.1.3.
Release notes
Sourced from vue-router's releases.
v4.1.3
Please refer to CHANGELOG.md for details.
v4.1.2
Please refer to CHANGELOG.md for details.
v4.1.1
Please refer to CHANGELOG.md for details.
v4.1.0
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/componentsoption in routesIt's now possible to completely omit the
componentoption when defining routes with children. While nested routes are about defining layouts, they are also directly connected to apathand users often found themselves defining a pass through component that would just render a<RouterView>component to reuse thepathstructure. 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 astateproperty when callingrouter.push()orrouter.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
stateproperty.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
stateproperty.Given the nature of the
<RouterView>'srouteprop, there is also a new functionloadRouteLocation()that can be used on a resolved route location to load a route with lazy loading:
... (truncated)
Commits
7963824release: [email protected]66491c1fix: avoid restore on cancelled pop navigations301b52cchore: up deps247cf9dUpdate Vue School summer sale banner (#1487)9ce152cdocs: the playground link (#1483)cfe45dadocs: edit link not exist (#1484)2ed41a1docs: replace yarn with pnpm in contributing.md (#1482) [skip ci]de65a3fdocs: Router-Example typo fix. (#1481)583e77dstyle: code prettier (#1480)0cc066bdocs: add a blank line (#1474)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| vue3-realworld-example-app | ✅ Ready (Inspect) | Visit Preview | Sep 1, 2022 at 7:04PM (UTC) |
Superseded by #119.