nitropack-nightly 2.11.9-20250410-101524.b263a214 → 2.11.10-20250411-093402.adfc4562

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.
@@ -2761,7 +2761,14 @@ class DevServer {
2761
2761
  this.nitro.options.runtimeConfig.app.baseURL,
2762
2762
  asset.baseURL || "/"
2763
2763
  );
2764
- app.use(url, fromNodeMiddleware(serveStatic(asset.dir)));
2764
+ app.use(
2765
+ url,
2766
+ fromNodeMiddleware(
2767
+ serveStatic(asset.dir, {
2768
+ dotfiles: "allow"
2769
+ })
2770
+ )
2771
+ );
2765
2772
  if (!asset.fallthrough) {
2766
2773
  app.use(url, fromNodeMiddleware(servePlaceholder()));
2767
2774
  }
@@ -1,4 +1,4 @@
1
- const version = "2.11.9-20250410-101524.b263a214";
1
+ const version = "2.11.10-20250411-093402.adfc4562";
2
2
 
3
3
  const compatibilityChanges = [
4
4
  {
@@ -1,14 +1,3 @@
1
- import type { APIGatewayProxyEventV2, APIGatewayProxyStructuredResultV2, Context } from "aws-lambda";
1
+ import type { APIGatewayProxyEventV2 } from "aws-lambda";
2
2
  import "#nitro-internal-pollyfills";
3
- export declare const handler: any;
4
- declare global {
5
- namespace awslambda {
6
- function streamifyResponse(handler: (event: APIGatewayProxyEventV2, responseStream: NodeJS.WritableStream, context: Context) => Promise<void>): any;
7
- namespace HttpResponseStream {
8
- function from(stream: NodeJS.WritableStream, metadata: {
9
- statusCode: APIGatewayProxyStructuredResultV2["statusCode"];
10
- headers: APIGatewayProxyStructuredResultV2["headers"];
11
- }): NodeJS.WritableStream;
12
- }
13
- }
14
- }
3
+ export declare const handler: import("aws-lambda").StreamifyHandler<APIGatewayProxyEventV2, void>;
@@ -40,6 +40,7 @@ export const handler = awslambda.streamifyResponse(
40
40
  };
41
41
  if (r.body) {
42
42
  const writer = awslambda.HttpResponseStream.from(
43
+ // @ts-expect-error TODO: IMPORTANT! It should be a Writable according to the aws-lambda types
43
44
  responseStream,
44
45
  httpResponseMetadata
45
46
  );
@@ -13,6 +13,7 @@ export default _default;
13
13
  export declare class $DurableObject extends DurableObject {
14
14
  constructor(state: DurableObjectState, env: Record<string, any>);
15
15
  fetch(request: Request): Promise<Response>;
16
+ publish(topic: string, data: unknown, opts: any): void;
16
17
  alarm(): void | Promise<void>;
17
18
  webSocketMessage(client: WebSocket, message: ArrayBuffer | string): Promise<void>;
18
19
  webSocketClose(client: WebSocket, code: number, reason: string, wasClean: boolean): Promise<void>;
@@ -55,6 +55,12 @@ export class $DurableObject extends DurableObject {
55
55
  durable: this
56
56
  });
57
57
  }
58
+ publish(topic, data, opts) {
59
+ if (!ws) {
60
+ throw new Error("WebSocket not available");
61
+ }
62
+ return ws.publish(topic, data, opts);
63
+ }
58
64
  alarm() {
59
65
  this.ctx.waitUntil(
60
66
  nitroApp.hooks.callHook("cloudflare:durable:alarm", this)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.11.9-20250410-101524.b263a214",
3
+ "version": "2.11.10-20250411-093402.adfc4562",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",
@@ -154,31 +154,31 @@
154
154
  "scule": "^1.3.0",
155
155
  "semver": "^7.7.1",
156
156
  "serve-placeholder": "^2.0.2",
157
- "serve-static": "^1.16.2",
157
+ "serve-static": "^2.2.0",
158
158
  "source-map": "^0.7.4",
159
159
  "std-env": "^3.9.0",
160
- "ufo": "^1.6.0",
160
+ "ufo": "^1.6.1",
161
161
  "ultrahtml": "^1.6.0",
162
162
  "uncrypto": "^0.1.3",
163
163
  "unctx": "^2.4.1",
164
164
  "unenv": "^2.0.0-rc.15",
165
- "unimport": "^4.1.3",
165
+ "unimport": "^5.0.0",
166
166
  "unplugin-utils": "^0.2.4",
167
167
  "unstorage": "^1.15.0",
168
168
  "untyped": "^2.0.0",
169
169
  "unwasm": "^0.3.9",
170
- "youch": "^4.1.0-beta.6",
170
+ "youch": "^4.1.0-beta.7",
171
171
  "youch-core": "^0.3.2"
172
172
  },
173
173
  "devDependencies": {
174
174
  "@azure/functions": "^3.5.1",
175
175
  "@azure/static-web-apps-cli": "^2.0.5",
176
- "@cloudflare/workers-types": "^4.20250407.0",
176
+ "@cloudflare/workers-types": "^4.20250410.0",
177
177
  "@deno/types": "^0.0.1",
178
178
  "@netlify/edge-functions": "^2.11.1",
179
- "@scalar/api-reference": "^1.28.12",
179
+ "@scalar/api-reference": "^1.28.15",
180
180
  "@types/archiver": "^6.0.3",
181
- "@types/aws-lambda": "^8.10.148",
181
+ "@types/aws-lambda": "^8.10.149",
182
182
  "@types/estree": "^1.0.7",
183
183
  "@types/etag": "^1.8.3",
184
184
  "@types/fs-extra": "^11.0.4",
@@ -197,12 +197,12 @@
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.20250405.0",
200
+ "miniflare": "^4.20250408.0",
201
201
  "ohash-v1": "npm:ohash@^1.1.6",
202
202
  "prettier": "^3.5.3",
203
203
  "typescript": "^5.8.3",
204
204
  "unbuild": "^3.5.0",
205
- "undici": "^7.7.0",
205
+ "undici": "^7.8.0",
206
206
  "vitest": "^3.1.1",
207
207
  "xml2js": "^0.6.2"
208
208
  },