@zuplo/cli 6.71.6 → 6.71.7

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 (95) hide show
  1. package/node_modules/@types/node/README.md +1 -1
  2. package/node_modules/@types/node/assert/strict.d.ts +10 -1
  3. package/node_modules/@types/node/assert.d.ts +144 -17
  4. package/node_modules/@types/node/async_hooks.d.ts +9 -9
  5. package/node_modules/@types/node/buffer.d.ts +0 -5
  6. package/node_modules/@types/node/child_process.d.ts +17 -21
  7. package/node_modules/@types/node/cluster.d.ts +13 -13
  8. package/node_modules/@types/node/console.d.ts +1 -1
  9. package/node_modules/@types/node/crypto.d.ts +454 -571
  10. package/node_modules/@types/node/diagnostics_channel.d.ts +20 -9
  11. package/node_modules/@types/node/dns.d.ts +14 -14
  12. package/node_modules/@types/node/events.d.ts +3 -3
  13. package/node_modules/@types/node/fs/promises.d.ts +4 -4
  14. package/node_modules/@types/node/fs.d.ts +3 -12
  15. package/node_modules/@types/node/globals.d.ts +4 -4
  16. package/node_modules/@types/node/http.d.ts +5 -5
  17. package/node_modules/@types/node/http2.d.ts +1 -1
  18. package/node_modules/@types/node/index.d.ts +0 -3
  19. package/node_modules/@types/node/inspector.d.ts +1 -1
  20. package/node_modules/@types/node/module.d.ts +16 -45
  21. package/node_modules/@types/node/net.d.ts +1 -1
  22. package/node_modules/@types/node/os.d.ts +2 -2
  23. package/node_modules/@types/node/package.json +4 -4
  24. package/node_modules/@types/node/perf_hooks.d.ts +1 -9
  25. package/node_modules/@types/node/process.d.ts +11 -11
  26. package/node_modules/@types/node/readline.d.ts +12 -11
  27. package/node_modules/@types/node/repl.d.ts +10 -10
  28. package/node_modules/@types/node/sqlite.d.ts +1 -1
  29. package/node_modules/@types/node/stream/promises.d.ts +2 -2
  30. package/node_modules/@types/node/stream/web.d.ts +1 -1
  31. package/node_modules/@types/node/stream.d.ts +5 -5
  32. package/node_modules/@types/node/test/reporters.d.ts +1 -1
  33. package/node_modules/@types/node/test.d.ts +8 -8
  34. package/node_modules/@types/node/tls.d.ts +1 -1
  35. package/node_modules/@types/node/ts5.6/index.d.ts +1 -4
  36. package/node_modules/@types/node/ts5.7/index.d.ts +0 -3
  37. package/node_modules/@types/node/url.d.ts +3 -3
  38. package/node_modules/@types/node/util/types.d.ts +1 -1
  39. package/node_modules/@types/node/util.d.ts +3 -20
  40. package/node_modules/@types/node/v8.d.ts +1 -1
  41. package/node_modules/@types/node/vm.d.ts +9 -9
  42. package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
  43. package/node_modules/@types/node/worker_threads.d.ts +2 -5
  44. package/node_modules/@types/node/zlib.d.ts +3 -3
  45. package/node_modules/@zuplo/core/package.json +1 -1
  46. package/node_modules/@zuplo/graphql/package.json +1 -1
  47. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  48. package/node_modules/@zuplo/otel/package.json +1 -1
  49. package/node_modules/@zuplo/runtime/package.json +1 -1
  50. package/node_modules/pg-protocol/dist/b.js.map +1 -1
  51. package/node_modules/pg-protocol/dist/buffer-reader.d.ts +0 -1
  52. package/node_modules/pg-protocol/dist/buffer-reader.js +1 -1
  53. package/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -1
  54. package/node_modules/pg-protocol/dist/buffer-writer.d.ts +2 -1
  55. package/node_modules/pg-protocol/dist/buffer-writer.js +23 -0
  56. package/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -1
  57. package/node_modules/pg-protocol/dist/inbound-parser.test.js +1 -1
  58. package/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -1
  59. package/node_modules/pg-protocol/dist/index.d.ts +0 -1
  60. package/node_modules/pg-protocol/dist/index.js +2 -2
  61. package/node_modules/pg-protocol/dist/index.js.map +1 -1
  62. package/node_modules/pg-protocol/dist/messages.d.ts +2 -3
  63. package/node_modules/pg-protocol/dist/outbound-serializer.test.js +73 -0
  64. package/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -1
  65. package/node_modules/pg-protocol/dist/parser.d.ts +3 -5
  66. package/node_modules/pg-protocol/dist/parser.js +1 -1
  67. package/node_modules/pg-protocol/dist/parser.js.map +1 -1
  68. package/node_modules/pg-protocol/dist/serializer.d.ts +9 -10
  69. package/node_modules/pg-protocol/dist/serializer.js +11 -4
  70. package/node_modules/pg-protocol/dist/serializer.js.map +1 -1
  71. package/node_modules/pg-protocol/package.json +2 -2
  72. package/node_modules/pg-protocol/src/buffer-reader.ts +1 -1
  73. package/node_modules/pg-protocol/src/buffer-writer.ts +25 -0
  74. package/node_modules/pg-protocol/src/outbound-serializer.test.ts +80 -0
  75. package/node_modules/pg-protocol/src/parser.ts +1 -1
  76. package/node_modules/pg-protocol/src/serializer.ts +10 -4
  77. package/node_modules/undici-types/agent.d.ts +0 -2
  78. package/node_modules/undici-types/client.d.ts +25 -19
  79. package/node_modules/undici-types/dispatcher.d.ts +7 -33
  80. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  81. package/node_modules/undici-types/fetch.d.ts +24 -4
  82. package/node_modules/undici-types/h2c-client.d.ts +6 -6
  83. package/node_modules/undici-types/handlers.d.ts +1 -2
  84. package/node_modules/undici-types/header.d.ts +5 -0
  85. package/node_modules/undici-types/index.d.ts +3 -1
  86. package/node_modules/undici-types/interceptors.d.ts +1 -1
  87. package/node_modules/undici-types/package.json +1 -1
  88. package/node_modules/undici-types/pool.d.ts +0 -2
  89. package/node_modules/undici-types/proxy-agent.d.ts +2 -2
  90. package/node_modules/undici-types/round-robin-pool.d.ts +0 -2
  91. package/node_modules/undici-types/snapshot-agent.d.ts +4 -0
  92. package/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
  93. package/node_modules/undici-types/webidl.d.ts +0 -1
  94. package/package.json +6 -6
  95. package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
@@ -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: Wed, 10 Jun 2026 22:15:09 GMT
11
+ * Last updated: Fri, 19 Jun 2026 07:14:38 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -3,6 +3,7 @@ declare module "node:assert/strict" {
3
3
  Assert,
4
4
  AssertionError,
5
5
  AssertionErrorOptions,
6
+ AssertMessageFunction,
6
7
  AssertOptions,
7
8
  AssertPredicate,
8
9
  AssertStrict,
@@ -21,7 +22,15 @@ declare module "node:assert/strict" {
21
22
  strictEqual,
22
23
  throws,
23
24
  } from "node:assert";
24
- function strict(value: unknown, message?: string | Error): asserts value;
25
+ function strict(
26
+ value: unknown,
27
+ message?: Error | AssertMessageFunction,
28
+ ): asserts value;
29
+ function strict(
30
+ value: unknown,
31
+ message: string,
32
+ ...args: unknown[]
33
+ ): asserts value;
25
34
  namespace strict {
26
35
  export {
27
36
  Assert,
@@ -5,7 +5,15 @@ declare module "node:assert" {
5
5
  * @since v0.5.9
6
6
  * @param value The input that is checked for being truthy.
7
7
  */
8
- function assert(value: unknown, message?: string | Error): asserts value;
8
+ function assert(
9
+ value: unknown,
10
+ message?: Error | assert.AssertMessageFunction,
11
+ ): asserts value;
12
+ function assert(
13
+ value: unknown,
14
+ message: string,
15
+ ...args: unknown[]
16
+ ): asserts value;
9
17
  const kOptions: unique symbol;
10
18
  namespace assert {
11
19
  type AssertMethodNames =
@@ -177,6 +185,7 @@ declare module "node:assert" {
177
185
  */
178
186
  operator: string;
179
187
  }
188
+ type AssertMessageFunction = (actual: unknown, expected: unknown) => string;
180
189
  type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
181
190
  /**
182
191
  * Throws an `AssertionError` with the provided error message or a default
@@ -255,7 +264,15 @@ declare module "node:assert" {
255
264
  * ```
256
265
  * @since v0.1.21
257
266
  */
258
- function ok(value: unknown, message?: string | Error): asserts value;
267
+ function ok(
268
+ value: unknown,
269
+ message?: Error | AssertMessageFunction,
270
+ ): asserts value;
271
+ function ok(
272
+ value: unknown,
273
+ message: string,
274
+ ...args: unknown[]
275
+ ): asserts value;
259
276
  /**
260
277
  * **Strict assertion mode**
261
278
  *
@@ -289,7 +306,17 @@ declare module "node:assert" {
289
306
  * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
290
307
  * @since v0.1.21
291
308
  */
292
- function equal(actual: unknown, expected: unknown, message?: string | Error): void;
309
+ function equal(
310
+ actual: unknown,
311
+ expected: unknown,
312
+ message?: Error | AssertMessageFunction,
313
+ ): void;
314
+ function equal(
315
+ actual: unknown,
316
+ expected: unknown,
317
+ message: string,
318
+ ...args: unknown[]
319
+ ): void;
293
320
  /**
294
321
  * **Strict assertion mode**
295
322
  *
@@ -319,7 +346,17 @@ declare module "node:assert" {
319
346
  * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
320
347
  * @since v0.1.21
321
348
  */
322
- function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
349
+ function notEqual(
350
+ actual: unknown,
351
+ expected: unknown,
352
+ message?: Error | AssertMessageFunction,
353
+ ): void;
354
+ function notEqual(
355
+ actual: unknown,
356
+ expected: unknown,
357
+ message: string,
358
+ ...args: unknown[]
359
+ ): void;
323
360
  /**
324
361
  * **Strict assertion mode**
325
362
  *
@@ -337,7 +374,17 @@ declare module "node:assert" {
337
374
  * are also recursively evaluated by the following rules.
338
375
  * @since v0.1.21
339
376
  */
340
- function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
377
+ function deepEqual(
378
+ actual: unknown,
379
+ expected: unknown,
380
+ message?: Error | AssertMessageFunction,
381
+ ): void;
382
+ function deepEqual(
383
+ actual: unknown,
384
+ expected: unknown,
385
+ message: string,
386
+ ...args: unknown[]
387
+ ): void;
341
388
  /**
342
389
  * **Strict assertion mode**
343
390
  *
@@ -387,7 +434,17 @@ declare module "node:assert" {
387
434
  * instead of the `AssertionError`.
388
435
  * @since v0.1.21
389
436
  */
390
- function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
437
+ function notDeepEqual(
438
+ actual: unknown,
439
+ expected: unknown,
440
+ message?: Error | AssertMessageFunction,
441
+ ): void;
442
+ function notDeepEqual(
443
+ actual: unknown,
444
+ expected: unknown,
445
+ message: string,
446
+ ...args: unknown[]
447
+ ): void;
391
448
  /**
392
449
  * Tests strict equality between the `actual` and `expected` parameters as
393
450
  * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
@@ -425,7 +482,17 @@ declare module "node:assert" {
425
482
  * instead of the `AssertionError`.
426
483
  * @since v0.1.21
427
484
  */
428
- function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
485
+ function strictEqual<T>(
486
+ actual: unknown,
487
+ expected: T,
488
+ message?: Error | AssertMessageFunction,
489
+ ): asserts actual is T;
490
+ function strictEqual<T>(
491
+ actual: unknown,
492
+ expected: T,
493
+ message: string,
494
+ ...args: unknown[]
495
+ ): asserts actual is T;
429
496
  /**
430
497
  * Tests strict inequality between the `actual` and `expected` parameters as
431
498
  * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
@@ -450,14 +517,34 @@ declare module "node:assert" {
450
517
  * instead of the `AssertionError`.
451
518
  * @since v0.1.21
452
519
  */
453
- function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
520
+ function notStrictEqual(
521
+ actual: unknown,
522
+ expected: unknown,
523
+ message?: Error | AssertMessageFunction,
524
+ ): void;
525
+ function notStrictEqual(
526
+ actual: unknown,
527
+ expected: unknown,
528
+ message: string,
529
+ ...args: unknown[]
530
+ ): void;
454
531
  /**
455
532
  * Tests for deep equality between the `actual` and `expected` parameters.
456
533
  * "Deep" equality means that the enumerable "own" properties of child objects
457
534
  * are recursively evaluated also by the following rules.
458
535
  * @since v1.2.0
459
536
  */
460
- function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
537
+ function deepStrictEqual<T>(
538
+ actual: unknown,
539
+ expected: T,
540
+ message?: Error | AssertMessageFunction,
541
+ ): asserts actual is T;
542
+ function deepStrictEqual<T>(
543
+ actual: unknown,
544
+ expected: T,
545
+ message: string,
546
+ ...args: unknown[]
547
+ ): asserts actual is T;
461
548
  /**
462
549
  * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
463
550
  *
@@ -475,7 +562,17 @@ declare module "node:assert" {
475
562
  * instead of the `AssertionError`.
476
563
  * @since v1.2.0
477
564
  */
478
- function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
565
+ function notDeepStrictEqual(
566
+ actual: unknown,
567
+ expected: unknown,
568
+ message?: Error | AssertMessageFunction,
569
+ ): void;
570
+ function notDeepStrictEqual(
571
+ actual: unknown,
572
+ expected: unknown,
573
+ message: string,
574
+ ...args: unknown[]
575
+ ): void;
479
576
  /**
480
577
  * Expects the function `fn` to throw an error.
481
578
  *
@@ -766,7 +863,7 @@ declare module "node:assert" {
766
863
  * check that the promise is rejected.
767
864
  *
768
865
  * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
769
- * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v25.x/api/errors.html#err_invalid_return_value)
866
+ * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v26.x/api/errors.html#err_invalid_return_value)
770
867
  * error. In both cases the error handler is skipped.
771
868
  *
772
869
  * Besides the async nature to await the completion behaves identically to {@link throws}.
@@ -836,7 +933,7 @@ declare module "node:assert" {
836
933
  *
837
934
  * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
838
935
  * the function does not return a promise, `assert.doesNotReject()` will return a
839
- * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v25.x/api/errors.html#err_invalid_return_value) error. In both cases
936
+ * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v26.x/api/errors.html#err_invalid_return_value) error. In both cases
840
937
  * the error handler is skipped.
841
938
  *
842
939
  * Using `assert.doesNotReject()` is actually not useful because there is little
@@ -899,10 +996,20 @@ declare module "node:assert" {
899
996
  * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
900
997
  * to the value of the `message` parameter. If the `message` parameter is
901
998
  * undefined, a default error message is assigned. If the `message` parameter is an
902
- * instance of an [Error](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
999
+ * instance of an [Error](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
903
1000
  * @since v13.6.0, v12.16.0
904
1001
  */
905
- function match(value: string, regExp: RegExp, message?: string | Error): void;
1002
+ function match(
1003
+ value: string,
1004
+ regExp: RegExp,
1005
+ message?: Error | AssertMessageFunction,
1006
+ ): void;
1007
+ function match(
1008
+ value: string,
1009
+ regExp: RegExp,
1010
+ message: string,
1011
+ ...args: unknown[]
1012
+ ): void;
906
1013
  /**
907
1014
  * Expects the `string` input not to match the regular expression.
908
1015
  *
@@ -922,10 +1029,20 @@ declare module "node:assert" {
922
1029
  * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
923
1030
  * to the value of the `message` parameter. If the `message` parameter is
924
1031
  * undefined, a default error message is assigned. If the `message` parameter is an
925
- * instance of an [Error](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
1032
+ * instance of an [Error](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
926
1033
  * @since v13.6.0, v12.16.0
927
1034
  */
928
- function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
1035
+ function doesNotMatch(
1036
+ value: string,
1037
+ regExp: RegExp,
1038
+ message?: Error | AssertMessageFunction,
1039
+ ): void;
1040
+ function doesNotMatch(
1041
+ value: string,
1042
+ regExp: RegExp,
1043
+ message: string,
1044
+ ...args: unknown[]
1045
+ ): void;
929
1046
  /**
930
1047
  * Tests for partial deep equality between the `actual` and `expected` parameters.
931
1048
  * "Deep" equality means that the enumerable "own" properties of child objects
@@ -937,7 +1054,17 @@ declare module "node:assert" {
937
1054
  * behaving as a super set of it.
938
1055
  * @since v22.13.0
939
1056
  */
940
- function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
1057
+ function partialDeepStrictEqual(
1058
+ actual: unknown,
1059
+ expected: unknown,
1060
+ message?: Error | AssertMessageFunction,
1061
+ ): void;
1062
+ function partialDeepStrictEqual(
1063
+ actual: unknown,
1064
+ expected: unknown,
1065
+ message: string,
1066
+ ...args: unknown[]
1067
+ ): void;
941
1068
  }
942
1069
  namespace assert {
943
1070
  export { strict };
@@ -28,7 +28,7 @@ declare module "node:async_hooks" {
28
28
  * ```
29
29
  *
30
30
  * Promise contexts may not get precise `executionAsyncIds` by default.
31
- * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promise-execution-tracking).
31
+ * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promise-execution-tracking).
32
32
  * @since v8.1.0
33
33
  * @return The `asyncId` of the current execution context. Useful to track when something calls.
34
34
  */
@@ -101,29 +101,29 @@ declare module "node:async_hooks" {
101
101
  * ```
102
102
  *
103
103
  * Promise contexts may not get valid `triggerAsyncId`s by default. See
104
- * the section on [promise execution tracking](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promise-execution-tracking).
104
+ * the section on [promise execution tracking](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promise-execution-tracking).
105
105
  * @return The ID of the resource responsible for calling the callback that is currently being executed.
106
106
  */
107
107
  function triggerAsyncId(): number;
108
108
  interface HookCallbacks {
109
109
  /**
110
- * The [`init` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#initasyncid-type-triggerasyncid-resource).
110
+ * The [`init` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#initasyncid-type-triggerasyncid-resource).
111
111
  */
112
112
  init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
113
113
  /**
114
- * The [`before` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#beforeasyncid).
114
+ * The [`before` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#beforeasyncid).
115
115
  */
116
116
  before?(asyncId: number): void;
117
117
  /**
118
- * The [`after` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#afterasyncid).
118
+ * The [`after` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#afterasyncid).
119
119
  */
120
120
  after?(asyncId: number): void;
121
121
  /**
122
- * The [`promiseResolve` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promiseresolveasyncid).
122
+ * The [`promiseResolve` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promiseresolveasyncid).
123
123
  */
124
124
  promiseResolve?(asyncId: number): void;
125
125
  /**
126
- * The [`destroy` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#destroyasyncid).
126
+ * The [`destroy` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#destroyasyncid).
127
127
  */
128
128
  destroy?(asyncId: number): void;
129
129
  /**
@@ -153,7 +153,7 @@ declare module "node:async_hooks" {
153
153
  * All callbacks are optional. For example, if only resource cleanup needs to
154
154
  * be tracked, then only the `destroy` callback needs to be passed. The
155
155
  * specifics of all functions that can be passed to `callbacks` is in the
156
- * [Hook Callbacks](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#hook-callbacks) section.
156
+ * [Hook Callbacks](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#hook-callbacks) section.
157
157
  *
158
158
  * ```js
159
159
  * import { createHook } from 'node:async_hooks';
@@ -184,7 +184,7 @@ declare module "node:async_hooks" {
184
184
  * via the async hooks mechanism, the `init()`, `before()`, `after()`, and
185
185
  * `destroy()` callbacks _must not_ be async functions that return promises.
186
186
  * @since v8.1.0
187
- * @param options The [Hook Callbacks](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#hook-callbacks) to register
187
+ * @param options The [Hook Callbacks](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#hook-callbacks) to register
188
188
  * @returns Instance used for disabling and enabling hooks
189
189
  */
190
190
  function createHook(options: HookCallbacks): AsyncHook;
@@ -75,11 +75,6 @@ declare module "node:buffer" {
75
75
  */
76
76
  export function resolveObjectURL(id: string): Blob | undefined;
77
77
  export { type AllowSharedBuffer, Buffer, type NonSharedBuffer };
78
- /** @deprecated This alias will be removed in a future version. Use the canonical `BlobPropertyBag` instead. */
79
- // TODO: remove in future major
80
- export interface BlobOptions extends BlobPropertyBag {}
81
- /** @deprecated This alias will be removed in a future version. Use the canonical `FilePropertyBag` instead. */
82
- export interface FileOptions extends FilePropertyBag {}
83
78
  export type WithImplicitCoercion<T> =
84
79
  | T
85
80
  | { valueOf(): T }
@@ -404,7 +404,7 @@ declare module "node:child_process" {
404
404
  * as the connection may have been closed during the time it takes to send the
405
405
  * connection to the child.
406
406
  * @since v0.5.9
407
- * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v25.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v25.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v25.x/api/dgram.html#class-dgramsocket) object.
407
+ * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v26.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v26.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v26.x/api/dgram.html#class-dgramsocket) object.
408
408
  * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
409
409
  */
410
410
  send(message: Serializable, callback?: (error: Error | null) => void): boolean;
@@ -787,16 +787,15 @@ declare module "node:child_process" {
787
787
  encoding?: BufferEncoding | undefined;
788
788
  }
789
789
  interface ExecOptionsWithBufferEncoding extends ExecOptions {
790
- encoding: "buffer" | null; // specify `null`.
790
+ encoding: "buffer" | null;
791
791
  }
792
- // TODO: Just Plain Wrong™ (see also nodejs/node#57392)
793
- interface ExecException extends Error {
794
- cmd?: string;
792
+ interface ExecException extends Omit<NodeJS.ErrnoException, "code"> {
793
+ cmd: string;
794
+ code?: number | string;
795
795
  killed?: boolean;
796
- code?: number;
797
796
  signal?: NodeJS.Signals;
798
- stdout?: string;
799
- stderr?: string;
797
+ stdout?: string | NonSharedBuffer;
798
+ stderr?: string | NonSharedBuffer;
800
799
  }
801
800
  /**
802
801
  * Spawns a shell then executes the `command` within that shell, buffering any
@@ -956,11 +955,6 @@ declare module "node:child_process" {
956
955
  }
957
956
  /** @deprecated Use `ExecFileOptions` instead. */
958
957
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {}
959
- // TODO: execFile exceptions can take many forms... this accurately describes none of them
960
- type ExecFileException =
961
- & Omit<ExecException, "code">
962
- & Omit<NodeJS.ErrnoException, "code">
963
- & { code?: string | number | null };
964
958
  /**
965
959
  * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
966
960
  * executable `file` is spawned directly as a new process making it slightly more
@@ -1028,36 +1022,36 @@ declare module "node:child_process" {
1028
1022
  // no `options` definitely means stdout/stderr are `string`.
1029
1023
  function execFile(
1030
1024
  file: string,
1031
- callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1025
+ callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
1032
1026
  ): ChildProcess;
1033
1027
  function execFile(
1034
1028
  file: string,
1035
1029
  args: readonly string[] | undefined | null,
1036
- callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1030
+ callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
1037
1031
  ): ChildProcess;
1038
1032
  // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
1039
1033
  function execFile(
1040
1034
  file: string,
1041
1035
  options: ExecFileOptionsWithBufferEncoding,
1042
- callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void,
1036
+ callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void,
1043
1037
  ): ChildProcess;
1044
1038
  function execFile(
1045
1039
  file: string,
1046
1040
  args: readonly string[] | undefined | null,
1047
1041
  options: ExecFileOptionsWithBufferEncoding,
1048
- callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void,
1042
+ callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void,
1049
1043
  ): ChildProcess;
1050
1044
  // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`.
1051
1045
  function execFile(
1052
1046
  file: string,
1053
1047
  options: ExecFileOptionsWithStringEncoding,
1054
- callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1048
+ callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
1055
1049
  ): ChildProcess;
1056
1050
  function execFile(
1057
1051
  file: string,
1058
1052
  args: readonly string[] | undefined | null,
1059
1053
  options: ExecFileOptionsWithStringEncoding,
1060
- callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void,
1054
+ callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
1061
1055
  ): ChildProcess;
1062
1056
  // fallback if nothing else matches. Worst case is always `string | Buffer`.
1063
1057
  function execFile(
@@ -1065,7 +1059,7 @@ declare module "node:child_process" {
1065
1059
  options: ExecFileOptions | undefined | null,
1066
1060
  callback:
1067
1061
  | ((
1068
- error: ExecFileException | null,
1062
+ error: ExecException | null,
1069
1063
  stdout: string | NonSharedBuffer,
1070
1064
  stderr: string | NonSharedBuffer,
1071
1065
  ) => void)
@@ -1078,7 +1072,7 @@ declare module "node:child_process" {
1078
1072
  options: ExecFileOptions | undefined | null,
1079
1073
  callback:
1080
1074
  | ((
1081
- error: ExecFileException | null,
1075
+ error: ExecException | null,
1082
1076
  stdout: string | NonSharedBuffer,
1083
1077
  stderr: string | NonSharedBuffer,
1084
1078
  ) => void)
@@ -1360,6 +1354,8 @@ declare module "node:child_process" {
1360
1354
  args?: readonly string[],
1361
1355
  options?: ExecFileSyncOptions,
1362
1356
  ): string | NonSharedBuffer;
1357
+ /** @deprecated This deprecated alias will be removed in a future version. Use `ExecException` instead. */
1358
+ interface ExecFileException extends ExecException {}
1363
1359
  }
1364
1360
  declare module "child_process" {
1365
1361
  export * from "node:child_process";
@@ -11,10 +11,10 @@ declare module "node:cluster" {
11
11
  */
12
12
  id: number;
13
13
  /**
14
- * All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v25.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object
14
+ * All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object
15
15
  * from this function is stored as `.process`. In a worker, the global `process` is stored.
16
16
  *
17
- * See: [Child Process module](https://nodejs.org/docs/latest-v25.x/api/child_process.html#child_processforkmodulepath-args-options).
17
+ * See: [Child Process module](https://nodejs.org/docs/latest-v26.x/api/child_process.html#child_processforkmodulepath-args-options).
18
18
  *
19
19
  * Workers will call `process.exit(0)` if the `'disconnect'` event occurs
20
20
  * on `process` and `.exitedAfterDisconnect` is not `true`. This protects against
@@ -25,7 +25,7 @@ declare module "node:cluster" {
25
25
  /**
26
26
  * Send a message to a worker or primary, optionally with a handle.
27
27
  *
28
- * In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v25.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback).
28
+ * In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback).
29
29
  *
30
30
  * In a worker, this sends a message to the primary. It is identical to `process.send()`.
31
31
  *
@@ -67,7 +67,7 @@ declare module "node:cluster" {
67
67
  * This method is aliased as `worker.destroy()` for backwards compatibility.
68
68
  *
69
69
  * In a worker, `process.kill()` exists, but it is not this function;
70
- * it is [`kill()`](https://nodejs.org/docs/latest-v25.x/api/process.html#processkillpid-signal).
70
+ * it is [`kill()`](https://nodejs.org/docs/latest-v26.x/api/process.html#processkillpid-signal).
71
71
  * @since v0.9.12
72
72
  * @param [signal='SIGTERM'] Name of the kill signal to send to the worker process.
73
73
  */
@@ -245,8 +245,8 @@ declare module "node:cluster" {
245
245
  silent?: boolean | undefined;
246
246
  /**
247
247
  * Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must
248
- * contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v25.x/api/child_process.html#child_processspawncommand-args-options)'s
249
- * [`stdio`](https://nodejs.org/docs/latest-v25.x/api/child_process.html#optionsstdio).
248
+ * contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#child_processspawncommand-args-options)'s
249
+ * [`stdio`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#optionsstdio).
250
250
  */
251
251
  stdio?: any[] | undefined;
252
252
  /**
@@ -264,7 +264,7 @@ declare module "node:cluster" {
264
264
  inspectPort?: number | (() => number) | undefined;
265
265
  /**
266
266
  * Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`.
267
- * See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v25.x/api/child_process.html#advanced-serialization) for more details.
267
+ * See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#advanced-serialization) for more details.
268
268
  * @default false
269
269
  */
270
270
  serialization?: "json" | "advanced" | undefined;
@@ -333,7 +333,7 @@ declare module "node:cluster" {
333
333
  readonly isWorker: boolean;
334
334
  /**
335
335
  * The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a
336
- * global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v25.x/api/cluster.html#clustersetupprimarysettings)
336
+ * global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clustersetupprimarysettings)
337
337
  * is called, whichever comes first.
338
338
  *
339
339
  * `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute
@@ -344,24 +344,24 @@ declare module "node:cluster" {
344
344
  */
345
345
  schedulingPolicy: number;
346
346
  /**
347
- * After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v25.x/api/cluster.html#clustersetupprimarysettings)
348
- * (or [`.fork()`](https://nodejs.org/docs/latest-v25.x/api/cluster.html#clusterforkenv)) this settings object will contain
347
+ * After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clustersetupprimarysettings)
348
+ * (or [`.fork()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clusterforkenv)) this settings object will contain
349
349
  * the settings, including the default values.
350
350
  *
351
351
  * This object is not intended to be changed or set manually.
352
352
  * @since v0.7.1
353
353
  */
354
354
  readonly settings: ClusterSettings;
355
- /** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v25.x/api/cluster.html#clustersetupprimarysettings) instead. */
355
+ /** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clustersetupprimarysettings) instead. */
356
356
  setupMaster(settings?: ClusterSettings): void;
357
357
  /**
358
358
  * `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`.
359
359
  *
360
- * Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v25.x/api/cluster.html#clusterforkenv)
360
+ * Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clusterforkenv)
361
361
  * and have no effect on workers that are already running.
362
362
  *
363
363
  * The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to
364
- * [`.fork()`](https://nodejs.org/docs/latest-v25.x/api/cluster.html#clusterforkenv).
364
+ * [`.fork()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clusterforkenv).
365
365
  *
366
366
  * The defaults above apply to the first call only; the defaults for later calls are the current values at the time of
367
367
  * `cluster.setupPrimary()` is called.
@@ -19,7 +19,7 @@ declare module "node:console" {
19
19
  colorMode?: boolean | "auto" | undefined;
20
20
  /**
21
21
  * Specifies options that are passed along to
22
- * [`util.inspect()`](https://nodejs.org/docs/latest-v25.x/api/util.html#utilinspectobject-options).
22
+ * [`util.inspect()`](https://nodejs.org/docs/latest-v26.x/api/util.html#utilinspectobject-options).
23
23
  */
24
24
  inspectOptions?: InspectOptions | ReadonlyMap<NodeJS.WritableStream, InspectOptions> | undefined;
25
25
  /**