nuxt-nightly 4.3.0-29431313.dbcf87d4 → 4.3.0-29431658.1c44667d
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/app.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './dist/app/index'
|
|
1
|
+
export * from './dist/app/index.ts'
|
|
@@ -6,7 +6,7 @@ import { navigateTo, resolveRouteObject, useRouter } from "../composables/router
|
|
|
6
6
|
import { useNuxtApp, useRuntimeConfig } from "../nuxt.js";
|
|
7
7
|
import { cancelIdleCallback, requestIdleCallback } from "../compat/idle-callback.js";
|
|
8
8
|
import { nuxtLinkDefaults } from "#build/nuxt.config.mjs";
|
|
9
|
-
import { hashMode } from "#build/router.options";
|
|
9
|
+
import { hashMode } from "#build/router.options.mjs";
|
|
10
10
|
const firstNonUndefined = (...args) => args.find((arg) => arg !== void 0);
|
|
11
11
|
const NuxtLinkDevKeySymbol = Symbol("nuxt-link-dev-key");
|
|
12
12
|
// @__NO_SIDE_EFFECTS__
|
package/dist/index.mjs
CHANGED
|
@@ -9,14 +9,14 @@ import ignore from 'ignore';
|
|
|
9
9
|
import { useLogger, tryUseNuxt, useNuxt, directoryToURL, getLayerDirectories, resolveFiles, resolvePath, defineNuxtModule, findPath, addPlugin, addTemplate, addTypeTemplate, addComponent, useNitro, addBuildPlugin, isIgnored, resolveAlias as resolveAlias$1, addPluginTemplate, addImportsSources, addVitePlugin, createIsIgnored, updateTemplates, tryResolveModule, normalizeModuleTranspilePath, importModule, createResolver, tryImportModule, runWithNuxtContext, nuxtCtx, loadNuxtConfig, addWebpackPlugin, installModules, resolveIgnorePatterns, addRouteMiddleware, resolveModuleWithOptions, normalizeTemplate, normalizePlugin } from '@nuxt/kit';
|
|
10
10
|
import { resolvePackageJSON, readPackage, readPackageJSON } from 'pkg-types';
|
|
11
11
|
import { hash, isEqual, serialize } from 'ohash';
|
|
12
|
-
import
|
|
12
|
+
import { consola } from 'consola';
|
|
13
13
|
import onChange from 'on-change';
|
|
14
14
|
import { colors } from 'consola/utils';
|
|
15
15
|
import { resolveCompatibilityDatesFromEnv, formatDate } from 'compatx';
|
|
16
16
|
import escapeRE from 'escape-string-regexp';
|
|
17
17
|
import { withTrailingSlash as withTrailingSlash$1, parseURL, parseQuery, joinURL, withLeadingSlash, encodePath, withoutLeadingSlash } from 'ufo';
|
|
18
18
|
import { ImpoundPlugin } from 'impound';
|
|
19
|
-
import
|
|
19
|
+
import { defu } from 'defu';
|
|
20
20
|
import { satisfies, coerce } from 'semver';
|
|
21
21
|
import { isCI, provider, hasTTY } from 'std-env';
|
|
22
22
|
import { genArrayFromRaw, genSafeVariableName, genImport, genDynamicImport, genObjectFromRawEntries, genString, genDynamicTypeImport, genExport } from 'knitwork';
|
|
@@ -3837,7 +3837,9 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3837
3837
|
});
|
|
3838
3838
|
}
|
|
3839
3839
|
|
|
3840
|
-
const version = "4.3.0-
|
|
3840
|
+
const version = "4.3.0-29431658.1c44667d";
|
|
3841
|
+
const pkg = {
|
|
3842
|
+
version: version};
|
|
3841
3843
|
|
|
3842
3844
|
function createImportProtectionPatterns(nuxt, options) {
|
|
3843
3845
|
const patterns = [];
|
|
@@ -3872,6 +3874,10 @@ function createImportProtectionPatterns(nuxt, options) {
|
|
|
3872
3874
|
new RegExp(escapeRE(relative(nuxt.options.srcDir, resolve(nuxt.options.srcDir, nuxt.options.serverDir || "server"))) + "\\/(api|routes|middleware|plugins)\\/"),
|
|
3873
3875
|
`Importing from server is not allowed in ${context}.`
|
|
3874
3876
|
]);
|
|
3877
|
+
patterns.push([
|
|
3878
|
+
/^#server(\/|$)/,
|
|
3879
|
+
`Server aliases are not allowed in ${context}.`
|
|
3880
|
+
]);
|
|
3875
3881
|
}
|
|
3876
3882
|
return patterns;
|
|
3877
3883
|
}
|
|
@@ -5000,7 +5006,7 @@ function createNuxt(options) {
|
|
|
5000
5006
|
hooks.callHookWith = (...args) => runWithNuxtContext(nuxt, () => callHookWith(...args));
|
|
5001
5007
|
const nuxt = {
|
|
5002
5008
|
__name: randomUUID(),
|
|
5003
|
-
_version: version,
|
|
5009
|
+
_version: pkg.version,
|
|
5004
5010
|
_asyncLocalStorageModule: options.experimental.debugModuleMutation ? new AsyncLocalStorage() : void 0,
|
|
5005
5011
|
hooks,
|
|
5006
5012
|
callHook: hooks.callHook,
|
|
@@ -5129,7 +5135,7 @@ Using \`${fallbackCompatibilityDate}\` as fallback. More info at: ${colors.under
|
|
|
5129
5135
|
let paths;
|
|
5130
5136
|
nuxt.hook("nitro:config", async (nitroConfig) => {
|
|
5131
5137
|
paths ||= await resolveTypescriptPaths(nuxt);
|
|
5132
|
-
nitroConfig.typescript = defu
|
|
5138
|
+
nitroConfig.typescript = defu(nitroConfig.typescript, {
|
|
5133
5139
|
tsConfig: { compilerOptions: { paths: { ...paths } } }
|
|
5134
5140
|
});
|
|
5135
5141
|
});
|
|
@@ -5158,9 +5164,9 @@ Using \`${fallbackCompatibilityDate}\` as fallback. More info at: ${colors.under
|
|
|
5158
5164
|
opts.sharedReferences.push({ path: resolve(nuxt.options.buildDir, "types/runtime-config.d.ts") });
|
|
5159
5165
|
opts.sharedReferences.push({ path: resolve(nuxt.options.buildDir, "types/app.config.d.ts") });
|
|
5160
5166
|
paths ||= await resolveTypescriptPaths(nuxt);
|
|
5161
|
-
opts.tsConfig.compilerOptions = defu
|
|
5162
|
-
opts.nodeTsConfig.compilerOptions = defu
|
|
5163
|
-
opts.sharedTsConfig.compilerOptions = defu
|
|
5167
|
+
opts.tsConfig.compilerOptions = defu(opts.tsConfig.compilerOptions, { paths: { ...paths } });
|
|
5168
|
+
opts.nodeTsConfig.compilerOptions = defu(opts.nodeTsConfig.compilerOptions, { paths: { ...paths } });
|
|
5169
|
+
opts.sharedTsConfig.compilerOptions = defu(opts.sharedTsConfig.compilerOptions, { paths: { ...paths } });
|
|
5164
5170
|
for (const dirs of layerDirs) {
|
|
5165
5171
|
const declaration = join(dirs.root, "index.d.ts");
|
|
5166
5172
|
if (existsSync(declaration)) {
|
|
@@ -5529,7 +5535,7 @@ async function loadNuxt(opts) {
|
|
|
5529
5535
|
}
|
|
5530
5536
|
}
|
|
5531
5537
|
if (!options._modules.some((m) => m === "@nuxt/scripts" || m === "@nuxt/scripts-nightly")) {
|
|
5532
|
-
options.imports = defu
|
|
5538
|
+
options.imports = defu(options.imports, {
|
|
5533
5539
|
presets: [scriptsStubsPreset]
|
|
5534
5540
|
});
|
|
5535
5541
|
}
|
|
@@ -5692,8 +5698,8 @@ async function resolveModules(nuxt) {
|
|
|
5692
5698
|
const NESTED_PKG_RE = /^[^@]+\//;
|
|
5693
5699
|
async function resolveTypescriptPaths(nuxt) {
|
|
5694
5700
|
nuxt.options.typescript.hoist ||= [];
|
|
5695
|
-
const paths = Object.fromEntries(await Promise.all(nuxt.options.typescript.hoist.map(async (
|
|
5696
|
-
const [_pkg =
|
|
5701
|
+
const paths = Object.fromEntries(await Promise.all(nuxt.options.typescript.hoist.map(async (pkg2) => {
|
|
5702
|
+
const [_pkg = pkg2, _subpath] = NESTED_PKG_RE.test(pkg2) ? pkg2.split("/") : [pkg2];
|
|
5697
5703
|
const subpath = _subpath ? "/" + _subpath : "";
|
|
5698
5704
|
if (nuxt._dependencies?.has(_pkg) && !(_pkg in nightlies)) {
|
|
5699
5705
|
return [];
|
|
@@ -5702,12 +5708,12 @@ async function resolveTypescriptPaths(nuxt) {
|
|
|
5702
5708
|
const nightly = nightlies[_pkg];
|
|
5703
5709
|
const path2 = await resolveTypePath(nightly + subpath, subpath, nuxt.options.modulesDir);
|
|
5704
5710
|
if (path2) {
|
|
5705
|
-
return [[
|
|
5711
|
+
return [[pkg2, [path2]], [nightly + subpath, [path2]]];
|
|
5706
5712
|
}
|
|
5707
5713
|
}
|
|
5708
5714
|
const path = await resolveTypePath(_pkg + subpath, subpath, nuxt.options.modulesDir);
|
|
5709
5715
|
if (path) {
|
|
5710
|
-
return [[
|
|
5716
|
+
return [[pkg2, [path]]];
|
|
5711
5717
|
}
|
|
5712
5718
|
return [];
|
|
5713
5719
|
})).then((r) => r.flat()));
|
|
@@ -6553,14 +6559,14 @@ async function getVueHash(nuxt) {
|
|
|
6553
6559
|
const start = Date.now();
|
|
6554
6560
|
await writeCache(nuxt.options.buildDir, nuxt.options.buildDir, cacheFile);
|
|
6555
6561
|
const elapsed = Date.now() - start;
|
|
6556
|
-
consola
|
|
6562
|
+
consola.success(`Cached Vue client and server builds in \`${elapsed}ms\`.`);
|
|
6557
6563
|
},
|
|
6558
6564
|
async restoreCache() {
|
|
6559
6565
|
const start = Date.now();
|
|
6560
6566
|
const res = await restoreCache(nuxt.options.buildDir, cacheFile);
|
|
6561
6567
|
const elapsed = Date.now() - start;
|
|
6562
6568
|
if (res) {
|
|
6563
|
-
consola
|
|
6569
|
+
consola.success(`Restored Vue client and server builds from cache in \`${elapsed}ms\`.`);
|
|
6564
6570
|
}
|
|
6565
6571
|
return res;
|
|
6566
6572
|
}
|
|
@@ -6581,7 +6587,7 @@ async function cleanupCaches(nuxt) {
|
|
|
6581
6587
|
await unlink(cache);
|
|
6582
6588
|
}
|
|
6583
6589
|
const elapsed = Date.now() - start;
|
|
6584
|
-
consola
|
|
6590
|
+
consola.success(`Cleaned up old build caches in \`${elapsed}ms\`.`);
|
|
6585
6591
|
}
|
|
6586
6592
|
}
|
|
6587
6593
|
async function getHashes(nuxt, options) {
|
|
@@ -6646,7 +6652,7 @@ async function getHashes(nuxt, options) {
|
|
|
6646
6652
|
sources: hashSources
|
|
6647
6653
|
};
|
|
6648
6654
|
const elapsed = Date.now() - start;
|
|
6649
|
-
consola
|
|
6655
|
+
consola.debug(`Computed \`${options.id}\` build hash in \`${elapsed}ms\`.`);
|
|
6650
6656
|
return res;
|
|
6651
6657
|
}
|
|
6652
6658
|
async function readFilesRecursive(dir, opts) {
|
|
@@ -6714,7 +6720,7 @@ async function restoreCache(cwd, cacheFile) {
|
|
|
6714
6720
|
if (stats?.isFile() && stats.size) {
|
|
6715
6721
|
const lastModified = Number.parseInt(file.attrs?.mtime?.toString().padEnd(13, "0") || "0");
|
|
6716
6722
|
if (stats.mtime.getTime() >= lastModified) {
|
|
6717
|
-
consola
|
|
6723
|
+
consola.debug(`Skipping \`${file.name}\` (up to date or newer than cache)`);
|
|
6718
6724
|
continue;
|
|
6719
6725
|
}
|
|
6720
6726
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { joinURL } from "ufo";
|
|
2
2
|
import { createRouter as createRadixRouter, toRouteMatcher } from "radix3";
|
|
3
|
-
import defu from "defu";
|
|
3
|
+
import { defu } from "defu";
|
|
4
4
|
import { defineNuxtPlugin, useRuntimeConfig } from "#app/nuxt";
|
|
5
5
|
import { prerenderRoutes } from "#app/composables/ssr";
|
|
6
6
|
import _routes from "#build/routes";
|
|
7
|
-
import routerOptions, { hashMode } from "#build/router.options";
|
|
7
|
+
import routerOptions, { hashMode } from "#build/router.options.mjs";
|
|
8
8
|
import { crawlLinks } from "#build/nuxt.config.mjs";
|
|
9
9
|
let routes;
|
|
10
10
|
let _routeRulesMatcher = void 0;
|
|
@@ -8,7 +8,7 @@ import { clearError, createError, isNuxtError, showError, useError } from "#app/
|
|
|
8
8
|
import { navigateTo } from "#app/composables/router";
|
|
9
9
|
import { appManifest as isAppManifestEnabled } from "#build/nuxt.config.mjs";
|
|
10
10
|
import _routes, { handleHotUpdate } from "#build/routes";
|
|
11
|
-
import routerOptions, { hashMode } from "#build/router.options";
|
|
11
|
+
import routerOptions, { hashMode } from "#build/router.options.mjs";
|
|
12
12
|
import { globalMiddleware, namedMiddleware } from "#build/middleware";
|
|
13
13
|
function createCurrentLocation(base, location, renderedPath) {
|
|
14
14
|
const { pathname, search, hash } = location;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-nightly",
|
|
3
|
-
"version": "4.3.0-
|
|
3
|
+
"version": "4.3.0-29431658.1c44667d",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"schema.*"
|
|
65
65
|
],
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@dxup/nuxt": "^0.
|
|
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-
|
|
71
|
-
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.3.0-
|
|
72
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-
|
|
70
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.3.0-29431658.1c44667d",
|
|
71
|
+
"@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.3.0-29431658.1c44667d",
|
|
72
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.3.0-29431658.1c44667d",
|
|
73
73
|
"@nuxt/telemetry": "^2.6.6",
|
|
74
|
-
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.3.0-
|
|
74
|
+
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.3.0-29431658.1c44667d",
|
|
75
75
|
"@unhead/vue": "^2.0.19",
|
|
76
76
|
"@vue/shared": "^3.5.25",
|
|
77
77
|
"c12": "^3.3.2",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"cookie-es": "^2.0.0",
|
|
82
82
|
"defu": "^6.1.4",
|
|
83
83
|
"destr": "^2.0.5",
|
|
84
|
-
"devalue": "^5.6.
|
|
84
|
+
"devalue": "^5.6.1",
|
|
85
85
|
"errx": "^0.1.0",
|
|
86
86
|
"escape-string-regexp": "^5.0.0",
|
|
87
87
|
"exsolve": "^1.0.8",
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
"ofetch": "^1.5.1",
|
|
100
100
|
"ohash": "^2.0.11",
|
|
101
101
|
"on-change": "^6.0.1",
|
|
102
|
-
"oxc-minify": "^0.
|
|
103
|
-
"oxc-parser": "^0.
|
|
104
|
-
"oxc-transform": "^0.
|
|
102
|
+
"oxc-minify": "^0.103.0",
|
|
103
|
+
"oxc-parser": "^0.103.0",
|
|
104
|
+
"oxc-transform": "^0.103.0",
|
|
105
105
|
"oxc-walker": "^0.6.0",
|
|
106
106
|
"pathe": "^2.0.3",
|
|
107
107
|
"perfect-debounce": "^2.0.0",
|
|
@@ -115,22 +115,22 @@
|
|
|
115
115
|
"ultrahtml": "^1.6.0",
|
|
116
116
|
"uncrypto": "^0.1.3",
|
|
117
117
|
"unctx": "^2.4.1",
|
|
118
|
-
"unimport": "^5.
|
|
118
|
+
"unimport": "^5.6.0",
|
|
119
119
|
"unplugin": "^2.3.11",
|
|
120
|
-
"unplugin-vue-router": "^0.19.
|
|
120
|
+
"unplugin-vue-router": "^0.19.1",
|
|
121
121
|
"untyped": "^2.0.0",
|
|
122
122
|
"vue": "^3.5.25",
|
|
123
|
-
"vue-router": "^4.6.
|
|
123
|
+
"vue-router": "^4.6.4"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@nuxt/scripts": "0.13.
|
|
126
|
+
"@nuxt/scripts": "0.13.1",
|
|
127
127
|
"@parcel/watcher": "2.5.1",
|
|
128
128
|
"@types/estree": "1.0.8",
|
|
129
|
-
"@vitejs/plugin-vue": "6.0.
|
|
129
|
+
"@vitejs/plugin-vue": "6.0.3",
|
|
130
130
|
"@vitejs/plugin-vue-jsx": "5.1.2",
|
|
131
131
|
"@vue/compiler-sfc": "3.5.25",
|
|
132
132
|
"unbuild": "3.6.1",
|
|
133
|
-
"vite": "7.
|
|
133
|
+
"vite": "7.3.0",
|
|
134
134
|
"vitest": "3.2.4",
|
|
135
135
|
"vue-bundle-renderer": "2.2.0",
|
|
136
136
|
"vue-sfc-transformer": "0.1.17"
|