nitro-nightly 3.1.0-20251029-170606-41dbfa8a → 3.1.0-20251029-222602-3be802f2

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.
@@ -166,12 +166,15 @@ const getRolldownConfig = (nitro) => {
166
166
  // "module" is intentionally not supported because of externals
167
167
  conditionNames: nitro.options.exportConditions
168
168
  },
169
- // @ts-expect-error (readonly values)
170
- inject: base.env.inject,
171
- jsx: {
172
- mode: "classic",
173
- factory: nitro.options.esbuild?.options?.jsxFactory,
174
- fragment: nitro.options.esbuild?.options?.jsxFragment
169
+ transform: {
170
+ inject: base.env.inject,
171
+ jsx: {
172
+ runtime: "classic",
173
+ // no auto-import
174
+ pragma: nitro.options.esbuild?.options?.jsxFactory,
175
+ pragmaFrag: nitro.options.esbuild?.options?.jsxFragment,
176
+ development: nitro.options.dev
177
+ }
175
178
  },
176
179
  onwarn(warning, warn) {
177
180
  if (!["CIRCULAR_DEPENDENCY", "EVAL"].includes(warning.code || "") && !warning.message.includes("Unsupported source map comment")) {
@@ -304,7 +304,9 @@ const getRollupConfig = (nitro) => {
304
304
  raw()
305
305
  ],
306
306
  onwarn(warning, rollupWarn) {
307
- if (!["CIRCULAR_DEPENDENCY", "EVAL"].includes(warning.code || "") && !warning.message.includes("Unsupported source map comment")) {
307
+ if (!["EVAL", "CIRCULAR_DEPENDENCY", "THIS_IS_UNDEFINED"].includes(
308
+ warning.code || ""
309
+ ) && !warning.message.includes("Unsupported source map comment")) {
308
310
  rollupWarn(warning);
309
311
  }
310
312
  },
@@ -1284,7 +1284,7 @@ async function createNitro(config = {}, opts = {}) {
1284
1284
  routing: {},
1285
1285
  logger: consola$1.withTag("nitro"),
1286
1286
  scannedHandlers: [],
1287
- close: () => nitro.hooks.callHook("close"),
1287
+ close: () => Promise.resolve(nitro.hooks.callHook("close")),
1288
1288
  storage: void 0,
1289
1289
  async updateConfig(config2) {
1290
1290
  updateNitroConfig(nitro, config2);
@@ -57,7 +57,7 @@ async function shutdown() {
57
57
  server.closeAllConnections?.();
58
58
  await Promise.all([
59
59
  new Promise((resolve) => listener?.close(resolve)),
60
- nitroHooks.callHook("close").catch(console.error)
61
- ]);
60
+ nitroHooks.callHook("close")
61
+ ]).catch(console.error);
62
62
  parentPort?.postMessage({ event: "exit" });
63
63
  }
@@ -98,9 +98,7 @@ function createNitroApp() {
98
98
  if (typeof input === "string" && input.charCodeAt(0) === 47) {
99
99
  return request(input, init);
100
100
  }
101
- if ("_request" in input) {
102
- input = input._request;
103
- }
101
+ input = input._request || input;
104
102
  return nativeFetch(input, init);
105
103
  };
106
104
  const app = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.1.0-20251029-170606-41dbfa8a",
3
+ "version": "3.1.0-20251029-222602-3be802f2",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",