@emulsify/cli 1.11.4 → 1.12.1

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 (148) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/node_modules/.package-lock.json +34 -24
  3. package/dist/node_modules/@types/node/README.md +2 -2
  4. package/dist/node_modules/@types/node/assert.d.ts +23 -1
  5. package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
  6. package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
  7. package/dist/node_modules/@types/node/buffer.d.ts +19 -17
  8. package/dist/node_modules/@types/node/child_process.d.ts +88 -161
  9. package/dist/node_modules/@types/node/cluster.d.ts +5 -6
  10. package/dist/node_modules/@types/node/constants.d.ts +14 -12
  11. package/dist/node_modules/@types/node/crypto.d.ts +237 -166
  12. package/dist/node_modules/@types/node/dgram.d.ts +15 -14
  13. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
  14. package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
  15. package/dist/node_modules/@types/node/dns.d.ts +28 -21
  16. package/dist/node_modules/@types/node/events.d.ts +81 -35
  17. package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
  18. package/dist/node_modules/@types/node/fs.d.ts +251 -193
  19. package/dist/node_modules/@types/node/globals.d.ts +146 -442
  20. package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
  21. package/dist/node_modules/@types/node/http.d.ts +136 -31
  22. package/dist/node_modules/@types/node/http2.d.ts +102 -26
  23. package/dist/node_modules/@types/node/https.d.ts +94 -60
  24. package/dist/node_modules/@types/node/index.d.ts +5 -3
  25. package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
  26. package/dist/node_modules/@types/node/module.d.ts +362 -138
  27. package/dist/node_modules/@types/node/net.d.ts +27 -20
  28. package/dist/node_modules/@types/node/os.d.ts +14 -3
  29. package/dist/node_modules/@types/node/package.json +4 -89
  30. package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
  31. package/dist/node_modules/@types/node/process.d.ts +108 -35
  32. package/dist/node_modules/@types/node/querystring.d.ts +2 -3
  33. package/dist/node_modules/@types/node/readline/promises.d.ts +1 -1
  34. package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
  35. package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
  36. package/dist/node_modules/@types/node/stream.d.ts +963 -1014
  37. package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
  38. package/dist/node_modules/@types/node/test.d.ts +1504 -1655
  39. package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
  40. package/dist/node_modules/@types/node/timers.d.ts +157 -111
  41. package/dist/node_modules/@types/node/tls.d.ts +105 -67
  42. package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
  43. package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
  44. package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
  45. package/dist/node_modules/@types/node/url.d.ts +10 -1
  46. package/dist/node_modules/@types/node/util.d.ts +28 -3
  47. package/dist/node_modules/@types/node/v8.d.ts +6 -5
  48. package/dist/node_modules/@types/node/vm.d.ts +147 -68
  49. package/dist/node_modules/@types/node/wasi.d.ts +1 -1
  50. package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  51. package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  52. package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
  53. package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  54. package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
  55. package/dist/node_modules/@types/node/zlib.d.ts +21 -20
  56. package/dist/node_modules/debug/package.json +7 -3
  57. package/dist/node_modules/debug/src/browser.js +2 -1
  58. package/dist/node_modules/debug/src/common.js +57 -39
  59. package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
  60. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
  61. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
  62. package/dist/node_modules/fast-uri/LICENSE +3 -1
  63. package/dist/node_modules/fast-uri/README.md +55 -37
  64. package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  65. package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  66. package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  67. package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
  68. package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  69. package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  70. package/dist/node_modules/fast-uri/eslint.config.js +6 -0
  71. package/dist/node_modules/fast-uri/index.js +98 -61
  72. package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
  73. package/dist/node_modules/fast-uri/lib/utils.js +217 -123
  74. package/dist/node_modules/fast-uri/package.json +44 -14
  75. package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
  76. package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
  77. package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
  78. package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  79. package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
  80. package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
  81. package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  82. package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
  83. package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  84. package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
  85. package/dist/node_modules/fast-uri/test/util.test.js +23 -8
  86. package/dist/node_modules/fast-uri/tsconfig.json +9 -0
  87. package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
  88. package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
  89. package/dist/node_modules/fs-extra/LICENSE +1 -1
  90. package/dist/node_modules/fs-extra/README.md +3 -1
  91. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
  92. package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
  93. package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
  94. package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
  95. package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
  96. package/dist/node_modules/fs-extra/package.json +1 -1
  97. package/dist/node_modules/jsonfile/README.md +1 -1
  98. package/dist/node_modules/jsonfile/index.js +3 -3
  99. package/dist/node_modules/jsonfile/package.json +1 -1
  100. package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
  101. package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
  102. package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
  103. package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
  104. package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
  105. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
  106. package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
  107. package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
  108. package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
  109. package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
  110. package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
  111. package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
  112. package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
  113. package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
  114. package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
  115. package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
  116. package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
  117. package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
  118. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
  119. package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
  120. package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
  121. package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
  122. package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
  123. package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
  124. package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
  125. package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
  126. package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
  127. package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
  128. package/dist/node_modules/simple-git/package.json +6 -6
  129. package/dist/node_modules/simple-git/readme.md +8 -0
  130. package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
  131. package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
  132. package/dist/node_modules/undici-types/filereader.d.ts +1 -1
  133. package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
  134. package/dist/node_modules/undici-types/package.json +1 -1
  135. package/dist/node_modules/undici-types/patch.d.ts +0 -38
  136. package/dist/node_modules/undici-types/readable.d.ts +5 -0
  137. package/dist/node_modules/undici-types/webidl.d.ts +6 -0
  138. package/dist/node_modules/undici-types/websocket.d.ts +0 -2
  139. package/dist/package-lock.json +912 -813
  140. package/dist/package.json +2 -2
  141. package/dist/util/getAvailableStarters.js +3 -3
  142. package/package.json +2 -2
  143. package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
  144. package/dist/node_modules/fast-uri/benchmark.js +0 -105
  145. package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
  146. package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
  147. package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
  148. package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
@@ -1,4 +1,6 @@
1
1
  declare module "process" {
2
+ import { Control, MessageOptions, SendHandle } from "node:child_process";
3
+ import { PathLike } from "node:fs";
2
4
  import * as tty from "node:tty";
3
5
  import { Worker } from "node:worker_threads";
4
6
 
@@ -168,6 +170,59 @@ declare module "process" {
168
170
  libUrl?: string | undefined;
169
171
  lts?: string | undefined;
170
172
  }
173
+ interface ProcessFeatures {
174
+ /**
175
+ * A boolean value that is `true` if the current Node.js build is caching builtin modules.
176
+ * @since v12.0.0
177
+ */
178
+ readonly cached_builtins: boolean;
179
+ /**
180
+ * A boolean value that is `true` if the current Node.js build is a debug build.
181
+ * @since v0.5.5
182
+ */
183
+ readonly debug: boolean;
184
+ /**
185
+ * A boolean value that is `true` if the current Node.js build includes the inspector.
186
+ * @since v11.10.0
187
+ */
188
+ readonly inspector: boolean;
189
+ /**
190
+ * A boolean value that is `true` if the current Node.js build includes support for IPv6.
191
+ * @since v0.5.3
192
+ */
193
+ readonly ipv6: boolean;
194
+ /**
195
+ * A boolean value that is `true` if the current Node.js build supports
196
+ * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require).
197
+ * @since v20.19.0
198
+ */
199
+ readonly require_module: boolean;
200
+ /**
201
+ * A boolean value that is `true` if the current Node.js build includes support for TLS.
202
+ * @since v0.5.3
203
+ */
204
+ readonly tls: boolean;
205
+ /**
206
+ * A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS.
207
+ * @since v4.8.0
208
+ */
209
+ readonly tls_alpn: boolean;
210
+ /**
211
+ * A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS.
212
+ * @since v0.11.13
213
+ */
214
+ readonly tls_ocsp: boolean;
215
+ /**
216
+ * A boolean value that is `true` if the current Node.js build includes support for SNI in TLS.
217
+ * @since v0.5.3
218
+ */
219
+ readonly tls_sni: boolean;
220
+ /**
221
+ * A boolean value that is `true` if the current Node.js build includes support for libuv.
222
+ * @since v0.5.3
223
+ */
224
+ readonly uv: boolean;
225
+ }
171
226
  interface ProcessVersions extends Dict<string> {
172
227
  http_parser: string;
173
228
  node: string;
@@ -254,7 +309,7 @@ declare module "process" {
254
309
  */
255
310
  type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
256
311
  type WarningListener = (warning: Error) => void;
257
- type MessageListener = (message: unknown, sendHandle: unknown) => void;
312
+ type MessageListener = (message: unknown, sendHandle: SendHandle) => void;
258
313
  type SignalsListener = (signal: Signals) => void;
259
314
  type MultipleResolveListener = (
260
315
  type: MultipleResolveType,
@@ -270,14 +325,46 @@ declare module "process" {
270
325
  /**
271
326
  * Can be used to change the default timezone at runtime
272
327
  */
273
- TZ?: string;
328
+ TZ?: string | undefined;
274
329
  }
275
330
  interface HRTime {
331
+ /**
332
+ * This is the legacy version of {@link process.hrtime.bigint()}
333
+ * before bigint was introduced in JavaScript.
334
+ *
335
+ * The `process.hrtime()` method returns the current high-resolution real time in a `[seconds, nanoseconds]` tuple `Array`,
336
+ * where `nanoseconds` is the remaining part of the real time that can't be represented in second precision.
337
+ *
338
+ * `time` is an optional parameter that must be the result of a previous `process.hrtime()` call to diff with the current time.
339
+ * If the parameter passed in is not a tuple `Array`, a TypeError will be thrown.
340
+ * Passing in a user-defined array instead of the result of a previous call to `process.hrtime()` will lead to undefined behavior.
341
+ *
342
+ * These times are relative to an arbitrary time in the past,
343
+ * and not related to the time of day and therefore not subject to clock drift.
344
+ * The primary use is for measuring performance between intervals:
345
+ * ```js
346
+ * const { hrtime } = require('node:process');
347
+ * const NS_PER_SEC = 1e9;
348
+ * const time = hrtime();
349
+ * // [ 1800216, 25 ]
350
+ *
351
+ * setTimeout(() => {
352
+ * const diff = hrtime(time);
353
+ * // [ 1, 552 ]
354
+ *
355
+ * console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);
356
+ * // Benchmark took 1000000552 nanoseconds
357
+ * }, 1000);
358
+ * ```
359
+ * @since 0.7.6
360
+ * @legacy Use {@link process.hrtime.bigint()} instead.
361
+ * @param time The result of a previous call to `process.hrtime()`
362
+ */
276
363
  (time?: [number, number]): [number, number];
277
364
  /**
278
- * The `bigint` version of the `{@link hrtime()}` method returning the current high-resolution real time in nanoseconds as a `bigint`.
365
+ * The `bigint` version of the {@link process.hrtime()} method returning the current high-resolution real time in nanoseconds as a `bigint`.
279
366
  *
280
- * Unlike `{@link hrtime()}`, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s.
367
+ * Unlike {@link process.hrtime()}, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s.
281
368
  * ```js
282
369
  * import { hrtime } from 'node:process';
283
370
  *
@@ -292,6 +379,7 @@ declare module "process" {
292
379
  * // Benchmark took 1154389282 nanoseconds
293
380
  * }, 1000);
294
381
  * ```
382
+ * @since v10.7.0
295
383
  */
296
384
  bigint(): bigint;
297
385
  }
@@ -881,7 +969,7 @@ declare module "process" {
881
969
  * @since v0.1.13
882
970
  * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
883
971
  */
884
- exit(code?: number | string | null | undefined): never;
972
+ exit(code?: number | string | null): never;
885
973
  /**
886
974
  * A number which will be the process exit code, when the process either
887
975
  * exits gracefully, or is exited via {@link exit} without specifying
@@ -892,7 +980,7 @@ declare module "process" {
892
980
  * @default undefined
893
981
  * @since v0.11.8
894
982
  */
895
- exitCode?: number | string | number | undefined;
983
+ exitCode: number | string | number | undefined;
896
984
  /**
897
985
  * The `process.getActiveResourcesInfo()` method returns an array of strings containing
898
986
  * the types of the active resources that are currently keeping the event loop alive.
@@ -1323,7 +1411,7 @@ declare module "process" {
1323
1411
  * @since v20.12.0
1324
1412
  * @param path The path to the .env file
1325
1413
  */
1326
- loadEnvFile(path?: string | URL | Buffer): void;
1414
+ loadEnvFile(path?: PathLike): void;
1327
1415
  /**
1328
1416
  * The `process.pid` property returns the PID of the process.
1329
1417
  *
@@ -1413,7 +1501,7 @@ declare module "process" {
1413
1501
  * @since v0.1.17
1414
1502
  * @deprecated Since v14.0.0 - Use `main` instead.
1415
1503
  */
1416
- mainModule?: Module | undefined;
1504
+ mainModule?: Module;
1417
1505
  memoryUsage: MemoryUsageFn;
1418
1506
  /**
1419
1507
  * Gets the amount of memory available to the process (in bytes) based on
@@ -1579,16 +1667,7 @@ declare module "process" {
1579
1667
  * @since v3.0.0
1580
1668
  */
1581
1669
  readonly release: ProcessRelease;
1582
- features: {
1583
- inspector: boolean;
1584
- debug: boolean;
1585
- uv: boolean;
1586
- ipv6: boolean;
1587
- tls_alpn: boolean;
1588
- tls_sni: boolean;
1589
- tls_ocsp: boolean;
1590
- tls: boolean;
1591
- };
1670
+ readonly features: ProcessFeatures;
1592
1671
  /**
1593
1672
  * `process.umask()` returns the Node.js process's file mode creation mask. Child
1594
1673
  * processes inherit the mask from the parent process.
@@ -1616,18 +1695,7 @@ declare module "process" {
1616
1695
  * If no IPC channel exists, this property is undefined.
1617
1696
  * @since v7.1.0
1618
1697
  */
1619
- channel?: {
1620
- /**
1621
- * This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
1622
- * @since v7.1.0
1623
- */
1624
- ref(): void;
1625
- /**
1626
- * This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
1627
- * @since v7.1.0
1628
- */
1629
- unref(): void;
1630
- };
1698
+ channel?: Control;
1631
1699
  /**
1632
1700
  * If Node.js is spawned with an IPC channel, the `process.send()` method can be
1633
1701
  * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
@@ -1641,10 +1709,8 @@ declare module "process" {
1641
1709
  */
1642
1710
  send?(
1643
1711
  message: any,
1644
- sendHandle?: any,
1645
- options?: {
1646
- keepOpen?: boolean | undefined;
1647
- },
1712
+ sendHandle?: SendHandle,
1713
+ options?: MessageOptions,
1648
1714
  callback?: (error: Error | null) => void,
1649
1715
  ): boolean;
1650
1716
  /**
@@ -1786,6 +1852,7 @@ declare module "process" {
1786
1852
  addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1787
1853
  addListener(event: "warning", listener: WarningListener): this;
1788
1854
  addListener(event: "message", listener: MessageListener): this;
1855
+ addListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
1789
1856
  addListener(event: Signals, listener: SignalsListener): this;
1790
1857
  addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1791
1858
  addListener(event: "worker", listener: WorkerListener): this;
@@ -1797,7 +1864,8 @@ declare module "process" {
1797
1864
  emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
1798
1865
  emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
1799
1866
  emit(event: "warning", warning: Error): boolean;
1800
- emit(event: "message", message: unknown, sendHandle: unknown): this;
1867
+ emit(event: "message", message: unknown, sendHandle: SendHandle): this;
1868
+ emit(event: "workerMessage", value: any, source: number): this;
1801
1869
  emit(event: Signals, signal?: Signals): boolean;
1802
1870
  emit(
1803
1871
  event: "multipleResolves",
@@ -1815,6 +1883,7 @@ declare module "process" {
1815
1883
  on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1816
1884
  on(event: "warning", listener: WarningListener): this;
1817
1885
  on(event: "message", listener: MessageListener): this;
1886
+ on(event: "workerMessage", listener: (value: any, source: number) => void): this;
1818
1887
  on(event: Signals, listener: SignalsListener): this;
1819
1888
  on(event: "multipleResolves", listener: MultipleResolveListener): this;
1820
1889
  on(event: "worker", listener: WorkerListener): this;
@@ -1828,6 +1897,7 @@ declare module "process" {
1828
1897
  once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1829
1898
  once(event: "warning", listener: WarningListener): this;
1830
1899
  once(event: "message", listener: MessageListener): this;
1900
+ once(event: "workerMessage", listener: (value: any, source: number) => void): this;
1831
1901
  once(event: Signals, listener: SignalsListener): this;
1832
1902
  once(event: "multipleResolves", listener: MultipleResolveListener): this;
1833
1903
  once(event: "worker", listener: WorkerListener): this;
@@ -1841,6 +1911,7 @@ declare module "process" {
1841
1911
  prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1842
1912
  prependListener(event: "warning", listener: WarningListener): this;
1843
1913
  prependListener(event: "message", listener: MessageListener): this;
1914
+ prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
1844
1915
  prependListener(event: Signals, listener: SignalsListener): this;
1845
1916
  prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1846
1917
  prependListener(event: "worker", listener: WorkerListener): this;
@@ -1853,6 +1924,7 @@ declare module "process" {
1853
1924
  prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
1854
1925
  prependOnceListener(event: "warning", listener: WarningListener): this;
1855
1926
  prependOnceListener(event: "message", listener: MessageListener): this;
1927
+ prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
1856
1928
  prependOnceListener(event: Signals, listener: SignalsListener): this;
1857
1929
  prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
1858
1930
  prependOnceListener(event: "worker", listener: WorkerListener): this;
@@ -1865,6 +1937,7 @@ declare module "process" {
1865
1937
  listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
1866
1938
  listeners(event: "warning"): WarningListener[];
1867
1939
  listeners(event: "message"): MessageListener[];
1940
+ listeners(event: "workerMessage"): ((value: any, source: number) => void)[];
1868
1941
  listeners(event: Signals): SignalsListener[];
1869
1942
  listeners(event: "multipleResolves"): MultipleResolveListener[];
1870
1943
  listeners(event: "worker"): WorkerListener[];
@@ -37,9 +37,8 @@ declare module "querystring" {
37
37
  | string
38
38
  | number
39
39
  | boolean
40
- | readonly string[]
41
- | readonly number[]
42
- | readonly boolean[]
40
+ | bigint
41
+ | ReadonlyArray<string | number | boolean | bigint>
43
42
  | null
44
43
  >
45
44
  {}
@@ -65,7 +65,7 @@ declare module "readline/promises" {
65
65
  constructor(
66
66
  stream: NodeJS.WritableStream,
67
67
  options?: {
68
- autoCommit?: boolean;
68
+ autoCommit?: boolean | undefined;
69
69
  },
70
70
  );
71
71
  /**
@@ -1,11 +1,37 @@
1
+ /**
2
+ * The utility consumer functions provide common options for consuming
3
+ * streams.
4
+ * @since v16.7.0
5
+ */
1
6
  declare module "stream/consumers" {
2
- import { Blob as NodeBlob } from "node:buffer";
3
- import { Readable } from "node:stream";
4
- function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<Buffer>;
5
- function text(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<string>;
6
- function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<ArrayBuffer>;
7
- function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<NodeBlob>;
8
- function json(stream: NodeJS.ReadableStream | Readable | AsyncIterable<any>): Promise<unknown>;
7
+ import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer";
8
+ import { ReadableStream as WebReadableStream } from "node:stream/web";
9
+ /**
10
+ * @since v16.7.0
11
+ * @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream.
12
+ */
13
+ function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
14
+ /**
15
+ * @since v16.7.0
16
+ * @returns Fulfills with a `Blob` containing the full contents of the stream.
17
+ */
18
+ function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NodeBlob>;
19
+ /**
20
+ * @since v16.7.0
21
+ * @returns Fulfills with a `Buffer` containing the full contents of the stream.
22
+ */
23
+ function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NonSharedBuffer>;
24
+ /**
25
+ * @since v16.7.0
26
+ * @returns Fulfills with the contents of the stream parsed as a
27
+ * UTF-8 encoded string that is then passed through `JSON.parse()`.
28
+ */
29
+ function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<unknown>;
30
+ /**
31
+ * @since v16.7.0
32
+ * @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string.
33
+ */
34
+ function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<string>;
9
35
  }
10
36
  declare module "node:stream/consumers" {
11
37
  export * from "stream/consumers";
@@ -6,6 +6,8 @@ type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
6
6
  : import("stream/web").CountQueuingStrategy;
7
7
  type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
8
8
  : import("stream/web").DecompressionStream;
9
+ type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
10
+ : import("stream/web").QueuingStrategy<T>;
9
11
  type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
10
12
  : import("stream/web").ReadableByteStreamController;
11
13
  type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
@@ -97,7 +99,7 @@ declare module "stream/web" {
97
99
  signal?: AbortSignal;
98
100
  }
99
101
  interface ReadableStreamGenericReader {
100
- readonly closed: Promise<undefined>;
102
+ readonly closed: Promise<void>;
101
103
  cancel(reason?: any): Promise<void>;
102
104
  }
103
105
  type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
@@ -205,7 +207,12 @@ declare module "stream/web" {
205
207
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
206
208
  interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
207
209
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
208
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
210
+ read<T extends ArrayBufferView>(
211
+ view: T,
212
+ options?: {
213
+ min?: number;
214
+ },
215
+ ): Promise<ReadableStreamReadResult<T>>;
209
216
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
210
217
  releaseLock(): void;
211
218
  }
@@ -302,9 +309,9 @@ declare module "stream/web" {
302
309
  * sink.
303
310
  */
304
311
  interface WritableStreamDefaultWriter<W = any> {
305
- readonly closed: Promise<undefined>;
312
+ readonly closed: Promise<void>;
306
313
  readonly desiredSize: number | null;
307
- readonly ready: Promise<undefined>;
314
+ readonly ready: Promise<void>;
308
315
  abort(reason?: any): Promise<void>;
309
316
  close(): Promise<void>;
310
317
  releaseLock(): void;
@@ -458,6 +465,8 @@ declare module "stream/web" {
458
465
  }
459
466
  : typeof import("stream/web").DecompressionStream;
460
467
 
468
+ interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
469
+
461
470
  interface ReadableByteStreamController extends _ReadableByteStreamController {}
462
471
  var ReadableByteStreamController: typeof globalThis extends
463
472
  { onmessage: any; ReadableByteStreamController: infer T } ? T