nitro-nightly 3.0.1-20260119-145349-d0c4950f → 3.0.1-20260120-133205-cbfce96c
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/_build/common.mjs +542 -542
- package/dist/_build/rolldown.mjs +5 -5
- package/dist/_build/rollup.mjs +3 -3
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_chunks/dev.mjs +4 -4
- package/dist/_chunks/nitro.mjs +3 -3
- package/dist/_chunks/nitro2.mjs +1 -1
- package/dist/_chunks/utils.mjs +1 -1
- package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +2 -2
- package/dist/_libs/@jridgewell/gen-mapping.mjs +1 -1
- package/dist/_libs/@rollup/plugin-commonjs.d.mts +241 -0
- package/dist/_libs/@rollup/plugin-commonjs.mjs +19 -19
- package/dist/_libs/@rollup/plugin-inject.mjs +1 -1
- package/dist/_libs/c12.d.mts +214 -0
- package/dist/_libs/c12.mjs +6 -6
- package/dist/_libs/chokidar.mjs +2 -2
- package/dist/_libs/compatx.d.mts +47 -0
- package/dist/_libs/confbox.mjs +2 -2
- package/dist/_libs/esbuild.d.mts +20 -0
- package/dist/_libs/giget.mjs +1305 -1305
- package/dist/_libs/httpxy.d.mts +79 -0
- package/dist/_libs/httpxy.mjs +1 -1
- package/dist/_libs/magic-string.d.mts +220 -0
- package/dist/_libs/mlly.d.mts +57 -0
- package/dist/_libs/pkg-types.d.mts +23 -0
- package/dist/_libs/rou3.d.mts +43 -0
- package/dist/_libs/std-env.d.mts +4 -0
- package/dist/_libs/unimport.d.mts +426 -0
- package/dist/_libs/unimport.mjs +11 -11
- package/dist/_libs/unwasm.d.mts +29 -0
- package/dist/_presets.mjs +1 -1
- package/dist/builder.mjs +1 -1
- package/dist/cli/_chunks/build.mjs +1 -1
- package/dist/cli/_chunks/dev.mjs +1 -1
- package/dist/cli/_chunks/list.mjs +1 -1
- package/dist/cli/_chunks/prepare.mjs +1 -1
- package/dist/cli/_chunks/run.mjs +1 -1
- package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
- package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -1
- package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -1
- package/dist/runtime/internal/error/dev.d.mts +0 -1
- package/dist/runtime/internal/route-rules.d.mts +0 -4
- package/dist/runtime/internal/routes/openapi.d.mts +0 -1
- package/dist/runtime/internal/routes/scalar.d.mts +0 -1
- package/dist/runtime/internal/routes/swagger.d.mts +0 -1
- package/dist/runtime/internal/runtime-config.d.mts +0 -1
- package/dist/runtime/nitro.d.mts +0 -3
- package/dist/runtime/virtual/renderer-template.d.mts +0 -1
- package/dist/types/index.d.mts +962 -1095
- package/dist/vite.d.mts +13 -13
- package/dist/vite.mjs +10 -9
- package/package.json +9 -9
package/dist/vite.d.mts
CHANGED
|
@@ -9,8 +9,8 @@ import { Nitro, NitroConfig, NitroModule } from "nitro/types";
|
|
|
9
9
|
declare module "vite" {
|
|
10
10
|
interface UserConfig {
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* Nitro Vite Plugin options.
|
|
13
|
+
*/
|
|
14
14
|
nitro?: NitroConfig;
|
|
15
15
|
}
|
|
16
16
|
interface Plugin {
|
|
@@ -19,25 +19,25 @@ declare module "vite" {
|
|
|
19
19
|
}
|
|
20
20
|
interface NitroPluginConfig extends NitroConfig {
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
* @internal Use preinitialized Nitro instance for the plugin.
|
|
23
|
+
*/
|
|
24
24
|
_nitro?: Nitro;
|
|
25
25
|
experimental?: NitroConfig["experimental"] & {
|
|
26
26
|
vite: {
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
* @experimental Enable `?assets` import proposed by https://github.com/vitejs/vite/discussions/20913
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
31
|
assetsImport?: boolean;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
* Reload the page when a server module is updated.
|
|
34
|
+
*
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
37
|
serverReload?: boolean;
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
* Additional Vite environment services to register.
|
|
40
|
+
*/
|
|
41
41
|
services?: Record<string, ServiceConfig>;
|
|
42
42
|
};
|
|
43
43
|
};
|
package/dist/vite.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./_common.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
import {
|
|
2
|
+
import { $ as resolveModulePath, B as T, D as prepare, I as prettyPath, O as copyPublicAssets, V as a, a as libChunkName, at as join$1, ct as resolve$1, h as writeBuildInfo, i as getChunkName, it as isAbsolute$1, m as getBuildInfo, n as baseBuildPlugins, nt as dirname$1, o as baseBuildConfig, r as NODE_MODULES_RE, st as relative$1, tt as basename$1 } from "./_build/common.mjs";
|
|
3
|
+
import { i as debounce } from "./_libs/c12.mjs";
|
|
4
4
|
import { t as formatCompatibilityDate } from "./_libs/compatx.mjs";
|
|
5
5
|
import { i as createNitro } from "./_chunks/nitro.mjs";
|
|
6
6
|
import "./_libs/tsconfck.mjs";
|
|
7
7
|
import { n as scanHandlers } from "./_chunks/nitro2.mjs";
|
|
8
8
|
import { i as NodeEnvRunner, r as NitroDevApp } from "./_chunks/dev.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { n as watch$1 } from "./_libs/chokidar.mjs";
|
|
10
10
|
import { t as alias } from "./_libs/@rollup/plugin-alias.mjs";
|
|
11
11
|
import { t as inject } from "./_libs/@rollup/plugin-inject.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { n as assetsPlugin } from "./_libs/@hiogawa/vite-plugin-fullstack.mjs";
|
|
13
13
|
import consola$1 from "consola";
|
|
14
14
|
import { existsSync, watch } from "node:fs";
|
|
15
15
|
import { mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
@@ -17,6 +17,7 @@ import { join, resolve } from "node:path";
|
|
|
17
17
|
import { defu } from "defu";
|
|
18
18
|
import { runtimeDependencies, runtimeDir } from "nitro/meta";
|
|
19
19
|
import { colors } from "consola/utils";
|
|
20
|
+
import { IncomingMessage } from "node:http";
|
|
20
21
|
import { NodeRequest, sendNodeResponse } from "srvx/node";
|
|
21
22
|
import { DevEnvironment } from "vite";
|
|
22
23
|
import { spawn } from "node:child_process";
|
|
@@ -44,7 +45,7 @@ const getViteRollupConfig = async (ctx) => {
|
|
|
44
45
|
format: "esm",
|
|
45
46
|
entryFileNames: "index.mjs",
|
|
46
47
|
chunkFileNames: (chunk) => getChunkName(chunk, nitro$1),
|
|
47
|
-
...ctx._isRolldown ? {
|
|
48
|
+
...ctx._isRolldown ? { codeSplitting: { groups: [{
|
|
48
49
|
test: NODE_MODULES_RE,
|
|
49
50
|
name: (id) => libChunkName(id)
|
|
50
51
|
}] } } : { manualChunks(id) {
|
|
@@ -427,7 +428,7 @@ function nitroPreviewPlugin(ctx) {
|
|
|
427
428
|
child.once("exit", (code) => {
|
|
428
429
|
if (code && code !== 0) consola$1.error(`[nitro] Preview server exited with code ${code}`);
|
|
429
430
|
});
|
|
430
|
-
const { createProxyServer } = await import("./_libs/httpxy.mjs").then((n) => n.
|
|
431
|
+
const { createProxyServer } = await import("./_libs/httpxy.mjs").then((n) => n.n);
|
|
431
432
|
const proxy = createProxyServer({ target: `http://localhost:${randomPort}` });
|
|
432
433
|
server.middlewares.use((req, res, next) => {
|
|
433
434
|
if (child && !child.killed) proxy.web(req, res).catch(next);
|
|
@@ -441,7 +442,7 @@ function nitroPreviewPlugin(ctx) {
|
|
|
441
442
|
};
|
|
442
443
|
}
|
|
443
444
|
async function loadPreviewDotEnv(root) {
|
|
444
|
-
const { loadDotenv } = await import("./_libs/c12.mjs").then((n) => n.
|
|
445
|
+
const { loadDotenv } = await import("./_libs/c12.mjs").then((n) => n.t);
|
|
445
446
|
const env = await loadDotenv({
|
|
446
447
|
cwd: root,
|
|
447
448
|
fileName: [
|
|
@@ -612,8 +613,8 @@ function nitroPrepare(ctx) {
|
|
|
612
613
|
order: "pre",
|
|
613
614
|
async handler() {
|
|
614
615
|
debug("[prepare] Preparing output directory");
|
|
615
|
-
const nitro
|
|
616
|
-
await prepare(nitro
|
|
616
|
+
const nitro = ctx.nitro;
|
|
617
|
+
await prepare(nitro);
|
|
617
618
|
}
|
|
618
619
|
}
|
|
619
620
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "3.0.1-
|
|
3
|
+
"version": "3.0.1-20260120-133205-cbfce96c",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-routes",
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"consola": "^3.4.2",
|
|
75
|
-
"crossws": "^0.4.
|
|
75
|
+
"crossws": "^0.4.3",
|
|
76
76
|
"db0": "^0.3.4",
|
|
77
|
-
"h3": "^2.0.1-rc.
|
|
77
|
+
"h3": "^2.0.1-rc.11",
|
|
78
78
|
"jiti": "^2.6.1",
|
|
79
|
-
"nf3": "^0.3.
|
|
79
|
+
"nf3": "^0.3.5",
|
|
80
80
|
"ofetch": "^2.0.0-alpha.3",
|
|
81
81
|
"ohash": "^2.0.11",
|
|
82
|
-
"oxc-minify": "^0.
|
|
83
|
-
"oxc-transform": "^0.
|
|
84
|
-
"srvx": "^0.10.
|
|
82
|
+
"oxc-minify": "^0.110.0",
|
|
83
|
+
"oxc-transform": "^0.110.0",
|
|
84
|
+
"srvx": "^0.10.1",
|
|
85
85
|
"undici": "^7.18.2",
|
|
86
86
|
"unenv": "^2.0.0-rc.24",
|
|
87
87
|
"unstorage": "^2.0.0-alpha.5"
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
102
102
|
"@rollup/plugin-replace": "^6.0.3",
|
|
103
103
|
"@scalar/api-reference": "^1.43.8",
|
|
104
|
-
"@types/aws-lambda": "^8.10.
|
|
104
|
+
"@types/aws-lambda": "^8.10.160",
|
|
105
105
|
"@types/estree": "^1.0.8",
|
|
106
106
|
"@types/etag": "^1.8.4",
|
|
107
107
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"miniflare": "^4.20260114.0",
|
|
144
144
|
"mlly": "^1.8.0",
|
|
145
145
|
"nypm": "^0.6.2",
|
|
146
|
-
"obuild": "^0.4.
|
|
146
|
+
"obuild": "^0.4.18",
|
|
147
147
|
"pathe": "^2.0.3",
|
|
148
148
|
"perfect-debounce": "^2.0.0",
|
|
149
149
|
"pkg-types": "^2.3.0",
|