create-leo-app 0.9.13 → 0.9.14

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 (121) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
  3. package/template-build-and-execute-authorization-ts/package.json +1 -1
  4. package/template-extension/package.json +1 -1
  5. package/template-nextjs-ts/next-env.d.ts +1 -1
  6. package/template-nextjs-ts/node_modules/@types/node/README.md +2 -2
  7. package/template-nextjs-ts/node_modules/@types/node/assert/strict.d.ts +105 -2
  8. package/template-nextjs-ts/node_modules/@types/node/assert.d.ts +119 -95
  9. package/template-nextjs-ts/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  10. package/template-nextjs-ts/node_modules/@types/node/buffer.d.ts +12 -6
  11. package/template-nextjs-ts/node_modules/@types/node/child_process.d.ts +89 -162
  12. package/template-nextjs-ts/node_modules/@types/node/cluster.d.ts +4 -5
  13. package/template-nextjs-ts/node_modules/@types/node/crypto.d.ts +203 -167
  14. package/template-nextjs-ts/node_modules/@types/node/dgram.d.ts +9 -8
  15. package/template-nextjs-ts/node_modules/@types/node/dns/promises.d.ts +11 -10
  16. package/template-nextjs-ts/node_modules/@types/node/dns.d.ts +24 -20
  17. package/template-nextjs-ts/node_modules/@types/node/events.d.ts +80 -34
  18. package/template-nextjs-ts/node_modules/@types/node/fs/promises.d.ts +78 -56
  19. package/template-nextjs-ts/node_modules/@types/node/fs.d.ts +153 -129
  20. package/template-nextjs-ts/node_modules/@types/node/globals.d.ts +151 -343
  21. package/template-nextjs-ts/node_modules/@types/node/globals.typedarray.d.ts +17 -0
  22. package/template-nextjs-ts/node_modules/@types/node/http.d.ts +82 -54
  23. package/template-nextjs-ts/node_modules/@types/node/http2.d.ts +45 -26
  24. package/template-nextjs-ts/node_modules/@types/node/https.d.ts +96 -62
  25. package/template-nextjs-ts/node_modules/@types/node/index.d.ts +7 -2
  26. package/template-nextjs-ts/node_modules/@types/node/inspector.d.ts +187 -3936
  27. package/template-nextjs-ts/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  28. package/template-nextjs-ts/node_modules/@types/node/module.d.ts +24 -0
  29. package/template-nextjs-ts/node_modules/@types/node/net.d.ts +33 -11
  30. package/template-nextjs-ts/node_modules/@types/node/os.d.ts +14 -3
  31. package/template-nextjs-ts/node_modules/@types/node/package.json +3 -83
  32. package/template-nextjs-ts/node_modules/@types/node/path.d.ts +1 -1
  33. package/template-nextjs-ts/node_modules/@types/node/perf_hooks.d.ts +6 -8
  34. package/template-nextjs-ts/node_modules/@types/node/process.d.ts +34 -25
  35. package/template-nextjs-ts/node_modules/@types/node/readline/promises.d.ts +1 -2
  36. package/template-nextjs-ts/node_modules/@types/node/sqlite.d.ts +48 -7
  37. package/template-nextjs-ts/node_modules/@types/node/stream/consumers.d.ts +2 -2
  38. package/template-nextjs-ts/node_modules/@types/node/stream/web.d.ts +4 -0
  39. package/template-nextjs-ts/node_modules/@types/node/stream.d.ts +29 -33
  40. package/template-nextjs-ts/node_modules/@types/node/string_decoder.d.ts +2 -2
  41. package/template-nextjs-ts/node_modules/@types/node/test.d.ts +10 -23
  42. package/template-nextjs-ts/node_modules/@types/node/tls.d.ts +122 -66
  43. package/template-nextjs-ts/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  44. package/template-nextjs-ts/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
  45. package/template-nextjs-ts/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  46. package/template-nextjs-ts/node_modules/@types/node/url.d.ts +21 -9
  47. package/template-nextjs-ts/node_modules/@types/node/util.d.ts +18 -8
  48. package/template-nextjs-ts/node_modules/@types/node/v8.d.ts +33 -35
  49. package/template-nextjs-ts/node_modules/@types/node/vm.d.ts +21 -50
  50. package/template-nextjs-ts/node_modules/@types/node/wasi.d.ts +1 -1
  51. package/template-nextjs-ts/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  52. package/template-nextjs-ts/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  53. package/template-nextjs-ts/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
  54. package/template-nextjs-ts/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  55. package/template-nextjs-ts/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  56. package/template-nextjs-ts/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  57. package/template-nextjs-ts/node_modules/@types/node/worker_threads.d.ts +65 -50
  58. package/template-nextjs-ts/node_modules/@types/node/zlib.d.ts +39 -26
  59. package/template-nextjs-ts/package.json +2 -2
  60. package/template-nextjs-ts/src/app/page.tsx +1 -1
  61. package/template-node/package.json +2 -2
  62. package/template-node-ts/package.json +2 -2
  63. package/template-offline-public-transaction-ts/package.json +1 -1
  64. package/template-private-transaction-ts/package.json +1 -1
  65. package/template-react-leo/package.json +1 -1
  66. package/template-react-managed-worker/package.json +1 -1
  67. package/template-react-ts/node_modules/@types/node/README.md +2 -2
  68. package/template-react-ts/node_modules/@types/node/assert/strict.d.ts +105 -2
  69. package/template-react-ts/node_modules/@types/node/assert.d.ts +119 -95
  70. package/template-react-ts/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  71. package/template-react-ts/node_modules/@types/node/buffer.d.ts +12 -6
  72. package/template-react-ts/node_modules/@types/node/child_process.d.ts +89 -162
  73. package/template-react-ts/node_modules/@types/node/cluster.d.ts +4 -5
  74. package/template-react-ts/node_modules/@types/node/crypto.d.ts +203 -167
  75. package/template-react-ts/node_modules/@types/node/dgram.d.ts +9 -8
  76. package/template-react-ts/node_modules/@types/node/dns/promises.d.ts +11 -10
  77. package/template-react-ts/node_modules/@types/node/dns.d.ts +24 -20
  78. package/template-react-ts/node_modules/@types/node/events.d.ts +80 -34
  79. package/template-react-ts/node_modules/@types/node/fs/promises.d.ts +78 -56
  80. package/template-react-ts/node_modules/@types/node/fs.d.ts +153 -129
  81. package/template-react-ts/node_modules/@types/node/globals.d.ts +151 -343
  82. package/template-react-ts/node_modules/@types/node/globals.typedarray.d.ts +17 -0
  83. package/template-react-ts/node_modules/@types/node/http.d.ts +82 -54
  84. package/template-react-ts/node_modules/@types/node/http2.d.ts +45 -26
  85. package/template-react-ts/node_modules/@types/node/https.d.ts +96 -62
  86. package/template-react-ts/node_modules/@types/node/index.d.ts +7 -2
  87. package/template-react-ts/node_modules/@types/node/inspector.d.ts +187 -3936
  88. package/template-react-ts/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  89. package/template-react-ts/node_modules/@types/node/module.d.ts +24 -0
  90. package/template-react-ts/node_modules/@types/node/net.d.ts +33 -11
  91. package/template-react-ts/node_modules/@types/node/os.d.ts +14 -3
  92. package/template-react-ts/node_modules/@types/node/package.json +3 -83
  93. package/template-react-ts/node_modules/@types/node/path.d.ts +1 -1
  94. package/template-react-ts/node_modules/@types/node/perf_hooks.d.ts +6 -8
  95. package/template-react-ts/node_modules/@types/node/process.d.ts +34 -25
  96. package/template-react-ts/node_modules/@types/node/readline/promises.d.ts +1 -2
  97. package/template-react-ts/node_modules/@types/node/sqlite.d.ts +48 -7
  98. package/template-react-ts/node_modules/@types/node/stream/consumers.d.ts +2 -2
  99. package/template-react-ts/node_modules/@types/node/stream/web.d.ts +4 -0
  100. package/template-react-ts/node_modules/@types/node/stream.d.ts +29 -33
  101. package/template-react-ts/node_modules/@types/node/string_decoder.d.ts +2 -2
  102. package/template-react-ts/node_modules/@types/node/test.d.ts +10 -23
  103. package/template-react-ts/node_modules/@types/node/tls.d.ts +122 -66
  104. package/template-react-ts/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  105. package/template-react-ts/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
  106. package/template-react-ts/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  107. package/template-react-ts/node_modules/@types/node/url.d.ts +21 -9
  108. package/template-react-ts/node_modules/@types/node/util.d.ts +18 -8
  109. package/template-react-ts/node_modules/@types/node/v8.d.ts +33 -35
  110. package/template-react-ts/node_modules/@types/node/vm.d.ts +21 -50
  111. package/template-react-ts/node_modules/@types/node/wasi.d.ts +1 -1
  112. package/template-react-ts/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  113. package/template-react-ts/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  114. package/template-react-ts/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
  115. package/template-react-ts/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  116. package/template-react-ts/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  117. package/template-react-ts/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  118. package/template-react-ts/node_modules/@types/node/worker_threads.d.ts +65 -50
  119. package/template-react-ts/node_modules/@types/node/zlib.d.ts +39 -26
  120. package/template-react-ts/package.json +1 -1
  121. package/template-vanilla/package.json +1 -1
@@ -43,10 +43,9 @@
43
43
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/sqlite.js)
44
44
  */
45
45
  declare module "node:sqlite" {
46
+ import { PathLike } from "node:fs";
46
47
  type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
47
- type SQLOutputValue = null | number | bigint | string | Uint8Array;
48
- /** @deprecated Use `SQLInputValue` or `SQLOutputValue` instead. */
49
- type SupportedValueType = SQLOutputValue;
48
+ type SQLOutputValue = null | number | bigint | string | NodeJS.NonSharedUint8Array;
50
49
  interface DatabaseSyncOptions {
51
50
  /**
52
51
  * If `true`, the database is opened by the constructor. When
@@ -89,6 +88,41 @@ declare module "node:sqlite" {
89
88
  * @default false
90
89
  */
91
90
  allowExtension?: boolean | undefined;
91
+ /**
92
+ * The [busy timeout](https://sqlite.org/c3ref/busy_timeout.html) in milliseconds. This is the maximum amount of
93
+ * time that SQLite will wait for a database lock to be released before
94
+ * returning an error.
95
+ * @since v22.16.0
96
+ * @default 0
97
+ */
98
+ timeout?: number | undefined;
99
+ /**
100
+ * If `true`, integer fields are read as JavaScript `BigInt` values. If `false`,
101
+ * integer fields are read as JavaScript numbers.
102
+ * @since v22.18.0
103
+ * @default false
104
+ */
105
+ readBigInts?: boolean | undefined;
106
+ /**
107
+ * If `true`, query results are returned as arrays instead of objects.
108
+ * @since v22.18.0
109
+ * @default false
110
+ */
111
+ returnArrays?: boolean | undefined;
112
+ /**
113
+ * If `true`, allows binding named parameters without the prefix
114
+ * character (e.g., `foo` instead of `:foo`).
115
+ * @since v22.18.0
116
+ * @default true
117
+ */
118
+ allowBareNamedParameters?: boolean | undefined;
119
+ /**
120
+ * If `true`, unknown named parameters are ignored when binding.
121
+ * If `false`, an exception is thrown for unknown named parameters.
122
+ * @since v22.18.0
123
+ * @default false
124
+ */
125
+ allowUnknownNamedParameters?: boolean | undefined;
92
126
  }
93
127
  interface CreateSessionOptions {
94
128
  /**
@@ -205,7 +239,7 @@ declare module "node:sqlite" {
205
239
  * To use an in-memory database, the path should be the special name `':memory:'`.
206
240
  * @param options Configuration options for the database connection.
207
241
  */
208
- constructor(path: string | Buffer | URL, options?: DatabaseSyncOptions);
242
+ constructor(path: PathLike, options?: DatabaseSyncOptions);
209
243
  /**
210
244
  * Registers a new aggregate function with the SQLite database. This method is a wrapper around
211
245
  * [`sqlite3_create_window_function()`](https://www.sqlite.org/c3ref/create_function.html).
@@ -376,7 +410,7 @@ declare module "node:sqlite" {
376
410
  * @returns Binary changeset that can be applied to other databases.
377
411
  * @since v22.12.0
378
412
  */
379
- changeset(): Uint8Array;
413
+ changeset(): NodeJS.NonSharedUint8Array;
380
414
  /**
381
415
  * Similar to the method above, but generates a more compact patchset. See
382
416
  * [Changesets and Patchsets](https://www.sqlite.org/sessionintro.html#changesets_and_patchsets)
@@ -386,7 +420,7 @@ declare module "node:sqlite" {
386
420
  * @returns Binary patchset that can be applied to other databases.
387
421
  * @since v22.12.0
388
422
  */
389
- patchset(): Uint8Array;
423
+ patchset(): NodeJS.NonSharedUint8Array;
390
424
  /**
391
425
  * Closes the session. An exception is thrown if the database or the session is not open. This method is a
392
426
  * wrapper around
@@ -559,6 +593,13 @@ declare module "node:sqlite" {
559
593
  * @param enabled Enables or disables support for unknown named parameters.
560
594
  */
561
595
  setAllowUnknownNamedParameters(enabled: boolean): void;
596
+ /**
597
+ * When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
598
+ * of objects.
599
+ * @since v22.16.0
600
+ * @param enabled Enables or disables the return of query results as arrays.
601
+ */
602
+ setReturnArrays(enabled: boolean): void;
562
603
  /**
563
604
  * When reading from the database, SQLite `INTEGER`s are mapped to JavaScript
564
605
  * numbers by default. However, SQLite `INTEGER`s can store values larger than
@@ -636,7 +677,7 @@ declare module "node:sqlite" {
636
677
  * following properties are supported:
637
678
  * @returns A promise that resolves when the backup is completed and rejects if an error occurs.
638
679
  */
639
- function backup(sourceDb: DatabaseSync, path: string | Buffer | URL, options?: BackupOptions): Promise<void>;
680
+ function backup(sourceDb: DatabaseSync, path: PathLike, options?: BackupOptions): Promise<void>;
640
681
  /**
641
682
  * @since v22.13.0
642
683
  */
@@ -4,7 +4,7 @@
4
4
  * @since v16.7.0
5
5
  */
6
6
  declare module "stream/consumers" {
7
- import { Blob as NodeBlob } from "node:buffer";
7
+ import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer";
8
8
  import { ReadableStream as WebReadableStream } from "node:stream/web";
9
9
  /**
10
10
  * @since v16.7.0
@@ -20,7 +20,7 @@ declare module "stream/consumers" {
20
20
  * @since v16.7.0
21
21
  * @returns Fulfills with a `Buffer` containing the full contents of the stream.
22
22
  */
23
- function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<Buffer>;
23
+ function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NonSharedBuffer>;
24
24
  /**
25
25
  * @since v16.7.0
26
26
  * @returns Fulfills with the contents of the stream parsed as a
@@ -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 } ? {}
@@ -487,6 +489,8 @@ declare module "stream/web" {
487
489
  }
488
490
  : typeof import("stream/web").DecompressionStream;
489
491
 
492
+ interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
493
+
490
494
  interface ReadableByteStreamController extends _ReadableByteStreamController {}
491
495
  /**
492
496
  * `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
@@ -45,22 +45,22 @@ declare module "stream" {
45
45
  emitClose?: boolean | undefined;
46
46
  highWaterMark?: number | undefined;
47
47
  objectMode?: boolean | undefined;
48
- construct?(this: T, callback: (error?: Error | null) => void): void;
49
- destroy?(this: T, error: Error | null, callback: (error?: Error | null) => void): void;
48
+ construct?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined;
49
+ destroy?: ((this: T, error: Error | null, callback: (error?: Error | null) => void) => void) | undefined;
50
50
  autoDestroy?: boolean | undefined;
51
51
  }
52
52
  interface ReadableOptions<T extends Readable = Readable> extends StreamOptions<T> {
53
53
  encoding?: BufferEncoding | undefined;
54
- read?(this: T, size: number): void;
54
+ read?: ((this: T, size: number) => void) | undefined;
55
55
  }
56
56
  interface ArrayOptions {
57
57
  /**
58
58
  * The maximum concurrent invocations of `fn` to call on the stream at once.
59
59
  * @default 1
60
60
  */
61
- concurrency?: number;
61
+ concurrency?: number | undefined;
62
62
  /** Allows destroying the stream if the signal is aborted. */
63
- signal?: AbortSignal;
63
+ signal?: AbortSignal | undefined;
64
64
  }
65
65
  /**
66
66
  * @since v0.9.4
@@ -76,7 +76,6 @@ declare module "stream" {
76
76
  /**
77
77
  * A utility method for creating a `Readable` from a web `ReadableStream`.
78
78
  * @since v17.0.0
79
- * @experimental
80
79
  */
81
80
  static fromWeb(
82
81
  readableStream: streamWeb.ReadableStream,
@@ -85,7 +84,6 @@ declare module "stream" {
85
84
  /**
86
85
  * A utility method for creating a web `ReadableStream` from a `Readable`.
87
86
  * @since v17.0.0
88
- * @experimental
89
87
  */
90
88
  static toWeb(
91
89
  streamReadable: Readable,
@@ -101,7 +99,6 @@ declare module "stream" {
101
99
  /**
102
100
  * Returns whether the stream was destroyed or errored before emitting `'end'`.
103
101
  * @since v16.8.0
104
- * @experimental
105
102
  */
106
103
  readonly readableAborted: boolean;
107
104
  /**
@@ -113,7 +110,6 @@ declare module "stream" {
113
110
  /**
114
111
  * Returns whether `'data'` has been emitted.
115
112
  * @since v16.7.0, v14.18.0
116
- * @experimental
117
113
  */
118
114
  readonly readableDidRead: boolean;
119
115
  /**
@@ -696,21 +692,25 @@ declare module "stream" {
696
692
  interface WritableOptions<T extends Writable = Writable> extends StreamOptions<T> {
697
693
  decodeStrings?: boolean | undefined;
698
694
  defaultEncoding?: BufferEncoding | undefined;
699
- write?(
700
- this: T,
701
- chunk: any,
702
- encoding: BufferEncoding,
703
- callback: (error?: Error | null) => void,
704
- ): void;
705
- writev?(
706
- this: T,
707
- chunks: Array<{
708
- chunk: any;
709
- encoding: BufferEncoding;
710
- }>,
711
- callback: (error?: Error | null) => void,
712
- ): void;
713
- final?(this: T, callback: (error?: Error | null) => void): void;
695
+ write?:
696
+ | ((
697
+ this: T,
698
+ chunk: any,
699
+ encoding: BufferEncoding,
700
+ callback: (error?: Error | null) => void,
701
+ ) => void)
702
+ | undefined;
703
+ writev?:
704
+ | ((
705
+ this: T,
706
+ chunks: Array<{
707
+ chunk: any;
708
+ encoding: BufferEncoding;
709
+ }>,
710
+ callback: (error?: Error | null) => void,
711
+ ) => void)
712
+ | undefined;
713
+ final?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined;
714
714
  }
715
715
  /**
716
716
  * @since v0.9.4
@@ -719,7 +719,6 @@ declare module "stream" {
719
719
  /**
720
720
  * A utility method for creating a `Writable` from a web `WritableStream`.
721
721
  * @since v17.0.0
722
- * @experimental
723
722
  */
724
723
  static fromWeb(
725
724
  writableStream: streamWeb.WritableStream,
@@ -728,7 +727,6 @@ declare module "stream" {
728
727
  /**
729
728
  * A utility method for creating a web `WritableStream` from a `Writable`.
730
729
  * @since v17.0.0
731
- * @experimental
732
730
  */
733
731
  static toWeb(streamWritable: Writable): streamWeb.WritableStream;
734
732
  /**
@@ -740,7 +738,6 @@ declare module "stream" {
740
738
  /**
741
739
  * Returns whether the stream was destroyed or errored before emitting `'finish'`.
742
740
  * @since v18.0.0, v16.17.0
743
- * @experimental
744
741
  */
745
742
  readonly writableAborted: boolean;
746
743
  /**
@@ -1090,7 +1087,6 @@ declare module "stream" {
1090
1087
  /**
1091
1088
  * A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`.
1092
1089
  * @since v17.0.0
1093
- * @experimental
1094
1090
  */
1095
1091
  static toWeb(streamDuplex: Duplex): {
1096
1092
  readable: streamWeb.ReadableStream;
@@ -1099,7 +1095,6 @@ declare module "stream" {
1099
1095
  /**
1100
1096
  * A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`.
1101
1097
  * @since v17.0.0
1102
- * @experimental
1103
1098
  */
1104
1099
  static fromWeb(
1105
1100
  duplexStream: {
@@ -1233,8 +1228,10 @@ declare module "stream" {
1233
1228
  function duplexPair(options?: DuplexOptions): [Duplex, Duplex];
1234
1229
  type TransformCallback = (error?: Error | null, data?: any) => void;
1235
1230
  interface TransformOptions<T extends Transform = Transform> extends DuplexOptions<T> {
1236
- transform?(this: T, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void;
1237
- flush?(this: T, callback: TransformCallback): void;
1231
+ transform?:
1232
+ | ((this: T, chunk: any, encoding: BufferEncoding, callback: TransformCallback) => void)
1233
+ | undefined;
1234
+ flush?: ((this: T, callback: TransformCallback) => void) | undefined;
1238
1235
  }
1239
1236
  /**
1240
1237
  * Transform streams are `Duplex` streams where the output is in some way
@@ -1641,6 +1638,7 @@ declare module "stream" {
1641
1638
  ...streams: Array<NodeJS.ReadWriteStream | NodeJS.WritableStream | PipelineOptions>
1642
1639
  ): Promise<void>;
1643
1640
  }
1641
+ // TODO: this interface never existed; remove in next major
1644
1642
  interface Pipe {
1645
1643
  close(): void;
1646
1644
  hasRef(): boolean;
@@ -1650,13 +1648,11 @@ declare module "stream" {
1650
1648
  /**
1651
1649
  * Returns whether the stream has encountered an error.
1652
1650
  * @since v17.3.0, v16.14.0
1653
- * @experimental
1654
1651
  */
1655
1652
  function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
1656
1653
  /**
1657
1654
  * Returns whether the stream is readable.
1658
1655
  * @since v17.4.0, v16.14.0
1659
- * @experimental
1660
1656
  */
1661
1657
  function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
1662
1658
  }
@@ -48,7 +48,7 @@ declare module "string_decoder" {
48
48
  * @since v0.1.99
49
49
  * @param buffer The bytes to decode.
50
50
  */
51
- write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
51
+ write(buffer: string | NodeJS.ArrayBufferView): string;
52
52
  /**
53
53
  * Returns any remaining input stored in the internal buffer as a string. Bytes
54
54
  * representing incomplete UTF-8 and UTF-16 characters will be replaced with
@@ -59,7 +59,7 @@ declare module "string_decoder" {
59
59
  * @since v0.9.3
60
60
  * @param buffer The bytes to decode.
61
61
  */
62
- end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
62
+ end(buffer?: string | NodeJS.ArrayBufferView): string;
63
63
  }
64
64
  }
65
65
  declare module "node:string_decoder" {
@@ -79,6 +79,7 @@
79
79
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/test.js)
80
80
  */
81
81
  declare module "node:test" {
82
+ import { AssertMethodNames } from "node:assert";
82
83
  import { Readable } from "node:stream";
83
84
  import TestFn = test.TestFn;
84
85
  import TestOptions = test.TestOptions;
@@ -502,6 +503,14 @@ declare module "node:test" {
502
503
  * The nesting level of the test.
503
504
  */
504
505
  nesting: number;
506
+ /**
507
+ * The severity level of the diagnostic message.
508
+ * Possible values are:
509
+ * * `'info'`: Informational messages.
510
+ * * `'warn'`: Warnings.
511
+ * * `'error'`: Errors.
512
+ */
513
+ level: "info" | "warn" | "error";
505
514
  }
506
515
  interface TestCoverage {
507
516
  /**
@@ -1149,29 +1158,7 @@ declare module "node:test" {
1149
1158
  */
1150
1159
  readonly mock: MockTracker;
1151
1160
  }
1152
- interface TestContextAssert extends
1153
- Pick<
1154
- typeof import("assert"),
1155
- | "deepEqual"
1156
- | "deepStrictEqual"
1157
- | "doesNotMatch"
1158
- | "doesNotReject"
1159
- | "doesNotThrow"
1160
- | "equal"
1161
- | "fail"
1162
- | "ifError"
1163
- | "match"
1164
- | "notDeepEqual"
1165
- | "notDeepStrictEqual"
1166
- | "notEqual"
1167
- | "notStrictEqual"
1168
- | "ok"
1169
- | "partialDeepStrictEqual"
1170
- | "rejects"
1171
- | "strictEqual"
1172
- | "throws"
1173
- >
1174
- {
1161
+ interface TestContextAssert extends Pick<typeof import("assert"), AssertMethodNames> {
1175
1162
  /**
1176
1163
  * This function serializes `value` and writes it to the file specified by `path`.
1177
1164
  *