@nuxt/kit 3.20.0 → 3.20.1
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/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +4 -4
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
[](https://nuxt.com)
|
|
2
2
|
|
|
3
3
|
# Nuxt
|
|
4
4
|
|
|
5
5
|
<p>
|
|
6
6
|
<a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/v/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Version"></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/dm/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Downloads"></a>
|
|
8
|
-
<a href="https://github.com/nuxt/nuxt/
|
|
8
|
+
<a href="https://github.com/nuxt/nuxt/blob/main/LICENSE"><img src="https://img.shields.io/github/license/nuxt/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="License"></a>
|
|
9
9
|
<a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt%20Docs-18181B?logo=nuxt" alt="Website"></a>
|
|
10
10
|
<a href="https://chat.nuxt.dev"><img src="https://img.shields.io/badge/Nuxt%20Discord-18181B?logo=discord" alt="Discord"></a>
|
|
11
11
|
<a href="https://securityscorecards.dev/"><img src="https://api.securityscorecards.dev/projects/github.com/nuxt/nuxt/badge" alt="Nuxt openssf scorecard score"></a>
|
|
@@ -109,9 +109,9 @@ Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/
|
|
|
109
109
|
## <a name="follow-us">🔗 Follow Us</a>
|
|
110
110
|
|
|
111
111
|
<p valign="center">
|
|
112
|
-
<a href="https://go.nuxt.com/discord"><img width="20px" src="https://github.com/nuxt/nuxt/
|
|
112
|
+
<a href="https://go.nuxt.com/discord"><img width="20px" src="https://github.com/nuxt/nuxt/blob/main/.github/assets/discord.svg" alt="Discord"></a> <a href="https://go.nuxt.com/x"><img width="20px" src="https://github.com/nuxt/nuxt/blob/main/.github/assets/twitter.svg" alt="Twitter"></a> <a href="https://go.nuxt.com/github"><img width="20px" src="https://github.com/nuxt/nuxt/blob/main/.github/assets/github.svg" alt="GitHub"></a> <a href="https://go.nuxt.com/bluesky"><img width="20px" src="https://github.com/nuxt/nuxt/blob/main/.github/assets/bluesky.svg" alt="Bluesky"></a>
|
|
113
113
|
</p>
|
|
114
114
|
|
|
115
115
|
## <a name="license">⚖️ License</a>
|
|
116
116
|
|
|
117
|
-
[MIT](https://github.com/nuxt/nuxt/
|
|
117
|
+
[MIT](https://github.com/nuxt/nuxt/blob/main/LICENSE)
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { ModuleOptions, ModuleDefinition, NuxtModule, NuxtConfig, Nuxt, ModuleMeta, NuxtOptions, SchemaDefinition, NuxtAppConfig,
|
|
2
|
+
import { ModuleOptions, ModuleDefinition, NuxtModule, NuxtConfig, Nuxt, ModuleMeta, NuxtOptions, SchemaDefinition, NuxtAppConfig, NuxtCompatibility, NuxtCompatibilityIssues, Component, ComponentsDir, NuxtTemplate, NuxtMiddleware, NuxtHooks, NuxtPlugin, NuxtPluginTemplate, ResolvedNuxtTemplate, NuxtServerTemplate, NuxtTypeTemplate } from '@nuxt/schema';
|
|
3
3
|
import { LoadConfigOptions } from 'c12';
|
|
4
|
-
import { Import } from 'unimport';
|
|
4
|
+
import { Import, InlinePreset } from 'unimport';
|
|
5
5
|
import { WebpackPluginInstance, Configuration } from 'webpack';
|
|
6
6
|
import { RspackPluginInstance } from '@rspack/core';
|
|
7
7
|
import { Plugin, UserConfig } from 'vite';
|
|
@@ -124,7 +124,7 @@ declare function addImports(imports: Import | Import[]): void;
|
|
|
124
124
|
declare function addImportsDir(dirs: string | string[], opts?: {
|
|
125
125
|
prepend?: boolean;
|
|
126
126
|
}): void;
|
|
127
|
-
declare function addImportsSources(presets:
|
|
127
|
+
declare function addImportsSources(presets: InlinePreset | InlinePreset[]): void;
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
130
|
* Access 'resolved' Nuxt runtime configuration, with values updated from environment.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { ModuleOptions, ModuleDefinition, NuxtModule, NuxtConfig, Nuxt, ModuleMeta, NuxtOptions, SchemaDefinition, NuxtAppConfig,
|
|
2
|
+
import { ModuleOptions, ModuleDefinition, NuxtModule, NuxtConfig, Nuxt, ModuleMeta, NuxtOptions, SchemaDefinition, NuxtAppConfig, NuxtCompatibility, NuxtCompatibilityIssues, Component, ComponentsDir, NuxtTemplate, NuxtMiddleware, NuxtHooks, NuxtPlugin, NuxtPluginTemplate, ResolvedNuxtTemplate, NuxtServerTemplate, NuxtTypeTemplate } from '@nuxt/schema';
|
|
3
3
|
import { LoadConfigOptions } from 'c12';
|
|
4
|
-
import { Import } from 'unimport';
|
|
4
|
+
import { Import, InlinePreset } from 'unimport';
|
|
5
5
|
import { WebpackPluginInstance, Configuration } from 'webpack';
|
|
6
6
|
import { RspackPluginInstance } from '@rspack/core';
|
|
7
7
|
import { Plugin, UserConfig } from 'vite';
|
|
@@ -124,7 +124,7 @@ declare function addImports(imports: Import | Import[]): void;
|
|
|
124
124
|
declare function addImportsDir(dirs: string | string[], opts?: {
|
|
125
125
|
prepend?: boolean;
|
|
126
126
|
}): void;
|
|
127
|
-
declare function addImportsSources(presets:
|
|
127
|
+
declare function addImportsSources(presets: InlinePreset | InlinePreset[]): void;
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
130
|
* Access 'resolved' Nuxt runtime configuration, with values updated from environment.
|
package/dist/index.mjs
CHANGED
|
@@ -17,11 +17,11 @@ import { isRelative, withTrailingSlash as withTrailingSlash$2 } from 'ufo';
|
|
|
17
17
|
import { read, update } from 'rc9';
|
|
18
18
|
import semver, { gte } from 'semver';
|
|
19
19
|
import { captureStackTrace } from 'errx';
|
|
20
|
+
import process from 'node:process';
|
|
20
21
|
import { glob } from 'tinyglobby';
|
|
21
22
|
import { resolveAlias as resolveAlias$1, reverseResolveAlias } from 'pathe/utils';
|
|
22
23
|
import ignore from 'ignore';
|
|
23
24
|
import { loadConfig } from 'c12';
|
|
24
|
-
import process$1 from 'node:process';
|
|
25
25
|
import destr from 'destr';
|
|
26
26
|
import { snakeCase, pascalCase, kebabCase } from 'scule';
|
|
27
27
|
import { klona } from 'klona';
|
|
@@ -3113,7 +3113,7 @@ function useRuntimeConfig() {
|
|
|
3113
3113
|
return applyEnv(klona(nuxt.options.nitro.runtimeConfig), {
|
|
3114
3114
|
prefix: "NITRO_",
|
|
3115
3115
|
altPrefix: "NUXT_",
|
|
3116
|
-
envExpansion: nuxt.options.nitro.experimental?.envExpansion ?? !!process
|
|
3116
|
+
envExpansion: nuxt.options.nitro.experimental?.envExpansion ?? !!process.env.NITRO_ENV_EXPANSION
|
|
3117
3117
|
});
|
|
3118
3118
|
}
|
|
3119
3119
|
function updateRuntimeConfig(runtimeConfig) {
|
|
@@ -3124,7 +3124,7 @@ function updateRuntimeConfig(runtimeConfig) {
|
|
|
3124
3124
|
} catch {
|
|
3125
3125
|
}
|
|
3126
3126
|
}
|
|
3127
|
-
function getEnv(key, opts, env = process
|
|
3127
|
+
function getEnv(key, opts, env = process.env) {
|
|
3128
3128
|
const envKey = snakeCase(key).toUpperCase();
|
|
3129
3129
|
return destr(
|
|
3130
3130
|
env[opts.prefix + envKey] ?? env[opts.altPrefix + envKey]
|
|
@@ -3156,7 +3156,7 @@ function applyEnv(obj, opts, parentKey = "") {
|
|
|
3156
3156
|
return obj;
|
|
3157
3157
|
}
|
|
3158
3158
|
const envExpandRx = /\{\{([^{}]*)\}\}/g;
|
|
3159
|
-
function _expandFromEnv(value, env = process
|
|
3159
|
+
function _expandFromEnv(value, env = process.env) {
|
|
3160
3160
|
return value.replace(envExpandRx, (match, key) => {
|
|
3161
3161
|
return env[key] || match;
|
|
3162
3162
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"c12": "^3.3.
|
|
26
|
+
"c12": "^3.3.1",
|
|
27
27
|
"consola": "^3.4.2",
|
|
28
28
|
"defu": "^6.1.4",
|
|
29
29
|
"destr": "^2.0.5",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"untyped": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@rspack/core": "1.
|
|
49
|
+
"@rspack/core": "1.6.1",
|
|
50
50
|
"@types/lodash-es": "4.17.12",
|
|
51
51
|
"@types/semver": "7.7.1",
|
|
52
52
|
"hookable": "5.5.3",
|
|
53
53
|
"lodash-es": "4.17.21",
|
|
54
|
-
"nitropack": "2.12.
|
|
54
|
+
"nitropack": "2.12.9",
|
|
55
55
|
"unbuild": "3.6.1",
|
|
56
|
-
"unimport": "5.
|
|
57
|
-
"vite": "7.1
|
|
56
|
+
"unimport": "5.5.0",
|
|
57
|
+
"vite": "7.2.1",
|
|
58
58
|
"vitest": "3.2.4",
|
|
59
59
|
"webpack": "5.102.1",
|
|
60
|
-
"@nuxt/schema": "3.20.
|
|
60
|
+
"@nuxt/schema": "3.20.1"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=18.12.0"
|