@nuxt/kit 4.1.2 → 4.1.3
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 +5 -5
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +12 -8
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ Example of an `app.vue`:
|
|
|
60
60
|
<script setup lang="ts">
|
|
61
61
|
useSeoMeta({
|
|
62
62
|
title: 'Meet Nuxt',
|
|
63
|
-
description: 'The Intuitive Vue Framework.'
|
|
63
|
+
description: 'The Intuitive Vue Framework.',
|
|
64
64
|
})
|
|
65
65
|
</script>
|
|
66
66
|
|
|
@@ -93,13 +93,13 @@ Discover our [list of modules](https://nuxt.com/modules) to supercharge your Nux
|
|
|
93
93
|
We invite you to contribute and help improve Nuxt 💚
|
|
94
94
|
|
|
95
95
|
Here are a few ways you can get involved:
|
|
96
|
-
- **Reporting Bugs:** If you come across any bugs or issues, please check out the [reporting bugs guide](https://nuxt.com/docs/community/reporting-bugs) to learn how to submit a bug report.
|
|
97
|
-
- **Suggestions:** Have ideas to enhance Nuxt? We'd love to hear them! Check out the [contribution guide](https://nuxt.com/docs/community/contribution) to share your suggestions.
|
|
98
|
-
- **Questions:** If you have questions or need assistance, the [getting help guide](https://nuxt.com/docs/community/getting-help) provides resources to help you out.
|
|
96
|
+
- **Reporting Bugs:** If you come across any bugs or issues, please check out the [reporting bugs guide](https://nuxt.com/docs/4.x/community/reporting-bugs) to learn how to submit a bug report.
|
|
97
|
+
- **Suggestions:** Have ideas to enhance Nuxt? We'd love to hear them! Check out the [contribution guide](https://nuxt.com/docs/4.x/community/contribution) to share your suggestions.
|
|
98
|
+
- **Questions:** If you have questions or need assistance, the [getting help guide](https://nuxt.com/docs/4.x/community/getting-help) provides resources to help you out.
|
|
99
99
|
|
|
100
100
|
## <a name="local-development">🏠 Local Development</a>
|
|
101
101
|
|
|
102
|
-
Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/docs/community/framework-contribution#setup) to contribute to the framework and documentation.
|
|
102
|
+
Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/docs/4.x/community/framework-contribution#setup) to contribute to the framework and documentation.
|
|
103
103
|
|
|
104
104
|
## <a name="professional-support">🛟 Professional Support</a>
|
|
105
105
|
|
package/dist/index.d.mts
CHANGED
|
@@ -398,6 +398,9 @@ type PathType = 'file' | 'dir';
|
|
|
398
398
|
* @param path path to the directory to resolve files in
|
|
399
399
|
* @param pattern glob pattern or an array of glob patterns to match files
|
|
400
400
|
* @param opts options for globbing
|
|
401
|
+
* @param opts.followSymbolicLinks whether to follow symbolic links, default is `true`
|
|
402
|
+
* @param opts.ignore additional glob patterns to ignore
|
|
403
|
+
* @returns sorted array of absolute file paths
|
|
401
404
|
*/
|
|
402
405
|
declare function resolveFiles(path: string, pattern: string | string[], opts?: {
|
|
403
406
|
followSymbolicLinks?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -398,6 +398,9 @@ type PathType = 'file' | 'dir';
|
|
|
398
398
|
* @param path path to the directory to resolve files in
|
|
399
399
|
* @param pattern glob pattern or an array of glob patterns to match files
|
|
400
400
|
* @param opts options for globbing
|
|
401
|
+
* @param opts.followSymbolicLinks whether to follow symbolic links, default is `true`
|
|
402
|
+
* @param opts.ignore additional glob patterns to ignore
|
|
403
|
+
* @returns sorted array of absolute file paths
|
|
401
404
|
*/
|
|
402
405
|
declare function resolveFiles(path: string, pattern: string | string[], opts?: {
|
|
403
406
|
followSymbolicLinks?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -1277,18 +1277,21 @@ function addTypeTemplate(_template, context) {
|
|
|
1277
1277
|
throw new Error(`Invalid type template. Filename must end with .d.ts : "${template.filename}"`);
|
|
1278
1278
|
}
|
|
1279
1279
|
if (!context || context.nuxt) {
|
|
1280
|
-
nuxt.hook("prepare:types", (
|
|
1281
|
-
references
|
|
1280
|
+
nuxt.hook("prepare:types", (payload) => {
|
|
1281
|
+
payload.references ||= [];
|
|
1282
|
+
payload.references.push({ path: template.dst });
|
|
1282
1283
|
});
|
|
1283
1284
|
}
|
|
1284
1285
|
if (context?.node) {
|
|
1285
|
-
nuxt.hook("prepare:types", (
|
|
1286
|
-
nodeReferences
|
|
1286
|
+
nuxt.hook("prepare:types", (payload) => {
|
|
1287
|
+
payload.nodeReferences ||= [];
|
|
1288
|
+
payload.nodeReferences.push({ path: template.dst });
|
|
1287
1289
|
});
|
|
1288
1290
|
}
|
|
1289
1291
|
if (context?.shared) {
|
|
1290
|
-
nuxt.hook("prepare:types", (
|
|
1291
|
-
sharedReferences
|
|
1292
|
+
nuxt.hook("prepare:types", (payload) => {
|
|
1293
|
+
payload.sharedReferences ||= [];
|
|
1294
|
+
payload.sharedReferences.push({ path: template.dst });
|
|
1292
1295
|
});
|
|
1293
1296
|
}
|
|
1294
1297
|
if (!context || context.nuxt || context.shared) {
|
|
@@ -1299,8 +1302,9 @@ function addTypeTemplate(_template, context) {
|
|
|
1299
1302
|
});
|
|
1300
1303
|
}
|
|
1301
1304
|
if (context?.nitro) {
|
|
1302
|
-
nuxt.hook("nitro:prepare:types", (
|
|
1303
|
-
references
|
|
1305
|
+
nuxt.hook("nitro:prepare:types", (payload) => {
|
|
1306
|
+
payload.references ||= [];
|
|
1307
|
+
payload.references.push({ path: template.dst });
|
|
1304
1308
|
});
|
|
1305
1309
|
}
|
|
1306
1310
|
return template;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
7
7
|
"directory": "packages/kit"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://nuxt.com/docs/api/kit",
|
|
9
|
+
"homepage": "https://nuxt.com/docs/4.x/api/kit",
|
|
10
10
|
"description": "Toolkit for authoring modules and interacting with Nuxt",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"type": "module",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"c12": "^3.
|
|
26
|
+
"c12": "^3.3.0",
|
|
27
27
|
"consola": "^3.4.2",
|
|
28
28
|
"defu": "^6.1.4",
|
|
29
29
|
"destr": "^2.0.5",
|
|
30
30
|
"errx": "^0.1.0",
|
|
31
31
|
"exsolve": "^1.0.7",
|
|
32
32
|
"ignore": "^7.0.5",
|
|
33
|
-
"jiti": "^2.
|
|
33
|
+
"jiti": "^2.6.1",
|
|
34
34
|
"klona": "^2.0.6",
|
|
35
35
|
"mlly": "^1.8.0",
|
|
36
36
|
"ohash": "^2.0.11",
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
"tinyglobby": "^0.2.15",
|
|
44
44
|
"ufo": "^1.6.1",
|
|
45
45
|
"unctx": "^2.4.1",
|
|
46
|
-
"unimport": "^5.
|
|
46
|
+
"unimport": "^5.4.1",
|
|
47
47
|
"untyped": "^2.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@rspack/core": "1.5.
|
|
50
|
+
"@rspack/core": "1.5.8",
|
|
51
51
|
"@types/semver": "7.7.1",
|
|
52
52
|
"hookable": "5.5.3",
|
|
53
|
-
"nitropack": "2.12.
|
|
53
|
+
"nitropack": "2.12.6",
|
|
54
54
|
"unbuild": "3.6.1",
|
|
55
|
-
"vite": "7.1.
|
|
55
|
+
"vite": "7.1.9",
|
|
56
56
|
"vitest": "3.2.4",
|
|
57
|
-
"webpack": "5.
|
|
58
|
-
"@nuxt/schema": "4.1.
|
|
57
|
+
"webpack": "5.102.0",
|
|
58
|
+
"@nuxt/schema": "4.1.3"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=18.12.0"
|