aws-delivlib 14.15.85 → 14.15.86

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 (20) hide show
  1. package/lib/package-integrity/handler/validate.bundle.js +14 -14
  2. package/lib/publishing/github/node_modules/.yarn-integrity +1 -1
  3. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +1 -1
  4. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert.d.ts +7 -48
  5. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +0 -2
  6. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +8 -9
  7. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +3 -9
  8. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +3 -4
  9. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +36 -0
  10. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +25 -0
  11. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +2 -2
  12. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +22 -0
  13. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +6 -1
  14. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sqlite.d.ts +36 -13
  15. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +54 -6
  16. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +25 -0
  17. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +207 -88
  18. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +81 -0
  19. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +167 -36
  20. package/package.json +6 -6
@@ -52,7 +52,7 @@
52
52
  "@types/changelog-parser@^2.8.1": "https://registry.yarnpkg.com/@types/changelog-parser/-/changelog-parser-2.8.4.tgz#45d70417e742ac3bc6bef3786aa453e1f1d63ecc",
53
53
  "@types/jsonwebtoken@^9.0.0": "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-9.0.9.tgz#a4c3a446c0ebaaf467a58398382616f416345fb3",
54
54
  "@types/ms@*": "https://registry.yarnpkg.com/@types/ms/-/ms-2.1.0.tgz#052aa67a48eccc4309d7f0191b7e41434b90bb78",
55
- "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-22.14.1.tgz#53b54585cec81c21eee3697521e31312d6ca1e6f",
55
+ "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-22.15.0.tgz#5fcf430c079da64e96028b87cbffc218a02685db",
56
56
  "@types/node@^14": "https://registry.yarnpkg.com/@types/node/-/node-14.18.63.tgz#1788fa8da838dbb5f9ea994b834278205db6ca2b",
57
57
  "aggregate-error@^3.1.0": "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a",
58
58
  "before-after-hook@^2.2.0": "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c",
@@ -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
@@ -158,9 +158,10 @@ declare module "node:sqlite" {
158
158
  */
159
159
  useBigIntArguments?: boolean | undefined;
160
160
  /**
161
- * If `true`, `function` can accept a variable number of
162
- * arguments. If `false`, `function` must be invoked with exactly
163
- * `function.length` arguments.
161
+ * If `true`, `function` may be invoked with any number of
162
+ * arguments (between zero and
163
+ * [`SQLITE_MAX_FUNCTION_ARG`](https://www.sqlite.org/limits.html#max_function_arg)). If `false`,
164
+ * `function` must be invoked with exactly `function.length` arguments.
164
165
  * @default false
165
166
  */
166
167
  varargs?: boolean | undefined;
@@ -170,16 +171,16 @@ declare module "node:sqlite" {
170
171
  * exposed by this class execute synchronously.
171
172
  * @since v22.5.0
172
173
  */
173
- class DatabaseSync {
174
+ class DatabaseSync implements Disposable {
174
175
  /**
175
176
  * Constructs a new `DatabaseSync` instance.
176
- * @param location The location of the database.
177
+ * @param path The path of the database.
177
178
  * A SQLite database can be stored in a file or completely [in memory](https://www.sqlite.org/inmemorydb.html).
178
- * To use a file-backed database, the location should be a file path.
179
- * To use an in-memory database, the location should be the special name `':memory:'`.
179
+ * To use a file-backed database, the path should be a file path.
180
+ * To use an in-memory database, the path should be the special name `':memory:'`.
180
181
  * @param options Configuration options for the database connection.
181
182
  */
182
- constructor(location: string, options?: DatabaseSyncOptions);
183
+ constructor(path: string | Buffer | URL, options?: DatabaseSyncOptions);
183
184
  /**
184
185
  * Closes the database connection. An exception is thrown if the database is not
185
186
  * open. This method is a wrapper around [`sqlite3_close_v2()`](https://www.sqlite.org/c3ref/close.html).
@@ -217,16 +218,24 @@ declare module "node:sqlite" {
217
218
  * @param name The name of the SQLite function to create.
218
219
  * @param options Optional configuration settings for the function.
219
220
  * @param func The JavaScript function to call when the SQLite
220
- * function is invoked.
221
+ * function is invoked. The return value of this function should be a valid
222
+ * SQLite data type: see
223
+ * [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v22.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
224
+ * The result defaults to `NULL` if the return value is `undefined`.
221
225
  */
222
226
  function(
223
227
  name: string,
224
228
  options: FunctionOptions,
225
- func: (...args: SupportedValueType[]) => SupportedValueType,
229
+ func: (...args: SQLOutputValue[]) => SQLInputValue,
226
230
  ): void;
227
- function(name: string, func: (...args: SupportedValueType[]) => SupportedValueType): void;
231
+ function(name: string, func: (...args: SQLOutputValue[]) => SQLInputValue): void;
228
232
  /**
229
- * Opens the database specified in the `location` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
233
+ * Whether the database is currently open or not.
234
+ * @since v22.15.0
235
+ */
236
+ readonly isOpen: boolean;
237
+ /**
238
+ * Opens the database specified in the `path` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
230
239
  * the constructor. An exception is thrown if the database is already open.
231
240
  * @since v22.5.0
232
241
  */
@@ -272,10 +281,17 @@ declare module "node:sqlite" {
272
281
  * ```
273
282
  * @param changeset A binary changeset or patchset.
274
283
  * @param options The configuration options for how the changes will be applied.
275
- * @returns Whether the changeset was applied succesfully without being aborted.
284
+ * @returns Whether the changeset was applied successfully without being aborted.
276
285
  * @since v22.12.0
277
286
  */
278
287
  applyChangeset(changeset: Uint8Array, options?: ApplyChangesetOptions): boolean;
288
+ /**
289
+ * Closes the database connection. If the database connection is already closed
290
+ * then this is a no-op.
291
+ * @since v22.15.0
292
+ * @experimental
293
+ */
294
+ [Symbol.dispose](): void;
279
295
  }
280
296
  /**
281
297
  * @since v22.12.0
@@ -424,6 +440,13 @@ declare module "node:sqlite" {
424
440
  * @param enabled Enables or disables support for binding named parameters without the prefix character.
425
441
  */
426
442
  setAllowBareNamedParameters(enabled: boolean): void;
443
+ /**
444
+ * By default, if an unknown name is encountered while binding parameters, an
445
+ * exception is thrown. This method allows unknown named parameters to be ignored.
446
+ * @since v22.15.0
447
+ * @param enabled Enables or disables support for unknown named parameters.
448
+ */
449
+ setAllowUnknownNamedParameters(enabled: boolean): void;
427
450
  /**
428
451
  * When reading from the database, SQLite `INTEGER`s are mapped to JavaScript
429
452
  * numbers by default. However, SQLite `INTEGER`s can store values larger than
@@ -648,11 +648,12 @@ declare module "node:test" {
648
648
  */
649
649
  readonly name: string;
650
650
  /**
651
- * Used to set the number of assertions and subtests that are expected to run within the test.
652
- * If the number of assertions and subtests that run does not match the expected count, the test will fail.
651
+ * This function is used to set the number of assertions and subtests that are expected to run
652
+ * within the test. If the number of assertions and subtests that run does not match the
653
+ * expected count, the test will fail.
654
+ *
655
+ * > Note: To make sure assertions are tracked, `t.assert` must be used instead of `assert` directly.
653
656
  *
654
- * To make sure assertions are tracked, the assert functions on `context.assert` must be used,
655
- * instead of importing from the `node:assert` module.
656
657
  * ```js
657
658
  * test('top level test', (t) => {
658
659
  * t.plan(2);
@@ -661,7 +662,9 @@ declare module "node:test" {
661
662
  * });
662
663
  * ```
663
664
  *
664
- * When working with asynchronous code, the `plan` function can be used to ensure that the correct number of assertions are run:
665
+ * When working with asynchronous code, the `plan` function can be used to ensure that the
666
+ * correct number of assertions are run:
667
+ *
665
668
  * ```js
666
669
  * test('planning with streams', (t, done) => {
667
670
  * function* generate() {
@@ -675,14 +678,35 @@ declare module "node:test" {
675
678
  * stream.on('data', (chunk) => {
676
679
  * t.assert.strictEqual(chunk, expected.shift());
677
680
  * });
681
+ *
678
682
  * stream.on('end', () => {
679
683
  * done();
680
684
  * });
681
685
  * });
682
686
  * ```
687
+ *
688
+ * When using the `wait` option, you can control how long the test will wait for the expected assertions.
689
+ * For example, setting a maximum wait time ensures that the test will wait for asynchronous assertions
690
+ * to complete within the specified timeframe:
691
+ *
692
+ * ```js
693
+ * test('plan with wait: 2000 waits for async assertions', (t) => {
694
+ * t.plan(1, { wait: 2000 }); // Waits for up to 2 seconds for the assertion to complete.
695
+ *
696
+ * const asyncActivity = () => {
697
+ * setTimeout(() => {
698
+ * * t.assert.ok(true, 'Async assertion completed within the wait time');
699
+ * }, 1000); // Completes after 1 second, within the 2-second wait time.
700
+ * };
701
+ *
702
+ * asyncActivity(); // The test will pass because the assertion is completed in time.
703
+ * });
704
+ * ```
705
+ *
706
+ * Note: If a `wait` timeout is specified, it begins counting down only after the test function finishes executing.
683
707
  * @since v22.2.0
684
708
  */
685
- plan(count: number): void;
709
+ plan(count: number, options?: TestContextPlanOptions): void;
686
710
  /**
687
711
  * If `shouldRunOnlyTests` is truthy, the test context will only run tests that
688
712
  * have the `only` option set. Otherwise, all tests are run. If Node.js was not
@@ -858,6 +882,20 @@ declare module "node:test" {
858
882
  */
859
883
  serializers?: ReadonlyArray<(value: any) => any> | undefined;
860
884
  }
885
+ interface TestContextPlanOptions {
886
+ /**
887
+ * The wait time for the plan:
888
+ * * If `true`, the plan waits indefinitely for all assertions and subtests to run.
889
+ * * If `false`, the plan performs an immediate check after the test function completes,
890
+ * without waiting for any pending assertions or subtests.
891
+ * Any assertions or subtests that complete after this check will not be counted towards the plan.
892
+ * * If a number, it specifies the maximum wait time in milliseconds
893
+ * before timing out while waiting for expected assertions and subtests to be matched.
894
+ * If the timeout is reached, the test will fail.
895
+ * @default false
896
+ */
897
+ wait?: boolean | number | undefined;
898
+ }
861
899
  interface TestContextWaitForOptions {
862
900
  /**
863
901
  * The number of milliseconds to wait after an unsuccessful
@@ -1971,6 +2009,11 @@ interface TestDequeue extends TestLocationInfo {
1971
2009
  * The nesting level of the test.
1972
2010
  */
1973
2011
  nesting: number;
2012
+ /**
2013
+ * The test type. Either `'suite'` or `'test'`.
2014
+ * @since v22.15.0
2015
+ */
2016
+ type: "suite" | "test";
1974
2017
  }
1975
2018
  interface TestEnqueue extends TestLocationInfo {
1976
2019
  /**
@@ -1981,6 +2024,11 @@ interface TestEnqueue extends TestLocationInfo {
1981
2024
  * The nesting level of the test.
1982
2025
  */
1983
2026
  nesting: number;
2027
+ /**
2028
+ * The test type. Either `'suite'` or `'test'`.
2029
+ * @since v22.15.0
2030
+ */
2031
+ type: "suite" | "test";
1984
2032
  }
1985
2033
  interface TestFail extends TestLocationInfo {
1986
2034
  /**
@@ -1158,6 +1158,31 @@ declare module "tls" {
1158
1158
  * @since v0.11.13
1159
1159
  */
1160
1160
  function createSecureContext(options?: SecureContextOptions): SecureContext;
1161
+ /**
1162
+ * Returns an array containing the CA certificates from various sources, depending on `type`:
1163
+ *
1164
+ * * `"default"`: return the CA certificates that will be used by the Node.js TLS clients by default.
1165
+ * * When `--use-bundled-ca` is enabled (default), or `--use-openssl-ca` is not enabled,
1166
+ * this would include CA certificates from the bundled Mozilla CA store.
1167
+ * * When `--use-system-ca` is enabled, this would also include certificates from the system's
1168
+ * trusted store.
1169
+ * * When `NODE_EXTRA_CA_CERTS` is used, this would also include certificates loaded from the specified
1170
+ * file.
1171
+ * * `"system"`: return the CA certificates that are loaded from the system's trusted store, according
1172
+ * to rules set by `--use-system-ca`. This can be used to get the certificates from the system
1173
+ * when `--use-system-ca` is not enabled.
1174
+ * * `"bundled"`: return the CA certificates from the bundled Mozilla CA store. This would be the same
1175
+ * as `tls.rootCertificates`.
1176
+ * * `"extra"`: return the CA certificates loaded from `NODE_EXTRA_CA_CERTS`. It's an empty array if
1177
+ * `NODE_EXTRA_CA_CERTS` is not set.
1178
+ * @since v22.15.0
1179
+ * @param type The type of CA certificates that will be returned. Valid values
1180
+ * are `"default"`, `"system"`, `"bundled"` and `"extra"`.
1181
+ * **Default:** `"default"`.
1182
+ * @returns An array of PEM-encoded certificates. The array may contain duplicates
1183
+ * if the same certificate is repeatedly stored in multiple sources.
1184
+ */
1185
+ function getCACertificates(type?: "default" | "system" | "bundled" | "extra"): string[];
1161
1186
  /**
1162
1187
  * Returns an array with the names of the supported TLS ciphers. The names are
1163
1188
  * lower-case for historical reasons, but must be uppercased to be used in