nitropack-nightly 2.11.9-20250403-225743.861eb65f → 2.11.9-20250404-101712.06d78bfc
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/core/index.d.mts +2 -1
- package/dist/core/index.d.ts +2 -1
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.mjs +1 -1
- package/dist/presets/cloudflare/preset.mjs +3 -0
- package/dist/presets/cloudflare/utils.mjs +7 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +21 -21
package/dist/core/index.d.mts
CHANGED
|
@@ -96,4 +96,5 @@ interface NitroRuntimeConfigApp {
|
|
|
96
96
|
[key: string]: any;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export { GLOB_SCAN_PATTERN,
|
|
99
|
+
export { GLOB_SCAN_PATTERN, build, copyPublicAssets, createDevServer, createNitro, defineNitroConfig, listTasks, loadOptions, prepare, prerender, runTask, scanHandlers, scanMiddleware, scanModules, scanPlugins, scanServerRoutes, scanTasks, writeTypes };
|
|
100
|
+
export type { NitroRuntimeConfig, NitroRuntimeConfigApp, NitroRuntimeHooks };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -96,4 +96,5 @@ interface NitroRuntimeConfigApp {
|
|
|
96
96
|
[key: string]: any;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
export { GLOB_SCAN_PATTERN,
|
|
99
|
+
export { GLOB_SCAN_PATTERN, build, copyPublicAssets, createDevServer, createNitro, defineNitroConfig, listTasks, loadOptions, prepare, prerender, runTask, scanHandlers, scanMiddleware, scanModules, scanPlugins, scanServerRoutes, scanTasks, writeTypes };
|
|
100
|
+
export type { NitroRuntimeConfig, NitroRuntimeConfigApp, NitroRuntimeHooks };
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -88,6 +88,9 @@ const cloudflareModule = defineNitroPreset(
|
|
|
88
88
|
{
|
|
89
89
|
extends: "base-worker",
|
|
90
90
|
entry: "./runtime/cloudflare-module",
|
|
91
|
+
output: {
|
|
92
|
+
publicDir: "{{ output.dir }}/public/{{ baseURL }}"
|
|
93
|
+
},
|
|
91
94
|
exportConditions: ["workerd"],
|
|
92
95
|
commands: {
|
|
93
96
|
preview: "npx wrangler --cwd ./ dev",
|
|
@@ -203,7 +203,13 @@ export async function writeWranglerConfig(nitro, cfTarget) {
|
|
|
203
203
|
);
|
|
204
204
|
overrides.assets = {
|
|
205
205
|
binding: "ASSETS",
|
|
206
|
-
directory: relative(
|
|
206
|
+
directory: relative(
|
|
207
|
+
wranglerConfigDir,
|
|
208
|
+
resolve(
|
|
209
|
+
nitro.options.output.publicDir,
|
|
210
|
+
"..".repeat(nitro.options.baseURL.split("/").filter(Boolean).length)
|
|
211
|
+
)
|
|
212
|
+
)
|
|
207
213
|
};
|
|
208
214
|
}
|
|
209
215
|
const { config: userConfig = {} } = await readWranglerConfig(nitro);
|
package/dist/types/index.d.mts
CHANGED
|
@@ -254,4 +254,5 @@ declare module "h3" {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
export {
|
|
257
|
+
export { NitroConfig, NitroModule, NitroOptions };
|
|
258
|
+
export type { $Fetch, AssetMeta, AvailableRouterMethod, Base$Fetch, CaptureError, CapturedErrorContext, ExtractedRouteMethod, H3Event$Fetch, H3EventFetch, InternalApi, MatchedRoutes, MiddlewareOf, NitroApp, NitroAppPlugin, NitroAsyncContext, NitroFetchOptions, NitroFetchRequest, NitroRuntimeHooks, NitroStaticBuildFlags, PublicAsset, RenderContext, RenderHandler, RenderResponse, Serialize, SerializeObject, SerializeTuple, Simplify, Task, TaskContext, TaskEvent, TaskMeta, TaskPayload, TaskResult, TaskRunnerOptions, TypedInternalResponse };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -254,4 +254,5 @@ declare module "h3" {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
export {
|
|
257
|
+
export { NitroConfig, NitroModule, NitroOptions };
|
|
258
|
+
export type { $Fetch, AssetMeta, AvailableRouterMethod, Base$Fetch, CaptureError, CapturedErrorContext, ExtractedRouteMethod, H3Event$Fetch, H3EventFetch, InternalApi, MatchedRoutes, MiddlewareOf, NitroApp, NitroAppPlugin, NitroAsyncContext, NitroFetchOptions, NitroFetchRequest, NitroRuntimeHooks, NitroStaticBuildFlags, PublicAsset, RenderContext, RenderHandler, RenderResponse, Serialize, SerializeObject, SerializeTuple, Simplify, Task, TaskContext, TaskEvent, TaskMeta, TaskPayload, TaskResult, TaskRunnerOptions, TypedInternalResponse };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.11.9-
|
|
3
|
+
"version": "2.11.9-20250404-101712.06d78bfc",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"@cloudflare/kv-asset-handler": "^0.4.0",
|
|
102
|
-
"@netlify/functions": "^3.0.
|
|
102
|
+
"@netlify/functions": "^3.0.4",
|
|
103
103
|
"@rollup/plugin-alias": "^5.1.1",
|
|
104
104
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
105
105
|
"@rollup/plugin-inject": "^5.0.5",
|
|
@@ -109,20 +109,20 @@
|
|
|
109
109
|
"@rollup/plugin-terser": "^0.4.4",
|
|
110
110
|
"@vercel/nft": "^0.29.2",
|
|
111
111
|
"archiver": "^7.0.1",
|
|
112
|
-
"c12": "^3.0.
|
|
112
|
+
"c12": "^3.0.3",
|
|
113
113
|
"chokidar": "^4.0.3",
|
|
114
114
|
"citty": "^0.1.6",
|
|
115
115
|
"compatx": "^0.1.8",
|
|
116
|
-
"confbox": "^0.2.
|
|
116
|
+
"confbox": "^0.2.2",
|
|
117
117
|
"consola": "^3.4.2",
|
|
118
118
|
"cookie-es": "^2.0.0",
|
|
119
119
|
"croner": "^9.0.0",
|
|
120
120
|
"crossws": "^0.3.4",
|
|
121
121
|
"db0": "^0.3.1",
|
|
122
122
|
"defu": "^6.1.4",
|
|
123
|
-
"destr": "^2.0.
|
|
123
|
+
"destr": "^2.0.5",
|
|
124
124
|
"dot-prop": "^9.0.0",
|
|
125
|
-
"esbuild": "^0.25.
|
|
125
|
+
"esbuild": "^0.25.2",
|
|
126
126
|
"escape-string-regexp": "^5.0.0",
|
|
127
127
|
"etag": "^1.8.1",
|
|
128
128
|
"exsolve": "^1.0.4",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"listhen": "^1.9.0",
|
|
139
139
|
"magic-string": "^0.30.17",
|
|
140
140
|
"magicast": "^0.3.5",
|
|
141
|
-
"mime": "^4.0.
|
|
141
|
+
"mime": "^4.0.7",
|
|
142
142
|
"mlly": "^1.7.4",
|
|
143
143
|
"node-fetch-native": "^1.6.6",
|
|
144
144
|
"node-mock-http": "^1.0.0",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"pkg-types": "^2.1.0",
|
|
150
150
|
"pretty-bytes": "^6.1.1",
|
|
151
151
|
"radix3": "^1.1.2",
|
|
152
|
-
"rollup": "^4.
|
|
152
|
+
"rollup": "^4.39.0",
|
|
153
153
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
154
154
|
"scule": "^1.3.0",
|
|
155
155
|
"semver": "^7.7.1",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"uncrypto": "^0.1.3",
|
|
163
163
|
"unctx": "^2.4.1",
|
|
164
164
|
"unenv": "^2.0.0-rc.15",
|
|
165
|
-
"unimport": "^4.1.
|
|
165
|
+
"unimport": "^4.1.3",
|
|
166
166
|
"unplugin-utils": "^0.2.4",
|
|
167
167
|
"unstorage": "^1.15.0",
|
|
168
168
|
"untyped": "^2.0.0",
|
|
@@ -172,38 +172,38 @@
|
|
|
172
172
|
},
|
|
173
173
|
"devDependencies": {
|
|
174
174
|
"@azure/functions": "^3.5.1",
|
|
175
|
-
"@azure/static-web-apps-cli": "^2.0.
|
|
176
|
-
"@cloudflare/workers-types": "^4.
|
|
175
|
+
"@azure/static-web-apps-cli": "^2.0.5",
|
|
176
|
+
"@cloudflare/workers-types": "^4.20250403.0",
|
|
177
177
|
"@deno/types": "^0.0.1",
|
|
178
178
|
"@netlify/edge-functions": "^2.11.1",
|
|
179
|
-
"@scalar/api-reference": "^1.28.
|
|
179
|
+
"@scalar/api-reference": "^1.28.11",
|
|
180
180
|
"@types/archiver": "^6.0.3",
|
|
181
|
-
"@types/aws-lambda": "^8.10.
|
|
182
|
-
"@types/estree": "^1.0.
|
|
181
|
+
"@types/aws-lambda": "^8.10.148",
|
|
182
|
+
"@types/estree": "^1.0.7",
|
|
183
183
|
"@types/etag": "^1.8.3",
|
|
184
184
|
"@types/fs-extra": "^11.0.4",
|
|
185
185
|
"@types/node-fetch": "^2.6.12",
|
|
186
|
-
"@types/semver": "^7.
|
|
186
|
+
"@types/semver": "^7.7.0",
|
|
187
187
|
"@types/serve-static": "^1.15.7",
|
|
188
188
|
"@types/xml2js": "^0.4.14",
|
|
189
|
-
"@vitest/coverage-v8": "^3.
|
|
189
|
+
"@vitest/coverage-v8": "^3.1.1",
|
|
190
190
|
"automd": "^0.4.0",
|
|
191
191
|
"changelogen": "^0.6.1",
|
|
192
192
|
"edge-runtime": "^4.0.1",
|
|
193
|
-
"eslint": "^9.
|
|
193
|
+
"eslint": "^9.23.0",
|
|
194
194
|
"eslint-config-unjs": "^0.4.2",
|
|
195
195
|
"execa": "^9.5.2",
|
|
196
|
-
"expect-type": "^1.2.
|
|
196
|
+
"expect-type": "^1.2.1",
|
|
197
197
|
"firebase-admin": "^12.7.0",
|
|
198
198
|
"firebase-functions": "^4.9.0",
|
|
199
199
|
"get-port-please": "^3.1.2",
|
|
200
|
-
"miniflare": "^4.
|
|
200
|
+
"miniflare": "^4.20250321.1",
|
|
201
201
|
"ohash-v1": "npm:ohash@^1.1.6",
|
|
202
202
|
"prettier": "^3.5.3",
|
|
203
203
|
"typescript": "^5.8.2",
|
|
204
204
|
"unbuild": "^3.5.0",
|
|
205
|
-
"undici": "^7.
|
|
206
|
-
"vitest": "^3.
|
|
205
|
+
"undici": "^7.7.0",
|
|
206
|
+
"vitest": "^3.1.1",
|
|
207
207
|
"xml2js": "^0.6.2"
|
|
208
208
|
},
|
|
209
209
|
"peerDependencies": {
|