nuxt-nightly 4.2.2-29385650.ab3dd9a8 → 4.2.2-29388571.6bfef42a
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/README.md +4 -4
- package/dist/app/nuxt.d.ts +3 -1
- package/dist/index.mjs +1 -1
- package/dist/pages/runtime/page.js +9 -4
- package/dist/pages/runtime/plugins/router.js +2 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.
|
|
15
15
|
|
|
16
16
|
It provides a number of features that make it easy to build fast, SEO-friendly, and scalable web applications, including:
|
|
17
|
-
- Server-side rendering,
|
|
17
|
+
- Server-side rendering, static site generation, hybrid rendering and edge-side rendering
|
|
18
18
|
- Automatic routing with code-splitting and pre-fetching
|
|
19
19
|
- Data fetching and state management
|
|
20
|
-
-
|
|
20
|
+
- Search engine optimization and defining meta tags
|
|
21
21
|
- Auto imports of components, composables and utils
|
|
22
22
|
- TypeScript with zero configuration
|
|
23
|
-
- Go
|
|
23
|
+
- Go full-stack with our server/ directory
|
|
24
24
|
- Extensible with [200+ modules](https://nuxt.com/modules)
|
|
25
25
|
- Deployment to a variety of [hosting platforms](https://nuxt.com/deploy)
|
|
26
26
|
- ...[and much more](https://nuxt.com) 🚀
|
|
@@ -31,7 +31,7 @@ It provides a number of features that make it easy to build fast, SEO-friendly,
|
|
|
31
31
|
- 💻 [ Vue Development](#vue-development)
|
|
32
32
|
- 📖 [Documentation](#documentation)
|
|
33
33
|
- 🧩 [Modules](#modules)
|
|
34
|
-
- ❤️
|
|
34
|
+
- ❤️ [Contribute](#contribute)
|
|
35
35
|
- 🏠 [Local Development](#local-development)
|
|
36
36
|
- 🛟 [Professional Support](#professional-support)
|
|
37
37
|
- 🔗 [Follow Us](#follow-us)
|
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-29388571.6bfef42a";
|
|
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-29388571.6bfef42a",
|
|
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-29388571.6bfef42a",
|
|
71
|
+
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.2-29388571.6bfef42a",
|
|
72
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29388571.6bfef42a",
|
|
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-29388571.6bfef42a",
|
|
75
75
|
"@unhead/vue": "^2.0.19",
|
|
76
76
|
"@vue/shared": "^3.5.24",
|
|
77
77
|
"c12": "^3.3.2",
|