nitro-nightly 3.0.1-20251203-124705-dbc1cd2d → 3.0.1-20251204-002632-497db05f

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.
@@ -1683,4 +1683,4 @@ const isPackageListed = quansync(function* (name, cwd$1) {
1683
1683
  const isPackageListedSync = isPackageListed.sync;
1684
1684
 
1685
1685
  //#endregion
1686
- export { findStaticImports as a, parseNodeModulePath as c, resolveModuleExportNames as d, sanitizeFilePath as f, findExports as i, parseStaticImport as l, detectSyntax as n, findTypeExports as o, fileURLToPath$1 as r, lookupNodeModuleSubpath as s, resolveModule as t, resolve$1 as u };
1686
+ export { findTypeExports as a, parseStaticImport as c, sanitizeFilePath as d, findStaticImports as i, resolve$1 as l, detectSyntax as n, lookupNodeModuleSubpath as o, findExports as r, parseNodeModulePath as s, resolveModule as t, resolveModuleExportNames as u };
@@ -155,4 +155,4 @@ function G() {
155
155
  const P = G(), K = P?.name || "";
156
156
 
157
157
  //#endregion
158
- export { p as a, d as i, T as n, a as r, K as t };
158
+ export { d as a, a as i, K as n, p as o, T as r, A as t };
@@ -2,7 +2,7 @@ import { i as __toESM, n as __require, t as __commonJSMin } from "../_chunks/QkU
2
2
  import { C as isAbsolute$1, D as parse$2, O as relative$1, T as normalize$2, b as basename$1, f as readPackageJSON, k as resolve$1, m as resolvePackageJSON, w as join$1, x as dirname$1 } from "./c12.mjs";
3
3
  import { t as MagicString } from "./magic-string.mjs";
4
4
  import { n as parse, t as Parser } from "./acorn.mjs";
5
- import { a as findStaticImports, d as resolveModuleExportNames, i as findExports, l as parseStaticImport, n as detectSyntax, o as findTypeExports, t as resolveModule, u as resolve$2 } from "./local-pkg.mjs";
5
+ import { a as findTypeExports, c as parseStaticImport, i as findStaticImports, l as resolve$2, n as detectSyntax, r as findExports, t as resolveModule, u as resolveModuleExportNames } from "./local-pkg.mjs";
6
6
  import { t as stripLiteral } from "./strip-literal.mjs";
7
7
  import { t as require_picomatch } from "./picomatch.mjs";
8
8
  import { t as glob } from "./tinyglobby.mjs";
@@ -2,9 +2,10 @@ import { b as basename, h as resolveModulePath } from "./c12.mjs";
2
2
  import { t as MagicString } from "./magic-string.mjs";
3
3
  import { a as genString, i as genSafeVariableName, n as genObjectFromRaw, t as genImport } from "./knitwork.mjs";
4
4
  import { existsSync, promises } from "node:fs";
5
+ import { fileURLToPath } from "node:url";
5
6
  import { createHash } from "node:crypto";
6
7
 
7
- //#region node_modules/.pnpm/unwasm@0.5.1/node_modules/unwasm/dist/plugin/index.mjs
8
+ //#region node_modules/.pnpm/unwasm@0.5.2/node_modules/unwasm/dist/plugin/index.mjs
8
9
  var __create = Object.create;
9
10
  var __defProp = Object.defineProperty;
10
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -5779,11 +5780,20 @@ function unwasm(opts) {
5779
5780
  external: true
5780
5781
  };
5781
5782
  if (WASM_ID_RE.test(id)) {
5782
- const r = await this.resolve(id, importer, { skipSelf: true });
5783
- if (r?.id && r.id !== id) return {
5784
- id: r.id.startsWith("file://") ? r.id.slice(7) : r.id,
5783
+ const resolved = await this.resolve(id, importer);
5784
+ if (!resolved?.id) return resolved;
5785
+ let resolvedId = resolved?.id;
5786
+ if (resolvedId && resolvedId.startsWith("file://")) resolvedId = fileURLToPath(resolvedId);
5787
+ return {
5788
+ ...resolved,
5789
+ id: resolvedId,
5785
5790
  external: false,
5786
- moduleSideEffects: false
5791
+ moduleSideEffects: false,
5792
+ resolvedBy: "unwasm",
5793
+ meta: {
5794
+ ...resolved.meta,
5795
+ unwasm: { resolved }
5796
+ }
5787
5797
  };
5788
5798
  }
5789
5799
  }
package/dist/_presets.mjs CHANGED
@@ -1,12 +1,10 @@
1
1
  import "./_chunks/QkUO_zA6.mjs";
2
2
  import { O as relative$1, _ as h, c as findNearestFile, d as readGitConfig, f as readPackageJSON, h as resolveModulePath, k as resolve$1, s as findFile, w as join$1, x as dirname$1 } from "./_libs/c12.mjs";
3
- import "./_libs/acorn.mjs";
4
3
  import { n as gr, t as Q } from "./_libs/confbox.mjs";
5
- import { r as fileURLToPath } from "./_libs/local-pkg.mjs";
6
4
  import "./_libs/fdir.mjs";
7
5
  import { t as glob } from "./_libs/tinyglobby.mjs";
8
6
  import { r as resolveCompatibilityDatesFromEnv, t as formatCompatibilityDate } from "./_libs/compatx.mjs";
9
- import { a as p, r as a, t as K } from "./_libs/std-env.mjs";
7
+ import { i as a, n as K, o as p } from "./_libs/std-env.mjs";
10
8
  import { i as writeFile$2 } from "./_chunks/DJvLZH4H.mjs";
11
9
  import { builtinModules } from "node:module";
12
10
  import consola$1 from "consola";
@@ -635,8 +633,6 @@ async function cloudflareDevModule(nitro) {
635
633
  persistDir,
636
634
  environment: config.environment
637
635
  };
638
- nitro.options.externals.inline = nitro.options.externals.inline || [];
639
- nitro.options.externals.inline.push(fileURLToPath(new URL("runtime/", import.meta.url)));
640
636
  nitro.options.plugins = nitro.options.plugins || [];
641
637
  nitro.options.plugins.unshift(resolveModulePath("./cloudflare/runtime/plugin.dev", {
642
638
  from: presetsDir,
@@ -862,7 +858,6 @@ const denoDeploy = defineNitroPreset({
862
858
  manifest: { deploymentId: process.env.DENO_DEPLOYMENT_ID },
863
859
  exportConditions: ["deno"],
864
860
  node: false,
865
- noExternals: true,
866
861
  serveStatic: "deno",
867
862
  commands: {
868
863
  preview: "",
@@ -2,7 +2,7 @@ import { t as NitroDevApp } from "./_dev.mjs";
2
2
  import { IncomingMessage, OutgoingMessage } from "node:http";
3
3
  import { Duplex } from "node:stream";
4
4
  import { Server, ServerOptions } from "srvx";
5
- import { DevMessageListener, DevRPCHooks, LoadConfigOptions, Nitro, NitroBuildInfo, NitroConfig, NitroOptions, TaskEvent, TaskRunnerOptions } from "nitro/types";
5
+ import { LoadConfigOptions, Nitro, NitroBuildInfo, NitroConfig, NitroOptions, RunnerMessageListener, RunnerRPCHooks, TaskEvent, TaskRunnerOptions } from "nitro/types";
6
6
 
7
7
  //#region src/nitro.d.ts
8
8
  declare function createNitro(config?: NitroConfig, opts?: LoadConfigOptions): Promise<Nitro>;
@@ -33,7 +33,7 @@ declare function getBuildInfo(root: string): Promise<{
33
33
  //#endregion
34
34
  //#region src/dev/server.d.ts
35
35
  declare function createDevServer(nitro: Nitro): NitroDevServer;
36
- declare class NitroDevServer extends NitroDevApp implements DevRPCHooks {
36
+ declare class NitroDevServer extends NitroDevApp implements RunnerRPCHooks {
37
37
  #private;
38
38
  constructor(nitro: Nitro);
39
39
  upgrade(req: IncomingMessage, socket: OutgoingMessage<IncomingMessage> | Duplex, head: any): Promise<any>;
@@ -41,8 +41,8 @@ declare class NitroDevServer extends NitroDevApp implements DevRPCHooks {
41
41
  close(): Promise<void>;
42
42
  reload(): void;
43
43
  sendMessage(message: unknown): void;
44
- onMessage(listener: DevMessageListener): void;
45
- offMessage(listener: DevMessageListener): void;
44
+ onMessage(listener: RunnerMessageListener): void;
45
+ offMessage(listener: RunnerMessageListener): void;
46
46
  }
47
47
  //#endregion
48
48
  //#region src/prerender/prerender.d.ts
package/dist/builder.mjs CHANGED
@@ -5,12 +5,12 @@ import "./_libs/acorn.mjs";
5
5
  import "./_libs/js-tokens.mjs";
6
6
  import "./_libs/unimport.mjs";
7
7
  import "./_libs/fdir.mjs";
8
- import { a as copyPublicAssets, c as loadOptions, i as prepare, n as runTask, o as build, r as prerender, s as createNitro, t as listTasks } from "./_chunks/_yl3G_3Y.mjs";
8
+ import { a as copyPublicAssets, c as loadOptions, i as prepare, n as runTask, o as build, r as prerender, s as createNitro, t as listTasks } from "./_chunks/CvxEFBdh.mjs";
9
9
  import "./_libs/tsconfck.mjs";
10
10
  import "./_chunks/DJvLZH4H.mjs";
11
- import { n as writeTypes } from "./_chunks/XHOrB-Xs.mjs";
11
+ import { n as writeTypes } from "./_chunks/Ddt06bL8.mjs";
12
12
  import "./_libs/mime.mjs";
13
13
  import { t as getBuildInfo } from "./_build/common.mjs";
14
- import { n as createDevServer } from "./_dev.mjs";
14
+ import { n as createDevServer } from "./_chunks/Ddq6HHrM.mjs";
15
15
 
16
16
  export { build, copyPublicAssets, createDevServer, createNitro, getBuildInfo, listTasks, loadOptions, prepare, prerender, runTask, writeTypes };
@@ -2,7 +2,7 @@ import { k as resolve } from "../../_libs/c12.mjs";
2
2
  import "../../_chunks/DJvLZH4H.mjs";
3
3
  import "../../_libs/mime.mjs";
4
4
  import "../../_build/common.mjs";
5
- import { t as NitroDevServer } from "../../_dev.mjs";
5
+ import { t as NitroDevServer } from "../../_chunks/Ddq6HHrM.mjs";
6
6
  import { t as defineCommand } from "../../_libs/citty.mjs";
7
7
  import { t as commonArgs } from "./common.mjs";
8
8
  import { consola } from "consola";
@@ -38,7 +38,7 @@ class EnvRunner {
38
38
  },
39
39
  },
40
40
  new ESModulesEvaluator(),
41
- process.env.DEBUG ? console.debug : undefined
41
+ process.env.NITRO_DEBUG ? console.debug : undefined
42
42
  );
43
43
 
44
44
  this.reload();
@@ -155,11 +155,6 @@ parentPort.on("message", (payload) => {
155
155
 
156
156
  async function reload() {
157
157
  try {
158
- // Apply globals
159
- for (const [key, value] of Object.entries(workerData.globals || {})) {
160
- globalThis[key] = value;
161
- }
162
- // Reload all envs
163
158
  await Promise.all(Object.values(envs).map((env) => env?.reload()));
164
159
  } catch (error) {
165
160
  console.error(error);
@@ -195,6 +190,10 @@ if (workerData.server) {
195
190
  parentPort.on("message", async (message) => {
196
191
  if (message?.type === "full-reload") {
197
192
  await reload();
193
+ } else if (message?.event === "shutdown") {
194
+ server.close(() => {
195
+ parentPort.postMessage({ event: "exit" });
196
+ });
198
197
  }
199
198
  });
200
199
  await listen(server);
@@ -228,6 +227,32 @@ function httpError(status, message) {
228
227
  }
229
228
 
230
229
  async function renderError(req, error) {
230
+ if (req.headers.get("accept")?.includes("application/json")) {
231
+ return new Response(
232
+ JSON.stringify(
233
+ {
234
+ status: error.status || 500,
235
+ name: error.name || "Error",
236
+ message: error.message,
237
+ stack: (error.stack || "")
238
+ .split("\n")
239
+ .splice(1)
240
+ .map((l) => l.trim()),
241
+ },
242
+ null,
243
+ 2
244
+ ),
245
+ {
246
+ status: error.status || 500,
247
+ headers: {
248
+ "Content-Type": "application/json",
249
+ "Cache-Control": "no-store, max-age=0, must-revalidate",
250
+ Pragma: "no-cache",
251
+ Expires: "0",
252
+ },
253
+ }
254
+ );
255
+ }
231
256
  const { Youch } = await import("youch");
232
257
  const youch = new Youch();
233
258
  return new Response(await youch.toHTML(error), {
@@ -1,5 +1,5 @@
1
1
  export declare const version: string;
2
- export declare const pkgDir: string;
3
2
  export declare const runtimeDir: string;
4
3
  export declare const presetsDir: string;
4
+ export declare const pkgDir: string;
5
5
  export declare const runtimeDependencies: string[];
@@ -2,9 +2,9 @@ import { fileURLToPath } from "node:url";
2
2
  import packageJson from "../../package.json" with { type: "json" };
3
3
  export const version = packageJson.version;
4
4
  const resolve = (path) => fileURLToPath(new URL(path, import.meta.url));
5
- export const pkgDir = /* @__PURE__ */ resolve("../../");
6
5
  export const runtimeDir = /* @__PURE__ */ resolve("./");
7
6
  export const presetsDir = /* @__PURE__ */ resolve("../presets/");
7
+ export const pkgDir = /* @__PURE__ */ resolve("../../");
8
8
  export const runtimeDependencies = [
9
9
  "crossws",
10
10
  "croner",
@@ -7,13 +7,12 @@ import { Duplex } from "node:stream";
7
7
  import { ServerRequest, ServerRequest as ServerRequest$1 } from "srvx";
8
8
  import { FetchOptions, FetchRequest, FetchResponse } from "ofetch";
9
9
  import { Preset } from "unenv";
10
- import { JsxOptions, TransformOptions } from "oxc-transform";
11
- import { ExternalsPluginOptions as NodeExternalsOptions } from "nf3";
12
10
  import { ConnectorName } from "db0";
13
11
  import { BuiltinDriverName } from "unstorage";
12
+ import { JsxOptions, TransformOptions } from "oxc-transform";
14
13
  import { MinifyOptions } from "oxc-minify";
15
14
  import { InputOptions, OutputOptions } from "rollup";
16
- import { DevMessageListener as DevMessageListener$1, Nitro as Nitro$1 } from "nitro/types";
15
+ import { Nitro as Nitro$1, RunnerMessageListener as RunnerMessageListener$1 } from "nitro/types";
17
16
  import { RollupCommonJSOptions } from "@rollup/plugin-commonjs";
18
17
  import { C12InputConfig, ConfigWatcher, DotenvOptions, ResolvedConfig, WatchConfigOptions } from "c12";
19
18
  import { ChokidarOptions } from "chokidar";
@@ -27,6 +26,7 @@ import { UnwasmPluginOptions } from "unwasm/plugin";
27
26
  import { Unimport } from "unimport";
28
27
  import { RouterContext } from "rou3";
29
28
  import { RouterCompilerOptions } from "rou3/compiler";
29
+ import { ExternalsPluginOptions as NodeExternalsOptions } from "nf3";
30
30
  import { ProviderName } from "std-env";
31
31
 
32
32
  //#region src/types/fetch/fetch.d.ts
@@ -1858,37 +1858,6 @@ type IntRange<F$1 extends number, T extends number> = Exclude<Enumerate<T>, Enum
1858
1858
  type ExcludeFunctions<G extends Record<string, any>> = Pick<G, { [P in keyof G]: NonNullable<G[P]> extends Function ? never : P }[keyof G]>;
1859
1859
  type DeepPartial<T> = T extends ((...args: never) => any) ? T : T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T;
1860
1860
  //#endregion
1861
- //#region src/types/dev.d.ts
1862
- type FetchHandler = (req: Request) => Promise<Response>;
1863
- type DevMessageListener = (data: unknown) => void;
1864
- type UpgradeHandler = (req: IncomingMessage, socket: OutgoingMessage<IncomingMessage> | Duplex, head: any) => void;
1865
- interface DevRPCHooks {
1866
- sendMessage: (message: unknown) => void;
1867
- onMessage: (listener: DevMessageListener) => void;
1868
- offMessage: (listener: DevMessageListener) => void;
1869
- }
1870
- type WorkerAddress = {
1871
- host: string;
1872
- port: number;
1873
- socketPath?: string;
1874
- };
1875
- interface WorkerHooks {
1876
- onClose?: (worker: DevWorker, cause?: unknown) => void;
1877
- onReady?: (worker: DevWorker, address?: WorkerAddress) => void;
1878
- }
1879
- interface DevWorker extends WorkerHooks, DevRPCHooks {
1880
- readonly ready: boolean;
1881
- readonly closed: boolean;
1882
- fetch: FetchHandler;
1883
- upgrade: UpgradeHandler;
1884
- close(): Promise<void>;
1885
- }
1886
- interface NitroDevServerOptions {
1887
- port: number;
1888
- hostname: string;
1889
- watch: string[];
1890
- }
1891
- //#endregion
1892
1861
  //#region src/types/openapi-ts.d.ts
1893
1862
  /**
1894
1863
  Source: (inlined because of install size concernes)
@@ -2554,10 +2523,9 @@ type NitroErrorHandler = (error: HTTPError, event: HTTPEvent, _: {
2554
2523
  }>;
2555
2524
  }) => MaybePromise<Response | void>;
2556
2525
  //#endregion
2557
- //#region src/dev/worker.d.ts
2558
- interface DevWorkerData {
2526
+ //#region src/runner/node.d.ts
2527
+ interface EnvRunnerData {
2559
2528
  name?: string;
2560
- globals?: Record<string, unknown>;
2561
2529
  [key: string]: unknown;
2562
2530
  }
2563
2531
  //#endregion
@@ -2764,7 +2732,7 @@ interface NitroHooks {
2764
2732
  compiled: (nitro: Nitro) => HookResult;
2765
2733
  "dev:reload": (payload?: {
2766
2734
  entry?: string;
2767
- workerData?: DevWorkerData;
2735
+ workerData?: EnvRunnerData;
2768
2736
  }) => HookResult;
2769
2737
  "dev:start": () => HookResult;
2770
2738
  "dev:error": (cause?: unknown) => HookResult;
@@ -2985,7 +2953,11 @@ interface NitroOptions extends PresetOptions {
2985
2953
  compressPublicAssets: boolean | CompressOptions;
2986
2954
  ignore: string[];
2987
2955
  dev: boolean;
2988
- devServer: NitroDevServerOptions;
2956
+ devServer: {
2957
+ port: number;
2958
+ hostname: string;
2959
+ watch: string[];
2960
+ };
2989
2961
  watchOptions: ChokidarOptions;
2990
2962
  devProxy: Record<string, string | ProxyServerOptions>;
2991
2963
  logging: {
@@ -3040,11 +3012,11 @@ interface NitroOptions extends PresetOptions {
3040
3012
  node: boolean;
3041
3013
  moduleSideEffects: string[];
3042
3014
  oxc?: OXCOptions;
3043
- noExternals: boolean;
3044
- externals: NodeExternalsOptions;
3045
3015
  replace: Record<string, string | ((id: string) => string)>;
3046
3016
  commonJS?: RollupCommonJSOptions;
3047
3017
  exportConditions?: string[];
3018
+ noExternals?: boolean | (string | RegExp)[];
3019
+ traceDeps?: (string | RegExp)[];
3048
3020
  typescript: {
3049
3021
  strict?: boolean;
3050
3022
  generateRuntimeConfigTypes?: boolean;
@@ -3145,6 +3117,32 @@ interface NitroRuntimeConfig {
3145
3117
  [key: string]: any;
3146
3118
  }
3147
3119
  //#endregion
3120
+ //#region src/types/runner.d.ts
3121
+ type FetchHandler = (req: Request) => Promise<Response>;
3122
+ type RunnerMessageListener = (data: unknown) => void;
3123
+ type UpgradeHandler = (req: IncomingMessage, socket: OutgoingMessage<IncomingMessage> | Duplex, head: any) => void;
3124
+ interface RunnerRPCHooks {
3125
+ sendMessage: (message: unknown) => void;
3126
+ onMessage: (listener: RunnerMessageListener) => void;
3127
+ offMessage: (listener: RunnerMessageListener) => void;
3128
+ }
3129
+ type WorkerAddress = {
3130
+ host: string;
3131
+ port: number;
3132
+ socketPath?: string;
3133
+ };
3134
+ interface WorkerHooks {
3135
+ onClose?: (worker: EnvRunner, cause?: unknown) => void;
3136
+ onReady?: (worker: EnvRunner, address?: WorkerAddress) => void;
3137
+ }
3138
+ interface EnvRunner extends WorkerHooks, RunnerRPCHooks {
3139
+ readonly ready: boolean;
3140
+ readonly closed: boolean;
3141
+ fetch: FetchHandler;
3142
+ upgrade?: UpgradeHandler;
3143
+ close(): Promise<void>;
3144
+ }
3145
+ //#endregion
3148
3146
  //#region src/types/global.d.ts
3149
3147
  interface NitroImportMeta {
3150
3148
  dev?: boolean;
@@ -3181,4 +3179,4 @@ declare module "srvx" {
3181
3179
  }
3182
3180
  }
3183
3181
  //#endregion
3184
- export { $Fetch, AssetMeta, AvailableRouterMethod, Base$Fetch, CacheEntry, CacheOptions, CachedEventHandlerOptions, CaptureError, CapturedErrorContext, CompressOptions, DatabaseConnectionConfig, DatabaseConnectionConfigs, DatabaseConnectionName, DevMessageListener, DevRPCHooks, DevWorker, EventHandlerFormat, ExtractedRouteMethod, FetchHandler, H3Event$Fetch, H3EventFetch, HTTPstatus, InternalApi, LoadConfigOptions, MatchedRouteRule, MatchedRouteRules, MatchedRoutes, MiddlewareOf, Nitro, NitroApp, NitroAppPlugin, NitroAsyncContext, NitroBuildInfo, NitroConfig, NitroDevEventHandler, NitroDevServerOptions, NitroDynamicConfig, NitroErrorHandler, NitroEventHandler, NitroFetchOptions, NitroFetchRequest, NitroFrameworkInfo, NitroHooks, NitroImportMeta, NitroModule, NitroModuleInput, type NitroOpenAPIConfig, NitroOptions, NitroPreset, NitroPresetMeta, NitroRouteConfig, NitroRouteMeta, NitroRouteRules, NitroRuntimeConfig, NitroRuntimeConfigApp, NitroRuntimeHooks, NitroTypes, type NodeExternalsOptions, OXCOptions, PrerenderGenerateRoute, PrerenderRoute, PublicAsset, PublicAssetDir, RenderContext, RenderHandler, RenderResponse, ResponseCacheEntry, RollupConfig, RollupVirtualOptions, Serialize, SerializeObject, SerializeTuple, ServerAssetDir, ServerAssetOptions, type ServerRequest, Simplify, StorageMounts, Task, TaskContext, TaskEvent, TaskMeta, TaskPayload, TaskResult, TaskRunnerOptions, TypedInternalResponse, UpgradeHandler, VirtualModule, WorkerAddress, WorkerHooks };
3182
+ export { $Fetch, AssetMeta, AvailableRouterMethod, Base$Fetch, CacheEntry, CacheOptions, CachedEventHandlerOptions, CaptureError, CapturedErrorContext, CompressOptions, DatabaseConnectionConfig, DatabaseConnectionConfigs, DatabaseConnectionName, EnvRunner, EventHandlerFormat, ExtractedRouteMethod, FetchHandler, H3Event$Fetch, H3EventFetch, HTTPstatus, InternalApi, LoadConfigOptions, MatchedRouteRule, MatchedRouteRules, MatchedRoutes, MiddlewareOf, Nitro, NitroApp, NitroAppPlugin, NitroAsyncContext, NitroBuildInfo, NitroConfig, NitroDevEventHandler, NitroDynamicConfig, NitroErrorHandler, NitroEventHandler, NitroFetchOptions, NitroFetchRequest, NitroFrameworkInfo, NitroHooks, NitroImportMeta, NitroModule, NitroModuleInput, type NitroOpenAPIConfig, NitroOptions, NitroPreset, NitroPresetMeta, NitroRouteConfig, NitroRouteMeta, NitroRouteRules, NitroRuntimeConfig, NitroRuntimeConfigApp, NitroRuntimeHooks, NitroTypes, type NodeExternalsOptions, OXCOptions, PrerenderGenerateRoute, PrerenderRoute, PublicAsset, PublicAssetDir, RenderContext, RenderHandler, RenderResponse, ResponseCacheEntry, RollupConfig, RollupVirtualOptions, RunnerMessageListener, RunnerRPCHooks, Serialize, SerializeObject, SerializeTuple, ServerAssetDir, ServerAssetOptions, type ServerRequest, Simplify, StorageMounts, Task, TaskContext, TaskEvent, TaskMeta, TaskPayload, TaskResult, TaskRunnerOptions, TypedInternalResponse, UpgradeHandler, VirtualModule, WorkerAddress, WorkerHooks };
package/dist/vite.mjs CHANGED
@@ -5,20 +5,20 @@ import "./_libs/acorn.mjs";
5
5
  import "./_libs/js-tokens.mjs";
6
6
  import "./_libs/unimport.mjs";
7
7
  import "./_libs/fdir.mjs";
8
- import "./_chunks/_yl3G_3Y.mjs";
8
+ import "./_chunks/CvxEFBdh.mjs";
9
9
  import "./_libs/tsconfck.mjs";
10
10
  import "./_chunks/DJvLZH4H.mjs";
11
- import "./_chunks/XHOrB-Xs.mjs";
11
+ import "./_chunks/Ddt06bL8.mjs";
12
12
  import "./_libs/mime.mjs";
13
13
  import "./_build/common.mjs";
14
- import "./_dev.mjs";
14
+ import "./_chunks/Ddq6HHrM.mjs";
15
15
  import "./_libs/plugin-alias.mjs";
16
16
  import "./_libs/plugin-commonjs.mjs";
17
17
  import "./_libs/plugin-inject.mjs";
18
- import "./_chunks/rU_kdJ2P.mjs";
18
+ import "./_chunks/Dkk4dpNb.mjs";
19
+ import "./_libs/etag.mjs";
19
20
  import "./_libs/remapping.mjs";
20
21
  import "./_libs/plugin-replace.mjs";
21
- import "./_libs/etag.mjs";
22
22
  import { t as nitro } from "./_build/vite.plugin.mjs";
23
23
  import "./_libs/vite-plugin-fullstack.mjs";
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20251203-124705-dbc1cd2d",
3
+ "version": "3.0.1-20251204-002632-497db05f",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",
@@ -49,8 +49,8 @@
49
49
  "release": "pnpm test && pnpm build && changelogen --release --prerelease --push",
50
50
  "stub": "obuild --stub",
51
51
  "test": "pnpm lint && pnpm test:types && pnpm test:rollup && pnpm test:rolldown",
52
- "test:rollup": "NITRO_BUILDER=rollup pnpm vitest",
53
52
  "test:rolldown": "NITRO_BUILDER=rolldown pnpm vitest",
53
+ "test:rollup": "NITRO_BUILDER=rollup pnpm vitest",
54
54
  "test:types": "tsc --noEmit"
55
55
  },
56
56
  "resolutions": {
@@ -63,7 +63,6 @@
63
63
  "db0": "^0.3.4",
64
64
  "h3": "2.0.1-rc.5",
65
65
  "jiti": "^2.6.1",
66
- "nf3": "^0.1.12",
67
66
  "ofetch": "^2.0.0-alpha.3",
68
67
  "ohash": "^2.0.11",
69
68
  "oxc-minify": "^0.101.0",
@@ -129,6 +128,7 @@
129
128
  "mime": "^4.1.0",
130
129
  "miniflare": "^4.20251128.0",
131
130
  "mlly": "^1.8.0",
131
+ "nf3": "^0.1.12",
132
132
  "nypm": "^0.6.2",
133
133
  "obuild": "^0.4.4",
134
134
  "pathe": "^2.0.3",
@@ -156,7 +156,7 @@
156
156
  "unctx": "^2.4.1",
157
157
  "unimport": "^5.5.0",
158
158
  "untyped": "^2.0.0",
159
- "unwasm": "^0.5.1",
159
+ "unwasm": "^0.5.2",
160
160
  "vitest": "^4.0.15",
161
161
  "wrangler": "^4.51.0",
162
162
  "xml2js": "^0.6.2",
@@ -164,12 +164,16 @@
164
164
  "youch-core": "^0.3.3"
165
165
  },
166
166
  "peerDependencies": {
167
+ "nf3": ">=0.2",
167
168
  "rolldown": "*",
168
169
  "rollup": "^4",
169
170
  "vite": "^7",
170
171
  "xml2js": "^0.6.2"
171
172
  },
172
173
  "peerDependenciesMeta": {
174
+ "nf3": {
175
+ "optional": true
176
+ },
173
177
  "rolldown": {
174
178
  "optional": true
175
179
  },