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.
Files changed (252) hide show
  1. package/dist/_build/common.mjs +763 -0
  2. package/dist/_build/rolldown.mjs +216 -0
  3. package/dist/_build/rollup.mjs +359 -0
  4. package/dist/_build/vite.build.mjs +67 -0
  5. package/dist/_build/vite.plugin.mjs +747 -0
  6. package/dist/_chunks/B-7HiF0V.mjs +1303 -0
  7. package/dist/_chunks/B3asVbT4.mjs +151 -0
  8. package/dist/_chunks/B5ooyfLk.mjs +372 -0
  9. package/dist/_chunks/DXMHy5ca.mjs +43 -0
  10. package/dist/_dev.d.mts +12 -0
  11. package/dist/_dev.mjs +675 -0
  12. package/dist/_libs/acorn.mjs +5034 -0
  13. package/dist/_libs/c12.mjs +2798 -0
  14. package/dist/_libs/chokidar.mjs +1560 -0
  15. package/dist/_libs/citty.mjs +333 -0
  16. package/dist/_libs/commondir.mjs +22 -0
  17. package/dist/_libs/compatx.mjs +46 -0
  18. package/dist/_libs/confbox.mjs +2920 -0
  19. package/dist/_libs/debug.mjs +848 -0
  20. package/dist/_libs/deepmerge.mjs +86 -0
  21. package/dist/_libs/depd.mjs +314 -0
  22. package/dist/_libs/dot-prop.mjs +138 -0
  23. package/dist/_libs/duplexer.mjs +71 -0
  24. package/dist/_libs/ee-first.mjs +68 -0
  25. package/dist/_libs/encodeurl.mjs +49 -0
  26. package/dist/_libs/escape-html.mjs +58 -0
  27. package/dist/_libs/escape-string-regexp.mjs +8 -0
  28. package/dist/_libs/estree-walker.mjs +330 -0
  29. package/dist/_libs/etag.mjs +75 -0
  30. package/dist/_libs/fdir.mjs +514 -0
  31. package/dist/_libs/fresh.mjs +85 -0
  32. package/dist/_libs/function-bind.mjs +63 -0
  33. package/dist/_libs/gen-mapping.mjs +612 -0
  34. package/dist/_libs/giget.mjs +19076 -0
  35. package/dist/_libs/gzip-size.mjs +21 -0
  36. package/dist/_libs/hasown.mjs +14 -0
  37. package/dist/_libs/http-errors.mjs +436 -0
  38. package/dist/_libs/httpxy.mjs +410 -0
  39. package/dist/_libs/is-core-module.mjs +220 -0
  40. package/dist/_libs/is-module.mjs +13 -0
  41. package/dist/_libs/is-reference.mjs +32 -0
  42. package/dist/_libs/js-tokens.mjs +382 -0
  43. package/dist/_libs/klona.mjs +90 -0
  44. package/dist/_libs/knitwork.mjs +124 -0
  45. package/dist/_libs/local-pkg.mjs +1686 -0
  46. package/dist/_libs/magic-string.mjs +939 -0
  47. package/dist/_libs/mime-db.mjs +7642 -0
  48. package/dist/_libs/mime-types.mjs +162 -0
  49. package/dist/_libs/mime.mjs +1391 -0
  50. package/dist/_libs/node-fetch-native.mjs +173 -0
  51. package/dist/_libs/on-finished.mjs +170 -0
  52. package/dist/_libs/parseurl.mjs +103 -0
  53. package/dist/_libs/path-parse.mjs +47 -0
  54. package/dist/_libs/pathe.mjs +41 -0
  55. package/dist/_libs/picomatch.mjs +1673 -0
  56. package/dist/_libs/plugin-alias.mjs +64 -0
  57. package/dist/_libs/plugin-commonjs.mjs +1489 -0
  58. package/dist/_libs/plugin-inject.mjs +135 -0
  59. package/dist/_libs/plugin-json.mjs +36 -0
  60. package/dist/_libs/plugin-node-resolve.mjs +1553 -0
  61. package/dist/_libs/plugin-replace.mjs +104 -0
  62. package/dist/_libs/pretty-bytes.mjs +116 -0
  63. package/dist/_libs/range-parser.mjs +102 -0
  64. package/dist/_libs/remapping.mjs +117 -0
  65. package/dist/_libs/rou3.mjs +311 -0
  66. package/dist/_libs/send.mjs +857 -0
  67. package/dist/_libs/serve-static.mjs +124 -0
  68. package/dist/_libs/std-env.mjs +158 -0
  69. package/dist/_libs/strip-literal.mjs +51 -0
  70. package/dist/_libs/tinyglobby.mjs +292 -0
  71. package/dist/_libs/ultrahtml.mjs +138 -0
  72. package/dist/_libs/unimport.mjs +3520 -0
  73. package/dist/_libs/untyped.mjs +271 -0
  74. package/dist/_libs/unwasm.mjs +5825 -0
  75. package/dist/_libs/vite-plugin-fullstack.mjs +561 -0
  76. package/dist/_presets.mjs +1723 -0
  77. package/dist/builder.d.mts +54 -0
  78. package/dist/builder.mjs +45 -0
  79. package/dist/cli/_chunks/build.mjs +43 -0
  80. package/dist/cli/_chunks/common.mjs +15 -0
  81. package/dist/cli/_chunks/detect-acorn.mjs +12 -0
  82. package/dist/cli/_chunks/dev.mjs +79 -0
  83. package/dist/cli/_chunks/dist.mjs +3 -0
  84. package/dist/cli/_chunks/dist2.mjs +4 -0
  85. package/dist/cli/_chunks/esm.mjs +3 -0
  86. package/dist/cli/_chunks/json5.mjs +4 -0
  87. package/dist/cli/_chunks/jsonc.mjs +4 -0
  88. package/dist/cli/_chunks/list.mjs +27 -0
  89. package/dist/cli/_chunks/multipart-parser.mjs +6 -0
  90. package/dist/cli/_chunks/prepare.mjs +19 -0
  91. package/dist/cli/_chunks/run.mjs +55 -0
  92. package/dist/cli/_chunks/task.mjs +16 -0
  93. package/dist/cli/_chunks/toml.mjs +4 -0
  94. package/dist/cli/_chunks/yaml.mjs +4 -0
  95. package/dist/cli/index.d.mts +1 -1
  96. package/dist/cli/index.mjs +20 -476
  97. package/dist/node_modules/@speed-highlight/core/dist/index.js +1 -1
  98. package/dist/node_modules/@speed-highlight/core/dist/terminal.js +1 -1
  99. package/dist/node_modules/@speed-highlight/core/package.json +7 -3
  100. package/dist/node_modules/cookie-es/dist/index.mjs +262 -0
  101. package/dist/node_modules/cookie-es/package.json +37 -0
  102. package/dist/node_modules/hookable/dist/index.mjs +243 -266
  103. package/dist/node_modules/hookable/package.json +29 -26
  104. package/dist/node_modules/rendu/dist/index.mjs +380 -0
  105. package/dist/node_modules/rendu/package.json +47 -0
  106. package/dist/presets/_nitro/runtime/nitro-dev.d.mts +1 -0
  107. package/dist/presets/_nitro/runtime/nitro-dev.mjs +44 -38
  108. package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +2 -2
  109. package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +9 -12
  110. package/dist/presets/_nitro/runtime/service-worker.d.mts +1 -0
  111. package/dist/presets/_nitro/runtime/service-worker.mjs +14 -11
  112. package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +1 -0
  113. package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +6 -5
  114. package/dist/presets/aws-lambda/runtime/_utils.d.mts +8 -13
  115. package/dist/presets/aws-lambda/runtime/_utils.mjs +95 -81
  116. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +1 -2
  117. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +25 -27
  118. package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +7 -7
  119. package/dist/presets/azure/runtime/_utils.mjs +43 -43
  120. package/dist/presets/azure/runtime/azure-swa.d.mts +2 -2
  121. package/dist/presets/azure/runtime/azure-swa.mjs +22 -21
  122. package/dist/presets/bun/runtime/bun.d.mts +1 -0
  123. package/dist/presets/bun/runtime/bun.mjs +18 -17
  124. package/dist/presets/cloudflare/runtime/_module-handler.d.mts +10 -7
  125. package/dist/presets/cloudflare/runtime/_module-handler.mjs +79 -87
  126. package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +6 -14
  127. package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +55 -61
  128. package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +1 -7
  129. package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +12 -14
  130. package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +12 -12
  131. package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +35 -39
  132. package/dist/presets/cloudflare/runtime/plugin.dev.d.mts +2 -2
  133. package/dist/presets/cloudflare/runtime/plugin.dev.mjs +89 -82
  134. package/dist/presets/cloudflare/runtime/shims/workers.dev.mjs +27 -0
  135. package/dist/presets/deno/runtime/deno-deploy.d.mts +1 -0
  136. package/dist/presets/deno/runtime/deno-deploy.mjs +12 -11
  137. package/dist/presets/deno/runtime/deno-server.d.mts +2 -1
  138. package/dist/presets/deno/runtime/deno-server.mjs +31 -39
  139. package/dist/presets/netlify/runtime/netlify-edge.d.mts +2 -1
  140. package/dist/presets/netlify/runtime/netlify-edge.mjs +14 -11
  141. package/dist/presets/netlify/runtime/netlify.mjs +11 -17
  142. package/dist/presets/node/runtime/node-cluster.mjs +49 -48
  143. package/dist/presets/node/runtime/node-middleware.d.mts +3 -2
  144. package/dist/presets/node/runtime/node-middleware.mjs +7 -6
  145. package/dist/presets/node/runtime/node-server.mjs +34 -24
  146. package/dist/presets/standard/runtime/server.d.mts +1 -3
  147. package/dist/presets/standard/runtime/server.mjs +1 -3
  148. package/dist/presets/stormkit/runtime/stormkit.d.mts +13 -13
  149. package/dist/presets/stormkit/runtime/stormkit.mjs +20 -20
  150. package/dist/presets/vercel/runtime/vercel.d.mts +3 -3
  151. package/dist/presets/vercel/runtime/vercel.mjs +15 -14
  152. package/dist/presets/winterjs/runtime/winterjs.d.mts +2 -0
  153. package/dist/presets/winterjs/runtime/winterjs.mjs +72 -68
  154. package/dist/presets/zeabur/runtime/zeabur.d.mts +1 -1
  155. package/dist/runtime/index.d.mts +13 -2
  156. package/dist/runtime/index.mjs +13 -8
  157. package/dist/runtime/internal/app.d.mts +3 -1
  158. package/dist/runtime/internal/app.mjs +179 -140
  159. package/dist/runtime/internal/cache.d.mts +10 -4
  160. package/dist/runtime/internal/cache.mjs +247 -216
  161. package/dist/runtime/internal/context.d.mts +9 -9
  162. package/dist/runtime/internal/context.mjs +17 -10
  163. package/dist/runtime/internal/database.mjs +8 -10
  164. package/dist/runtime/internal/error/dev.d.mts +5 -4
  165. package/dist/runtime/internal/error/dev.mjs +106 -105
  166. package/dist/runtime/internal/error/prod.d.mts +5 -4
  167. package/dist/runtime/internal/error/prod.mjs +51 -59
  168. package/dist/runtime/internal/error/utils.d.mts +4 -4
  169. package/dist/runtime/internal/error/utils.mjs +1 -1
  170. package/dist/runtime/internal/index.d.mts +2 -0
  171. package/dist/runtime/internal/index.mjs +2 -0
  172. package/dist/runtime/internal/lib/http-graceful-shutdown.d.mts +14 -14
  173. package/dist/runtime/internal/lib/http-graceful-shutdown.mjs +248 -209
  174. package/dist/runtime/internal/meta.d.mts +1 -1
  175. package/dist/runtime/internal/meta.mjs +1 -1
  176. package/dist/runtime/internal/plugin.d.mts +2 -2
  177. package/dist/runtime/internal/plugin.mjs +1 -1
  178. package/dist/runtime/internal/renderer.mjs +40 -32
  179. package/dist/runtime/internal/route-rules.d.mts +8 -8
  180. package/dist/runtime/internal/route-rules.mjs +53 -51
  181. package/dist/runtime/internal/routes/dev-tasks.d.mts +1 -2
  182. package/dist/runtime/internal/routes/dev-tasks.mjs +15 -17
  183. package/dist/runtime/internal/routes/openapi.d.mts +1 -0
  184. package/dist/runtime/internal/routes/openapi.mjs +81 -87
  185. package/dist/runtime/internal/routes/renderer-template.d.mts +1 -1
  186. package/dist/runtime/internal/routes/renderer-template.dev.d.mts +1 -2
  187. package/dist/runtime/internal/routes/renderer-template.dev.mjs +10 -17
  188. package/dist/runtime/internal/routes/renderer-template.mjs +1 -1
  189. package/dist/runtime/internal/routes/scalar.d.mts +1 -0
  190. package/dist/runtime/internal/routes/scalar.mjs +22 -23
  191. package/dist/runtime/internal/routes/swagger.d.mts +1 -0
  192. package/dist/runtime/internal/routes/swagger.mjs +9 -11
  193. package/dist/runtime/internal/runtime-config.d.mts +4 -4
  194. package/dist/runtime/internal/runtime-config.mjs +40 -35
  195. package/dist/runtime/internal/shutdown.d.mts +2 -8
  196. package/dist/runtime/internal/shutdown.mjs +32 -30
  197. package/dist/runtime/internal/static.mjs +63 -74
  198. package/dist/runtime/internal/storage.mjs +2 -2
  199. package/dist/runtime/internal/task.d.mts +6 -6
  200. package/dist/runtime/internal/task.mjs +56 -60
  201. package/dist/runtime/internal/utils.d.mts +1 -1
  202. package/dist/runtime/internal/utils.mjs +4 -10
  203. package/dist/types/index.d.mts +2594 -2286
  204. package/dist/types/index.mjs +1 -1
  205. package/dist/vite.d.mts +56 -47
  206. package/dist/vite.mjs +55 -68
  207. package/lib/index.d.mts +1 -0
  208. package/lib/index.mjs +1 -0
  209. package/lib/runtime/meta.mjs +35 -0
  210. package/package.json +49 -50
  211. package/dist/_chunks/app.mjs +0 -19797
  212. package/dist/_chunks/build.mjs +0 -84
  213. package/dist/_chunks/build2.mjs +0 -318
  214. package/dist/_chunks/build3.mjs +0 -6452
  215. package/dist/_chunks/detect-acorn.mjs +0 -503
  216. package/dist/_chunks/index.mjs +0 -22242
  217. package/dist/_chunks/index2.mjs +0 -297
  218. package/dist/_chunks/index3.mjs +0 -1058
  219. package/dist/_chunks/index4.mjs +0 -1206
  220. package/dist/_chunks/info.mjs +0 -11157
  221. package/dist/_chunks/json5.mjs +0 -68
  222. package/dist/_chunks/jsonc.mjs +0 -51
  223. package/dist/_chunks/pathe.M-eThtNZ.mjs +0 -204
  224. package/dist/_chunks/plugin.mjs +0 -960
  225. package/dist/_chunks/server.mjs +0 -254
  226. package/dist/_chunks/snapshot.mjs +0 -284
  227. package/dist/_chunks/toml.mjs +0 -259
  228. package/dist/_chunks/yaml.mjs +0 -86
  229. package/dist/cli/build.mjs +0 -54
  230. package/dist/cli/common.mjs +0 -13
  231. package/dist/cli/dev.mjs +0 -95
  232. package/dist/cli/index2.mjs +0 -17
  233. package/dist/cli/list.mjs +0 -34
  234. package/dist/cli/prepare.mjs +0 -24
  235. package/dist/cli/run.mjs +0 -60
  236. package/dist/index.d.mts +0 -52
  237. package/dist/index.mjs +0 -55
  238. package/dist/node_modules/klona/dist/index.mjs +0 -81
  239. package/dist/node_modules/klona/full/index.mjs +0 -53
  240. package/dist/node_modules/klona/package.json +0 -74
  241. package/dist/node_modules/std-env/dist/index.mjs +0 -1
  242. package/dist/node_modules/std-env/package.json +0 -46
  243. package/dist/presets.mjs +0 -2460
  244. package/dist/runtime/internal/debug.d.mts +0 -2
  245. package/dist/runtime/internal/debug.mjs +0 -5
  246. package/dist/runtime/internal/empty.d.mts +0 -0
  247. package/dist/runtime/internal/vite/dev-entry.d.mts +0 -1
  248. package/dist/runtime/internal/vite/dev-worker.d.mts +0 -1
  249. package/dist/runtime/internal/vite/prod-setup.d.mts +0 -4
  250. package/dist/runtime/internal/vite/ssr-renderer.d.mts +0 -4
  251. package/lib/runtime-meta.mjs +0 -38
  252. /package/lib/{runtime-meta.d.mts → runtime/meta.d.mts} +0 -0
@@ -1 +1 @@
1
-
1
+ export { };
package/dist/vite.d.mts CHANGED
@@ -1,59 +1,68 @@
1
- import { PluginOption } from 'vite';
2
- import { NitroConfig, Nitro } from 'nitro/types';
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
- interface UserConfig {
6
- /**
7
- * Nitro Vite Plugin options.
8
- */
9
- nitro?: NitroConfig;
10
- }
9
+ interface UserConfig {
10
+ /**
11
+ * Nitro Vite Plugin options.
12
+ */
13
+ nitro?: NitroConfig;
14
+ }
11
15
  }
12
16
  interface NitroPluginConfig {
13
- /** Custom Nitro config */
14
- config?: NitroConfig;
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
- * Fetchable service environments automatically created by the plugin.
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
- services?: Record<string, ServiceConfig>;
34
+ virtualBundle?: boolean;
21
35
  /**
22
- * @internal Pre-initialized Nitro instance.
36
+ * @experimental Enable `?assets` import proposed by https://github.com/vitejs/vite/discussions/20913
37
+ * @default true
23
38
  */
24
- _nitro?: Nitro;
25
- experimental?: {
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
- * Path to the service entrypoint file.
36
- *
37
- * Services should export a web standard fetch handler function.
38
- *
39
- * Example:
40
- * ```ts
41
- * export default async (req: Request) => {
42
- * return Response.json({ message: "Hello from service!" });
43
- * };
44
- * ```
45
- */
46
- entry: string;
47
- /**
48
- * Service route.
49
- *
50
- * - If `route` is not set, services are only accessible via `fetch("<url>", { viteEnv: "<name>" })`.
51
- * - `ssr` service is special and defaults to `"/**"` route, meaning it will handle all requests.
52
- */
53
- route?: string;
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
- export { n as nitro } from './_chunks/plugin.mjs';
2
- import './_chunks/index.mjs';
3
- import 'consola';
4
- import 'hookable';
5
- import 'nitro/runtime/meta';
6
- import 'node:fs';
7
- import 'node:fs/promises';
8
- import 'node:url';
9
- import 'node:os';
10
- import 'node:path';
11
- import 'node:assert';
12
- import 'node:process';
13
- import 'node:v8';
14
- import 'node:util';
15
- import 'jiti';
16
- import 'destr';
17
- import 'defu';
18
- import './_chunks/pathe.M-eThtNZ.mjs';
19
- import 'fs';
20
- import 'path';
21
- import 'os';
22
- import 'crypto';
23
- import './_chunks/app.mjs';
24
- import 'node:worker_threads';
25
- import 'std-env';
26
- import 'fs/promises';
27
- import 'events';
28
- import 'node:stream';
29
- import 'h3';
30
- import 'url';
31
- import 'tty';
32
- import 'util';
33
- import 'stream';
34
- import 'ufo';
35
- import 'node:http';
36
- import 'node:https';
37
- import 'node:events';
38
- import 'undici';
39
- import 'youch-core';
40
- import 'youch';
41
- import 'source-map';
42
- import 'srvx';
43
- import 'klona/full';
44
- import 'node:module';
45
- import 'ofetch';
46
- import 'klona';
47
- import 'unstorage';
48
- import 'ohash';
49
- import 'scule';
50
- import 'module';
51
- import 'consola/utils';
52
- import 'node:zlib';
53
- import 'nitro/meta';
54
- import 'srvx/node';
55
- import './_chunks/index2.mjs';
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 };
@@ -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-20251010-091516-7cafddba",
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
- ".": "./dist/index.mjs",
12
+ "./builder": "./dist/builder.mjs",
12
13
  "./config": "./lib/config.mjs",
13
- "./types": "./dist/types/index.d.mts",
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-meta.mjs",
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 && unbuild",
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": "pnpm jiti scripts/gen-presets.ts",
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": "jiti ./src/cli/index.ts",
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": "unbuild --stub",
44
+ "stub": "obuild --stub",
44
45
  "test": "pnpm lint && pnpm vitest run",
45
- "test:fixture:types": "pnpm stub && jiti ./test/scripts/gen-fixture-types.ts && cd test/fixture && tsc --noEmit",
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.10",
60
- "fetchdts": "^0.1.7",
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.1",
64
- "ofetch": "^1.4.1",
62
+ "nf3": "^0.1.5",
63
+ "ofetch": "^2.0.0-alpha.3",
65
64
  "ohash": "^2.0.11",
66
- "rendu": "^0.0.6",
67
- "rollup": "^4.52.4",
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.21",
71
- "unstorage": "2.0.0-alpha.3"
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.20251008.0",
74
+ "@cloudflare/workers-types": "^4.20251014.0",
77
75
  "@deno/types": "^0.0.1",
78
- "@netlify/edge-functions": "^2.18.2",
79
- "@netlify/functions": "^4.2.7",
80
- "@rollup/plugin-alias": "^5.1.1",
81
- "@rollup/plugin-commonjs": "^28.0.6",
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.2",
85
- "@rollup/plugin-replace": "^6.0.2",
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.37.0",
88
- "@types/archiver": "^6.0.3",
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.16",
94
- "@types/node": "^24.7.0",
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": "^1.15.9",
95
+ "@types/serve-static": "^2.2.0",
98
96
  "@types/xml2js": "^0.4.14",
99
- "@vitest/coverage-v8": "^3.2.4",
97
+ "@vitest/coverage-v8": "^4.0.5",
100
98
  "automd": "^0.4.2",
101
- "c12": "^3.3.0",
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.37.0",
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": "^5.5.3",
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.19",
127
- "magicast": "^0.3.5",
125
+ "magic-string": "^0.30.21",
128
126
  "mime": "^4.1.0",
129
- "miniflare": "^4.20251004.0",
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
- "rolldown": "1.0.0-beta.42",
138
- "rou3": "^0.7.7",
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.9.0",
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.4.1",
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": "^3.2.4",
157
- "wrangler": "^4.42.1",
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": {