nitro-nightly 4.0.0-20251010-091516-7cafddba → 4.0.0-20251030-091344-d4418b98

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 (195) hide show
  1. package/dist/{_chunks/build2.mjs → _build/build.mjs} +108 -58
  2. package/dist/_build/build2.mjs +556 -0
  3. package/dist/_build/info.mjs +1002 -0
  4. package/dist/_build/prepare.mjs +1511 -0
  5. package/dist/_build/snapshot.mjs +185 -0
  6. package/dist/{_chunks/plugin.mjs → _build/vite.mjs} +295 -296
  7. package/dist/_build/vite2.mjs +149 -0
  8. package/dist/_chunks/_deps/@jridgewell/gen-mapping.mjs +189 -0
  9. package/dist/_chunks/_deps/@jridgewell/remapping.mjs +137 -0
  10. package/dist/_chunks/_deps/@jridgewell/resolve-uri.mjs +231 -0
  11. package/dist/_chunks/_deps/@jridgewell/sourcemap-codec.mjs +173 -0
  12. package/dist/_chunks/_deps/@jridgewell/trace-mapping.mjs +170 -0
  13. package/dist/_chunks/_deps/@pi0/vite-plugin-fullstack.mjs +575 -0
  14. package/dist/_chunks/_deps/@rollup/plugin-alias.mjs +89 -0
  15. package/dist/_chunks/_deps/@rollup/plugin-commonjs.mjs +2376 -0
  16. package/dist/_chunks/{index2.mjs → _deps/@rollup/plugin-inject.mjs} +5 -90
  17. package/dist/_chunks/_deps/@rollup/plugin-json.mjs +37 -0
  18. package/dist/_chunks/_deps/@rollup/plugin-node-resolve.mjs +1386 -0
  19. package/dist/_chunks/_deps/@rollup/plugin-replace.mjs +133 -0
  20. package/dist/_chunks/_deps/@rollup/pluginutils.mjs +346 -0
  21. package/dist/_chunks/_deps/acorn.mjs +6225 -0
  22. package/dist/_chunks/_deps/c12.mjs +510 -0
  23. package/dist/_chunks/_deps/chokidar.mjs +1428 -0
  24. package/dist/_chunks/_deps/citty.mjs +460 -0
  25. package/dist/_chunks/_deps/commondir.mjs +77 -0
  26. package/dist/_chunks/_deps/compatx.mjs +76 -0
  27. package/dist/_chunks/_deps/confbox.mjs +300 -0
  28. package/dist/_chunks/_deps/debug.mjs +885 -0
  29. package/dist/_chunks/_deps/deepmerge.mjs +147 -0
  30. package/dist/_chunks/_deps/depd.mjs +550 -0
  31. package/dist/_chunks/_deps/dot-prop.mjs +282 -0
  32. package/dist/_chunks/_deps/dotenv.mjs +555 -0
  33. package/dist/_chunks/_deps/duplexer.mjs +1 -0
  34. package/dist/_chunks/_deps/ee-first.mjs +104 -0
  35. package/dist/_chunks/_deps/encodeurl.mjs +69 -0
  36. package/dist/_chunks/_deps/escape-html.mjs +87 -0
  37. package/dist/_chunks/_deps/escape-string-regexp.mjs +13 -0
  38. package/dist/_chunks/_deps/estree-walker.mjs +433 -0
  39. package/dist/_chunks/_deps/etag.mjs +147 -0
  40. package/dist/_chunks/_deps/exsolve.mjs +1416 -0
  41. package/dist/_chunks/_deps/fdir.mjs +569 -0
  42. package/dist/_chunks/_deps/fresh.mjs +145 -0
  43. package/dist/_chunks/_deps/function-bind.mjs +106 -0
  44. package/dist/_chunks/{index4.mjs → _deps/giget.mjs} +21 -776
  45. package/dist/_chunks/_deps/gzip-size.mjs +19 -0
  46. package/dist/_chunks/_deps/hasown.mjs +19 -0
  47. package/dist/_chunks/_deps/http-errors.mjs +307 -0
  48. package/dist/_chunks/_deps/httpxy.mjs +580 -0
  49. package/dist/_chunks/_deps/inherits.mjs +57 -0
  50. package/dist/_chunks/_deps/is-core-module.mjs +596 -0
  51. package/dist/_chunks/_deps/is-module.mjs +25 -0
  52. package/dist/_chunks/_deps/is-reference.mjs +31 -0
  53. package/dist/_chunks/_deps/js-tokens.mjs +411 -0
  54. package/dist/_chunks/_deps/klona.mjs +137 -0
  55. package/dist/_chunks/_deps/knitwork.mjs +172 -0
  56. package/dist/_chunks/_deps/local-pkg.mjs +163 -0
  57. package/dist/_chunks/_deps/magic-string.mjs +1296 -0
  58. package/dist/_chunks/_deps/mime-db.mjs +11685 -0
  59. package/dist/_chunks/_deps/mime-types.mjs +287 -0
  60. package/dist/_chunks/_deps/mime.mjs +1172 -0
  61. package/dist/_chunks/_deps/mlly.mjs +2413 -0
  62. package/dist/_chunks/_deps/ms.mjs +172 -0
  63. package/dist/_chunks/_deps/node-fetch-native.mjs +3 -0
  64. package/dist/_chunks/_deps/nypm.mjs +219 -0
  65. package/dist/_chunks/_deps/on-finished.mjs +246 -0
  66. package/dist/_chunks/_deps/parseurl.mjs +168 -0
  67. package/dist/_chunks/_deps/path-parse.mjs +85 -0
  68. package/dist/_chunks/{pathe.M-eThtNZ.mjs → _deps/pathe.mjs} +48 -1
  69. package/dist/_chunks/_deps/perfect-debounce.mjs +88 -0
  70. package/dist/_chunks/_deps/picomatch.mjs +2144 -0
  71. package/dist/_chunks/_deps/pkg-types.mjs +247 -0
  72. package/dist/_chunks/{snapshot.mjs → _deps/pretty-bytes.mjs} +1 -105
  73. package/dist/_chunks/_deps/quansync.mjs +99 -0
  74. package/dist/_chunks/_deps/range-parser.mjs +171 -0
  75. package/dist/_chunks/_deps/rc9.mjs +219 -0
  76. package/dist/_chunks/_deps/readdirp.mjs +245 -0
  77. package/dist/_chunks/_deps/resolve.mjs +1260 -0
  78. package/dist/_chunks/_deps/rou3.mjs +326 -0
  79. package/dist/_chunks/_deps/send.mjs +1022 -0
  80. package/dist/_chunks/_deps/serve-static.mjs +228 -0
  81. package/dist/_chunks/_deps/setprototypeof.mjs +26 -0
  82. package/dist/_chunks/_deps/statuses.mjs +457 -0
  83. package/dist/_chunks/_deps/std-env.mjs +3 -0
  84. package/dist/_chunks/_deps/strip-literal.mjs +67 -0
  85. package/dist/_chunks/_deps/supports-color.mjs +44 -0
  86. package/dist/_chunks/_deps/tinyexec.mjs +552 -0
  87. package/dist/_chunks/_deps/tinyglobby.mjs +293 -0
  88. package/dist/_chunks/_deps/toidentifier.mjs +41 -0
  89. package/dist/_chunks/_deps/ultrahtml.mjs +3 -0
  90. package/dist/_chunks/_deps/unimport.mjs +2267 -0
  91. package/dist/_chunks/_deps/unplugin-utils.mjs +65 -0
  92. package/dist/_chunks/_deps/unplugin.mjs +1294 -0
  93. package/dist/_chunks/_deps/untyped.mjs +375 -0
  94. package/dist/_chunks/{info.mjs → _deps/unwasm.mjs} +8 -4206
  95. package/dist/_chunks/_deps/webpack-virtual-modules.mjs +360 -0
  96. package/dist/_chunks/_presets/_all.mjs +59 -0
  97. package/dist/_chunks/_presets/_nitro.mjs +74 -0
  98. package/dist/_chunks/_presets/_resolve.mjs +64 -0
  99. package/dist/_chunks/_presets/_static.mjs +69 -0
  100. package/dist/_chunks/_presets/_types.mjs +3 -0
  101. package/dist/_chunks/_presets/_utils.mjs +31 -0
  102. package/dist/_chunks/_presets/alwaysdata.mjs +17 -0
  103. package/dist/_chunks/_presets/aws-amplify.mjs +111 -0
  104. package/dist/_chunks/_presets/aws-lambda.mjs +23 -0
  105. package/dist/_chunks/_presets/azure.mjs +162 -0
  106. package/dist/_chunks/_presets/bun.mjs +19 -0
  107. package/dist/_chunks/_presets/cleavr.mjs +15 -0
  108. package/dist/_chunks/_presets/cloudflare.mjs +608 -0
  109. package/dist/_chunks/_presets/deno.mjs +196 -0
  110. package/dist/_chunks/_presets/digitalocean.mjs +14 -0
  111. package/dist/_chunks/_presets/firebase.mjs +47 -0
  112. package/dist/_chunks/_presets/flightcontrol.mjs +14 -0
  113. package/dist/_chunks/_presets/genezio.mjs +13 -0
  114. package/dist/_chunks/_presets/heroku.mjs +14 -0
  115. package/dist/_chunks/_presets/iis.mjs +194 -0
  116. package/dist/_chunks/_presets/index.mjs +62 -0
  117. package/dist/_chunks/_presets/koyeb.mjs +14 -0
  118. package/dist/_chunks/_presets/netlify.mjs +241 -0
  119. package/dist/_chunks/_presets/node.mjs +54 -0
  120. package/dist/_chunks/_presets/platform.mjs +14 -0
  121. package/dist/_chunks/_presets/render.mjs +14 -0
  122. package/dist/_chunks/_presets/standard.mjs +23 -0
  123. package/dist/_chunks/_presets/stormkit.mjs +18 -0
  124. package/dist/_chunks/_presets/vercel.mjs +375 -0
  125. package/dist/_chunks/_presets/winterjs.mjs +22 -0
  126. package/dist/_chunks/_presets/zeabur.mjs +69 -0
  127. package/dist/_chunks/_presets/zerops.mjs +27 -0
  128. package/dist/_chunks/app.mjs +9 -19206
  129. package/dist/_chunks/{index3.mjs → builder.mjs} +560 -970
  130. package/dist/_chunks/server.mjs +6 -4
  131. package/dist/{cli → _cli}/build.mjs +3 -8
  132. package/dist/{cli → _cli}/dev.mjs +38 -12
  133. package/dist/{cli/index2.mjs → _cli/index.mjs} +1 -2
  134. package/dist/{cli → _cli}/list.mjs +3 -4
  135. package/dist/{cli → _cli}/prepare.mjs +3 -4
  136. package/dist/{cli → _cli}/run.mjs +3 -4
  137. package/dist/{index.d.mts → builder.d.mts} +11 -11
  138. package/dist/builder.mjs +117 -0
  139. package/dist/cli/index.mjs +7 -464
  140. package/dist/node_modules/@speed-highlight/core/dist/index.js +1 -1
  141. package/dist/node_modules/@speed-highlight/core/dist/terminal.js +1 -1
  142. package/dist/node_modules/@speed-highlight/core/package.json +7 -3
  143. package/dist/node_modules/cookie-es/dist/index.mjs +262 -0
  144. package/dist/node_modules/cookie-es/package.json +37 -0
  145. package/dist/node_modules/hookable/dist/index.mjs +243 -266
  146. package/dist/node_modules/hookable/package.json +29 -26
  147. package/dist/node_modules/rendu/dist/index.mjs +380 -0
  148. package/dist/node_modules/rendu/package.json +47 -0
  149. package/dist/presets/_nitro/runtime/nitro-dev.mjs +4 -7
  150. package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +5 -4
  151. package/dist/presets/azure/runtime/azure-swa.mjs +1 -1
  152. package/dist/presets/cloudflare/runtime/_module-handler.mjs +7 -6
  153. package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +4 -5
  154. package/dist/presets/cloudflare/runtime/plugin.dev.mjs +7 -10
  155. package/dist/presets/cloudflare/runtime/shims/workers.dev.d.mts +21 -0
  156. package/dist/presets/cloudflare/runtime/shims/workers.dev.mjs +27 -0
  157. package/dist/presets/node/runtime/node-server.mjs +1 -1
  158. package/dist/runtime/index.d.mts +1 -1
  159. package/dist/runtime/index.mjs +1 -1
  160. package/dist/runtime/internal/app.d.mts +3 -1
  161. package/dist/runtime/internal/app.mjs +90 -64
  162. package/dist/runtime/internal/error/prod.d.mts +3 -2
  163. package/dist/runtime/internal/error/prod.mjs +9 -13
  164. package/dist/runtime/internal/renderer.mjs +4 -4
  165. package/dist/runtime/internal/routes/dev-tasks.d.mts +30 -2
  166. package/dist/runtime/internal/shutdown.d.mts +1 -2
  167. package/dist/runtime/internal/shutdown.mjs +3 -2
  168. package/dist/runtime/internal/task.mjs +1 -2
  169. package/dist/types/index.d.mts +1603 -10
  170. package/dist/vite.d.mts +5 -0
  171. package/dist/vite.mjs +94 -30
  172. package/lib/index.mjs +1 -0
  173. package/lib/indexd.mts +1 -0
  174. package/lib/runtime/meta.mjs +35 -0
  175. package/package.json +40 -41
  176. package/dist/_chunks/build.mjs +0 -84
  177. package/dist/_chunks/build3.mjs +0 -6452
  178. package/dist/_chunks/detect-acorn.mjs +0 -503
  179. package/dist/_chunks/index.mjs +0 -22242
  180. package/dist/_chunks/json5.mjs +0 -68
  181. package/dist/_chunks/jsonc.mjs +0 -51
  182. package/dist/_chunks/toml.mjs +0 -259
  183. package/dist/_chunks/yaml.mjs +0 -86
  184. package/dist/index.mjs +0 -55
  185. package/dist/node_modules/klona/dist/index.mjs +0 -81
  186. package/dist/node_modules/klona/full/index.mjs +0 -53
  187. package/dist/node_modules/klona/package.json +0 -74
  188. package/dist/node_modules/std-env/dist/index.mjs +0 -1
  189. package/dist/node_modules/std-env/package.json +0 -46
  190. package/dist/presets.mjs +0 -2460
  191. package/dist/runtime/internal/debug.d.mts +0 -2
  192. package/dist/runtime/internal/debug.mjs +0 -5
  193. package/lib/runtime-meta.mjs +0 -38
  194. /package/dist/{cli → _cli}/common.mjs +0 -0
  195. /package/lib/{runtime-meta.d.mts → runtime/meta.d.mts} +0 -0
package/dist/vite.d.mts CHANGED
@@ -28,6 +28,11 @@ interface NitroPluginConfig {
28
28
  * @note This is unsafe if plugins rely on temporary files on the filesystem.
29
29
  */
30
30
  virtualBundle?: boolean;
31
+ /**
32
+ * @experimental Enable `?assets` import proposed by https://github.com/vitejs/vite/discussions/20913
33
+ * @default true
34
+ */
35
+ assetsImport?: boolean;
31
36
  };
32
37
  }
33
38
  interface ServiceConfig {
package/dist/vite.mjs CHANGED
@@ -1,68 +1,132 @@
1
- export { n as nitro } from './_chunks/plugin.mjs';
2
- import './_chunks/index.mjs';
1
+ export { n as nitro } from './_build/vite.mjs';
2
+ import './_build/prepare.mjs';
3
3
  import 'consola';
4
4
  import 'hookable';
5
- import 'nitro/runtime/meta';
5
+ import './_chunks/_deps/c12.mjs';
6
6
  import 'node:fs';
7
7
  import 'node:fs/promises';
8
8
  import 'node:url';
9
9
  import 'node:os';
10
+ import './_chunks/_deps/exsolve.mjs';
10
11
  import 'node:path';
11
12
  import 'node:assert';
12
13
  import 'node:process';
13
14
  import 'node:v8';
14
15
  import 'node:util';
15
16
  import 'jiti';
17
+ import './_chunks/_deps/rc9.mjs';
16
18
  import 'destr';
17
19
  import 'defu';
18
- import './_chunks/pathe.M-eThtNZ.mjs';
20
+ import './_chunks/_deps/pkg-types.mjs';
21
+ import './_chunks/_deps/mlly.mjs';
22
+ import './_chunks/_deps/acorn.mjs';
23
+ import 'node:module';
24
+ import 'ufo';
25
+ import './_chunks/_deps/pathe.mjs';
26
+ import './_chunks/_deps/confbox.mjs';
27
+ import './_chunks/_deps/dotenv.mjs';
19
28
  import 'fs';
20
- import 'path';
21
29
  import 'os';
22
30
  import 'crypto';
23
- import './_chunks/app.mjs';
31
+ import 'path';
32
+ import './_chunks/_deps/commondir.mjs';
33
+ import './_chunks/_deps/perfect-debounce.mjs';
34
+ import './_chunks/_deps/compatx.mjs';
35
+ import './_chunks/_deps/klona.mjs';
36
+ import 'nitro/runtime/meta';
37
+ import './_chunks/_deps/std-env.mjs';
38
+ import './_chunks/_deps/escape-string-regexp.mjs';
39
+ import './_chunks/_deps/tinyglobby.mjs';
40
+ import 'url';
41
+ import './_chunks/_deps/fdir.mjs';
42
+ import 'module';
43
+ import './_chunks/_deps/picomatch.mjs';
44
+ import 'ofetch';
45
+ import 'unstorage';
46
+ import './_chunks/_deps/rou3.mjs';
47
+ import 'ohash';
48
+ import './_chunks/_deps/unimport.mjs';
49
+ import 'scule';
50
+ import './_chunks/_deps/magic-string.mjs';
51
+ import './_chunks/_deps/@jridgewell/sourcemap-codec.mjs';
52
+ import './_chunks/_deps/unplugin.mjs';
53
+ import 'node:buffer';
54
+ import './_chunks/_deps/@jridgewell/remapping.mjs';
55
+ import './_chunks/_deps/@jridgewell/trace-mapping.mjs';
56
+ import './_chunks/_deps/@jridgewell/resolve-uri.mjs';
57
+ import './_chunks/_deps/@jridgewell/gen-mapping.mjs';
58
+ import 'node:querystring';
59
+ import './_chunks/_deps/webpack-virtual-modules.mjs';
60
+ import 'constants';
61
+ import './_chunks/_deps/unplugin-utils.mjs';
62
+ import './_chunks/_deps/local-pkg.mjs';
63
+ import './_chunks/_deps/quansync.mjs';
64
+ import './_chunks/_deps/estree-walker.mjs';
65
+ import './_chunks/_deps/strip-literal.mjs';
66
+ import './_chunks/_deps/js-tokens.mjs';
67
+ import 'consola/utils';
68
+ import './_chunks/_deps/dot-prop.mjs';
69
+ import 'node:zlib';
70
+ import './_chunks/_deps/mime.mjs';
24
71
  import 'node:worker_threads';
25
- import 'std-env';
26
- import 'fs/promises';
27
- import 'events';
28
- import 'node:stream';
29
72
  import 'h3';
30
- import 'url';
73
+ import 'undici';
74
+ import 'nitro/meta';
75
+ import 'srvx/node';
76
+ import './_chunks/app.mjs';
77
+ import './_chunks/_deps/serve-static.mjs';
78
+ import './_chunks/_deps/encodeurl.mjs';
79
+ import './_chunks/_deps/escape-html.mjs';
80
+ import './_chunks/_deps/parseurl.mjs';
81
+ import './_chunks/_deps/send.mjs';
82
+ import './_chunks/_deps/http-errors.mjs';
83
+ import './_chunks/_deps/depd.mjs';
84
+ import './_chunks/_deps/setprototypeof.mjs';
85
+ import './_chunks/_deps/statuses.mjs';
86
+ import './_chunks/_deps/inherits.mjs';
87
+ import './_chunks/_deps/toidentifier.mjs';
88
+ import './_chunks/_deps/debug.mjs';
31
89
  import 'tty';
32
90
  import 'util';
91
+ import './_chunks/_deps/ms.mjs';
92
+ import './_chunks/_deps/supports-color.mjs';
93
+ import './_chunks/_deps/etag.mjs';
94
+ import './_chunks/_deps/fresh.mjs';
95
+ import './_chunks/_deps/mime-types.mjs';
96
+ import './_chunks/_deps/mime-db.mjs';
97
+ import './_chunks/_deps/on-finished.mjs';
98
+ import './_chunks/_deps/ee-first.mjs';
99
+ import './_chunks/_deps/range-parser.mjs';
33
100
  import 'stream';
34
- import 'ufo';
101
+ import './_chunks/_deps/httpxy.mjs';
35
102
  import 'node:http';
36
103
  import 'node:https';
37
104
  import 'node:events';
38
- import 'undici';
39
105
  import 'youch-core';
40
106
  import 'youch';
41
107
  import 'source-map';
42
108
  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';
109
+ import './_chunks/_deps/@rollup/plugin-alias.mjs';
110
+ import './_chunks/_deps/@rollup/plugin-inject.mjs';
111
+ import './_chunks/_deps/@rollup/pluginutils.mjs';
112
+ import './_build/info.mjs';
113
+ import './_chunks/_deps/@rollup/plugin-replace.mjs';
57
114
  import 'unenv';
58
- import 'node:buffer';
59
- import 'node:querystring';
60
- import 'constants';
115
+ import './_chunks/_deps/unwasm.mjs';
61
116
  import 'node:crypto';
117
+ import './_chunks/_deps/knitwork.mjs';
62
118
  import 'db0';
63
119
  import 'esbuild';
64
120
  import 'nf3';
65
121
  import 'rendu';
122
+ import './_chunks/_presets/_types.mjs';
66
123
  import 'vite';
124
+ import './_chunks/_deps/chokidar.mjs';
125
+ import 'fs/promises';
126
+ import 'events';
127
+ import './_chunks/_deps/readdirp.mjs';
128
+ import 'node:stream';
67
129
  import 'get-port-please';
68
130
  import 'node:child_process';
131
+ import './_chunks/_deps/@pi0/vite-plugin-fullstack.mjs';
132
+ import 'node:assert/strict';
package/lib/index.mjs ADDED
@@ -0,0 +1 @@
1
+ // reserved for "nitro" import
package/lib/indexd.mts 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,20 +1,21 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "4.0.0-20251010-091516-7cafddba",
3
+ "version": "4.0.0-20251030-091344-d4418b98",
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
14
  "./types": "./dist/types/index.d.mts",
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",
@@ -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,14 +118,13 @@
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",
131
129
  "pathe": "^2.0.3",
132
130
  "perfect-debounce": "^2.0.0",
@@ -134,14 +132,15 @@
134
132
  "prettier": "^3.6.2",
135
133
  "pretty-bytes": "^7.1.0",
136
134
  "react": "^19.2.0",
137
- "rolldown": "1.0.0-beta.42",
138
- "rou3": "^0.7.7",
135
+ "rendu": "^0.0.7",
136
+ "rolldown": "1.0.0-beta.45",
137
+ "rou3": "^0.7.9",
139
138
  "scule": "^1.3.0",
140
139
  "semver": "^7.7.3",
141
140
  "serve-placeholder": "^2.0.2",
142
141
  "serve-static": "^2.2.0",
143
142
  "source-map": "^0.7.6",
144
- "std-env": "^3.9.0",
143
+ "std-env": "^3.10.0",
145
144
  "tinyglobby": "^0.2.15",
146
145
  "typescript": "^5.9.3",
147
146
  "ufo": "^1.6.1",
@@ -149,14 +148,14 @@
149
148
  "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": {
@@ -1,84 +0,0 @@
1
- import { n as nitro } from './plugin.mjs';
2
- import './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 './pathe.M-eThtNZ.mjs';
19
- import 'fs';
20
- import 'path';
21
- import 'os';
22
- import 'crypto';
23
- import './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 './index2.mjs';
56
- import './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';
69
-
70
- async function viteBuild(nitro$1) {
71
- if (nitro$1.options.dev) {
72
- throw new Error(
73
- "Nitro vite builder is not supported in development mode. Please use `vite dev` instead."
74
- );
75
- }
76
- const { createBuilder } = await import('vite');
77
- const builder = await createBuilder({
78
- base: nitro$1.options.rootDir,
79
- plugins: [nitro({ _nitro: nitro$1 })]
80
- });
81
- await builder.buildApp();
82
- }
83
-
84
- export { viteBuild };