aws-delivlib 15.2.0 → 15.3.0

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.
Files changed (108) hide show
  1. package/lib/auto-build.d.ts +7 -1
  2. package/lib/auto-build.js +2 -1
  3. package/lib/custom-resource-handlers/src/certificate-signing-request.tsbuildinfo +1 -1
  4. package/lib/custom-resource-handlers/src/pgp-secret.tsbuildinfo +1 -1
  5. package/lib/custom-resource-handlers/src/private-key.tsbuildinfo +1 -1
  6. package/lib/package-integrity/handler/validate.bundle.js +23640 -19373
  7. package/lib/publishing/github/node_modules/.yarn-integrity +4 -4
  8. package/lib/publishing/github/node_modules/@types/aws-lambda/README.md +1 -1
  9. package/lib/publishing/github/node_modules/@types/aws-lambda/package.json +2 -2
  10. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.ts +40 -0
  11. package/lib/publishing/github/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +3 -1
  12. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +1 -1
  13. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert/strict.d.ts +0 -46
  14. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert.d.ts +2 -7
  15. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +126 -38
  16. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.buffer.d.ts +1 -1
  17. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +0 -45
  18. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/child_process.d.ts +5 -67
  19. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +0 -54
  20. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts +0 -58
  21. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/constants.d.ts +0 -6
  22. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +14 -21
  23. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts +0 -27
  24. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +0 -24
  25. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns/promises.d.ts +0 -6
  26. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts +0 -46
  27. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts +0 -16
  28. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts +12 -58
  29. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +150 -11
  30. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +132 -28
  31. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +23 -43
  32. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +16 -11
  33. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/https.d.ts +0 -5
  34. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/index.d.ts +2 -0
  35. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector/promises.d.ts +0 -6
  36. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +45 -5
  37. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.generated.d.ts +583 -403
  38. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +1 -65
  39. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +57 -20
  40. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/os.d.ts +0 -9
  41. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +4 -4
  42. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/path.d.ts +0 -9
  43. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/perf_hooks.d.ts +0 -31
  44. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +75 -32
  45. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/punycode.d.ts +0 -28
  46. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +0 -13
  47. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/quic.d.ts +2 -15
  48. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline/promises.d.ts +0 -3
  49. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +1 -35
  50. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/repl.d.ts +15 -10
  51. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sea.d.ts +0 -115
  52. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sqlite.d.ts +182 -69
  53. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/consumers.d.ts +81 -5
  54. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/iter.d.ts +301 -0
  55. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/web.d.ts +7 -3
  56. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream.d.ts +42 -28
  57. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/string_decoder.d.ts +0 -40
  58. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test/reporters.d.ts +1 -38
  59. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +153 -113
  60. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers/promises.d.ts +0 -15
  61. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers.d.ts +0 -10
  62. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +20 -25
  63. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/trace_events.d.ts +0 -94
  64. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -1
  65. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/index.d.ts +2 -0
  66. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/index.d.ts +2 -0
  67. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts +0 -25
  68. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts +49 -12
  69. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +27 -12
  70. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +9 -12
  71. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +55 -127
  72. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/wasi.d.ts +0 -71
  73. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
  74. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/worker_threads.d.ts +15 -61
  75. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib/iter.d.ts +131 -0
  76. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +68 -97
  77. package/lib/publishing/github/node_modules/semver/README.md +22 -6
  78. package/lib/publishing/github/node_modules/semver/bin/semver.js +15 -11
  79. package/lib/publishing/github/node_modules/semver/classes/range.js +7 -0
  80. package/lib/publishing/github/node_modules/semver/functions/diff.js +1 -1
  81. package/lib/publishing/github/node_modules/semver/functions/truncate.js +48 -0
  82. package/lib/publishing/github/node_modules/semver/index.js +2 -0
  83. package/lib/publishing/github/node_modules/semver/internal/re.js +3 -3
  84. package/lib/publishing/github/node_modules/semver/package.json +4 -4
  85. package/lib/publishing/github/node_modules/semver/range.bnf +5 -4
  86. package/lib/publishing/github/node_modules/semver/ranges/subset.js +3 -3
  87. package/lib/publishing/github/node_modules/undici-types/agent.d.ts +1 -1
  88. package/lib/publishing/github/node_modules/undici-types/api.d.ts +2 -2
  89. package/lib/publishing/github/node_modules/undici-types/balanced-pool.d.ts +2 -1
  90. package/lib/publishing/github/node_modules/undici-types/cache-interceptor.d.ts +7 -0
  91. package/lib/publishing/github/node_modules/undici-types/client.d.ts +16 -1
  92. package/lib/publishing/github/node_modules/undici-types/connector.d.ts +4 -2
  93. package/lib/publishing/github/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
  94. package/lib/publishing/github/node_modules/undici-types/dispatcher.d.ts +20 -17
  95. package/lib/publishing/github/node_modules/undici-types/errors.d.ts +17 -1
  96. package/lib/publishing/github/node_modules/undici-types/fetch.d.ts +4 -4
  97. package/lib/publishing/github/node_modules/undici-types/formdata.d.ts +1 -1
  98. package/lib/publishing/github/node_modules/undici-types/h2c-client.d.ts +1 -1
  99. package/lib/publishing/github/node_modules/undici-types/index.d.ts +12 -1
  100. package/lib/publishing/github/node_modules/undici-types/interceptors.d.ts +43 -2
  101. package/lib/publishing/github/node_modules/undici-types/package.json +1 -1
  102. package/lib/publishing/github/node_modules/undici-types/pool.d.ts +1 -1
  103. package/lib/publishing/github/node_modules/undici-types/readable.d.ts +2 -2
  104. package/lib/publishing/github/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  105. package/lib/publishing/github/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  106. package/lib/publishing/github/node_modules/undici-types/webidl.d.ts +6 -0
  107. package/lib/publishing/github/node_modules/undici-types/websocket.d.ts +11 -9
  108. package/package.json +28 -14
@@ -1,23 +1,3 @@
1
- /**
2
- * The `node:fs` module enables interacting with the file system in a
3
- * way modeled on standard POSIX functions.
4
- *
5
- * To use the promise-based APIs:
6
- *
7
- * ```js
8
- * import * as fs from 'node:fs/promises';
9
- * ```
10
- *
11
- * To use the callback and sync APIs:
12
- *
13
- * ```js
14
- * import * as fs from 'node:fs';
15
- * ```
16
- *
17
- * All file system operations have synchronous, callback, and promise-based
18
- * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
19
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/fs.js)
20
- */
21
1
  declare module "node:fs" {
22
2
  import { NonSharedBuffer } from "node:buffer";
23
3
  import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
@@ -400,7 +380,8 @@ declare module "node:fs" {
400
380
  "ready": [];
401
381
  }
402
382
  /**
403
- * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
383
+ * Instances of `fs.ReadStream` cannot be constructed directly. They are created and
384
+ * returned using the `fs.createReadStream()` function.
404
385
  * @since v0.1.93
405
386
  */
406
387
  class ReadStream extends stream.Readable {
@@ -663,7 +644,8 @@ declare module "node:fs" {
663
644
  "ready": [];
664
645
  }
665
646
  /**
666
- * Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function.
647
+ * Instances of `fs.WriteStream` cannot be constructed directly. They are created and
648
+ * returned using the `fs.createWriteStream()` function.
667
649
  * @since v0.1.93
668
650
  */
669
651
  class WriteStream extends stream.Writable {
@@ -1164,6 +1146,7 @@ declare module "node:fs" {
1164
1146
  options:
1165
1147
  | (StatOptions & {
1166
1148
  bigint?: false | undefined;
1149
+ throwIfNoEntry?: true | undefined;
1167
1150
  })
1168
1151
  | undefined,
1169
1152
  callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
@@ -1172,33 +1155,82 @@ declare module "node:fs" {
1172
1155
  path: PathLike,
1173
1156
  options: StatOptions & {
1174
1157
  bigint: true;
1158
+ throwIfNoEntry?: true | undefined;
1175
1159
  },
1176
1160
  callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
1177
1161
  ): void;
1178
1162
  function stat(
1179
1163
  path: PathLike,
1180
- options: StatOptions | undefined,
1164
+ options: StatOptions & {
1165
+ bigint?: false | undefined;
1166
+ throwIfNoEntry: false;
1167
+ },
1168
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats | undefined) => void,
1169
+ ): void;
1170
+ function stat(
1171
+ path: PathLike,
1172
+ options: StatOptions & {
1173
+ bigint: true;
1174
+ throwIfNoEntry: false;
1175
+ },
1176
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats | undefined) => void,
1177
+ ): void;
1178
+ function stat(
1179
+ path: PathLike,
1180
+ options: StatOptions & {
1181
+ throwIfNoEntry?: true | undefined;
1182
+ },
1181
1183
  callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
1182
1184
  ): void;
1185
+ function stat(
1186
+ path: PathLike,
1187
+ options: StatOptions | undefined,
1188
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats | undefined) => void,
1189
+ ): void;
1183
1190
  namespace stat {
1191
+ // TODO: aliased promisify signatures
1184
1192
  /**
1185
1193
  * Asynchronous stat(2) - Get file status.
1186
1194
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1187
1195
  */
1196
+ function __promisify__(path: PathLike): Promise<Stats>;
1188
1197
  function __promisify__(
1189
1198
  path: PathLike,
1190
1199
  options?: StatOptions & {
1191
1200
  bigint?: false | undefined;
1201
+ throwIfNoEntry?: true | undefined;
1192
1202
  },
1193
1203
  ): Promise<Stats>;
1194
1204
  function __promisify__(
1195
1205
  path: PathLike,
1196
1206
  options: StatOptions & {
1197
1207
  bigint: true;
1208
+ throwIfNoEntry?: true | undefined;
1198
1209
  },
1199
1210
  ): Promise<BigIntStats>;
1200
- function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
1211
+ function __promisify__(
1212
+ path: PathLike,
1213
+ options: StatOptions & {
1214
+ bigint?: false | undefined;
1215
+ throwIfNoEntry: false;
1216
+ },
1217
+ ): Promise<Stats | undefined>;
1218
+ function __promisify__(
1219
+ path: PathLike,
1220
+ options: StatOptions & {
1221
+ bigint: true;
1222
+ throwIfNoEntry: false;
1223
+ },
1224
+ ): Promise<BigIntStats | undefined>;
1225
+ function __promisify__(
1226
+ path: PathLike,
1227
+ options: StatOptions & {
1228
+ throwIfNoEntry?: true | undefined;
1229
+ },
1230
+ ): Promise<Stats | BigIntStats>;
1231
+ function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats | undefined>;
1201
1232
  }
1233
+ /** @deprecated This orphaned interface will be removed in a future version. */
1202
1234
  interface StatSyncFn extends Function {
1203
1235
  (path: PathLike, options?: undefined): Stats;
1204
1236
  (
@@ -1240,7 +1272,42 @@ declare module "node:fs" {
1240
1272
  * Synchronous stat(2) - Get file status.
1241
1273
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1242
1274
  */
1243
- const statSync: StatSyncFn;
1275
+ function statSync(path: PathLike): Stats;
1276
+ function statSync(
1277
+ path: PathLike,
1278
+ options?: StatOptions & {
1279
+ bigint?: false | undefined;
1280
+ throwIfNoEntry?: true | undefined;
1281
+ },
1282
+ ): Stats;
1283
+ function statSync(
1284
+ path: PathLike,
1285
+ options: StatOptions & {
1286
+ bigint: true;
1287
+ throwIfNoEntry?: true | undefined;
1288
+ },
1289
+ ): BigIntStats;
1290
+ function statSync(
1291
+ path: PathLike,
1292
+ options: StatOptions & {
1293
+ bigint?: false | undefined;
1294
+ throwIfNoEntry: false;
1295
+ },
1296
+ ): Stats | undefined;
1297
+ function statSync(
1298
+ path: PathLike,
1299
+ options: StatOptions & {
1300
+ bigint: true;
1301
+ throwIfNoEntry: false;
1302
+ },
1303
+ ): BigIntStats | undefined;
1304
+ function statSync(
1305
+ path: PathLike,
1306
+ options: StatOptions & {
1307
+ throwIfNoEntry?: true | undefined;
1308
+ },
1309
+ ): Stats | BigIntStats;
1310
+ function statSync(path: PathLike, options?: StatOptions): Stats | BigIntStats | undefined;
1244
1311
  /**
1245
1312
  * Invokes the callback with the `fs.Stats` for the file descriptor.
1246
1313
  *
@@ -1430,7 +1497,42 @@ declare module "node:fs" {
1430
1497
  * Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
1431
1498
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1432
1499
  */
1433
- const lstatSync: StatSyncFn;
1500
+ function lstatSync(path: PathLike): Stats;
1501
+ function lstatSync(
1502
+ path: PathLike,
1503
+ options?: StatOptions & {
1504
+ bigint?: false | undefined;
1505
+ throwIfNoEntry?: true | undefined;
1506
+ },
1507
+ ): Stats;
1508
+ function lstatSync(
1509
+ path: PathLike,
1510
+ options: StatOptions & {
1511
+ bigint: true;
1512
+ throwIfNoEntry?: true | undefined;
1513
+ },
1514
+ ): BigIntStats;
1515
+ function lstatSync(
1516
+ path: PathLike,
1517
+ options: StatOptions & {
1518
+ bigint?: false | undefined;
1519
+ throwIfNoEntry: false;
1520
+ },
1521
+ ): Stats | undefined;
1522
+ function lstatSync(
1523
+ path: PathLike,
1524
+ options: StatOptions & {
1525
+ bigint: true;
1526
+ throwIfNoEntry: false;
1527
+ },
1528
+ ): BigIntStats | undefined;
1529
+ function lstatSync(
1530
+ path: PathLike,
1531
+ options: StatOptions & {
1532
+ throwIfNoEntry?: true | undefined;
1533
+ },
1534
+ ): Stats | BigIntStats;
1535
+ function lstatSync(path: PathLike, options?: StatOptions): Stats | BigIntStats | undefined;
1434
1536
  /**
1435
1537
  * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than
1436
1538
  * a possible
@@ -3553,10 +3655,12 @@ declare module "node:fs" {
3553
3655
  */
3554
3656
  function unwatchFile(filename: PathLike, listener?: StatsListener): void;
3555
3657
  function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void;
3658
+ type WatchIgnorePredicate = string | RegExp | ((filename: string) => boolean);
3556
3659
  interface WatchOptions extends Abortable {
3557
3660
  encoding?: BufferEncoding | "buffer" | undefined;
3558
3661
  persistent?: boolean | undefined;
3559
3662
  recursive?: boolean | undefined;
3663
+ ignore?: WatchIgnorePredicate | readonly WatchIgnorePredicate[] | undefined;
3560
3664
  }
3561
3665
  interface WatchOptionsWithBufferEncoding extends WatchOptions {
3562
3666
  encoding: "buffer";
@@ -4479,10 +4583,10 @@ declare module "node:fs" {
4479
4583
  }
4480
4584
  interface StatOptions {
4481
4585
  bigint?: boolean | undefined;
4482
- }
4483
- interface StatSyncOptions extends StatOptions {
4484
4586
  throwIfNoEntry?: boolean | undefined;
4485
4587
  }
4588
+ /** @deprecated This orphaned interface will be removed in a future version. Use `StatOptions` instead. */
4589
+ interface StatSyncOptions extends StatOptions {}
4486
4590
  interface CopyOptionsBase {
4487
4591
  /**
4488
4592
  * Dereference symlinks
@@ -1,44 +1,3 @@
1
- /**
2
- * To use the HTTP server and client one must import the `node:http` module.
3
- *
4
- * The HTTP interfaces in Node.js are designed to support many features
5
- * of the protocol which have been traditionally difficult to use.
6
- * In particular, large, possibly chunk-encoded, messages. The interface is
7
- * careful to never buffer entire requests or responses, so the
8
- * user is able to stream data.
9
- *
10
- * HTTP message headers are represented by an object like this:
11
- *
12
- * ```json
13
- * { "content-length": "123",
14
- * "content-type": "text/plain",
15
- * "connection": "keep-alive",
16
- * "host": "example.com",
17
- * "accept": "*" }
18
- * ```
19
- *
20
- * Keys are lowercased. Values are not modified.
21
- *
22
- * In order to support the full spectrum of possible HTTP applications, the Node.js
23
- * HTTP API is very low-level. It deals with stream handling and message
24
- * parsing only. It parses a message into headers and body but it does not
25
- * parse the actual headers or the body.
26
- *
27
- * See `message.headers` for details on how duplicate headers are handled.
28
- *
29
- * The raw headers as they were received are retained in the `rawHeaders` property, which is an array of `[key, value, key2, value2, ...]`. For
30
- * example, the previous message header object might have a `rawHeaders` list like the following:
31
- *
32
- * ```js
33
- * [ 'ConTent-Length', '123456',
34
- * 'content-LENGTH', '123',
35
- * 'content-type', 'text/plain',
36
- * 'CONNECTION', 'keep-alive',
37
- * 'Host', 'example.com',
38
- * 'accepT', '*' ]
39
- * ```
40
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/http.js)
41
- */
42
1
  declare module "node:http" {
43
2
  import { NonSharedBuffer } from "node:buffer";
44
3
  import { LookupOptions } from "node:dns";
@@ -954,7 +913,7 @@ declare module "node:http" {
954
913
  * been transmitted are equal or not.
955
914
  *
956
915
  * Attempting to set a header field name or value that contains invalid characters
957
- * will result in a \[`Error`\]\[\] being thrown.
916
+ * will result in a `Error` being thrown.
958
917
  * @since v0.1.30
959
918
  */
960
919
  writeHead(
@@ -1664,7 +1623,7 @@ declare module "node:http" {
1664
1623
  * sockets. Do not modify.
1665
1624
  * @since v0.5.9
1666
1625
  */
1667
- readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
1626
+ readonly requests: NodeJS.ReadOnlyDict<ClientRequest[]>;
1668
1627
  constructor(opts?: AgentOptions);
1669
1628
  /**
1670
1629
  * Destroy any sockets that are currently in use by the agent.
@@ -2136,6 +2095,27 @@ declare module "node:http" {
2136
2095
  * @param [max=1000]
2137
2096
  */
2138
2097
  function setMaxIdleHTTPParsers(max: number): void;
2098
+ /**
2099
+ * Dynamically resets the global configurations to enable built-in proxy support for
2100
+ * `fetch()` and `http.request()`/`https.request()` at runtime, as an alternative
2101
+ * to using the `--use-env-proxy` flag or `NODE_USE_ENV_PROXY` environment variable.
2102
+ * It can also be used to override settings configured from the environment variables.
2103
+ *
2104
+ * As this function resets the global configurations, any previously configured
2105
+ * `http.globalAgent`, `https.globalAgent` or undici global dispatcher would be
2106
+ * overridden after this function is invoked. It's recommended to invoke it before any
2107
+ * requests are made and avoid invoking it in the middle of any requests.
2108
+ *
2109
+ * See [Built-in Proxy Support](https://nodejs.org/docs/latest-v25.x/api/http.html#built-in-proxy-support) for details on proxy URL formats and `NO_PROXY`
2110
+ * syntax.
2111
+ * @since v25.4.0
2112
+ * @param proxyEnv An object containing proxy configuration. This accepts the
2113
+ * same options as the `proxyEnv` option accepted by {@link Agent}. **Default:**
2114
+ * `process.env`.
2115
+ * @returns A function that restores the original agent and dispatcher
2116
+ * settings to the state before this `http.setGlobalProxyFromEnv()` is invoked.
2117
+ */
2118
+ function setGlobalProxyFromEnv(proxyEnv?: ProxyEnv): () => void;
2139
2119
  /**
2140
2120
  * Global instance of `Agent` which is used as the default for all HTTP client
2141
2121
  * requests. Diverges from a default `Agent` configuration by having `keepAlive`
@@ -1,13 +1,3 @@
1
- /**
2
- * The `node:http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol.
3
- * It can be accessed using:
4
- *
5
- * ```js
6
- * import http2 from 'node:http2';
7
- * ```
8
- * @since v8.4.0
9
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/http2.js)
10
- */
11
1
  declare module "node:http2" {
12
2
  import { NonSharedBuffer } from "node:buffer";
13
3
  import { InternalEventEmitter } from "node:events";
@@ -1252,10 +1242,14 @@ declare module "node:http2" {
1252
1242
  > extends SessionOptions {
1253
1243
  streamResetBurst?: number | undefined;
1254
1244
  streamResetRate?: number | undefined;
1245
+ /** @deprecated Use `http1Options.IncomingMessage` instead. */
1255
1246
  Http1IncomingMessage?: Http1Request | undefined;
1247
+ /** @deprecated Use `http1Options.ServerResponse` instead. */
1256
1248
  Http1ServerResponse?: Http1Response | undefined;
1249
+ http1Options?: Http1Options<Http1Request, Http1Response> | undefined;
1257
1250
  Http2ServerRequest?: Http2Request | undefined;
1258
1251
  Http2ServerResponse?: Http2Response | undefined;
1252
+ strictSingleValueFields?: boolean | undefined;
1259
1253
  }
1260
1254
  interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {}
1261
1255
  interface SecureServerSessionOptions<
@@ -1279,6 +1273,14 @@ declare module "node:http2" {
1279
1273
  allowHTTP1?: boolean | undefined;
1280
1274
  origins?: string[] | undefined;
1281
1275
  }
1276
+ interface Http1Options<
1277
+ Request extends typeof IncomingMessage,
1278
+ Response extends typeof ServerResponse<InstanceType<Request>>,
1279
+ > {
1280
+ IncomingMessage?: Request | undefined;
1281
+ ServerResponse?: Response | undefined;
1282
+ keepAliveTimeout?: number | undefined;
1283
+ }
1282
1284
  interface Http2ServerCommon {
1283
1285
  setTimeout(msec?: number, callback?: () => void): this;
1284
1286
  /**
@@ -1296,7 +1298,10 @@ declare module "node:http2" {
1296
1298
  "checkContinue": [request: InstanceType<Http2Request>, response: InstanceType<Http2Response>];
1297
1299
  "request": [request: InstanceType<Http2Request>, response: InstanceType<Http2Response>];
1298
1300
  "session": [session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>];
1299
- "sessionError": [err: Error];
1301
+ "sessionError": [
1302
+ err: Error,
1303
+ session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
1304
+ ];
1300
1305
  }
1301
1306
  interface Http2Server<
1302
1307
  Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
@@ -1,8 +1,3 @@
1
- /**
2
- * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
3
- * separate module.
4
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/https.js)
5
- */
6
1
  declare module "node:https" {
7
2
  import * as http from "node:http";
8
3
  import { Duplex } from "node:stream";
@@ -95,6 +95,7 @@
95
95
  /// <reference path="sqlite.d.ts" />
96
96
  /// <reference path="stream.d.ts" />
97
97
  /// <reference path="stream/consumers.d.ts" />
98
+ /// <reference path="stream/iter.d.ts" />
98
99
  /// <reference path="stream/promises.d.ts" />
99
100
  /// <reference path="stream/web.d.ts" />
100
101
  /// <reference path="string_decoder.d.ts" />
@@ -113,3 +114,4 @@
113
114
  /// <reference path="wasi.d.ts" />
114
115
  /// <reference path="worker_threads.d.ts" />
115
116
  /// <reference path="zlib.d.ts" />
117
+ /// <reference path="zlib/iter.d.ts" />
@@ -1,9 +1,3 @@
1
- /**
2
- * The `node:inspector/promises` module provides an API for interacting with the V8
3
- * inspector.
4
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/inspector/promises.js)
5
- * @since v19.0.0
6
- */
7
1
  declare module "node:inspector/promises" {
8
2
  import { EventEmitter } from "node:events";
9
3
  export { close, console, NetworkResources, open, url, waitForDebugger } from "node:inspector";
@@ -1,8 +1,3 @@
1
- /**
2
- * The `node:inspector` module provides an API for interacting with the V8
3
- * inspector.
4
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/inspector.js)
5
- */
6
1
  declare module "node:inspector" {
7
2
  import { EventEmitter } from "node:events";
8
3
  /**
@@ -218,6 +213,51 @@ declare module "node:inspector" {
218
213
  */
219
214
  function put(url: string, data: string): void;
220
215
  }
216
+ namespace DOMStorage {
217
+ /**
218
+ * This feature is only available with the
219
+ * `--experimental-storage-inspection` flag enabled.
220
+ *
221
+ * Broadcasts the `DOMStorage.domStorageItemAdded` event to connected frontends.
222
+ * This event indicates that a new item has been added to the storage.
223
+ * @since v25.5.0
224
+ */
225
+ function domStorageItemAdded(params: DomStorageItemAddedEventDataType): void;
226
+ /**
227
+ * This feature is only available with the
228
+ * `--experimental-storage-inspection` flag enabled.
229
+ *
230
+ * Broadcasts the `DOMStorage.domStorageItemRemoved` event to connected frontends.
231
+ * This event indicates that an item has been removed from the storage.
232
+ * @since v25.5.0
233
+ */
234
+ function domStorageItemRemoved(params: DomStorageItemRemovedEventDataType): void;
235
+ /**
236
+ * This feature is only available with the
237
+ * `--experimental-storage-inspection` flag enabled.
238
+
239
+ * Broadcasts the `DOMStorage.domStorageItemUpdated` event to connected frontends.
240
+ * This event indicates that a storage item has been updated.
241
+ * @since v25.5.0
242
+ */
243
+ function domStorageItemUpdated(params: DomStorageItemUpdatedEventDataType): void;
244
+ /**
245
+ * This feature is only available with the
246
+ * `--experimental-storage-inspection` flag enabled.
247
+ *
248
+ * Broadcasts the `DOMStorage.domStorageItemsCleared` event to connected
249
+ * frontends. This event indicates that all items have been cleared from the
250
+ * storage.
251
+ * @since v25.5.0
252
+ */
253
+ function domStorageItemsCleared(params: DomStorageItemsClearedEventDataType): void;
254
+ /**
255
+ * This feature is only available with the
256
+ * `--experimental-storage-inspection` flag enabled.
257
+ * @since v25.5.0
258
+ */
259
+ function registerStorage(params: unknown): void;
260
+ }
221
261
  }
222
262
  declare module "inspector" {
223
263
  export * from "node:inspector";