nitropack-nightly 2.11.9-20250407-173327.5e727628 → 2.11.9-20250410-104945.044f5266

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-20250407-173327.5e727628";
1
+ const version = "2.11.9-20250410-104945.044f5266";
2
2
 
3
3
  const compatibilityChanges = [
4
4
  {
@@ -4,6 +4,7 @@ export const builtnNodeModules = [
4
4
  "_stream_readable",
5
5
  "_stream_transform",
6
6
  "_stream_writable",
7
+ "_tls_common",
7
8
  "_tls_wrap",
8
9
  // Missing exports: Server, createServer
9
10
  "assert",
@@ -23,7 +24,6 @@ export const builtnNodeModules = [
23
24
  "path/win32",
24
25
  "querystring",
25
26
  "stream",
26
- // Missing exports: duplexPair
27
27
  "stream/consumers",
28
28
  "stream/promises",
29
29
  "stream/web",
@@ -41,9 +41,9 @@ export const hybridNodeModules = [
41
41
  "module",
42
42
  // Missing exports: Module, SourceMap, constants, enableCompileCache, findPackageJSON, findSourceMap, flushCompileCache, getCompileCacheDir, getSourceMapsSupport, globalPaths, register, runMain, setSourceMapsSupport, stripTypeScriptTypes, syncBuiltinESMExports
43
43
  "process",
44
- // Missing exports: abort, allowedNodeEnvironmentFlags, arch, argv, argv0, assert, availableMemory, binding, chdir, config, constrainedMemory, cpuUsage, cwd, debugPort, dlopen, domain, emitWarning, execArgv, execPath, exitCode, features, finalization, getActiveResourcesInfo, getegid, geteuid, getgid, getgroups, getuid, hasUncaughtExceptionCaptureCallback, hrtime, initgroups, kill, loadEnvFile, memoryUsage, moduleLoadList, openStdin, pid, ppid, reallyExit, ref, release, report, resourceUsage, setSourceMapsEnabled, setUncaughtExceptionCaptureCallback, setegid, seteuid, setgid, setgroups, setuid, sourceMapsEnabled, stderr, stdin, stdout, title, umask, unref, uptime, version, versions
44
+ // Missing exports: abort, allowedNodeEnvironmentFlags, arch, argv, argv0, assert, availableMemory, binding, chdir, config, constrainedMemory, cpuUsage, cwd, debugPort, dlopen, domain, emitWarning, execArgv, execPath, exitCode, finalization, getActiveResourcesInfo, getegid, geteuid, getgid, getgroups, getuid, hasUncaughtExceptionCaptureCallback, hrtime, initgroups, kill, loadEnvFile, memoryUsage, moduleLoadList, openStdin, pid, ppid, reallyExit, ref, release, report, resourceUsage, setSourceMapsEnabled, setUncaughtExceptionCaptureCallback, setegid, seteuid, setgid, setgroups, setuid, sourceMapsEnabled, stderr, stdin, stdout, title, umask, unref, uptime, version, versions
45
45
  "tls",
46
- // Missing exports: CLIENT_RENEG_LIMIT, CLIENT_RENEG_WINDOW, DEFAULT_CIPHERS, DEFAULT_ECDH_CURVE, DEFAULT_MAX_VERSION, DEFAULT_MIN_VERSION, SecureContext, Server, checkServerIdentity, convertALPNProtocols, createSecureContext, createSecurePair, createServer, getCiphers, rootCertificates
46
+ // Missing exports: CLIENT_RENEG_LIMIT, CLIENT_RENEG_WINDOW, DEFAULT_CIPHERS, DEFAULT_ECDH_CURVE, DEFAULT_MAX_VERSION, DEFAULT_MIN_VERSION, Server, createSecurePair, createServer, getCiphers, rootCertificates
47
47
  "util"
48
48
  // Missing exports: isBoolean, isBuffer, isDate, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined
49
49
  ];
@@ -55,7 +55,6 @@ export const unsupportedNodeModules = [
55
55
  "_http_outgoing",
56
56
  "_http_server",
57
57
  "_stream_wrap",
58
- "_tls_common",
59
58
  "child_process",
60
59
  "cluster",
61
60
  "constants",
@@ -69,6 +69,8 @@ export const builtnNodeModules = [
69
69
  "readline/promises",
70
70
  "repl",
71
71
  // Missing exports: Recoverable, writer
72
+ "sqlite",
73
+ // Missing exports: StatementSync
72
74
  "stream",
73
75
  // Missing exports: duplexPair, promises
74
76
  "stream/consumers",
@@ -101,6 +103,5 @@ export const hybridNodeModules = [];
101
103
  export const unsupportedNodeModules = [
102
104
  "_http_client",
103
105
  "_http_incoming",
104
- "_stream_wrap",
105
- "sqlite"
106
+ "_stream_wrap"
106
107
  ];
@@ -20,6 +20,14 @@ for (const key of ["exit", "getBuiltinModule", "platform"]) {
20
20
  }
21
21
  }
22
22
 
23
+ if (workerdProcess.features) {
24
+ Object.defineProperty(mixedProcess, "features", {
25
+ get() {
26
+ return workerdProcess.features;
27
+ },
28
+ });
29
+ }
30
+
23
31
  export default mixedProcess;
24
32
 
25
33
  export const {
@@ -1,5 +1,9 @@
1
1
  export const TLSSocket: any;
2
2
  export const connect: any;
3
+ export const SecureContext: any;
4
+ export const checkServerIdentity: any;
5
+ export const convertALPNProtocols: any;
6
+ export const createSecureContext: any;
3
7
  declare namespace _default {
4
8
  export { TLSSocket };
5
9
  export { connect };
@@ -9,11 +9,7 @@ import {
9
9
  DEFAULT_ECDH_CURVE,
10
10
  DEFAULT_MAX_VERSION,
11
11
  DEFAULT_MIN_VERSION,
12
- SecureContext,
13
12
  Server,
14
- checkServerIdentity,
15
- convertALPNProtocols,
16
- createSecureContext,
17
13
  createSecurePair,
18
14
  createServer,
19
15
  getCiphers,
@@ -27,18 +23,21 @@ export {
27
23
  DEFAULT_ECDH_CURVE,
28
24
  DEFAULT_MAX_VERSION,
29
25
  DEFAULT_MIN_VERSION,
30
- SecureContext,
31
26
  Server,
32
- checkServerIdentity,
33
- convertALPNProtocols,
34
- createSecureContext,
35
27
  createSecurePair,
36
28
  createServer,
37
29
  getCiphers,
38
30
  rootCertificates,
39
31
  } from "unenv/node/tls";
40
32
 
41
- export const { TLSSocket, connect } = workerdTLS;
33
+ export const {
34
+ TLSSocket,
35
+ connect,
36
+ SecureContext,
37
+ checkServerIdentity,
38
+ convertALPNProtocols,
39
+ createSecureContext,
40
+ } = workerdTLS;
42
41
 
43
42
  export default {
44
43
  // native
@@ -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
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.11.9-20250407-173327.5e727628",
3
+ "version": "2.11.9-20250410-104945.044f5266",
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
  },