nitropack-nightly 2.12.0-20250704-082153.07efb4e3 → 2.12.0-20250713-204442.4753575e
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/cli/dev.mjs +0 -1
- package/dist/core/index.mjs +44 -28
- package/dist/kit/index.d.mts +1 -1
- package/dist/kit/index.d.ts +1 -1
- package/dist/meta/index.mjs +1 -1
- package/dist/presets/_nitro/nitro-dev.mjs +2 -1
- package/dist/presets/_resolve.d.ts +2 -1
- package/dist/presets/_resolve.mjs +7 -1
- package/dist/presets/cloudflare/wrangler/environment.d.ts +231 -107
- package/dist/shared/{nitro.2TeRLAUU.d.mts → nitro.Befw1Azc.d.mts} +1 -0
- package/dist/shared/{nitro.2TeRLAUU.d.ts → nitro.Befw1Azc.d.ts} +1 -0
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +17 -17
package/dist/cli/dev.mjs
CHANGED
package/dist/core/index.mjs
CHANGED
|
@@ -716,54 +716,65 @@ async function loadOptions(configOverrides = {}, opts = {}) {
|
|
|
716
716
|
return options;
|
|
717
717
|
}
|
|
718
718
|
async function _loadUserConfig(configOverrides = {}, opts = {}) {
|
|
719
|
-
let presetOverride = configOverrides.preset || process.env.NITRO_PRESET || process.env.SERVER_PRESET;
|
|
720
|
-
if (configOverrides.dev) {
|
|
721
|
-
presetOverride = "nitro-dev";
|
|
722
|
-
}
|
|
723
719
|
configOverrides = klona(configOverrides);
|
|
724
720
|
globalThis.defineNitroConfig = globalThis.defineNitroConfig || ((c) => c);
|
|
725
721
|
let compatibilityDate = configOverrides.compatibilityDate || opts.compatibilityDate || (process.env.NITRO_COMPATIBILITY_DATE || process.env.SERVER_COMPATIBILITY_DATE || process.env.COMPATIBILITY_DATE);
|
|
726
722
|
const { resolvePreset } = await import('nitropack/presets');
|
|
723
|
+
let preset = configOverrides.preset || process.env.NITRO_PRESET || process.env.SERVER_PRESET;
|
|
727
724
|
const loadedConfig = await (opts.watch ? watchConfig : loadConfig)({
|
|
728
725
|
name: "nitro",
|
|
729
726
|
cwd: configOverrides.rootDir,
|
|
730
727
|
dotenv: opts.dotenv ?? configOverrides.dev,
|
|
731
728
|
extend: { extendKey: ["extends", "preset"] },
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
729
|
+
defaults: NitroDefaults,
|
|
730
|
+
jitiOptions: {
|
|
731
|
+
alias: {
|
|
732
|
+
nitropack: "nitropack/config",
|
|
733
|
+
"nitropack/config": "nitropack/config"
|
|
734
|
+
}
|
|
735
735
|
},
|
|
736
|
-
async
|
|
737
|
-
const getConf = (key) => configOverrides[key] ??
|
|
736
|
+
async overrides({ rawConfigs }) {
|
|
737
|
+
const getConf = (key) => configOverrides[key] ?? rawConfigs.main?.[key] ?? rawConfigs.rc?.[key] ?? rawConfigs.packageJson?.[key];
|
|
738
738
|
if (!compatibilityDate) {
|
|
739
739
|
compatibilityDate = getConf("compatibilityDate");
|
|
740
740
|
}
|
|
741
|
-
const framework =
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
741
|
+
const framework = getConf("framework");
|
|
742
|
+
const isCustomFramework = framework?.name && framework.name !== "nitro";
|
|
743
|
+
if (!preset) {
|
|
744
|
+
preset = getConf("preset");
|
|
745
|
+
}
|
|
746
|
+
if (configOverrides.dev) {
|
|
747
|
+
preset = preset && preset !== "nitro-dev" ? await resolvePreset(preset, {
|
|
747
748
|
static: getConf("static"),
|
|
749
|
+
dev: true,
|
|
748
750
|
compatibilityDate: compatibilityDate || fallbackCompatibilityDate
|
|
749
|
-
}))?._meta?.name
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
"nitropack/config": "nitropack/config"
|
|
751
|
+
}).then((p) => p?._meta?.name).catch(() => "nitro-dev") : "nitro-dev";
|
|
752
|
+
} else if (!preset) {
|
|
753
|
+
preset = await resolvePreset("", {
|
|
754
|
+
static: getConf("static"),
|
|
755
|
+
dev: false,
|
|
756
|
+
compatibilityDate: compatibilityDate || fallbackCompatibilityDate
|
|
757
|
+
}).then((p) => p?._meta?.name);
|
|
757
758
|
}
|
|
759
|
+
return {
|
|
760
|
+
...configOverrides,
|
|
761
|
+
preset,
|
|
762
|
+
typescript: {
|
|
763
|
+
generateRuntimeConfigTypes: !isCustomFramework,
|
|
764
|
+
...getConf("typescript"),
|
|
765
|
+
...configOverrides.typescript
|
|
766
|
+
}
|
|
767
|
+
};
|
|
758
768
|
},
|
|
759
769
|
async resolve(id) {
|
|
760
|
-
const
|
|
770
|
+
const preset2 = await resolvePreset(id, {
|
|
761
771
|
static: configOverrides.static,
|
|
762
|
-
compatibilityDate: compatibilityDate || fallbackCompatibilityDate
|
|
772
|
+
compatibilityDate: compatibilityDate || fallbackCompatibilityDate,
|
|
773
|
+
dev: configOverrides.dev
|
|
763
774
|
});
|
|
764
|
-
if (
|
|
775
|
+
if (preset2) {
|
|
765
776
|
return {
|
|
766
|
-
config: klona(
|
|
777
|
+
config: klona(preset2)
|
|
767
778
|
};
|
|
768
779
|
}
|
|
769
780
|
},
|
|
@@ -772,12 +783,17 @@ async function _loadUserConfig(configOverrides = {}, opts = {}) {
|
|
|
772
783
|
const options = klona(loadedConfig.config);
|
|
773
784
|
options._config = configOverrides;
|
|
774
785
|
options._c12 = loadedConfig;
|
|
775
|
-
const _presetName = (loadedConfig.layers || []).find((l) => l.config?._meta?.name)?.config?._meta?.name ||
|
|
786
|
+
const _presetName = (loadedConfig.layers || []).find((l) => l.config?._meta?.name)?.config?._meta?.name || preset;
|
|
776
787
|
options.preset = _presetName;
|
|
777
788
|
options.compatibilityDate = resolveCompatibilityDates(
|
|
778
789
|
compatibilityDate,
|
|
779
790
|
options.compatibilityDate
|
|
780
791
|
);
|
|
792
|
+
if (options.dev && options.preset !== "nitro-dev") {
|
|
793
|
+
consola.info(
|
|
794
|
+
`Enabled \`${options.preset}\` emulation in development mode.`
|
|
795
|
+
);
|
|
796
|
+
}
|
|
781
797
|
return options;
|
|
782
798
|
}
|
|
783
799
|
|
package/dist/kit/index.d.mts
CHANGED
package/dist/kit/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineNitroPreset } from "nitropack/kit";
|
|
2
2
|
const nitroDev = defineNitroPreset(
|
|
3
3
|
{
|
|
4
|
-
extends: "node",
|
|
5
4
|
entry: "./runtime/nitro-dev",
|
|
6
5
|
output: {
|
|
7
6
|
dir: "{{ buildDir }}/dev",
|
|
@@ -9,12 +8,14 @@ const nitroDev = defineNitroPreset(
|
|
|
9
8
|
publicDir: "{{ buildDir }}/dev"
|
|
10
9
|
},
|
|
11
10
|
externals: { trace: false },
|
|
11
|
+
serveStatic: true,
|
|
12
12
|
inlineDynamicImports: true,
|
|
13
13
|
// externals plugin limitation
|
|
14
14
|
sourceMap: true
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
name: "nitro-dev",
|
|
18
|
+
dev: true,
|
|
18
19
|
url: import.meta.url
|
|
19
20
|
}
|
|
20
21
|
);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type CompatibilityDateSpec } from "compatx";
|
|
2
2
|
import type { NitroPreset, NitroPresetMeta } from "nitropack/types";
|
|
3
|
-
export declare function resolvePreset(name: string, opts
|
|
3
|
+
export declare function resolvePreset(name: string, opts?: {
|
|
4
4
|
static?: boolean;
|
|
5
5
|
compatibilityDate?: false | CompatibilityDateSpec;
|
|
6
|
+
dev?: boolean;
|
|
6
7
|
}): Promise<(NitroPreset & {
|
|
7
8
|
_meta?: NitroPresetMeta;
|
|
8
9
|
}) | undefined>;
|
|
@@ -10,7 +10,10 @@ const _stdProviderMap = {
|
|
|
10
10
|
azure_static: "azure",
|
|
11
11
|
cloudflare_pages: "cloudflare"
|
|
12
12
|
};
|
|
13
|
-
export async function resolvePreset(name, opts) {
|
|
13
|
+
export async function resolvePreset(name, opts = {}) {
|
|
14
|
+
if (name === ".") {
|
|
15
|
+
return void 0;
|
|
16
|
+
}
|
|
14
17
|
const _name = kebabCase(name) || provider;
|
|
15
18
|
const _compatDates = opts.compatibilityDate ? resolveCompatibilityDatesFromEnv(opts.compatibilityDate) : false;
|
|
16
19
|
const matches = allPresets.filter((preset2) => {
|
|
@@ -18,6 +21,9 @@ export async function resolvePreset(name, opts) {
|
|
|
18
21
|
if (!names.includes(_name)) {
|
|
19
22
|
return false;
|
|
20
23
|
}
|
|
24
|
+
if (opts.dev && !preset2._meta.dev || !opts.dev && preset2._meta.dev) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
21
27
|
if (_compatDates) {
|
|
22
28
|
const _date = _compatDates[_stdProviderMap[preset2._meta.stdName]] || _compatDates[preset2._meta.stdName] || _compatDates[preset2._meta.name] || _compatDates.default;
|
|
23
29
|
if (_date && preset2._meta.compatibilityDate && new Date(preset2._meta.compatibilityDate) > new Date(_date)) {
|
|
@@ -35,6 +35,7 @@ export type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRout
|
|
|
35
35
|
export type CloudchamberConfig = {
|
|
36
36
|
image?: string;
|
|
37
37
|
location?: string;
|
|
38
|
+
instance_type?: "dev" | "basic" | "standard";
|
|
38
39
|
vcpu?: number;
|
|
39
40
|
memory?: string;
|
|
40
41
|
ipv4?: boolean;
|
|
@@ -43,11 +44,59 @@ export type CloudchamberConfig = {
|
|
|
43
44
|
* Configuration for a container application
|
|
44
45
|
*/
|
|
45
46
|
export type ContainerApp = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Name of the application
|
|
49
|
+
* @optional Defaults to `worker_name-class_name` if not specified.
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Number of application instances
|
|
54
|
+
* @deprecated
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
instances?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Number of maximum application instances.
|
|
60
|
+
* @optional
|
|
61
|
+
*/
|
|
62
|
+
max_instances?: number;
|
|
63
|
+
/**
|
|
64
|
+
* The path to a Dockerfile, or an image URI for the Cloudflare registry.
|
|
65
|
+
*/
|
|
66
|
+
image: string;
|
|
67
|
+
/**
|
|
68
|
+
* Build context of the application.
|
|
69
|
+
* @optional - defaults to the directory of `image`.
|
|
70
|
+
*/
|
|
71
|
+
image_build_context?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Image variables to be passed along the image at build time.
|
|
74
|
+
* @optional
|
|
75
|
+
*/
|
|
76
|
+
image_vars?: Record<string, string>;
|
|
77
|
+
/**
|
|
78
|
+
* The class name of the Durable Object the container is connected to.
|
|
79
|
+
*/
|
|
80
|
+
class_name: string;
|
|
81
|
+
/**
|
|
82
|
+
* The scheduling policy of the application
|
|
83
|
+
* @optional
|
|
84
|
+
* @default "default"
|
|
85
|
+
*/
|
|
86
|
+
scheduling_policy?: "regional" | "moon" | "default";
|
|
87
|
+
/**
|
|
88
|
+
* The instance type to be used for the container. This sets preconfigured options for vcpu and memory
|
|
89
|
+
* @optional
|
|
90
|
+
*/
|
|
91
|
+
instance_type?: "dev" | "basic" | "standard";
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated Use top level `containers` fields instead.
|
|
94
|
+
* `configuration.image` should be `image`
|
|
95
|
+
* `configuration.disk` should be set via `instance_type`
|
|
96
|
+
* @hidden
|
|
97
|
+
*/
|
|
98
|
+
configuration?: {
|
|
99
|
+
image?: string;
|
|
51
100
|
labels?: {
|
|
52
101
|
name: string;
|
|
53
102
|
value: string;
|
|
@@ -57,12 +106,41 @@ export type ContainerApp = {
|
|
|
57
106
|
type: "env";
|
|
58
107
|
secret: string;
|
|
59
108
|
}[];
|
|
109
|
+
disk?: {
|
|
110
|
+
size: string;
|
|
111
|
+
};
|
|
60
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Scheduling constraints
|
|
115
|
+
* @hidden
|
|
116
|
+
*/
|
|
61
117
|
constraints?: {
|
|
62
118
|
regions?: string[];
|
|
63
119
|
cities?: string[];
|
|
64
120
|
tier?: number;
|
|
65
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated use the `class_name` field instead.
|
|
124
|
+
* @hidden
|
|
125
|
+
*/
|
|
126
|
+
durable_objects?: {
|
|
127
|
+
namespace_id: string;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* How a rollout should be done, defining the size of it
|
|
131
|
+
* @optional
|
|
132
|
+
* @default 25
|
|
133
|
+
* */
|
|
134
|
+
rollout_step_percentage?: number;
|
|
135
|
+
/**
|
|
136
|
+
* How a rollout should be created. It supports the following modes:
|
|
137
|
+
* - full_auto: The container application will be rolled out fully automatically.
|
|
138
|
+
* - none: The container application won't have a roll out or update.
|
|
139
|
+
* - manual: The container application will be rollout fully by manually actioning progress steps.
|
|
140
|
+
* @optional
|
|
141
|
+
* @default "full_auto"
|
|
142
|
+
*/
|
|
143
|
+
rollout_kind?: "full_auto" | "none" | "full_manual";
|
|
66
144
|
};
|
|
67
145
|
/**
|
|
68
146
|
* Configuration in wrangler for Durable Object Migrations
|
|
@@ -107,7 +185,7 @@ interface EnvironmentInheritable {
|
|
|
107
185
|
* A date in the form yyyy-mm-dd, which will be used to determine
|
|
108
186
|
* which version of the Workers runtime is used.
|
|
109
187
|
*
|
|
110
|
-
* More details at https://developers.cloudflare.com/workers/
|
|
188
|
+
* More details at https://developers.cloudflare.com/workers/configuration/compatibility-dates
|
|
111
189
|
*
|
|
112
190
|
* @inheritable
|
|
113
191
|
*/
|
|
@@ -116,7 +194,7 @@ interface EnvironmentInheritable {
|
|
|
116
194
|
* A list of flags that enable features from upcoming features of
|
|
117
195
|
* the Workers runtime, usually used together with compatibility_date.
|
|
118
196
|
*
|
|
119
|
-
* More details at https://developers.cloudflare.com/workers/
|
|
197
|
+
* More details at https://developers.cloudflare.com/workers/configuration/compatibility-flags/
|
|
120
198
|
*
|
|
121
199
|
* @default []
|
|
122
200
|
* @inheritable
|
|
@@ -156,6 +234,7 @@ interface EnvironmentInheritable {
|
|
|
156
234
|
* Whether we use <name>.<subdomain>.workers.dev to
|
|
157
235
|
* test and deploy your Worker.
|
|
158
236
|
*
|
|
237
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workersdev
|
|
159
238
|
*
|
|
160
239
|
* @default true
|
|
161
240
|
* @breaking
|
|
@@ -176,6 +255,8 @@ interface EnvironmentInheritable {
|
|
|
176
255
|
*
|
|
177
256
|
* Only required when workers_dev is false, and there's no scheduled Worker (see `triggers`)
|
|
178
257
|
*
|
|
258
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes
|
|
259
|
+
*
|
|
179
260
|
* @inheritable
|
|
180
261
|
*/
|
|
181
262
|
routes: Route[] | undefined;
|
|
@@ -227,28 +308,20 @@ interface EnvironmentInheritable {
|
|
|
227
308
|
*
|
|
228
309
|
* More details here https://developers.cloudflare.com/workers/platform/cron-triggers
|
|
229
310
|
*
|
|
230
|
-
*
|
|
311
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
|
|
312
|
+
*
|
|
313
|
+
* @default {crons: undefined}
|
|
231
314
|
* @inheritable
|
|
232
315
|
*/
|
|
233
316
|
triggers: {
|
|
234
|
-
crons: string[];
|
|
317
|
+
crons: string[] | undefined;
|
|
235
318
|
};
|
|
236
|
-
/**
|
|
237
|
-
* Specifies the Usage Model for your Worker. There are two options -
|
|
238
|
-
* [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and
|
|
239
|
-
* [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model).
|
|
240
|
-
* For newly created Workers, if the Usage Model is omitted
|
|
241
|
-
* it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model).
|
|
242
|
-
* For existing Workers, if the Usage Model is omitted, it will be
|
|
243
|
-
* set to the Usage Model configured in the dashboard for that Worker.
|
|
244
|
-
*
|
|
245
|
-
* @inheritable
|
|
246
|
-
*/
|
|
247
|
-
usage_model: "bundled" | "unbound" | undefined;
|
|
248
319
|
/**
|
|
249
320
|
* Specify limits for runtime behavior.
|
|
250
321
|
* Only supported for the "standard" Usage Model
|
|
251
322
|
*
|
|
323
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#limits
|
|
324
|
+
*
|
|
252
325
|
* @inheritable
|
|
253
326
|
*/
|
|
254
327
|
limits: UserLimits | undefined;
|
|
@@ -258,6 +331,8 @@ interface EnvironmentInheritable {
|
|
|
258
331
|
* to use Text, Data, and CompiledWasm modules, or when you wish to
|
|
259
332
|
* have a .js file be treated as an ESModule instead of CommonJS.
|
|
260
333
|
*
|
|
334
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#bundling
|
|
335
|
+
*
|
|
261
336
|
* @inheritable
|
|
262
337
|
*/
|
|
263
338
|
rules: Rule[];
|
|
@@ -267,6 +342,8 @@ interface EnvironmentInheritable {
|
|
|
267
342
|
* Refer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build)
|
|
268
343
|
* for more details.
|
|
269
344
|
*
|
|
345
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#custom-builds
|
|
346
|
+
*
|
|
270
347
|
* @default {watch_dir:"./src"}
|
|
271
348
|
*/
|
|
272
349
|
build: {
|
|
@@ -276,11 +353,6 @@ interface EnvironmentInheritable {
|
|
|
276
353
|
cwd?: string;
|
|
277
354
|
/** The directory to watch for changes while using wrangler dev, defaults to the current working directory */
|
|
278
355
|
watch_dir?: string | string[];
|
|
279
|
-
/**
|
|
280
|
-
* Deprecated field previously used to configure the build and upload of the script.
|
|
281
|
-
* @deprecated
|
|
282
|
-
*/
|
|
283
|
-
upload?: DeprecatedUpload;
|
|
284
356
|
};
|
|
285
357
|
/**
|
|
286
358
|
* Skip internal build steps and directly deploy script
|
|
@@ -293,23 +365,20 @@ interface EnvironmentInheritable {
|
|
|
293
365
|
*/
|
|
294
366
|
minify: boolean | undefined;
|
|
295
367
|
/**
|
|
296
|
-
*
|
|
368
|
+
* Set the `name` property to the original name for functions and classes renamed during minification.
|
|
369
|
+
*
|
|
370
|
+
* See https://esbuild.github.io/api/#keep-names
|
|
371
|
+
*
|
|
372
|
+
* @default true
|
|
297
373
|
* @inheritable
|
|
298
374
|
*/
|
|
299
|
-
|
|
375
|
+
keep_names: boolean | undefined;
|
|
300
376
|
/**
|
|
301
377
|
* Designates this Worker as an internal-only "first-party" Worker.
|
|
302
378
|
*
|
|
303
379
|
* @inheritable
|
|
304
380
|
*/
|
|
305
381
|
first_party_worker: boolean | undefined;
|
|
306
|
-
/**
|
|
307
|
-
* TODO: remove this as it has been deprecated.
|
|
308
|
-
*
|
|
309
|
-
* This is just here for now because the `route` commands use it.
|
|
310
|
-
* So we need to include it in this type so it is available.
|
|
311
|
-
*/
|
|
312
|
-
zone_id?: string;
|
|
313
382
|
/**
|
|
314
383
|
* List of bindings that you will send to logfwdr
|
|
315
384
|
*
|
|
@@ -337,6 +406,9 @@ interface EnvironmentInheritable {
|
|
|
337
406
|
logpush: boolean | undefined;
|
|
338
407
|
/**
|
|
339
408
|
* Include source maps when uploading this worker.
|
|
409
|
+
*
|
|
410
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
411
|
+
*
|
|
340
412
|
* @inheritable
|
|
341
413
|
*/
|
|
342
414
|
upload_source_maps: boolean | undefined;
|
|
@@ -356,15 +428,26 @@ interface EnvironmentInheritable {
|
|
|
356
428
|
*
|
|
357
429
|
* More details at https://developers.cloudflare.com/workers/frameworks/
|
|
358
430
|
*
|
|
431
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets
|
|
432
|
+
*
|
|
359
433
|
* @inheritable
|
|
360
434
|
*/
|
|
361
435
|
assets: Assets | undefined;
|
|
362
436
|
/**
|
|
363
437
|
* Specify the observability behavior of the Worker.
|
|
364
438
|
*
|
|
439
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability
|
|
440
|
+
*
|
|
365
441
|
* @inheritable
|
|
366
442
|
*/
|
|
367
443
|
observability: Observability | undefined;
|
|
444
|
+
/**
|
|
445
|
+
* Specify the compliance region mode of the Worker.
|
|
446
|
+
*
|
|
447
|
+
* Although if the user does not specify a compliance region, the default is `public`,
|
|
448
|
+
* it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable.
|
|
449
|
+
*/
|
|
450
|
+
compliance_region: "public" | "fedramp_high" | undefined;
|
|
368
451
|
}
|
|
369
452
|
export type DurableObjectBindings = {
|
|
370
453
|
/** The name of the binding used to refer to the Durable Object */
|
|
@@ -385,6 +468,8 @@ export type WorkflowBinding = {
|
|
|
385
468
|
class_name: string;
|
|
386
469
|
/** The script where the Workflow is defined (if it's external to this Worker) */
|
|
387
470
|
script_name?: string;
|
|
471
|
+
/** Whether the Workflow should be remote or not (only available under `--x-remote-bindings`) */
|
|
472
|
+
experimental_remote?: boolean;
|
|
388
473
|
};
|
|
389
474
|
/**
|
|
390
475
|
* The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
|
|
@@ -410,6 +495,8 @@ export interface EnvironmentNonInheritable {
|
|
|
410
495
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
411
496
|
* and so must be specified in every named environment.
|
|
412
497
|
*
|
|
498
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
|
|
499
|
+
*
|
|
413
500
|
* @default {}
|
|
414
501
|
* @nonInheritable
|
|
415
502
|
*/
|
|
@@ -423,6 +510,8 @@ export interface EnvironmentNonInheritable {
|
|
|
423
510
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
424
511
|
* and so must be specified in every named environment.
|
|
425
512
|
*
|
|
513
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
|
|
514
|
+
*
|
|
426
515
|
* @default {bindings:[]}
|
|
427
516
|
* @nonInheritable
|
|
428
517
|
*/
|
|
@@ -451,19 +540,14 @@ export interface EnvironmentNonInheritable {
|
|
|
451
540
|
cloudchamber: CloudchamberConfig;
|
|
452
541
|
/**
|
|
453
542
|
* Container related configuration
|
|
543
|
+
*
|
|
544
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
545
|
+
* and so must be specified in every named environment.
|
|
546
|
+
*
|
|
547
|
+
* @default []
|
|
548
|
+
* @nonInheritable
|
|
454
549
|
*/
|
|
455
|
-
containers
|
|
456
|
-
/**
|
|
457
|
-
* Container app configuration
|
|
458
|
-
*
|
|
459
|
-
* NOTE: This field is not automatically inherited from the top level environment,
|
|
460
|
-
* and so must be specified in every named environment.
|
|
461
|
-
*
|
|
462
|
-
* @default {}
|
|
463
|
-
* @nonInheritable
|
|
464
|
-
*/
|
|
465
|
-
app: ContainerApp[];
|
|
466
|
-
};
|
|
550
|
+
containers?: ContainerApp[];
|
|
467
551
|
/**
|
|
468
552
|
* These specify any Workers KV Namespaces you want to
|
|
469
553
|
* access from inside your Worker.
|
|
@@ -474,6 +558,8 @@ export interface EnvironmentNonInheritable {
|
|
|
474
558
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
475
559
|
* and so must be specified in every named environment.
|
|
476
560
|
*
|
|
561
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
|
|
562
|
+
*
|
|
477
563
|
* @default []
|
|
478
564
|
* @nonInheritable
|
|
479
565
|
*/
|
|
@@ -484,6 +570,8 @@ export interface EnvironmentNonInheritable {
|
|
|
484
570
|
id?: string;
|
|
485
571
|
/** The ID of the KV namespace used during `wrangler dev` */
|
|
486
572
|
preview_id?: string;
|
|
573
|
+
/** Whether the KV namespace should be remote or not (only available under `--x-remote-bindings`) */
|
|
574
|
+
experimental_remote?: boolean;
|
|
487
575
|
}[];
|
|
488
576
|
/**
|
|
489
577
|
* These specify bindings to send email from inside your Worker.
|
|
@@ -491,6 +579,8 @@ export interface EnvironmentNonInheritable {
|
|
|
491
579
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
492
580
|
* and so must be specified in every named environment.
|
|
493
581
|
*
|
|
582
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings
|
|
583
|
+
*
|
|
494
584
|
* @default []
|
|
495
585
|
* @nonInheritable
|
|
496
586
|
*/
|
|
@@ -508,6 +598,8 @@ export interface EnvironmentNonInheritable {
|
|
|
508
598
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
509
599
|
* and so must be specified in every named environment.
|
|
510
600
|
*
|
|
601
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues
|
|
602
|
+
*
|
|
511
603
|
* @default {consumers:[],producers:[]}
|
|
512
604
|
* @nonInheritable
|
|
513
605
|
*/
|
|
@@ -520,6 +612,8 @@ export interface EnvironmentNonInheritable {
|
|
|
520
612
|
queue: string;
|
|
521
613
|
/** The number of seconds to wait before delivering a message */
|
|
522
614
|
delivery_delay?: number;
|
|
615
|
+
/** Whether the Queue producer should be remote or not (only available under `--x-remote-bindings`) */
|
|
616
|
+
experimental_remote?: boolean;
|
|
523
617
|
}[];
|
|
524
618
|
/** Consumer configuration */
|
|
525
619
|
consumers?: {
|
|
@@ -549,6 +643,8 @@ export interface EnvironmentNonInheritable {
|
|
|
549
643
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
550
644
|
* and so must be specified in every named environment.
|
|
551
645
|
*
|
|
646
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
|
|
647
|
+
*
|
|
552
648
|
* @default []
|
|
553
649
|
* @nonInheritable
|
|
554
650
|
*/
|
|
@@ -561,6 +657,8 @@ export interface EnvironmentNonInheritable {
|
|
|
561
657
|
preview_bucket_name?: string;
|
|
562
658
|
/** The jurisdiction that the bucket exists in. Default if not present. */
|
|
563
659
|
jurisdiction?: string;
|
|
660
|
+
/** Whether the R2 bucket should be remote or not (only available under `--x-remote-bindings`) */
|
|
661
|
+
experimental_remote?: boolean;
|
|
564
662
|
}[];
|
|
565
663
|
/**
|
|
566
664
|
* Specifies D1 databases that are bound to this Worker environment.
|
|
@@ -568,6 +666,8 @@ export interface EnvironmentNonInheritable {
|
|
|
568
666
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
569
667
|
* and so must be specified in every named environment.
|
|
570
668
|
*
|
|
669
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
|
|
670
|
+
*
|
|
571
671
|
* @default []
|
|
572
672
|
* @nonInheritable
|
|
573
673
|
*/
|
|
@@ -586,6 +686,8 @@ export interface EnvironmentNonInheritable {
|
|
|
586
686
|
migrations_dir?: string;
|
|
587
687
|
/** Internal use only. */
|
|
588
688
|
database_internal_env?: string;
|
|
689
|
+
/** Whether the D1 database should be remote or not (only available under `--x-remote-bindings`) */
|
|
690
|
+
experimental_remote?: boolean;
|
|
589
691
|
}[];
|
|
590
692
|
/**
|
|
591
693
|
* Specifies Vectorize indexes that are bound to this Worker environment.
|
|
@@ -593,6 +695,8 @@ export interface EnvironmentNonInheritable {
|
|
|
593
695
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
594
696
|
* and so must be specified in every named environment.
|
|
595
697
|
*
|
|
698
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
|
|
699
|
+
*
|
|
596
700
|
* @default []
|
|
597
701
|
* @nonInheritable
|
|
598
702
|
*/
|
|
@@ -601,6 +705,8 @@ export interface EnvironmentNonInheritable {
|
|
|
601
705
|
binding: string;
|
|
602
706
|
/** The name of the index. */
|
|
603
707
|
index_name: string;
|
|
708
|
+
/** Whether the Vectorize index should be remote or not (only available under `--x-remote-bindings`) */
|
|
709
|
+
experimental_remote?: boolean;
|
|
604
710
|
}[];
|
|
605
711
|
/**
|
|
606
712
|
* Specifies Hyperdrive configs that are bound to this Worker environment.
|
|
@@ -608,6 +714,8 @@ export interface EnvironmentNonInheritable {
|
|
|
608
714
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
609
715
|
* and so must be specified in every named environment.
|
|
610
716
|
*
|
|
717
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
|
|
718
|
+
*
|
|
611
719
|
* @default []
|
|
612
720
|
* @nonInheritable
|
|
613
721
|
*/
|
|
@@ -625,6 +733,8 @@ export interface EnvironmentNonInheritable {
|
|
|
625
733
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
626
734
|
* and so must be specified in every named environment.
|
|
627
735
|
*
|
|
736
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
|
|
737
|
+
*
|
|
628
738
|
* @default []
|
|
629
739
|
* @nonInheritable
|
|
630
740
|
*/
|
|
@@ -637,6 +747,10 @@ export interface EnvironmentNonInheritable {
|
|
|
637
747
|
environment?: string;
|
|
638
748
|
/** Optionally, the entrypoint (named export) of the service to bind to. */
|
|
639
749
|
entrypoint?: string;
|
|
750
|
+
/** Optional properties that will be made available to the service via ctx.props. */
|
|
751
|
+
props?: Record<string, unknown>;
|
|
752
|
+
/** Whether the service binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
753
|
+
experimental_remote?: boolean;
|
|
640
754
|
}[] | undefined;
|
|
641
755
|
/**
|
|
642
756
|
* Specifies analytics engine datasets that are bound to this Worker environment.
|
|
@@ -644,6 +758,8 @@ export interface EnvironmentNonInheritable {
|
|
|
644
758
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
645
759
|
* and so must be specified in every named environment.
|
|
646
760
|
*
|
|
761
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
|
|
762
|
+
*
|
|
647
763
|
* @default []
|
|
648
764
|
* @nonInheritable
|
|
649
765
|
*/
|
|
@@ -659,11 +775,15 @@ export interface EnvironmentNonInheritable {
|
|
|
659
775
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
660
776
|
* and so must be specified in every named environment.
|
|
661
777
|
*
|
|
778
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
|
|
779
|
+
*
|
|
662
780
|
* @default {}
|
|
663
781
|
* @nonInheritable
|
|
664
782
|
*/
|
|
665
783
|
browser: {
|
|
666
784
|
binding: string;
|
|
785
|
+
/** Whether the Browser binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
786
|
+
experimental_remote?: boolean;
|
|
667
787
|
} | undefined;
|
|
668
788
|
/**
|
|
669
789
|
* Binding to the AI project.
|
|
@@ -671,12 +791,32 @@ export interface EnvironmentNonInheritable {
|
|
|
671
791
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
672
792
|
* and so must be specified in every named environment.
|
|
673
793
|
*
|
|
794
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
|
|
795
|
+
*
|
|
674
796
|
* @default {}
|
|
675
797
|
* @nonInheritable
|
|
676
798
|
*/
|
|
677
799
|
ai: {
|
|
678
800
|
binding: string;
|
|
679
801
|
staging?: boolean;
|
|
802
|
+
/** Whether the AI binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
803
|
+
experimental_remote?: boolean;
|
|
804
|
+
} | undefined;
|
|
805
|
+
/**
|
|
806
|
+
* Binding to Cloudflare Images
|
|
807
|
+
*
|
|
808
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
809
|
+
* and so must be specified in every named environment.
|
|
810
|
+
*
|
|
811
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#images
|
|
812
|
+
*
|
|
813
|
+
* @default {}
|
|
814
|
+
* @nonInheritable
|
|
815
|
+
*/
|
|
816
|
+
images: {
|
|
817
|
+
binding: string;
|
|
818
|
+
/** Whether the Images binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
819
|
+
experimental_remote?: boolean;
|
|
680
820
|
} | undefined;
|
|
681
821
|
/**
|
|
682
822
|
* Binding to the Worker Version's metadata
|
|
@@ -730,6 +870,8 @@ export interface EnvironmentNonInheritable {
|
|
|
730
870
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
731
871
|
* and so must be specified in every named environment.
|
|
732
872
|
*
|
|
873
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
|
|
874
|
+
*
|
|
733
875
|
* @default []
|
|
734
876
|
* @nonInheritable
|
|
735
877
|
*/
|
|
@@ -738,6 +880,8 @@ export interface EnvironmentNonInheritable {
|
|
|
738
880
|
binding: string;
|
|
739
881
|
/** The uuid of the uploaded mTLS certificate */
|
|
740
882
|
certificate_id: string;
|
|
883
|
+
/** Whether the mtls fetcher should be remote or not (only available under `--x-remote-bindings`) */
|
|
884
|
+
experimental_remote?: boolean;
|
|
741
885
|
}[];
|
|
742
886
|
/**
|
|
743
887
|
* Specifies a list of Tail Workers that are bound to this Worker environment
|
|
@@ -755,6 +899,8 @@ export interface EnvironmentNonInheritable {
|
|
|
755
899
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
756
900
|
* and so must be specified in every named environment.
|
|
757
901
|
*
|
|
902
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
|
|
903
|
+
*
|
|
758
904
|
* @default []
|
|
759
905
|
* @nonInheritable
|
|
760
906
|
*/
|
|
@@ -765,6 +911,8 @@ export interface EnvironmentNonInheritable {
|
|
|
765
911
|
namespace: string;
|
|
766
912
|
/** Details about the outbound Worker which will handle outbound requests from your namespace */
|
|
767
913
|
outbound?: DispatchNamespaceOutbound;
|
|
914
|
+
/** Whether the Dispatch Namespace should be remote or not (only available under `--x-remote-bindings`) */
|
|
915
|
+
experimental_remote?: boolean;
|
|
768
916
|
}[];
|
|
769
917
|
/**
|
|
770
918
|
* Specifies list of Pipelines bound to this Worker environment
|
|
@@ -781,68 +929,38 @@ export interface EnvironmentNonInheritable {
|
|
|
781
929
|
/** Name of the Pipeline to bind */
|
|
782
930
|
pipeline: string;
|
|
783
931
|
}[];
|
|
784
|
-
}
|
|
785
|
-
/**
|
|
786
|
-
* The environment configuration properties that have been deprecated.
|
|
787
|
-
*/
|
|
788
|
-
interface EnvironmentDeprecated {
|
|
789
|
-
/**
|
|
790
|
-
* The zone ID of the zone you want to deploy to. You can find this
|
|
791
|
-
* in your domain page on the dashboard.
|
|
792
|
-
*
|
|
793
|
-
* @deprecated This is unnecessary since we can deduce this from routes directly.
|
|
794
|
-
*/
|
|
795
|
-
zone_id?: string;
|
|
796
932
|
/**
|
|
797
|
-
*
|
|
933
|
+
* Specifies Secret Store bindings that are bound to this Worker environment.
|
|
798
934
|
*
|
|
799
|
-
*
|
|
800
|
-
|
|
801
|
-
"kv-namespaces"?: string;
|
|
802
|
-
/**
|
|
803
|
-
* A list of services that your Worker should be bound to.
|
|
935
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
936
|
+
* and so must be specified in every named environment.
|
|
804
937
|
*
|
|
805
938
|
* @default []
|
|
806
|
-
* @
|
|
939
|
+
* @nonInheritable
|
|
807
940
|
*/
|
|
808
|
-
|
|
809
|
-
/** The binding name used to refer to the
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
|
|
941
|
+
secrets_store_secrets: {
|
|
942
|
+
/** The binding name used to refer to the bound service. */
|
|
943
|
+
binding: string;
|
|
944
|
+
/** Id of the secret store */
|
|
945
|
+
store_id: string;
|
|
946
|
+
/** Name of the secret */
|
|
947
|
+
secret_name: string;
|
|
815
948
|
}[];
|
|
816
|
-
}
|
|
817
|
-
/**
|
|
818
|
-
* Deprecated upload configuration.
|
|
819
|
-
*/
|
|
820
|
-
export interface DeprecatedUpload {
|
|
821
949
|
/**
|
|
822
|
-
*
|
|
823
|
-
*
|
|
824
|
-
* @deprecated We infer the format automatically now.
|
|
825
|
-
*/
|
|
826
|
-
format?: "modules" | "service-worker";
|
|
827
|
-
/**
|
|
828
|
-
* The directory you wish to upload your Worker from,
|
|
829
|
-
* relative to the Wrangler configuration file.
|
|
830
|
-
*
|
|
831
|
-
* Defaults to the directory containing the Wrangler configuration file.
|
|
950
|
+
* **DO NOT USE**. Hello World Binding Config to serve as an explanatory example.
|
|
832
951
|
*
|
|
833
|
-
*
|
|
834
|
-
|
|
835
|
-
dir?: string;
|
|
836
|
-
/**
|
|
837
|
-
* The path to the Worker script, relative to `upload.dir`.
|
|
952
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
953
|
+
* and so must be specified in every named environment.
|
|
838
954
|
*
|
|
839
|
-
* @
|
|
840
|
-
|
|
841
|
-
main?: string;
|
|
842
|
-
/**
|
|
843
|
-
* @deprecated This is now defined at the top level `rules` field.
|
|
955
|
+
* @default []
|
|
956
|
+
* @nonInheritable
|
|
844
957
|
*/
|
|
845
|
-
|
|
958
|
+
unsafe_hello_world: {
|
|
959
|
+
/** The binding name used to refer to the bound service. */
|
|
960
|
+
binding: string;
|
|
961
|
+
/** Whether the timer is enabled */
|
|
962
|
+
enable_timer?: boolean;
|
|
963
|
+
}[];
|
|
846
964
|
}
|
|
847
965
|
/**
|
|
848
966
|
* The raw environment configuration that we read from the config file.
|
|
@@ -850,7 +968,7 @@ export interface DeprecatedUpload {
|
|
|
850
968
|
* All the properties are optional, and will be replaced with defaults in the configuration that
|
|
851
969
|
* is used in the rest of the codebase.
|
|
852
970
|
*/
|
|
853
|
-
export type RawEnvironment = Partial<Environment
|
|
971
|
+
export type RawEnvironment = Partial<Environment>;
|
|
854
972
|
/**
|
|
855
973
|
* A bundling resolver rule, defining the modules type for paths that match the specified globs.
|
|
856
974
|
*/
|
|
@@ -862,7 +980,7 @@ export type Rule = {
|
|
|
862
980
|
/**
|
|
863
981
|
* The possible types for a `Rule`.
|
|
864
982
|
*/
|
|
865
|
-
export type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement"
|
|
983
|
+
export type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement";
|
|
866
984
|
export type TailConsumer = {
|
|
867
985
|
/** The name of the service tail events will be forwarded to. */
|
|
868
986
|
service: string;
|
|
@@ -891,12 +1009,11 @@ export type Assets = {
|
|
|
891
1009
|
/** How to handle requests that do not match an asset. */
|
|
892
1010
|
not_found_handling?: "single-page-application" | "404-page" | "none";
|
|
893
1011
|
/**
|
|
894
|
-
*
|
|
895
|
-
*
|
|
896
|
-
*
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
experimental_serve_directly?: boolean;
|
|
1012
|
+
* Matches will be routed to the User Worker, and matches to negative rules will go to the Asset Worker.
|
|
1013
|
+
*
|
|
1014
|
+
* Can also be `true`, indicating that every request should be routed to the User Worker.
|
|
1015
|
+
*/
|
|
1016
|
+
run_worker_first?: string[] | boolean;
|
|
900
1017
|
};
|
|
901
1018
|
export interface Observability {
|
|
902
1019
|
/** If observability is enabled for this Worker */
|
|
@@ -911,4 +1028,11 @@ export interface Observability {
|
|
|
911
1028
|
invocation_logs?: boolean;
|
|
912
1029
|
};
|
|
913
1030
|
}
|
|
1031
|
+
export type DockerConfiguration = {
|
|
1032
|
+
/** Socket used by miniflare to communicate with Docker */
|
|
1033
|
+
socketPath: string;
|
|
1034
|
+
};
|
|
1035
|
+
export type ContainerEngine = {
|
|
1036
|
+
localDocker: DockerConfiguration;
|
|
1037
|
+
} | string;
|
|
914
1038
|
export {};
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App, Router, H3Event, RouterMethod } from 'h3';
|
|
2
2
|
import { FetchRequest, FetchOptions, FetchResponse } from 'ofetch';
|
|
3
|
-
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.
|
|
4
|
-
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.
|
|
3
|
+
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.Befw1Azc.mjs';
|
|
4
|
+
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.Befw1Azc.mjs';
|
|
5
5
|
import { Hookable } from 'hookable';
|
|
6
6
|
import { NitroRuntimeHooks as NitroRuntimeHooks$1 } from 'nitropack';
|
|
7
7
|
import { AbstractRequest, AbstractResponse } from 'node-mock-http';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App, Router, H3Event, RouterMethod } from 'h3';
|
|
2
2
|
import { FetchRequest, FetchOptions, FetchResponse } from 'ofetch';
|
|
3
|
-
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.
|
|
4
|
-
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.
|
|
3
|
+
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.Befw1Azc.js';
|
|
4
|
+
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.Befw1Azc.js';
|
|
5
5
|
import { Hookable } from 'hookable';
|
|
6
6
|
import { NitroRuntimeHooks as NitroRuntimeHooks$1 } from 'nitropack';
|
|
7
7
|
import { AbstractRequest, AbstractResponse } from 'node-mock-http';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.12.0-
|
|
3
|
+
"version": "2.12.0-20250713-204442.4753575e",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"@rollup/plugin-terser": "^0.4.4",
|
|
110
110
|
"@vercel/nft": "^0.29.4",
|
|
111
111
|
"archiver": "^7.0.1",
|
|
112
|
-
"c12": "^3.0
|
|
112
|
+
"c12": "^3.1.0",
|
|
113
113
|
"chokidar": "^4.0.3",
|
|
114
114
|
"citty": "^0.1.6",
|
|
115
115
|
"compatx": "^0.2.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"defu": "^6.1.4",
|
|
123
123
|
"destr": "^2.0.5",
|
|
124
124
|
"dot-prop": "^9.0.0",
|
|
125
|
-
"esbuild": "^0.25.
|
|
125
|
+
"esbuild": "^0.25.6",
|
|
126
126
|
"escape-string-regexp": "^5.0.0",
|
|
127
127
|
"etag": "^1.8.1",
|
|
128
128
|
"exsolve": "^1.0.7",
|
|
@@ -146,10 +146,10 @@
|
|
|
146
146
|
"ohash": "^2.0.11",
|
|
147
147
|
"pathe": "^2.0.3",
|
|
148
148
|
"perfect-debounce": "^1.0.0",
|
|
149
|
-
"pkg-types": "^2.
|
|
149
|
+
"pkg-types": "^2.2.0",
|
|
150
150
|
"pretty-bytes": "^6.1.1",
|
|
151
151
|
"radix3": "^1.1.2",
|
|
152
|
-
"rollup": "^4.
|
|
152
|
+
"rollup": "^4.45.0",
|
|
153
153
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
154
154
|
"scule": "^1.3.0",
|
|
155
155
|
"semver": "^7.7.2",
|
|
@@ -162,21 +162,21 @@
|
|
|
162
162
|
"uncrypto": "^0.1.3",
|
|
163
163
|
"unctx": "^2.4.1",
|
|
164
164
|
"unenv": "^2.0.0-rc.18",
|
|
165
|
-
"unimport": "^5.0
|
|
165
|
+
"unimport": "^5.1.0",
|
|
166
166
|
"unplugin-utils": "^0.2.4",
|
|
167
167
|
"unstorage": "^1.16.0",
|
|
168
168
|
"untyped": "^2.0.0",
|
|
169
169
|
"unwasm": "^0.3.9",
|
|
170
170
|
"youch": "4.1.0-beta.8",
|
|
171
|
-
"youch-core": "^0.3.
|
|
171
|
+
"youch-core": "^0.3.3"
|
|
172
172
|
},
|
|
173
173
|
"devDependencies": {
|
|
174
174
|
"@azure/functions": "^3.5.1",
|
|
175
175
|
"@azure/static-web-apps-cli": "^2.0.6",
|
|
176
|
-
"@cloudflare/workers-types": "^4.
|
|
176
|
+
"@cloudflare/workers-types": "^4.20250712.0",
|
|
177
177
|
"@deno/types": "^0.0.1",
|
|
178
|
-
"@netlify/edge-functions": "^2.15.
|
|
179
|
-
"@scalar/api-reference": "^1.
|
|
178
|
+
"@netlify/edge-functions": "^2.15.6",
|
|
179
|
+
"@scalar/api-reference": "^1.32.6",
|
|
180
180
|
"@types/archiver": "^6.0.3",
|
|
181
181
|
"@types/aws-lambda": "^8.10.150",
|
|
182
182
|
"@types/estree": "^1.0.8",
|
|
@@ -188,21 +188,21 @@
|
|
|
188
188
|
"@types/xml2js": "^0.4.14",
|
|
189
189
|
"@vitest/coverage-v8": "^3.2.4",
|
|
190
190
|
"automd": "^0.4.0",
|
|
191
|
-
"changelogen": "^0.6.
|
|
191
|
+
"changelogen": "^0.6.2",
|
|
192
192
|
"edge-runtime": "^4.0.1",
|
|
193
|
-
"eslint": "^9.
|
|
193
|
+
"eslint": "^9.31.0",
|
|
194
194
|
"eslint-config-unjs": "^0.4.2",
|
|
195
195
|
"execa": "^9.6.0",
|
|
196
|
-
"expect-type": "^1.2.
|
|
196
|
+
"expect-type": "^1.2.2",
|
|
197
197
|
"firebase-admin": "^12.7.0",
|
|
198
198
|
"firebase-functions": "^4.9.0",
|
|
199
|
-
"get-port-please": "^3.
|
|
200
|
-
"miniflare": "^4.
|
|
199
|
+
"get-port-please": "^3.2.0",
|
|
200
|
+
"miniflare": "^4.20250709.0",
|
|
201
201
|
"ohash-v1": "npm:ohash@^1.1.6",
|
|
202
|
-
"prettier": "^3.6.
|
|
202
|
+
"prettier": "^3.6.2",
|
|
203
203
|
"typescript": "^5.8.3",
|
|
204
204
|
"unbuild": "^3.5.0",
|
|
205
|
-
"undici": "^7.
|
|
205
|
+
"undici": "^7.11.0",
|
|
206
206
|
"vitest": "^3.2.4",
|
|
207
207
|
"xml2js": "^0.6.2"
|
|
208
208
|
},
|