nuxt-nightly 4.2.2-29385843.5bf66d4f → 4.2.2-29390217.2579639
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.
package/dist/app/nuxt.d.ts
CHANGED
|
@@ -148,7 +148,9 @@ interface _NuxtApp {
|
|
|
148
148
|
/** @internal */
|
|
149
149
|
_appConfig: AppConfig;
|
|
150
150
|
/** @internal */
|
|
151
|
-
_route: RouteLocationNormalizedLoaded
|
|
151
|
+
_route: RouteLocationNormalizedLoaded & {
|
|
152
|
+
sync?: () => void;
|
|
153
|
+
};
|
|
152
154
|
/** @internal */
|
|
153
155
|
_islandPromises?: Record<string, Promise<any>>;
|
|
154
156
|
/** @internal */
|
package/dist/index.mjs
CHANGED
|
@@ -3835,7 +3835,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3835
3835
|
});
|
|
3836
3836
|
}
|
|
3837
3837
|
|
|
3838
|
-
const version = "4.2.2-
|
|
3838
|
+
const version = "4.2.2-29390217.02579639";
|
|
3839
3839
|
|
|
3840
3840
|
function createImportProtectionPatterns(nuxt, options) {
|
|
3841
3841
|
const patterns = [];
|
|
@@ -129,14 +129,19 @@ export default defineComponent({
|
|
|
129
129
|
}
|
|
130
130
|
nuxtApp.callHook("page:start", routeProps.Component);
|
|
131
131
|
},
|
|
132
|
-
onResolve: () => {
|
|
133
|
-
nextTick(
|
|
132
|
+
onResolve: async () => {
|
|
133
|
+
await nextTick();
|
|
134
|
+
try {
|
|
135
|
+
nuxtApp._route.sync?.();
|
|
136
|
+
await nuxtApp.callHook("page:finish", routeProps.Component);
|
|
134
137
|
delete nuxtApp._runningTransition;
|
|
135
138
|
if (!pageLoadingEndHookAlreadyCalled && !willRenderAnotherChild) {
|
|
136
139
|
pageLoadingEndHookAlreadyCalled = true;
|
|
137
|
-
|
|
140
|
+
await nuxtApp.callHook("page:loading:end");
|
|
138
141
|
}
|
|
139
|
-
}
|
|
142
|
+
} finally {
|
|
143
|
+
done();
|
|
144
|
+
}
|
|
140
145
|
}
|
|
141
146
|
}, {
|
|
142
147
|
default: () => {
|
|
@@ -76,13 +76,12 @@ const plugin = defineNuxtPlugin({
|
|
|
76
76
|
const syncCurrentRoute = () => {
|
|
77
77
|
_route.value = router.currentRoute.value;
|
|
78
78
|
};
|
|
79
|
-
nuxtApp.hook("page:finish", syncCurrentRoute);
|
|
80
79
|
router.afterEach((to, from) => {
|
|
81
|
-
if (to.matched
|
|
80
|
+
if (to.matched.at(-1)?.components?.default === from.matched.at(-1)?.components?.default) {
|
|
82
81
|
syncCurrentRoute();
|
|
83
82
|
}
|
|
84
83
|
});
|
|
85
|
-
const route = {};
|
|
84
|
+
const route = { sync: syncCurrentRoute };
|
|
86
85
|
for (const key in _route.value) {
|
|
87
86
|
Object.defineProperty(route, key, {
|
|
88
87
|
get: () => _route.value[key],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-nightly",
|
|
3
|
-
"version": "4.2.2-
|
|
3
|
+
"version": "4.2.2-29390217.02579639",
|
|
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.2.1",
|
|
68
68
|
"@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
|
|
69
69
|
"@nuxt/devtools": "^3.1.0",
|
|
70
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.2-
|
|
71
|
-
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.2-
|
|
72
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-
|
|
70
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.2-29390217.02579639",
|
|
71
|
+
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.2-29390217.02579639",
|
|
72
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29390217.02579639",
|
|
73
73
|
"@nuxt/telemetry": "^2.6.6",
|
|
74
|
-
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.2-
|
|
74
|
+
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.2-29390217.02579639",
|
|
75
75
|
"@unhead/vue": "^2.0.19",
|
|
76
76
|
"@vue/shared": "^3.5.24",
|
|
77
77
|
"c12": "^3.3.2",
|