cdk-common 2.0.1168 → 2.0.1169

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 (37) hide show
  1. package/.jsii +2 -2
  2. package/lib/main.js +1 -1
  3. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +7 -48
  5. package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +0 -2
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +8 -9
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +3 -9
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +3 -4
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +36 -0
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +25 -0
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +22 -0
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +6 -1
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +36 -13
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +54 -6
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +25 -0
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +207 -88
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +81 -0
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +167 -36
  20. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  21. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +7 -48
  22. package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +0 -2
  23. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +8 -9
  24. package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +3 -9
  25. package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +3 -4
  26. package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +36 -0
  27. package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +25 -0
  28. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  29. package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +22 -0
  30. package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +6 -1
  31. package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +36 -13
  32. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +54 -6
  33. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +25 -0
  34. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +207 -88
  35. package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +81 -0
  36. package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +167 -36
  37. package/package.json +1 -1
@@ -113,6 +113,87 @@ declare module "v8" {
113
113
  * @since v1.0.0
114
114
  */
115
115
  function getHeapStatistics(): HeapInfo;
116
+ /**
117
+ * It returns an object with a structure similar to the
118
+ * [`cppgc::HeapStatistics`](https://v8docs.nodesource.com/node-22.4/d7/d51/heap-statistics_8h_source.html)
119
+ * object. See the [V8 documentation](https://v8docs.nodesource.com/node-22.4/df/d2f/structcppgc_1_1_heap_statistics.html)
120
+ * for more information about the properties of the object.
121
+ *
122
+ * ```js
123
+ * // Detailed
124
+ * ({
125
+ * committed_size_bytes: 131072,
126
+ * resident_size_bytes: 131072,
127
+ * used_size_bytes: 152,
128
+ * space_statistics: [
129
+ * {
130
+ * name: 'NormalPageSpace0',
131
+ * committed_size_bytes: 0,
132
+ * resident_size_bytes: 0,
133
+ * used_size_bytes: 0,
134
+ * page_stats: [{}],
135
+ * free_list_stats: {},
136
+ * },
137
+ * {
138
+ * name: 'NormalPageSpace1',
139
+ * committed_size_bytes: 131072,
140
+ * resident_size_bytes: 131072,
141
+ * used_size_bytes: 152,
142
+ * page_stats: [{}],
143
+ * free_list_stats: {},
144
+ * },
145
+ * {
146
+ * name: 'NormalPageSpace2',
147
+ * committed_size_bytes: 0,
148
+ * resident_size_bytes: 0,
149
+ * used_size_bytes: 0,
150
+ * page_stats: [{}],
151
+ * free_list_stats: {},
152
+ * },
153
+ * {
154
+ * name: 'NormalPageSpace3',
155
+ * committed_size_bytes: 0,
156
+ * resident_size_bytes: 0,
157
+ * used_size_bytes: 0,
158
+ * page_stats: [{}],
159
+ * free_list_stats: {},
160
+ * },
161
+ * {
162
+ * name: 'LargePageSpace',
163
+ * committed_size_bytes: 0,
164
+ * resident_size_bytes: 0,
165
+ * used_size_bytes: 0,
166
+ * page_stats: [{}],
167
+ * free_list_stats: {},
168
+ * },
169
+ * ],
170
+ * type_names: [],
171
+ * detail_level: 'detailed',
172
+ * });
173
+ * ```
174
+ *
175
+ * ```js
176
+ * // Brief
177
+ * ({
178
+ * committed_size_bytes: 131072,
179
+ * resident_size_bytes: 131072,
180
+ * used_size_bytes: 128864,
181
+ * space_statistics: [],
182
+ * type_names: [],
183
+ * detail_level: 'brief',
184
+ * });
185
+ * ```
186
+ * @since v22.15.0
187
+ * @param detailLevel **Default:** `'detailed'`. Specifies the level of detail in the returned statistics.
188
+ * Accepted values are:
189
+ * * `'brief'`: Brief statistics contain only the top-level
190
+ * allocated and used
191
+ * memory statistics for the entire heap.
192
+ * * `'detailed'`: Detailed statistics also contain a break
193
+ * down per space and page, as well as freelist statistics
194
+ * and object type histograms.
195
+ */
196
+ function getCppHeapStatistics(detailLevel?: "brief" | "detailed"): object;
116
197
  /**
117
198
  * Returns statistics about the V8 heap spaces, i.e. the segments which make up
118
199
  * the V8 heap. Neither the ordering of heap spaces, nor the availability of a
@@ -148,6 +148,31 @@ declare module "zlib" {
148
148
  */
149
149
  maxOutputLength?: number | undefined;
150
150
  }
151
+ interface ZstdOptions {
152
+ /**
153
+ * @default constants.ZSTD_e_continue
154
+ */
155
+ flush?: number | undefined;
156
+ /**
157
+ * @default constants.ZSTD_e_end
158
+ */
159
+ finishFlush?: number | undefined;
160
+ /**
161
+ * @default 16 * 1024
162
+ */
163
+ chunkSize?: number | undefined;
164
+ /**
165
+ * Key-value object containing indexed
166
+ * [Zstd parameters](https://nodejs.org/docs/latest-v22.x/api/zlib.html#zstd-constants).
167
+ */
168
+ params?: { [key: number]: number | boolean } | undefined;
169
+ /**
170
+ * Limits output size when using
171
+ * [convenience methods](https://nodejs.org/docs/latest-v22.x/api/zlib.html#convenience-methods).
172
+ * @default buffer.kMaxLength
173
+ */
174
+ maxOutputLength?: number | undefined;
175
+ }
151
176
  interface Zlib {
152
177
  /** @deprecated Use bytesWritten instead. */
153
178
  readonly bytesRead: number;
@@ -172,6 +197,16 @@ declare module "zlib" {
172
197
  interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
173
198
  interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
174
199
  interface Unzip extends stream.Transform, Zlib {}
200
+ /**
201
+ * @since v22.15.0
202
+ * @experimental
203
+ */
204
+ interface ZstdCompress extends stream.Transform, Zlib {}
205
+ /**
206
+ * @since v22.15.0
207
+ * @experimental
208
+ */
209
+ interface ZstdDecompress extends stream.Transform, Zlib {}
175
210
  /**
176
211
  * Computes a 32-bit [Cyclic Redundancy Check](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of `data`.
177
212
  * If `value` is specified, it is used as the starting value of the checksum, otherwise, 0 is used as the starting value.
@@ -233,6 +268,16 @@ declare module "zlib" {
233
268
  * @since v0.5.8
234
269
  */
235
270
  function createUnzip(options?: ZlibOptions): Unzip;
271
+ /**
272
+ * Creates and returns a new `ZstdCompress` object.
273
+ * @since v22.15.0
274
+ */
275
+ function createZstdCompress(options?: ZstdOptions): ZstdCompress;
276
+ /**
277
+ * Creates and returns a new `ZstdDecompress` object.
278
+ * @since v22.15.0
279
+ */
280
+ function createZstdDecompress(options?: ZstdOptions): ZstdDecompress;
236
281
  type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
237
282
  type CompressCallback = (error: Error | null, result: Buffer) => void;
238
283
  /**
@@ -352,6 +397,36 @@ declare module "zlib" {
352
397
  * @since v0.11.12
353
398
  */
354
399
  function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
400
+ /**
401
+ * @since v22.15.0
402
+ * @experimental
403
+ */
404
+ function zstdCompress(buf: InputType, callback: CompressCallback): void;
405
+ function zstdCompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
406
+ namespace zstdCompress {
407
+ function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<Buffer>;
408
+ }
409
+ /**
410
+ * Compress a chunk of data with `ZstdCompress`.
411
+ * @since v22.15.0
412
+ * @experimental
413
+ */
414
+ function zstdCompressSync(buf: InputType, options?: ZstdOptions): Buffer;
415
+ /**
416
+ * @since v22.15.0
417
+ * @experimental
418
+ */
419
+ function zstdDecompress(buf: InputType, callback: CompressCallback): void;
420
+ function zstdDecompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
421
+ namespace zstdDecompress {
422
+ function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<Buffer>;
423
+ }
424
+ /**
425
+ * Decompress a chunk of data with `ZstdDecompress`.
426
+ * @since v22.15.0
427
+ * @experimental
428
+ */
429
+ function zstdDecompressSync(buf: InputType, options?: ZstdOptions): Buffer;
355
430
  namespace constants {
356
431
  const BROTLI_DECODE: number;
357
432
  const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
@@ -423,50 +498,106 @@ declare module "zlib" {
423
498
  const INFLATE: number;
424
499
  const INFLATERAW: number;
425
500
  const UNZIP: number;
426
- // Allowed flush values.
427
- const Z_NO_FLUSH: number;
428
- const Z_PARTIAL_FLUSH: number;
429
- const Z_SYNC_FLUSH: number;
430
- const Z_FULL_FLUSH: number;
431
- const Z_FINISH: number;
501
+ const ZLIB_VERNUM: number;
502
+ const ZSTD_CLEVEL_DEFAULT: number;
503
+ const ZSTD_COMPRESS: number;
504
+ const ZSTD_DECOMPRESS: number;
505
+ const ZSTD_btlazy2: number;
506
+ const ZSTD_btopt: number;
507
+ const ZSTD_btultra: number;
508
+ const ZSTD_btultra2: number;
509
+ const ZSTD_c_chainLog: number;
510
+ const ZSTD_c_checksumFlag: number;
511
+ const ZSTD_c_compressionLevel: number;
512
+ const ZSTD_c_contentSizeFlag: number;
513
+ const ZSTD_c_dictIDFlag: number;
514
+ const ZSTD_c_enableLongDistanceMatching: number;
515
+ const ZSTD_c_hashLog: number;
516
+ const ZSTD_c_jobSize: number;
517
+ const ZSTD_c_ldmBucketSizeLog: number;
518
+ const ZSTD_c_ldmHashLog: number;
519
+ const ZSTD_c_ldmHashRateLog: number;
520
+ const ZSTD_c_ldmMinMatch: number;
521
+ const ZSTD_c_minMatch: number;
522
+ const ZSTD_c_nbWorkers: number;
523
+ const ZSTD_c_overlapLog: number;
524
+ const ZSTD_c_searchLog: number;
525
+ const ZSTD_c_strategy: number;
526
+ const ZSTD_c_targetLength: number;
527
+ const ZSTD_c_windowLog: number;
528
+ const ZSTD_d_windowLogMax: number;
529
+ const ZSTD_dfast: number;
530
+ const ZSTD_e_continue: number;
531
+ const ZSTD_e_end: number;
532
+ const ZSTD_e_flush: number;
533
+ const ZSTD_error_GENERIC: number;
534
+ const ZSTD_error_checksum_wrong: number;
535
+ const ZSTD_error_corruption_detected: number;
536
+ const ZSTD_error_dictionaryCreation_failed: number;
537
+ const ZSTD_error_dictionary_corrupted: number;
538
+ const ZSTD_error_dictionary_wrong: number;
539
+ const ZSTD_error_dstBuffer_null: number;
540
+ const ZSTD_error_dstSize_tooSmall: number;
541
+ const ZSTD_error_frameParameter_unsupported: number;
542
+ const ZSTD_error_frameParameter_windowTooLarge: number;
543
+ const ZSTD_error_init_missing: number;
544
+ const ZSTD_error_literals_headerWrong: number;
545
+ const ZSTD_error_maxSymbolValue_tooLarge: number;
546
+ const ZSTD_error_maxSymbolValue_tooSmall: number;
547
+ const ZSTD_error_memory_allocation: number;
548
+ const ZSTD_error_noForwardProgress_destFull: number;
549
+ const ZSTD_error_noForwardProgress_inputEmpty: number;
550
+ const ZSTD_error_no_error: number;
551
+ const ZSTD_error_parameter_combination_unsupported: number;
552
+ const ZSTD_error_parameter_outOfBound: number;
553
+ const ZSTD_error_parameter_unsupported: number;
554
+ const ZSTD_error_prefix_unknown: number;
555
+ const ZSTD_error_srcSize_wrong: number;
556
+ const ZSTD_error_stabilityCondition_notRespected: number;
557
+ const ZSTD_error_stage_wrong: number;
558
+ const ZSTD_error_tableLog_tooLarge: number;
559
+ const ZSTD_error_version_unsupported: number;
560
+ const ZSTD_error_workSpace_tooSmall: number;
561
+ const ZSTD_fast: number;
562
+ const ZSTD_greedy: number;
563
+ const ZSTD_lazy: number;
564
+ const ZSTD_lazy2: number;
565
+ const Z_BEST_COMPRESSION: number;
566
+ const Z_BEST_SPEED: number;
432
567
  const Z_BLOCK: number;
433
- const Z_TREES: number;
434
- // Return codes for the compression/decompression functions.
435
- // Negative values are errors, positive values are used for special but normal events.
436
- const Z_OK: number;
437
- const Z_STREAM_END: number;
438
- const Z_NEED_DICT: number;
439
- const Z_ERRNO: number;
440
- const Z_STREAM_ERROR: number;
441
- const Z_DATA_ERROR: number;
442
- const Z_MEM_ERROR: number;
443
568
  const Z_BUF_ERROR: number;
444
- const Z_VERSION_ERROR: number;
445
- // Compression levels.
446
- const Z_NO_COMPRESSION: number;
447
- const Z_BEST_SPEED: number;
448
- const Z_BEST_COMPRESSION: number;
569
+ const Z_DATA_ERROR: number;
570
+ const Z_DEFAULT_CHUNK: number;
449
571
  const Z_DEFAULT_COMPRESSION: number;
450
- // Compression strategy.
451
- const Z_FILTERED: number;
452
- const Z_HUFFMAN_ONLY: number;
453
- const Z_RLE: number;
454
- const Z_FIXED: number;
572
+ const Z_DEFAULT_LEVEL: number;
573
+ const Z_DEFAULT_MEMLEVEL: number;
455
574
  const Z_DEFAULT_STRATEGY: number;
456
575
  const Z_DEFAULT_WINDOWBITS: number;
457
-
458
- const Z_MIN_WINDOWBITS: number;
459
- const Z_MAX_WINDOWBITS: number;
460
- const Z_MIN_CHUNK: number;
576
+ const Z_ERRNO: number;
577
+ const Z_FILTERED: number;
578
+ const Z_FINISH: number;
579
+ const Z_FIXED: number;
580
+ const Z_FULL_FLUSH: number;
581
+ const Z_HUFFMAN_ONLY: number;
461
582
  const Z_MAX_CHUNK: number;
462
- const Z_DEFAULT_CHUNK: number;
463
- const Z_MIN_MEMLEVEL: number;
583
+ const Z_MAX_LEVEL: number;
464
584
  const Z_MAX_MEMLEVEL: number;
465
- const Z_DEFAULT_MEMLEVEL: number;
585
+ const Z_MAX_WINDOWBITS: number;
586
+ const Z_MEM_ERROR: number;
587
+ const Z_MIN_CHUNK: number;
466
588
  const Z_MIN_LEVEL: number;
467
- const Z_MAX_LEVEL: number;
468
- const Z_DEFAULT_LEVEL: number;
469
- const ZLIB_VERNUM: number;
589
+ const Z_MIN_MEMLEVEL: number;
590
+ const Z_MIN_WINDOWBITS: number;
591
+ const Z_NEED_DICT: number;
592
+ const Z_NO_COMPRESSION: number;
593
+ const Z_NO_FLUSH: number;
594
+ const Z_OK: number;
595
+ const Z_PARTIAL_FLUSH: number;
596
+ const Z_RLE: number;
597
+ const Z_STREAM_END: number;
598
+ const Z_STREAM_ERROR: number;
599
+ const Z_SYNC_FLUSH: number;
600
+ const Z_VERSION_ERROR: number;
470
601
  }
471
602
  // Allowed flush values.
472
603
  /** @deprecated Use `constants.Z_NO_FLUSH` */
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 11 Apr 2025 21:33:04 GMT
11
+ * Last updated: Thu, 24 Apr 2025 20:34:57 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -957,55 +957,14 @@ declare module "assert" {
957
957
  */
958
958
  function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
959
959
  /**
960
- * `assert.partialDeepStrictEqual()` Asserts the equivalence between the `actual` and `expected` parameters through a
961
- * deep comparison, ensuring that all properties in the `expected` parameter are
962
- * present in the `actual` parameter with equivalent values, not allowing type coercion.
963
- * The main difference with `assert.deepStrictEqual()` is that `assert.partialDeepStrictEqual()` does not require
964
- * all properties in the `actual` parameter to be present in the `expected` parameter.
965
- * This method should always pass the same test cases as `assert.deepStrictEqual()`, behaving as a super set of it.
966
- *
967
- * ```js
968
- * import assert from 'node:assert';
969
- *
970
- * assert.partialDeepStrictEqual({ a: 1, b: 2 }, { a: 1, b: 2 });
971
- * // OK
972
- *
973
- * assert.partialDeepStrictEqual({ a: { b: { c: 1 } } }, { a: { b: { c: 1 } } });
974
- * // OK
975
- *
976
- * assert.partialDeepStrictEqual({ a: 1, b: 2, c: 3 }, { a: 1, b: 2 });
977
- * // OK
978
- *
979
- * assert.partialDeepStrictEqual(new Set(['value1', 'value2']), new Set(['value1', 'value2']));
980
- * // OK
981
- *
982
- * assert.partialDeepStrictEqual(new Map([['key1', 'value1']]), new Map([['key1', 'value1']]));
983
- * // OK
984
- *
985
- * assert.partialDeepStrictEqual(new Uint8Array([1, 2, 3]), new Uint8Array([1, 2, 3]));
986
- * // OK
987
- *
988
- * assert.partialDeepStrictEqual(/abc/, /abc/);
989
- * // OK
990
- *
991
- * assert.partialDeepStrictEqual([{ a: 5 }, { b: 5 }], [{ a: 5 }]);
992
- * // OK
993
- *
994
- * assert.partialDeepStrictEqual(new Set([{ a: 1 }, { b: 1 }]), new Set([{ a: 1 }]));
995
- * // OK
996
- *
997
- * assert.partialDeepStrictEqual(new Date(0), new Date(0));
998
- * // OK
999
- *
1000
- * assert.partialDeepStrictEqual({ a: 1 }, { a: 1, b: 2 });
1001
- * // AssertionError
1002
- *
1003
- * assert.partialDeepStrictEqual({ a: 1, b: '2' }, { a: 1, b: 2 });
1004
- * // AssertionError
960
+ * Tests for partial deep equality between the `actual` and `expected` parameters.
961
+ * "Deep" equality means that the enumerable "own" properties of child objects
962
+ * are recursively evaluated also by the following rules. "Partial" equality means
963
+ * that only properties that exist on the `expected` parameter are going to be
964
+ * compared.
1005
965
  *
1006
- * assert.partialDeepStrictEqual({ a: { b: 2 } }, { a: { b: '2' } });
1007
- * // AssertionError
1008
- * ```
966
+ * This method always passes the same test cases as `assert.deepStrictEqual()`,
967
+ * behaving as a super set of it.
1009
968
  * @since v22.13.0
1010
969
  */
1011
970
  function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
@@ -372,7 +372,6 @@ declare module "async_hooks" {
372
372
  /**
373
373
  * Binds the given function to the current execution context.
374
374
  * @since v19.8.0
375
- * @experimental
376
375
  * @param fn The function to bind to the current execution context.
377
376
  * @return A new function that calls `fn` within the captured execution context.
378
377
  */
@@ -403,7 +402,6 @@ declare module "async_hooks" {
403
402
  * console.log(asyncLocalStorage.run(321, () => foo.get())); // returns 123
404
403
  * ```
405
404
  * @since v19.8.0
406
- * @experimental
407
405
  * @return A new function with the signature `(fn: (...args) : R, ...args) : R`.
408
406
  */
409
407
  static snapshot(): <R, TArgs extends any[]>(fn: (...args: TArgs) => R, ...args: TArgs) => R;
@@ -4221,9 +4221,13 @@ declare module "crypto" {
4221
4221
  * - `'PBKDF2'`
4222
4222
  * @since v15.0.0
4223
4223
  */
4224
- deriveBits(algorithm: EcdhKeyDeriveParams, baseKey: CryptoKey, length: number | null): Promise<ArrayBuffer>;
4225
4224
  deriveBits(
4226
- algorithm: AlgorithmIdentifier | HkdfParams | Pbkdf2Params,
4225
+ algorithm: EcdhKeyDeriveParams,
4226
+ baseKey: CryptoKey,
4227
+ length?: number | null,
4228
+ ): Promise<ArrayBuffer>;
4229
+ deriveBits(
4230
+ algorithm: EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
4227
4231
  baseKey: CryptoKey,
4228
4232
  length: number,
4229
4233
  ): Promise<ArrayBuffer>;
@@ -4245,14 +4249,9 @@ declare module "crypto" {
4245
4249
  * @since v15.0.0
4246
4250
  */
4247
4251
  deriveKey(
4248
- algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
4252
+ algorithm: EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params,
4249
4253
  baseKey: CryptoKey,
4250
- derivedKeyAlgorithm:
4251
- | AlgorithmIdentifier
4252
- | AesDerivedKeyParams
4253
- | HmacImportParams
4254
- | HkdfParams
4255
- | Pbkdf2Params,
4254
+ derivedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams,
4256
4255
  extractable: boolean,
4257
4256
  keyUsages: readonly KeyUsage[],
4258
4257
  ): Promise<CryptoKey>;
@@ -87,13 +87,6 @@ declare module "fs/promises" {
87
87
  highWaterMark?: number | undefined;
88
88
  flush?: boolean | undefined;
89
89
  }
90
- interface ReadableWebStreamOptions {
91
- /**
92
- * Whether to open a normal or a `'bytes'` stream.
93
- * @since v20.0.0
94
- */
95
- type?: "bytes" | undefined;
96
- }
97
90
  // TODO: Add `EventEmitter` close
98
91
  interface FileHandle {
99
92
  /**
@@ -244,7 +237,8 @@ declare module "fs/promises" {
244
237
  ): Promise<FileReadResult<T>>;
245
238
  read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
246
239
  /**
247
- * Returns a `ReadableStream` that may be used to read the files data.
240
+ * Returns a byte-oriented `ReadableStream` that may be used to read the file's
241
+ * contents.
248
242
  *
249
243
  * An error will be thrown if this method is called more than once or is called
250
244
  * after the `FileHandle` is closed or closing.
@@ -267,7 +261,7 @@ declare module "fs/promises" {
267
261
  * @since v17.0.0
268
262
  * @experimental
269
263
  */
270
- readableWebStream(options?: ReadableWebStreamOptions): ReadableStream;
264
+ readableWebStream(): ReadableStream;
271
265
  /**
272
266
  * Asynchronously reads the entire contents of a file.
273
267
  *
@@ -1252,6 +1252,8 @@ declare module "http2" {
1252
1252
  Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
1253
1253
  Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
1254
1254
  > extends SessionOptions {
1255
+ streamResetBurst?: number | undefined;
1256
+ streamResetRate?: number | undefined;
1255
1257
  Http1IncomingMessage?: Http1Request | undefined;
1256
1258
  Http1ServerResponse?: Http1Response | undefined;
1257
1259
  Http2ServerRequest?: Http2Request | undefined;
@@ -1269,10 +1271,7 @@ declare module "http2" {
1269
1271
  Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
1270
1272
  Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
1271
1273
  Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
1272
- > extends ServerSessionOptions<Http1Request, Http1Response, Http2Request, Http2Response> {
1273
- streamResetBurst?: number | undefined;
1274
- streamResetRate?: number | undefined;
1275
- }
1274
+ > extends ServerSessionOptions<Http1Request, Http1Response, Http2Request, Http2Response> {}
1276
1275
  export interface SecureServerOptions<
1277
1276
  Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
1278
1277
  Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
@@ -1720,6 +1720,38 @@ declare module 'inspector' {
1720
1720
  * Monotonically increasing time in seconds since an arbitrary point in the past.
1721
1721
  */
1722
1722
  type MonotonicTime = number;
1723
+ /**
1724
+ * Information about the request initiator.
1725
+ */
1726
+ interface Initiator {
1727
+ /**
1728
+ * Type of this initiator.
1729
+ */
1730
+ type: string;
1731
+ /**
1732
+ * Initiator JavaScript stack trace, set for Script only.
1733
+ * Requires the Debugger domain to be enabled.
1734
+ */
1735
+ stack?: Runtime.StackTrace | undefined;
1736
+ /**
1737
+ * Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
1738
+ */
1739
+ url?: string | undefined;
1740
+ /**
1741
+ * Initiator line number, set for Parser type or for Script type (when script is importing
1742
+ * module) (0-based).
1743
+ */
1744
+ lineNumber?: number | undefined;
1745
+ /**
1746
+ * Initiator column number, set for Parser type or for Script type (when script is importing
1747
+ * module) (0-based).
1748
+ */
1749
+ columnNumber?: number | undefined;
1750
+ /**
1751
+ * Set if another request triggered this request (e.g. preflight).
1752
+ */
1753
+ requestId?: RequestId | undefined;
1754
+ }
1723
1755
  /**
1724
1756
  * HTTP request data.
1725
1757
  */
@@ -1751,6 +1783,10 @@ declare module 'inspector' {
1751
1783
  * Request data.
1752
1784
  */
1753
1785
  request: Request;
1786
+ /**
1787
+ * Request initiator.
1788
+ */
1789
+ initiator: Initiator;
1754
1790
  /**
1755
1791
  * Timestamp.
1756
1792
  */
@@ -220,6 +220,31 @@ declare module "module" {
220
220
  options?: RegisterOptions<Data>,
221
221
  ): void;
222
222
  function register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
223
+ interface RegisterHooksOptions {
224
+ /**
225
+ * See [load hook](https://nodejs.org/docs/latest-v22.x/api/module.html#loadurl-context-nextload).
226
+ * @default undefined
227
+ */
228
+ load?: LoadHook | undefined;
229
+ /**
230
+ * See [resolve hook](https://nodejs.org/docs/latest-v22.x/api/module.html#resolvespecifier-context-nextresolve).
231
+ * @default undefined
232
+ */
233
+ resolve?: ResolveHook | undefined;
234
+ }
235
+ interface ModuleHooks {
236
+ /**
237
+ * Deregister the hook instance.
238
+ */
239
+ deregister(): void;
240
+ }
241
+ /**
242
+ * Register [hooks](https://nodejs.org/docs/latest-v22.x/api/module.html#customization-hooks)
243
+ * that customize Node.js module resolution and loading behavior.
244
+ * @since v22.15.0
245
+ * @experimental
246
+ */
247
+ function registerHooks(options: RegisterHooksOptions): ModuleHooks;
223
248
  interface StripTypeScriptTypesOptions {
224
249
  /**
225
250
  * Possible values are:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.14.1",
3
+ "version": "22.15.0",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  "undici-types": "~6.21.0"
216
216
  },
217
217
  "peerDependencies": {},
218
- "typesPublisherContentHash": "666e3d9e77ea72fce79aa22dfe4006fda32f236b986a7afa862b545ff146046f",
218
+ "typesPublisherContentHash": "4b221ae76f82a80f2f207bb81dfc112ac8a28e77dfcc603ebde9bfbb3e3f6b04",
219
219
  "typeScriptVersion": "5.1"
220
220
  }
@@ -1938,6 +1938,28 @@ declare module "process" {
1938
1938
  * @param maybeRefable An object that may be "unref'd".
1939
1939
  */
1940
1940
  unref(maybeRefable: any): void;
1941
+ /**
1942
+ * Replaces the current process with a new process.
1943
+ *
1944
+ * This is achieved by using the `execve` POSIX function and therefore no memory or other
1945
+ * resources from the current process are preserved, except for the standard input,
1946
+ * standard output and standard error file descriptor.
1947
+ *
1948
+ * All other resources are discarded by the system when the processes are swapped, without triggering
1949
+ * any exit or close events and without running any cleanup handler.
1950
+ *
1951
+ * This function will never return, unless an error occurred.
1952
+ *
1953
+ * This function is not available on Windows or IBM i.
1954
+ * @since v22.15.0
1955
+ * @experimental
1956
+ * @param file The name or path of the executable file to run.
1957
+ * @param args List of string arguments. No argument can contain a null-byte (`\u0000`).
1958
+ * @param env Environment key-value pairs.
1959
+ * No key or value can contain a null-byte (`\u0000`).
1960
+ * **Default:** `process.env`.
1961
+ */
1962
+ execve?(file: string, args?: readonly string[], env?: ProcessEnv): never;
1941
1963
  /* EventEmitter */
1942
1964
  addListener(event: "beforeExit", listener: BeforeExitListener): this;
1943
1965
  addListener(event: "disconnect", listener: DisconnectListener): this;
@@ -51,7 +51,7 @@ declare module "readline" {
51
51
  * and is read from, the `input` stream.
52
52
  * @since v0.1.104
53
53
  */
54
- export class Interface extends EventEmitter {
54
+ export class Interface extends EventEmitter implements Disposable {
55
55
  readonly terminal: boolean;
56
56
  /**
57
57
  * The current input data being processed by node.
@@ -208,6 +208,11 @@ declare module "readline" {
208
208
  * @since v0.1.98
209
209
  */
210
210
  close(): void;
211
+ /**
212
+ * Alias for `rl.close()`.
213
+ * @since v22.15.0
214
+ */
215
+ [Symbol.dispose](): void;
211
216
  /**
212
217
  * The `rl.write()` method will write either `data` or a key sequence identified
213
218
  * by `key` to the `output`. The `key` argument is supported only if `output` is