nitro-nightly 4.0.0-20251010-091516-7cafddba → 4.0.0-20251030-121649-98b56dfe
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 +763 -0
- package/dist/_build/rolldown.mjs +216 -0
- package/dist/_build/rollup.mjs +359 -0
- package/dist/_build/vite.build.mjs +67 -0
- package/dist/_build/vite.plugin.mjs +747 -0
- package/dist/_chunks/B-7HiF0V.mjs +1303 -0
- package/dist/_chunks/B3asVbT4.mjs +151 -0
- package/dist/_chunks/B5ooyfLk.mjs +372 -0
- package/dist/_chunks/DXMHy5ca.mjs +43 -0
- package/dist/_dev.d.mts +12 -0
- package/dist/_dev.mjs +675 -0
- package/dist/_libs/acorn.mjs +5034 -0
- package/dist/_libs/c12.mjs +2798 -0
- package/dist/_libs/chokidar.mjs +1560 -0
- package/dist/_libs/citty.mjs +333 -0
- package/dist/_libs/commondir.mjs +22 -0
- package/dist/_libs/compatx.mjs +46 -0
- package/dist/_libs/confbox.mjs +2920 -0
- package/dist/_libs/debug.mjs +848 -0
- package/dist/_libs/deepmerge.mjs +86 -0
- package/dist/_libs/depd.mjs +314 -0
- package/dist/_libs/dot-prop.mjs +138 -0
- package/dist/_libs/duplexer.mjs +71 -0
- package/dist/_libs/ee-first.mjs +68 -0
- package/dist/_libs/encodeurl.mjs +49 -0
- package/dist/_libs/escape-html.mjs +58 -0
- package/dist/_libs/escape-string-regexp.mjs +8 -0
- package/dist/_libs/estree-walker.mjs +330 -0
- package/dist/_libs/etag.mjs +75 -0
- package/dist/_libs/fdir.mjs +514 -0
- package/dist/_libs/fresh.mjs +85 -0
- package/dist/_libs/function-bind.mjs +63 -0
- package/dist/_libs/gen-mapping.mjs +612 -0
- package/dist/_libs/giget.mjs +19076 -0
- package/dist/_libs/gzip-size.mjs +21 -0
- package/dist/_libs/hasown.mjs +14 -0
- package/dist/_libs/http-errors.mjs +436 -0
- package/dist/_libs/httpxy.mjs +410 -0
- package/dist/_libs/is-core-module.mjs +220 -0
- package/dist/_libs/is-module.mjs +13 -0
- package/dist/_libs/is-reference.mjs +32 -0
- package/dist/_libs/js-tokens.mjs +382 -0
- package/dist/_libs/klona.mjs +90 -0
- package/dist/_libs/knitwork.mjs +124 -0
- package/dist/_libs/local-pkg.mjs +1686 -0
- package/dist/_libs/magic-string.mjs +939 -0
- package/dist/_libs/mime-db.mjs +7642 -0
- package/dist/_libs/mime-types.mjs +162 -0
- package/dist/_libs/mime.mjs +1391 -0
- package/dist/_libs/node-fetch-native.mjs +173 -0
- package/dist/_libs/on-finished.mjs +170 -0
- package/dist/_libs/parseurl.mjs +103 -0
- package/dist/_libs/path-parse.mjs +47 -0
- package/dist/_libs/pathe.mjs +41 -0
- package/dist/_libs/picomatch.mjs +1673 -0
- package/dist/_libs/plugin-alias.mjs +64 -0
- package/dist/_libs/plugin-commonjs.mjs +1489 -0
- package/dist/_libs/plugin-inject.mjs +135 -0
- package/dist/_libs/plugin-json.mjs +36 -0
- package/dist/_libs/plugin-node-resolve.mjs +1553 -0
- package/dist/_libs/plugin-replace.mjs +104 -0
- package/dist/_libs/pretty-bytes.mjs +116 -0
- package/dist/_libs/range-parser.mjs +102 -0
- package/dist/_libs/remapping.mjs +117 -0
- package/dist/_libs/rou3.mjs +311 -0
- package/dist/_libs/send.mjs +857 -0
- package/dist/_libs/serve-static.mjs +124 -0
- package/dist/_libs/std-env.mjs +158 -0
- package/dist/_libs/strip-literal.mjs +51 -0
- package/dist/_libs/tinyglobby.mjs +292 -0
- package/dist/_libs/ultrahtml.mjs +138 -0
- package/dist/_libs/unimport.mjs +3520 -0
- package/dist/_libs/untyped.mjs +271 -0
- package/dist/_libs/unwasm.mjs +5825 -0
- package/dist/_libs/vite-plugin-fullstack.mjs +561 -0
- package/dist/_presets.mjs +1723 -0
- package/dist/builder.d.mts +54 -0
- package/dist/builder.mjs +45 -0
- package/dist/cli/_chunks/build.mjs +43 -0
- package/dist/cli/_chunks/common.mjs +15 -0
- package/dist/cli/_chunks/detect-acorn.mjs +12 -0
- package/dist/cli/_chunks/dev.mjs +79 -0
- package/dist/cli/_chunks/dist.mjs +3 -0
- package/dist/cli/_chunks/dist2.mjs +4 -0
- package/dist/cli/_chunks/esm.mjs +3 -0
- package/dist/cli/_chunks/json5.mjs +4 -0
- package/dist/cli/_chunks/jsonc.mjs +4 -0
- package/dist/cli/_chunks/list.mjs +27 -0
- package/dist/cli/_chunks/multipart-parser.mjs +6 -0
- package/dist/cli/_chunks/prepare.mjs +19 -0
- package/dist/cli/_chunks/run.mjs +55 -0
- package/dist/cli/_chunks/task.mjs +16 -0
- package/dist/cli/_chunks/toml.mjs +4 -0
- package/dist/cli/_chunks/yaml.mjs +4 -0
- package/dist/cli/index.d.mts +1 -1
- package/dist/cli/index.mjs +20 -476
- package/dist/node_modules/@speed-highlight/core/dist/index.js +1 -1
- package/dist/node_modules/@speed-highlight/core/dist/terminal.js +1 -1
- package/dist/node_modules/@speed-highlight/core/package.json +7 -3
- package/dist/node_modules/cookie-es/dist/index.mjs +262 -0
- package/dist/node_modules/cookie-es/package.json +37 -0
- package/dist/node_modules/hookable/dist/index.mjs +243 -266
- package/dist/node_modules/hookable/package.json +29 -26
- package/dist/node_modules/rendu/dist/index.mjs +380 -0
- package/dist/node_modules/rendu/package.json +47 -0
- package/dist/presets/_nitro/runtime/nitro-dev.d.mts +1 -0
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +44 -38
- package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +2 -2
- package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +9 -12
- package/dist/presets/_nitro/runtime/service-worker.d.mts +1 -0
- package/dist/presets/_nitro/runtime/service-worker.mjs +14 -11
- package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +1 -0
- package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +6 -5
- package/dist/presets/aws-lambda/runtime/_utils.d.mts +8 -13
- package/dist/presets/aws-lambda/runtime/_utils.mjs +95 -81
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +1 -2
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +25 -27
- package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +7 -7
- package/dist/presets/azure/runtime/_utils.mjs +43 -43
- package/dist/presets/azure/runtime/azure-swa.d.mts +2 -2
- package/dist/presets/azure/runtime/azure-swa.mjs +22 -21
- package/dist/presets/bun/runtime/bun.d.mts +1 -0
- package/dist/presets/bun/runtime/bun.mjs +18 -17
- package/dist/presets/cloudflare/runtime/_module-handler.d.mts +10 -7
- package/dist/presets/cloudflare/runtime/_module-handler.mjs +79 -87
- package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +6 -14
- package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +55 -61
- package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +1 -7
- package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +12 -14
- package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +12 -12
- package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +35 -39
- package/dist/presets/cloudflare/runtime/plugin.dev.d.mts +2 -2
- package/dist/presets/cloudflare/runtime/plugin.dev.mjs +89 -82
- package/dist/presets/cloudflare/runtime/shims/workers.dev.mjs +27 -0
- package/dist/presets/deno/runtime/deno-deploy.d.mts +1 -0
- package/dist/presets/deno/runtime/deno-deploy.mjs +12 -11
- package/dist/presets/deno/runtime/deno-server.d.mts +2 -1
- package/dist/presets/deno/runtime/deno-server.mjs +31 -39
- package/dist/presets/netlify/runtime/netlify-edge.d.mts +2 -1
- package/dist/presets/netlify/runtime/netlify-edge.mjs +14 -11
- package/dist/presets/netlify/runtime/netlify.mjs +11 -17
- package/dist/presets/node/runtime/node-cluster.mjs +49 -48
- package/dist/presets/node/runtime/node-middleware.d.mts +3 -2
- package/dist/presets/node/runtime/node-middleware.mjs +7 -6
- package/dist/presets/node/runtime/node-server.mjs +34 -24
- package/dist/presets/standard/runtime/server.d.mts +1 -3
- package/dist/presets/standard/runtime/server.mjs +1 -3
- package/dist/presets/stormkit/runtime/stormkit.d.mts +13 -13
- package/dist/presets/stormkit/runtime/stormkit.mjs +20 -20
- package/dist/presets/vercel/runtime/vercel.d.mts +3 -3
- package/dist/presets/vercel/runtime/vercel.mjs +15 -14
- package/dist/presets/winterjs/runtime/winterjs.d.mts +2 -0
- package/dist/presets/winterjs/runtime/winterjs.mjs +72 -68
- package/dist/presets/zeabur/runtime/zeabur.d.mts +1 -1
- package/dist/runtime/index.d.mts +13 -2
- package/dist/runtime/index.mjs +13 -8
- package/dist/runtime/internal/app.d.mts +3 -1
- package/dist/runtime/internal/app.mjs +179 -140
- package/dist/runtime/internal/cache.d.mts +10 -4
- package/dist/runtime/internal/cache.mjs +247 -216
- package/dist/runtime/internal/context.d.mts +9 -9
- package/dist/runtime/internal/context.mjs +17 -10
- package/dist/runtime/internal/database.mjs +8 -10
- package/dist/runtime/internal/error/dev.d.mts +5 -4
- package/dist/runtime/internal/error/dev.mjs +106 -105
- package/dist/runtime/internal/error/prod.d.mts +5 -4
- package/dist/runtime/internal/error/prod.mjs +51 -59
- package/dist/runtime/internal/error/utils.d.mts +4 -4
- package/dist/runtime/internal/error/utils.mjs +1 -1
- package/dist/runtime/internal/index.d.mts +2 -0
- package/dist/runtime/internal/index.mjs +2 -0
- package/dist/runtime/internal/lib/http-graceful-shutdown.d.mts +14 -14
- package/dist/runtime/internal/lib/http-graceful-shutdown.mjs +248 -209
- package/dist/runtime/internal/meta.d.mts +1 -1
- package/dist/runtime/internal/meta.mjs +1 -1
- package/dist/runtime/internal/plugin.d.mts +2 -2
- package/dist/runtime/internal/plugin.mjs +1 -1
- package/dist/runtime/internal/renderer.mjs +40 -32
- package/dist/runtime/internal/route-rules.d.mts +8 -8
- package/dist/runtime/internal/route-rules.mjs +53 -51
- package/dist/runtime/internal/routes/dev-tasks.d.mts +1 -2
- package/dist/runtime/internal/routes/dev-tasks.mjs +15 -17
- package/dist/runtime/internal/routes/openapi.d.mts +1 -0
- package/dist/runtime/internal/routes/openapi.mjs +81 -87
- package/dist/runtime/internal/routes/renderer-template.d.mts +1 -1
- package/dist/runtime/internal/routes/renderer-template.dev.d.mts +1 -2
- package/dist/runtime/internal/routes/renderer-template.dev.mjs +10 -17
- package/dist/runtime/internal/routes/renderer-template.mjs +1 -1
- package/dist/runtime/internal/routes/scalar.d.mts +1 -0
- package/dist/runtime/internal/routes/scalar.mjs +22 -23
- package/dist/runtime/internal/routes/swagger.d.mts +1 -0
- package/dist/runtime/internal/routes/swagger.mjs +9 -11
- package/dist/runtime/internal/runtime-config.d.mts +4 -4
- package/dist/runtime/internal/runtime-config.mjs +40 -35
- package/dist/runtime/internal/shutdown.d.mts +2 -8
- package/dist/runtime/internal/shutdown.mjs +32 -30
- package/dist/runtime/internal/static.mjs +63 -74
- package/dist/runtime/internal/storage.mjs +2 -2
- package/dist/runtime/internal/task.d.mts +6 -6
- package/dist/runtime/internal/task.mjs +56 -60
- package/dist/runtime/internal/utils.d.mts +1 -1
- package/dist/runtime/internal/utils.mjs +4 -10
- package/dist/types/index.d.mts +2594 -2286
- package/dist/types/index.mjs +1 -1
- package/dist/vite.d.mts +56 -47
- package/dist/vite.mjs +55 -68
- package/lib/index.d.mts +1 -0
- package/lib/index.mjs +1 -0
- package/lib/runtime/meta.mjs +35 -0
- package/package.json +49 -50
- package/dist/_chunks/app.mjs +0 -19797
- package/dist/_chunks/build.mjs +0 -84
- package/dist/_chunks/build2.mjs +0 -318
- package/dist/_chunks/build3.mjs +0 -6452
- package/dist/_chunks/detect-acorn.mjs +0 -503
- package/dist/_chunks/index.mjs +0 -22242
- package/dist/_chunks/index2.mjs +0 -297
- package/dist/_chunks/index3.mjs +0 -1058
- package/dist/_chunks/index4.mjs +0 -1206
- package/dist/_chunks/info.mjs +0 -11157
- package/dist/_chunks/json5.mjs +0 -68
- package/dist/_chunks/jsonc.mjs +0 -51
- package/dist/_chunks/pathe.M-eThtNZ.mjs +0 -204
- package/dist/_chunks/plugin.mjs +0 -960
- package/dist/_chunks/server.mjs +0 -254
- package/dist/_chunks/snapshot.mjs +0 -284
- package/dist/_chunks/toml.mjs +0 -259
- package/dist/_chunks/yaml.mjs +0 -86
- package/dist/cli/build.mjs +0 -54
- package/dist/cli/common.mjs +0 -13
- package/dist/cli/dev.mjs +0 -95
- package/dist/cli/index2.mjs +0 -17
- package/dist/cli/list.mjs +0 -34
- package/dist/cli/prepare.mjs +0 -24
- package/dist/cli/run.mjs +0 -60
- package/dist/index.d.mts +0 -52
- package/dist/index.mjs +0 -55
- package/dist/node_modules/klona/dist/index.mjs +0 -81
- package/dist/node_modules/klona/full/index.mjs +0 -53
- package/dist/node_modules/klona/package.json +0 -74
- package/dist/node_modules/std-env/dist/index.mjs +0 -1
- package/dist/node_modules/std-env/package.json +0 -46
- package/dist/presets.mjs +0 -2460
- package/dist/runtime/internal/debug.d.mts +0 -2
- package/dist/runtime/internal/debug.mjs +0 -5
- package/dist/runtime/internal/empty.d.mts +0 -0
- package/dist/runtime/internal/vite/dev-entry.d.mts +0 -1
- package/dist/runtime/internal/vite/dev-worker.d.mts +0 -1
- package/dist/runtime/internal/vite/prod-setup.d.mts +0 -4
- package/dist/runtime/internal/vite/ssr-renderer.d.mts +0 -4
- package/lib/runtime-meta.mjs +0 -38
- /package/lib/{runtime-meta.d.mts → runtime/meta.d.mts} +0 -0
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { };
|
package/dist/vite.d.mts
CHANGED
|
@@ -1,59 +1,68 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "./_dev.mjs";
|
|
2
|
+
import "unenv";
|
|
3
|
+
import { PluginOption } from "vite";
|
|
4
|
+
import "rollup";
|
|
5
|
+
import { Nitro, NitroConfig } from "nitro/types";
|
|
3
6
|
|
|
7
|
+
//#region src/build/vite/types.d.ts
|
|
4
8
|
declare module "vite" {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
interface UserConfig {
|
|
10
|
+
/**
|
|
11
|
+
* Nitro Vite Plugin options.
|
|
12
|
+
*/
|
|
13
|
+
nitro?: NitroConfig;
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
interface NitroPluginConfig {
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
/** Custom Nitro config */
|
|
18
|
+
config?: NitroConfig;
|
|
19
|
+
/**
|
|
20
|
+
* Fetchable service environments automatically created by the plugin.
|
|
21
|
+
*
|
|
22
|
+
* **Note:** You can use top level `environments` with same keys to extend environment configurations.
|
|
23
|
+
*/
|
|
24
|
+
services?: Record<string, ServiceConfig>;
|
|
25
|
+
/**
|
|
26
|
+
* @internal Pre-initialized Nitro instance.
|
|
27
|
+
*/
|
|
28
|
+
_nitro?: Nitro;
|
|
29
|
+
experimental?: {
|
|
15
30
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* **Note:** You can use top level `environments` with same keys to extend environment configurations.
|
|
31
|
+
* @experimental Use the virtual filesystem for intermediate environment build output files.
|
|
32
|
+
* @note This is unsafe if plugins rely on temporary files on the filesystem.
|
|
19
33
|
*/
|
|
20
|
-
|
|
34
|
+
virtualBundle?: boolean;
|
|
21
35
|
/**
|
|
22
|
-
* @
|
|
36
|
+
* @experimental Enable `?assets` import proposed by https://github.com/vitejs/vite/discussions/20913
|
|
37
|
+
* @default true
|
|
23
38
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @experimental Use the virtual filesystem for intermediate environment build output files.
|
|
28
|
-
* @note This is unsafe if plugins rely on temporary files on the filesystem.
|
|
29
|
-
*/
|
|
30
|
-
virtualBundle?: boolean;
|
|
31
|
-
};
|
|
39
|
+
assetsImport?: boolean;
|
|
40
|
+
};
|
|
32
41
|
}
|
|
33
42
|
interface ServiceConfig {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Path to the service entrypoint file.
|
|
45
|
+
*
|
|
46
|
+
* Services should export a web standard fetch handler function.
|
|
47
|
+
*
|
|
48
|
+
* Example:
|
|
49
|
+
* ```ts
|
|
50
|
+
* export default async (req: Request) => {
|
|
51
|
+
* return Response.json({ message: "Hello from service!" });
|
|
52
|
+
* };
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
entry: string;
|
|
56
|
+
/**
|
|
57
|
+
* Service route.
|
|
58
|
+
*
|
|
59
|
+
* - If `route` is not set, services are only accessible via `fetch("<url>", { viteEnv: "<name>" })`.
|
|
60
|
+
* - `ssr` service is special and defaults to `"/**"` route, meaning it will handle all requests.
|
|
61
|
+
*/
|
|
62
|
+
route?: string;
|
|
54
63
|
}
|
|
55
|
-
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/build/vite/plugin.d.ts
|
|
56
66
|
declare function nitro(pluginConfig?: NitroPluginConfig): PluginOption;
|
|
57
|
-
|
|
58
|
-
export { nitro };
|
|
59
|
-
export type { NitroPluginConfig, ServiceConfig };
|
|
67
|
+
//#endregion
|
|
68
|
+
export { type NitroPluginConfig, type ServiceConfig, nitro };
|
package/dist/vite.mjs
CHANGED
|
@@ -1,68 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
import './_chunks/info.mjs';
|
|
57
|
-
import 'unenv';
|
|
58
|
-
import 'node:buffer';
|
|
59
|
-
import 'node:querystring';
|
|
60
|
-
import 'constants';
|
|
61
|
-
import 'node:crypto';
|
|
62
|
-
import 'db0';
|
|
63
|
-
import 'esbuild';
|
|
64
|
-
import 'nf3';
|
|
65
|
-
import 'rendu';
|
|
66
|
-
import 'vite';
|
|
67
|
-
import 'get-port-please';
|
|
68
|
-
import 'node:child_process';
|
|
1
|
+
import "./_libs/c12.mjs";
|
|
2
|
+
import "./_libs/gen-mapping.mjs";
|
|
3
|
+
import "./_libs/magic-string.mjs";
|
|
4
|
+
import "./_libs/acorn.mjs";
|
|
5
|
+
import "./_libs/confbox.mjs";
|
|
6
|
+
import "./_libs/local-pkg.mjs";
|
|
7
|
+
import "./_libs/js-tokens.mjs";
|
|
8
|
+
import "./_libs/strip-literal.mjs";
|
|
9
|
+
import "./_libs/unimport.mjs";
|
|
10
|
+
import "./_libs/picomatch.mjs";
|
|
11
|
+
import "./_libs/fdir.mjs";
|
|
12
|
+
import "./_libs/tinyglobby.mjs";
|
|
13
|
+
import "./_libs/compatx.mjs";
|
|
14
|
+
import "./_libs/klona.mjs";
|
|
15
|
+
import "./_libs/std-env.mjs";
|
|
16
|
+
import "./_chunks/B-7HiF0V.mjs";
|
|
17
|
+
import "./_libs/escape-string-regexp.mjs";
|
|
18
|
+
import "./_libs/dot-prop.mjs";
|
|
19
|
+
import "./_chunks/B5ooyfLk.mjs";
|
|
20
|
+
import "./_libs/rou3.mjs";
|
|
21
|
+
import "./_libs/mime.mjs";
|
|
22
|
+
import "./_libs/pathe.mjs";
|
|
23
|
+
import "./_libs/untyped.mjs";
|
|
24
|
+
import "./_libs/knitwork.mjs";
|
|
25
|
+
import "./_libs/httpxy.mjs";
|
|
26
|
+
import "./_dev.mjs";
|
|
27
|
+
import "./_libs/chokidar.mjs";
|
|
28
|
+
import "./_libs/encodeurl.mjs";
|
|
29
|
+
import "./_libs/escape-html.mjs";
|
|
30
|
+
import "./_libs/parseurl.mjs";
|
|
31
|
+
import "./_libs/depd.mjs";
|
|
32
|
+
import "./_libs/http-errors.mjs";
|
|
33
|
+
import "./_libs/debug.mjs";
|
|
34
|
+
import "./_libs/etag.mjs";
|
|
35
|
+
import "./_libs/fresh.mjs";
|
|
36
|
+
import "./_libs/mime-db.mjs";
|
|
37
|
+
import "./_libs/mime-types.mjs";
|
|
38
|
+
import "./_libs/ee-first.mjs";
|
|
39
|
+
import "./_libs/on-finished.mjs";
|
|
40
|
+
import "./_libs/range-parser.mjs";
|
|
41
|
+
import "./_libs/send.mjs";
|
|
42
|
+
import "./_libs/serve-static.mjs";
|
|
43
|
+
import "./_libs/ultrahtml.mjs";
|
|
44
|
+
import "./_libs/plugin-alias.mjs";
|
|
45
|
+
import "./_libs/estree-walker.mjs";
|
|
46
|
+
import "./_libs/plugin-commonjs.mjs";
|
|
47
|
+
import "./_libs/plugin-inject.mjs";
|
|
48
|
+
import "./_libs/plugin-replace.mjs";
|
|
49
|
+
import "./_build/common.mjs";
|
|
50
|
+
import "./_libs/remapping.mjs";
|
|
51
|
+
import "./_libs/unwasm.mjs";
|
|
52
|
+
import { t as nitro } from "./_build/vite.plugin.mjs";
|
|
53
|
+
import "./_libs/vite-plugin-fullstack.mjs";
|
|
54
|
+
|
|
55
|
+
export { nitro };
|
package/lib/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// reserved for "nitro" import
|
package/lib/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// reserved for "nitro" import
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
|
|
3
|
+
export const pkgDir = fileURLToPath(new URL("../../", import.meta.url));
|
|
4
|
+
|
|
5
|
+
export const runtimeDir = fileURLToPath(
|
|
6
|
+
new URL("../../dist/runtime/", import.meta.url)
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
export const presetsDir = fileURLToPath(
|
|
10
|
+
new URL("../../dist/presets/", import.meta.url)
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
export const runtimeDependencies = [
|
|
14
|
+
"crossws", // dep
|
|
15
|
+
"croner", // traced
|
|
16
|
+
"db0", // dep
|
|
17
|
+
"defu", // traced
|
|
18
|
+
"destr", // traced
|
|
19
|
+
"h3", // dep
|
|
20
|
+
"rou3", // sub-dep of h3
|
|
21
|
+
"hookable", // traced
|
|
22
|
+
"ofetch", // dep
|
|
23
|
+
"ohash", // traced
|
|
24
|
+
"rendu", // traced
|
|
25
|
+
"scule", // traced
|
|
26
|
+
"srvx", // dep
|
|
27
|
+
"ufo", // traced
|
|
28
|
+
"unctx", // traced
|
|
29
|
+
"unenv", // dep
|
|
30
|
+
"unstorage", // dep
|
|
31
|
+
"nitro/h3",
|
|
32
|
+
"nitro/deps/h3",
|
|
33
|
+
"nitro/deps/ofetch",
|
|
34
|
+
"nitro/runtime",
|
|
35
|
+
];
|
package/package.json
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-20251030-121649-98b56dfe",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
|
+
".": "./lib/index.mjs",
|
|
10
11
|
"./package.json": "./package.json",
|
|
11
|
-
"
|
|
12
|
+
"./builder": "./dist/builder.mjs",
|
|
12
13
|
"./config": "./lib/config.mjs",
|
|
13
|
-
"./types": "./dist/types/index.
|
|
14
|
+
"./types": "./dist/types/index.mjs",
|
|
14
15
|
"./meta": "./lib/meta.mjs",
|
|
15
16
|
"./runtime": "./dist/runtime/index.mjs",
|
|
16
17
|
"./runtime/internal": "./dist/runtime/internal/index.mjs",
|
|
17
|
-
"./runtime/meta": "./lib/runtime
|
|
18
|
+
"./runtime/meta": "./lib/runtime/meta.mjs",
|
|
18
19
|
"./vite": "./dist/vite.mjs",
|
|
19
20
|
"./h3": "./lib/deps/h3.mjs",
|
|
20
21
|
"./deps/h3": "./lib/deps/h3.mjs",
|
|
21
22
|
"./deps/ofetch": "./lib/deps/ofetch.mjs"
|
|
22
23
|
},
|
|
24
|
+
"types": "./lib/index.d.mts",
|
|
23
25
|
"bin": {
|
|
24
|
-
"nitro": "./dist/cli/index.mjs"
|
|
25
|
-
"nitropack": "./dist/cli/index.mjs"
|
|
26
|
+
"nitro": "./dist/cli/index.mjs"
|
|
26
27
|
},
|
|
27
28
|
"files": [
|
|
28
29
|
"dist",
|
|
29
30
|
"lib"
|
|
30
31
|
],
|
|
31
32
|
"scripts": {
|
|
32
|
-
"build": "pnpm gen-presets &&
|
|
33
|
+
"build": "pnpm gen-presets && obuild",
|
|
33
34
|
"dev": "pnpm -C playground dev",
|
|
34
35
|
"dev:build": "pnpm -C playground build",
|
|
35
36
|
"dev:start": "node playground/.output/server/index.mjs",
|
|
36
37
|
"gen-node-compat": "node scripts/gen-node-compat.ts",
|
|
37
|
-
"gen-presets": "
|
|
38
|
+
"gen-presets": "node ./scripts/gen-presets.ts",
|
|
38
39
|
"lint": "eslint --cache . && prettier -c .",
|
|
39
40
|
"lint:fix": "automd && eslint --cache --fix . && prettier -w .",
|
|
40
|
-
"nitro": "
|
|
41
|
+
"nitro": "node ./src/cli/index.ts",
|
|
41
42
|
"prepack": "pnpm build",
|
|
42
43
|
"release": "pnpm test && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
|
|
43
|
-
"stub": "
|
|
44
|
+
"stub": "obuild --stub",
|
|
44
45
|
"test": "pnpm lint && pnpm vitest run",
|
|
45
|
-
"test:fixture:types": "pnpm stub &&
|
|
46
|
+
"test:fixture:types": "pnpm stub && node ./test/scripts/gen-fixture-types.ts && cd test/fixture && tsc --noEmit",
|
|
46
47
|
"test:rolldown": "NITRO_BUILDER=rolldown pnpm vitest",
|
|
47
48
|
"test:rollup": "NITRO_BUILDER=rollup pnpm vitest",
|
|
48
49
|
"test:types": "tsc --noEmit && pnpm test:fixture:types"
|
|
@@ -53,64 +54,62 @@
|
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"consola": "^3.4.2",
|
|
56
|
-
"cookie-es": "^2.0.0",
|
|
57
57
|
"crossws": "^0.4.1",
|
|
58
58
|
"db0": "^0.3.4",
|
|
59
|
-
"esbuild": "^0.25.
|
|
60
|
-
"
|
|
61
|
-
"h3": "2.0.1-rc.2",
|
|
59
|
+
"esbuild": "^0.25.11",
|
|
60
|
+
"h3": "2.0.1-rc.5",
|
|
62
61
|
"jiti": "^2.6.1",
|
|
63
|
-
"nf3": "^0.1.
|
|
64
|
-
"ofetch": "^
|
|
62
|
+
"nf3": "^0.1.5",
|
|
63
|
+
"ofetch": "^2.0.0-alpha.3",
|
|
65
64
|
"ohash": "^2.0.11",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"srvx": "^0.8.15",
|
|
65
|
+
"rollup": "^4.52.5",
|
|
66
|
+
"srvx": "^0.9.2",
|
|
69
67
|
"undici": "^7.16.0",
|
|
70
|
-
"unenv": "2.0.0-rc.
|
|
71
|
-
"unstorage": "2.0.0-alpha.
|
|
68
|
+
"unenv": "^2.0.0-rc.24",
|
|
69
|
+
"unstorage": "^2.0.0-alpha.4"
|
|
72
70
|
},
|
|
73
71
|
"devDependencies": {
|
|
74
72
|
"@azure/functions": "^3.5.1",
|
|
75
73
|
"@azure/static-web-apps-cli": "^2.0.7",
|
|
76
|
-
"@cloudflare/workers-types": "^4.
|
|
74
|
+
"@cloudflare/workers-types": "^4.20251014.0",
|
|
77
75
|
"@deno/types": "^0.0.1",
|
|
78
|
-
"@
|
|
79
|
-
"@netlify/functions": "^
|
|
80
|
-
"@
|
|
81
|
-
"@rollup/plugin-
|
|
76
|
+
"@hiogawa/vite-plugin-fullstack": "npm:@pi0/vite-plugin-fullstack@0.0.5-pr-1297",
|
|
77
|
+
"@netlify/edge-functions": "^3.0.1",
|
|
78
|
+
"@netlify/functions": "^5.0.1",
|
|
79
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
80
|
+
"@rollup/plugin-commonjs": "^28.0.9",
|
|
82
81
|
"@rollup/plugin-inject": "^5.0.5",
|
|
83
82
|
"@rollup/plugin-json": "^6.1.0",
|
|
84
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
85
|
-
"@rollup/plugin-replace": "^6.0.
|
|
83
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
84
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
86
85
|
"@rollup/plugin-terser": "^0.4.4",
|
|
87
|
-
"@scalar/api-reference": "^1.
|
|
88
|
-
"@types/
|
|
89
|
-
"@types/aws-lambda": "^8.10.155",
|
|
86
|
+
"@scalar/api-reference": "^1.38.1",
|
|
87
|
+
"@types/aws-lambda": "^8.10.157",
|
|
90
88
|
"@types/estree": "^1.0.8",
|
|
91
89
|
"@types/etag": "^1.8.4",
|
|
92
90
|
"@types/fs-extra": "^11.0.4",
|
|
93
|
-
"@types/http-proxy": "^1.17.
|
|
94
|
-
"@types/node": "^24.
|
|
91
|
+
"@types/http-proxy": "^1.17.17",
|
|
92
|
+
"@types/node": "^24.9.2",
|
|
95
93
|
"@types/node-fetch": "^2.6.13",
|
|
96
94
|
"@types/semver": "^7.7.1",
|
|
97
|
-
"@types/serve-static": "^
|
|
95
|
+
"@types/serve-static": "^2.2.0",
|
|
98
96
|
"@types/xml2js": "^0.4.14",
|
|
99
|
-
"@vitest/coverage-v8": "^
|
|
97
|
+
"@vitest/coverage-v8": "^4.0.5",
|
|
100
98
|
"automd": "^0.4.2",
|
|
101
|
-
"c12": "^3.3.
|
|
99
|
+
"c12": "^3.3.1",
|
|
102
100
|
"changelogen": "^0.6.2",
|
|
103
101
|
"chokidar": "^4.0.3",
|
|
104
102
|
"citty": "^0.1.6",
|
|
105
103
|
"compatx": "^0.2.0",
|
|
106
104
|
"confbox": "^0.2.2",
|
|
105
|
+
"cookie-es": "^2.0.0",
|
|
107
106
|
"croner": "^9.1.0",
|
|
108
107
|
"defu": "^6.1.4",
|
|
109
108
|
"destr": "^2.0.5",
|
|
110
109
|
"dot-prop": "^10.1.0",
|
|
111
110
|
"edge-runtime": "^4.0.1",
|
|
112
111
|
"escape-string-regexp": "^5.0.0",
|
|
113
|
-
"eslint": "^9.
|
|
112
|
+
"eslint": "^9.38.0",
|
|
114
113
|
"eslint-config-unjs": "^0.5.0",
|
|
115
114
|
"etag": "^1.8.1",
|
|
116
115
|
"execa": "^9.6.0",
|
|
@@ -119,44 +118,44 @@
|
|
|
119
118
|
"fs-extra": "^11.3.2",
|
|
120
119
|
"get-port-please": "^3.2.0",
|
|
121
120
|
"gzip-size": "^7.0.0",
|
|
122
|
-
"hookable": "
|
|
121
|
+
"hookable": "6.0.0-rc.1",
|
|
123
122
|
"httpxy": "^0.1.7",
|
|
124
123
|
"klona": "^2.0.6",
|
|
125
124
|
"knitwork": "^1.2.0",
|
|
126
|
-
"magic-string": "^0.30.
|
|
127
|
-
"magicast": "^0.3.5",
|
|
125
|
+
"magic-string": "^0.30.21",
|
|
128
126
|
"mime": "^4.1.0",
|
|
129
|
-
"miniflare": "^4.
|
|
127
|
+
"miniflare": "^4.20251011.1",
|
|
130
128
|
"mlly": "^1.8.0",
|
|
129
|
+
"obuild": "^0.3.2",
|
|
131
130
|
"pathe": "^2.0.3",
|
|
132
131
|
"perfect-debounce": "^2.0.0",
|
|
133
132
|
"pkg-types": "^2.3.0",
|
|
134
133
|
"prettier": "^3.6.2",
|
|
135
134
|
"pretty-bytes": "^7.1.0",
|
|
136
135
|
"react": "^19.2.0",
|
|
137
|
-
"
|
|
138
|
-
"
|
|
136
|
+
"rendu": "^0.0.7",
|
|
137
|
+
"rolldown": "1.0.0-beta.45",
|
|
138
|
+
"rou3": "^0.7.9",
|
|
139
139
|
"scule": "^1.3.0",
|
|
140
140
|
"semver": "^7.7.3",
|
|
141
141
|
"serve-placeholder": "^2.0.2",
|
|
142
142
|
"serve-static": "^2.2.0",
|
|
143
143
|
"source-map": "^0.7.6",
|
|
144
|
-
"std-env": "^3.
|
|
144
|
+
"std-env": "^3.10.0",
|
|
145
145
|
"tinyglobby": "^0.2.15",
|
|
146
146
|
"typescript": "^5.9.3",
|
|
147
147
|
"ufo": "^1.6.1",
|
|
148
148
|
"ultrahtml": "^1.6.0",
|
|
149
|
-
"unbuild": "^3.6.1",
|
|
150
149
|
"uncrypto": "^0.1.3",
|
|
151
150
|
"unctx": "^2.4.1",
|
|
152
|
-
"unimport": "^5.
|
|
151
|
+
"unimport": "^5.5.0",
|
|
153
152
|
"unplugin-utils": "^0.3.1",
|
|
154
153
|
"untyped": "^2.0.0",
|
|
155
154
|
"unwasm": "^0.3.11",
|
|
156
|
-
"vitest": "^
|
|
157
|
-
"wrangler": "^4.
|
|
155
|
+
"vitest": "^4.0.5",
|
|
156
|
+
"wrangler": "^4.45.2",
|
|
158
157
|
"xml2js": "^0.6.2",
|
|
159
|
-
"youch": "4.1.0-beta.11",
|
|
158
|
+
"youch": "^4.1.0-beta.11",
|
|
160
159
|
"youch-core": "^0.3.3"
|
|
161
160
|
},
|
|
162
161
|
"peerDependencies": {
|