nuxt-nightly 4.3.0-29432784.68badc0b → 4.3.0-29433495.f22e9176

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +10 -2
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -1691,7 +1691,15 @@ if (import.meta.hot) {
1691
1691
  for (const route of routes) {
1692
1692
  router.addRoute(route)
1693
1693
  }
1694
- router.replace(router.currentRoute.value.fullPath)
1694
+ router.isReady().then(() => {
1695
+ // Resolve the current path against the new routes to get updated meta
1696
+ const newRoute = router.resolve(router.currentRoute.value.fullPath)
1697
+ // Clear old meta values and assign new ones
1698
+ for (const key of Object.keys(router.currentRoute.value.meta)) {
1699
+ delete router.currentRoute.value.meta[key]
1700
+ }
1701
+ Object.assign(router.currentRoute.value.meta, newRoute.meta)
1702
+ })
1695
1703
  }
1696
1704
  if (routes && 'then' in routes) {
1697
1705
  routes.then(addRoutes)
@@ -3837,7 +3845,7 @@ function addDeclarationTemplates(ctx, options) {
3837
3845
  });
3838
3846
  }
3839
3847
 
3840
- const version = "4.3.0-29432784.68badc0b";
3848
+ const version = "4.3.0-29433495.f22e9176";
3841
3849
  const pkg = {
3842
3850
  version: version};
3843
3851
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.3.0-29432784.68badc0b",
3
+ "version": "4.3.0-29433495.f22e9176",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -67,11 +67,11 @@
67
67
  "@dxup/nuxt": "^0.3.2",
68
68
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
69
69
  "@nuxt/devtools": "^3.1.1",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29432784.68badc0b",
71
- "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.3.0-29432784.68badc0b",
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29432784.68badc0b",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29433495.f22e9176",
71
+ "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.3.0-29433495.f22e9176",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29433495.f22e9176",
73
73
  "@nuxt/telemetry": "^2.6.6",
74
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.3.0-29432784.68badc0b",
74
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.3.0-29433495.f22e9176",
75
75
  "@unhead/vue": "^2.0.19",
76
76
  "@vue/shared": "^3.5.25",
77
77
  "c12": "^3.3.2",