cdk-common 2.1.47 → 2.1.49

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 (39) hide show
  1. package/.jsii +3 -3
  2. package/lib/main.js +1 -1
  3. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +108 -0
  5. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +14 -3
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +126 -0
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +4 -2
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +2 -0
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.generated.d.ts +5 -0
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +1 -0
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +25 -1
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/quic.d.ts +2 -2
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +15 -0
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/stream/iter.d.ts +301 -0
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +38 -12
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +2 -0
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +2 -0
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +5 -4
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/zlib/iter.d.ts +131 -0
  21. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  22. package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +108 -0
  23. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +14 -3
  24. package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +126 -0
  25. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +4 -2
  26. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +2 -0
  27. package/node_modules/@types/form-data/node_modules/@types/node/inspector.generated.d.ts +5 -0
  28. package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +1 -0
  29. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  30. package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +25 -1
  31. package/node_modules/@types/form-data/node_modules/@types/node/quic.d.ts +2 -2
  32. package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +15 -0
  33. package/node_modules/@types/form-data/node_modules/@types/node/stream/iter.d.ts +301 -0
  34. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +38 -12
  35. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +2 -0
  36. package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +2 -0
  37. package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +5 -4
  38. package/node_modules/@types/form-data/node_modules/@types/node/zlib/iter.d.ts +131 -0
  39. package/package.json +4 -4
@@ -0,0 +1,301 @@
1
+ declare module "node:stream/iter" {
2
+ // Symbols and custom typedefs
3
+ const broadcastProtocol: unique symbol;
4
+ const drainableProtocol: unique symbol;
5
+ const shareProtocol: unique symbol;
6
+ const shareSyncProtocol: unique symbol;
7
+ const toAsyncStreamable: unique symbol;
8
+ const toStreamable: unique symbol;
9
+ type Source =
10
+ | string
11
+ | ArrayBufferLike
12
+ | ArrayBufferView
13
+ | Iterable<SyncSource>
14
+ | AsyncIterable<Source>
15
+ | Streamable
16
+ | AsyncStreamable;
17
+ type SyncSource = string | ArrayBufferLike | ArrayBufferView | Iterable<SyncSource> | Streamable;
18
+ type Transform = StatelessTransformFn | StatefulTransform;
19
+ type SyncTransform = SyncStatelessTransformFn | SyncStatefulTransform;
20
+ type TransformResult =
21
+ | string
22
+ | ArrayBufferLike
23
+ | ArrayBufferView
24
+ | Iterable<SyncTransformResult>
25
+ | AsyncIterable<TransformResult>;
26
+ type SyncTransformResult = string | ArrayBufferLike | ArrayBufferView | Iterable<SyncTransformResult>;
27
+ interface AsyncStreamable {
28
+ [toAsyncStreamable](): Source;
29
+ }
30
+ interface Broadcastable {
31
+ [broadcastProtocol](options: BroadcastOptions): Broadcast;
32
+ }
33
+ interface Drainable {
34
+ [drainableProtocol](): Promise<boolean> | null;
35
+ }
36
+ interface Shareable {
37
+ [shareProtocol](options: ShareOptions): Share;
38
+ }
39
+ interface Streamable {
40
+ [toStreamable](): SyncSource;
41
+ }
42
+ interface SyncShareable {
43
+ [shareSyncProtocol](options: ShareSyncOptions): SyncShare;
44
+ }
45
+ // IDL dictionaries, enums, typedefs
46
+ type BackpressurePolicy = "strict" | "block" | "drop-oldest" | "drop-newest";
47
+ type ByteReadableStream = AsyncIterable<Uint8Array[]>;
48
+ type SyncByteReadableStream = Iterable<Uint8Array[]>;
49
+ interface WriteOptions {
50
+ signal?: AbortSignal;
51
+ }
52
+ interface PushStreamOptions {
53
+ highWaterMark?: number;
54
+ backpressure?: BackpressurePolicy;
55
+ signal?: AbortSignal;
56
+ }
57
+ interface PullOptions {
58
+ signal?: AbortSignal;
59
+ }
60
+ interface PipeToOptions {
61
+ signal?: AbortSignal;
62
+ preventClose?: boolean;
63
+ preventFail?: boolean;
64
+ }
65
+ interface PipeToSyncOptions {
66
+ preventClose?: boolean;
67
+ preventFail?: boolean;
68
+ }
69
+ interface ConsumeOptions {
70
+ signal?: AbortSignal;
71
+ limit?: number;
72
+ }
73
+ interface ConsumeSyncOptions {
74
+ limit?: number;
75
+ }
76
+ interface TextConsumeOptions extends ConsumeOptions {
77
+ encoding?: string;
78
+ }
79
+ interface TextConsumeSyncOptions extends ConsumeSyncOptions {
80
+ encoding?: string;
81
+ }
82
+ interface MergeOptions {
83
+ signal?: AbortSignal;
84
+ }
85
+ interface BroadcastOptions {
86
+ highWaterMark?: number;
87
+ backpressure?: BackpressurePolicy;
88
+ signal?: AbortSignal;
89
+ }
90
+ interface ShareOptions {
91
+ highWaterMark?: number;
92
+ backpressure?: BackpressurePolicy;
93
+ signal?: AbortSignal;
94
+ }
95
+ interface ShareSyncOptions {
96
+ highWaterMark?: number;
97
+ backpressure?: BackpressurePolicy;
98
+ }
99
+ interface DuplexDirectionOptions {
100
+ highWaterMark?: number;
101
+ backpressure?: BackpressurePolicy;
102
+ }
103
+ interface DuplexOptions {
104
+ highWaterMark?: number;
105
+ backpressure?: BackpressurePolicy;
106
+ a?: DuplexDirectionOptions;
107
+ b?: DuplexDirectionOptions;
108
+ signal?: AbortSignal;
109
+ }
110
+ interface TransformCallbackOptions {
111
+ signal: AbortSignal;
112
+ }
113
+ interface StatelessTransformFn {
114
+ (
115
+ chunks: Uint8Array[] | null,
116
+ options: TransformCallbackOptions,
117
+ ): Promise<TransformResult | null> | TransformResult | null;
118
+ }
119
+ interface SyncStatelessTransformFn {
120
+ (chunks: Uint8Array[] | null): SyncTransformResult | null;
121
+ }
122
+ interface StatefulTransform {
123
+ transform(
124
+ source: AsyncIterable<Uint8Array[] | null>,
125
+ options: TransformCallbackOptions,
126
+ ): AsyncIterable<TransformResult>;
127
+ }
128
+ interface SyncStatefulTransform {
129
+ transform(source: Iterable<Uint8Array[] | null>): Iterable<SyncTransformResult>;
130
+ }
131
+ // IDL interfaces
132
+ interface PushWriter extends Writer, Drainable {}
133
+ interface PushStreamResult {
134
+ writer: PushWriter;
135
+ readable: ByteReadableStream;
136
+ }
137
+ interface BroadcastWriter extends Writer, Drainable {}
138
+ interface BroadcastResult {
139
+ writer: BroadcastWriter;
140
+ broadcast: Broadcast;
141
+ }
142
+ interface Writer extends Disposable, AsyncDisposable {
143
+ readonly desiredSize: number | null;
144
+ write(chunk: Uint8Array | string, options?: WriteOptions): Promise<void>;
145
+ writev(chunks: Array<Uint8Array | string>, options?: WriteOptions): Promise<void>;
146
+ writeSync(chunk: Uint8Array | string): boolean;
147
+ writevSync(chunks: Array<Uint8Array | string>): boolean;
148
+ end(options?: WriteOptions): Promise<number>;
149
+ endSync(): number;
150
+ fail(reason?: any): void;
151
+ }
152
+ interface PartialWriter extends Partial<Writer> {
153
+ write(chunk: Uint8Array | string, options?: WriteOptions): Promise<void>;
154
+ }
155
+ interface SyncWriter extends Disposable {
156
+ readonly desiredSize: number | null;
157
+ writeSync(chunk: Uint8Array | string): number;
158
+ writevSync(chunks: Array<Uint8Array | string>): number;
159
+ endSync(): number;
160
+ fail(reason?: any): void;
161
+ }
162
+ interface PartialSyncWriter extends Partial<SyncWriter> {
163
+ writeSync(chunk: Uint8Array | string): number;
164
+ }
165
+ interface Broadcast extends Disposable {
166
+ readonly consumerCount: number;
167
+ readonly bufferSize: number;
168
+ push(...args: any[]): ByteReadableStream;
169
+ cancel(reason?: any): void;
170
+ }
171
+ interface Share extends Disposable {
172
+ readonly consumerCount: number;
173
+ readonly bufferSize: number;
174
+ pull(...args: any[]): ByteReadableStream;
175
+ cancel(reason?: any): void;
176
+ }
177
+ interface SyncShare extends Disposable {
178
+ readonly consumerCount: number;
179
+ readonly bufferSize: number;
180
+ pull(...args: any): SyncByteReadableStream;
181
+ cancel(reason?: any): void;
182
+ }
183
+ interface DuplexChannel extends AsyncDisposable {
184
+ readonly writer: Writer;
185
+ readonly readable: ByteReadableStream;
186
+ close(): Promise<void>;
187
+ }
188
+ // Push stream creation
189
+ function push(...transforms: Transform[]): PushStreamResult;
190
+ function push(...args: [...transforms: Transform[], options: PushStreamOptions]): PushStreamResult;
191
+ // Stream factories
192
+ function from(input: Source): ByteReadableStream;
193
+ function fromSync(input: SyncSource): SyncByteReadableStream;
194
+ // Pull pipelines
195
+ function pull(source: Source, ...transforms: Transform[]): ByteReadableStream;
196
+ function pull(
197
+ source: Source,
198
+ ...args: [...transforms: Transform[], options: PullOptions]
199
+ ): ByteReadableStream;
200
+ function pullSync(source: SyncSource, ...transforms: SyncTransform[]): SyncByteReadableStream;
201
+ // Pipe operations
202
+ function pipeTo(source: Source, writer: PartialWriter, options?: PipeToOptions): Promise<number>;
203
+ function pipeTo(source: Source, ...args: [...transforms: Transform[], writer: PartialWriter]): Promise<number>;
204
+ function pipeTo(
205
+ source: Source,
206
+ ...args: [...transforms: Transform[], writer: PartialWriter, options: PipeToOptions]
207
+ ): Promise<number>;
208
+ function pipeToSync(source: SyncSource, writer: PartialSyncWriter, options?: PipeToSyncOptions): number;
209
+ function pipeToSync(
210
+ source: SyncSource,
211
+ ...args: [...transforms: SyncTransform[], writer: PartialSyncWriter]
212
+ ): number;
213
+ function pipeToSync(
214
+ source: SyncSource,
215
+ ...args: [...transforms: SyncTransform[], writer: PartialSyncWriter, options: PipeToSyncOptions]
216
+ ): number;
217
+ // Consumers
218
+ function bytes(source: Source, options?: ConsumeOptions): Promise<Uint8Array>;
219
+ function bytesSync(source: SyncSource, options?: ConsumeSyncOptions): Uint8Array;
220
+ function text(source: Source, options?: TextConsumeOptions): Promise<string>;
221
+ function textSync(source: SyncSource, options?: TextConsumeSyncOptions): string;
222
+ function arrayBuffer(source: Source, options?: ConsumeOptions): Promise<ArrayBuffer>;
223
+ function arrayBufferSync(source: SyncSource, options?: ConsumeSyncOptions): ArrayBuffer;
224
+ function array(source: Source, options?: ConsumeOptions): Promise<Uint8Array[]>;
225
+ function arraySync(source: SyncSource, options?: ConsumeSyncOptions): Uint8Array[];
226
+ // Utilities
227
+ function tap(callback: StatelessTransformFn): StatelessTransformFn;
228
+ function tapSync(callback: SyncStatelessTransformFn): SyncStatelessTransformFn;
229
+ function merge(...sources: Source[]): ByteReadableStream;
230
+ function merge(...args: [...sources: Source[], options: MergeOptions]): ByteReadableStream;
231
+ function ondrain(drainable: any): Promise<boolean> | null;
232
+ // Multi-consumer
233
+ function broadcast(options?: BroadcastOptions): BroadcastResult;
234
+ function share(source: Source, options?: ShareOptions): Share;
235
+ function shareSync(source: SyncSource, options?: ShareSyncOptions): SyncShare;
236
+ // Duplex
237
+ function duplex(options?: DuplexOptions): [DuplexChannel, DuplexChannel];
238
+ // Node.js-specific extensions
239
+ namespace Broadcast {
240
+ /**
241
+ * Create a `Broadcast` from an existing source. The source is consumed
242
+ * automatically and pushed to all subscribers.
243
+ * @since v25.9.0
244
+ * @param options Same as `broadcast()`.
245
+ */
246
+ function from(
247
+ input: ByteReadableStream | SyncByteReadableStream | Broadcastable,
248
+ options?: BroadcastOptions,
249
+ ): BroadcastResult;
250
+ }
251
+ namespace Share {
252
+ /**
253
+ * Create a `Share` from an existing source.
254
+ * @since v25.9.0
255
+ * @param options Same as `share()`.
256
+ */
257
+ function from(input: ByteReadableStream | SyncByteReadableStream | Shareable, options?: ShareOptions): Share;
258
+ }
259
+ namespace SyncShare {
260
+ /**
261
+ * @since v25.9.0
262
+ */
263
+ function from(input: SyncByteReadableStream | SyncShareable, options?: ShareSyncOptions): SyncShare;
264
+ }
265
+ namespace Stream {
266
+ export {
267
+ array,
268
+ arrayBuffer,
269
+ arrayBufferSync,
270
+ arraySync,
271
+ broadcast,
272
+ broadcastProtocol,
273
+ bytes,
274
+ bytesSync,
275
+ drainableProtocol,
276
+ duplex,
277
+ from,
278
+ fromSync,
279
+ merge,
280
+ ondrain,
281
+ pipeTo,
282
+ pipeToSync,
283
+ pull,
284
+ pullSync,
285
+ push,
286
+ share,
287
+ shareProtocol,
288
+ shareSync,
289
+ shareSyncProtocol,
290
+ tap,
291
+ tapSync,
292
+ text,
293
+ textSync,
294
+ toAsyncStreamable,
295
+ toStreamable,
296
+ };
297
+ }
298
+ }
299
+ declare module "stream/iter" {
300
+ export * from "node:stream/iter";
301
+ }
@@ -1479,19 +1479,40 @@ declare module "node:test" {
1479
1479
  */
1480
1480
  cache?: boolean | undefined;
1481
1481
  /**
1482
- * The value to use as the mocked module's default export.
1483
- *
1484
- * If this value is not provided, ESM mocks do not include a default export.
1485
- * If the mock is a CommonJS or builtin module, this setting is used as the value of `module.exports`.
1486
- * If this value is not provided, CJS and builtin mocks use an empty object as the value of `module.exports`.
1482
+ * Optional mocked exports. The `default` property, if
1483
+ * provided, is used as the mocked module's default export. All other own
1484
+ * enumerable properties are used as named exports.
1485
+ * **This option cannot be used with `defaultExport` or `namedExports`.**
1486
+ * * If the mock is a CommonJS or builtin module, `exports.default` is used as
1487
+ * the value of `module.exports`.
1488
+ * * If `exports.default` is not provided for a CommonJS or builtin mock,
1489
+ * `module.exports` defaults to an empty object.
1490
+ * * If named exports are provided with a non-object default export, the mock
1491
+ * throws an exception when used as a CommonJS or builtin module.
1492
+ */
1493
+ exports?: object | undefined;
1494
+ /**
1495
+ * An optional value used as the mocked module's default
1496
+ * export. If this value is not provided, ESM mocks do not include a default
1497
+ * export. If the mock is a CommonJS or builtin module, this setting is used as
1498
+ * the value of `module.exports`. If this value is not provided, CJS and builtin
1499
+ * mocks use an empty object as the value of `module.exports`.
1500
+ * **This option cannot be used with `options.exports`.**
1501
+ * This option is deprecated and will be removed in a later version.
1502
+ * Prefer `options.exports.default`.
1503
+ * @deprecated
1487
1504
  */
1488
1505
  defaultExport?: any;
1489
1506
  /**
1490
- * An object whose keys and values are used to create the named exports of the mock module.
1491
- *
1492
- * If the mock is a CommonJS or builtin module, these values are copied onto `module.exports`.
1493
- * Therefore, if a mock is created with both named exports and a non-object default export,
1494
- * the mock will throw an exception when used as a CJS or builtin module.
1507
+ * An optional object whose keys and values are used to
1508
+ * create the named exports of the mock module. If the mock is a CommonJS or
1509
+ * builtin module, these values are copied onto `module.exports`. Therefore, if a
1510
+ * mock is created with both named exports and a non-object default export, the
1511
+ * mock will throw an exception when used as a CJS or builtin module.
1512
+ * **This option cannot be used with `options.exports`.**
1513
+ * This option is deprecated and will be removed in a later version.
1514
+ * Prefer `options.exports`.
1515
+ * @deprecated
1495
1516
  */
1496
1517
  namedExports?: object | undefined;
1497
1518
  }
@@ -1666,14 +1687,19 @@ declare module "node:test" {
1666
1687
  * [`--experimental-test-module-mocks`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--experimental-test-module-mocks)
1667
1688
  * command-line flag.
1668
1689
  *
1690
+ * **Note**: [module customization hooks](https://nodejs.org/docs/latest-v25.x/api/module.html#customization-hooks) registered via the **synchronous** API effect resolution of
1691
+ * the `specifier` provided to `mock.module`. Customization hooks registered via the **asynchronous**
1692
+ * API are currently ignored (because the test runner's loader is synchronous, and node does not
1693
+ * support multi-chain / cross-chain loading).
1694
+ *
1669
1695
  * The following example demonstrates how a mock is created for a module.
1670
1696
  *
1671
1697
  * ```js
1672
1698
  * test('mocks a builtin module in both module systems', async (t) => {
1673
- * // Create a mock of 'node:readline' with a named export named 'fn', which
1699
+ * // Create a mock of 'node:readline' with a named export named 'foo', which
1674
1700
  * // does not exist in the original 'node:readline' module.
1675
1701
  * const mock = t.mock.module('node:readline', {
1676
- * namedExports: { fn() { return 42; } },
1702
+ * exports: { foo: () => 42 },
1677
1703
  * });
1678
1704
  *
1679
1705
  * let esmImpl = await import('node:readline');
@@ -97,6 +97,7 @@
97
97
  /// <reference path="../sqlite.d.ts" />
98
98
  /// <reference path="../stream.d.ts" />
99
99
  /// <reference path="../stream/consumers.d.ts" />
100
+ /// <reference path="../stream/iter.d.ts" />
100
101
  /// <reference path="../stream/promises.d.ts" />
101
102
  /// <reference path="../stream/web.d.ts" />
102
103
  /// <reference path="../string_decoder.d.ts" />
@@ -115,3 +116,4 @@
115
116
  /// <reference path="../wasi.d.ts" />
116
117
  /// <reference path="../worker_threads.d.ts" />
117
118
  /// <reference path="../zlib.d.ts" />
119
+ /// <reference path="../zlib/iter.d.ts" />
@@ -97,6 +97,7 @@
97
97
  /// <reference path="../sqlite.d.ts" />
98
98
  /// <reference path="../stream.d.ts" />
99
99
  /// <reference path="../stream/consumers.d.ts" />
100
+ /// <reference path="../stream/iter.d.ts" />
100
101
  /// <reference path="../stream/promises.d.ts" />
101
102
  /// <reference path="../stream/web.d.ts" />
102
103
  /// <reference path="../string_decoder.d.ts" />
@@ -115,3 +116,4 @@
115
116
  /// <reference path="../wasi.d.ts" />
116
117
  /// <reference path="../worker_threads.d.ts" />
117
118
  /// <reference path="../zlib.d.ts" />
119
+ /// <reference path="../zlib/iter.d.ts" />
@@ -232,11 +232,12 @@ declare module "node:vm" {
232
232
  *
233
233
  * 1. Creates a new context.
234
234
  * 2. If `contextObject` is an object, contextifies it with the new context.
235
- * If `contextObject` is undefined, creates a new object and contextifies it.
235
+ * If `contextObject` is undefined, creates a new object and contextifies it.
236
236
  * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
237
- * 3. Runs the compiled code contained by the `vm.Script` object within the created context. The code
238
- * does not have access to the scope in which this method is called.
239
- * 4. Returns the result.
237
+ * 3. Compiles the code as a `vm.Script`
238
+ * 4. Runs the compiled code within the created context. The code does not have access to the scope in
239
+ * which this method is called.
240
+ * 5. Returns the result.
240
241
  *
241
242
  * The following example compiles code that sets a global variable, then executes
242
243
  * the code multiple times in different contexts. The globals are set on and
@@ -0,0 +1,131 @@
1
+ declare module "node:zlib/iter" {
2
+ import { StatefulTransform, SyncStatefulTransform } from "node:stream/iter";
3
+ interface BrotliOptions {
4
+ chunkSize?: number | undefined;
5
+ params?: { [key: number]: number | boolean } | undefined;
6
+ dictionary?: NodeJS.ArrayBufferView | undefined;
7
+ }
8
+ interface ZlibOptions {
9
+ chunkSize?: number | undefined;
10
+ windowBits?: number | undefined;
11
+ dictionary?: NodeJS.ArrayBufferView | undefined;
12
+ }
13
+ interface ZlibCompressionOptions extends ZlibOptions {
14
+ level?: number | undefined;
15
+ memLevel?: number | undefined;
16
+ strategy?: number | undefined;
17
+ }
18
+ interface ZstdOptions {
19
+ chunkSize?: number | undefined;
20
+ params?: { [key: number]: number | boolean } | undefined;
21
+ dictionary?: NodeJS.ArrayBufferView | undefined;
22
+ }
23
+ interface ZstdCompressionOptions extends ZstdOptions {
24
+ pledgedSrcSize?: number | undefined;
25
+ }
26
+ /**
27
+ * Create a Brotli compression transform. Output is compatible with
28
+ * `zlib.brotliDecompress()` and `decompressBrotli()`/`decompressBrotliSync()`.
29
+ * @since v25.9.0
30
+ * @returns A stateful transform.
31
+ */
32
+ function compressBrotli(options?: BrotliOptions): StatefulTransform;
33
+ /**
34
+ * Create a Brotli compression transform. Output is compatible with
35
+ * `zlib.brotliDecompress()` and `decompressBrotli()`/`decompressBrotliSync()`.
36
+ * @since v25.9.0
37
+ * @returns A stateful transform.
38
+ */
39
+ function compressBrotliSync(options?: BrotliOptions): SyncStatefulTransform;
40
+ /**
41
+ * Create a deflate compression transform. Output is compatible with
42
+ * `zlib.inflate()` and `decompressDeflate()`/`decompressDeflateSync()`.
43
+ * @since v25.9.0
44
+ * @returns A stateful transform.
45
+ */
46
+ function compressDeflate(options?: ZlibCompressionOptions): StatefulTransform;
47
+ /**
48
+ * Create a deflate compression transform. Output is compatible with
49
+ * `zlib.inflate()` and `decompressDeflate()`/`decompressDeflateSync()`.
50
+ * @since v25.9.0
51
+ * @returns A stateful transform.
52
+ */
53
+ function compressDeflateSync(options?: ZlibCompressionOptions): SyncStatefulTransform;
54
+ /**
55
+ * Create a gzip compression transform. Output is compatible with `zlib.gunzip()`
56
+ * and `decompressGzip()`/`decompressGzipSync()`.
57
+ * @returns A stateful transform.
58
+ */
59
+ function compressGzip(options?: ZlibCompressionOptions): StatefulTransform;
60
+ /**
61
+ * Create a gzip compression transform. Output is compatible with `zlib.gunzip()`
62
+ * and `decompressGzip()`/`decompressGzipSync()`.
63
+ * @returns A stateful transform.
64
+ */
65
+ function compressGzipSync(options?: ZlibCompressionOptions): SyncStatefulTransform;
66
+ /**
67
+ * Create a Zstandard compression transform. Output is compatible with
68
+ * `zlib.zstdDecompress()` and `decompressZstd()`/`decompressZstdSync()`.
69
+ * @since v25.9.0
70
+ * @returns A stateful transform.
71
+ */
72
+ function compressZstd(options?: ZstdCompressionOptions): StatefulTransform;
73
+ /**
74
+ * Create a Zstandard compression transform. Output is compatible with
75
+ * `zlib.zstdDecompress()` and `decompressZstd()`/`decompressZstdSync()`.
76
+ * @since v25.9.0
77
+ * @returns A stateful transform.
78
+ */
79
+ function compressZstdSync(options?: ZstdCompressionOptions): SyncStatefulTransform;
80
+ /**
81
+ * Create a Brotli decompression transform.
82
+ * @since v25.9.0
83
+ * @returns A stateful transform.
84
+ */
85
+ function decompressBrotli(options?: BrotliOptions): StatefulTransform;
86
+ /**
87
+ * Create a Brotli decompression transform.
88
+ * @since v25.9.0
89
+ * @returns A stateful transform.
90
+ */
91
+ function decompressBrotliSync(options?: BrotliOptions): SyncStatefulTransform;
92
+ /**
93
+ * Create a deflate decompression transform.
94
+ * @since v25.9.0
95
+ * @returns A stateful transform.
96
+ */
97
+ function decompressDeflate(options?: ZlibOptions): StatefulTransform;
98
+ /**
99
+ * Create a deflate decompression transform.
100
+ * @since v25.9.0
101
+ * @returns A stateful transform.
102
+ */
103
+ function decompressDeflateSync(options?: ZlibOptions): SyncStatefulTransform;
104
+ /**
105
+ * Create a gzip decompression transform.
106
+ * @since v25.9.0
107
+ * @returns A stateful transform.
108
+ */
109
+ function decompressGzip(options?: ZlibOptions): StatefulTransform;
110
+ /**
111
+ * Create a gzip decompression transform.
112
+ * @since v25.9.0
113
+ * @returns A stateful transform.
114
+ */
115
+ function decompressGzipSync(options?: ZlibOptions): SyncStatefulTransform;
116
+ /**
117
+ * Create a Zstandard decompression transform.
118
+ * @since v25.9.0
119
+ * @returns A stateful transform.
120
+ */
121
+ function decompressZstd(options?: ZstdOptions): StatefulTransform;
122
+ /**
123
+ * Create a Zstandard decompression transform.
124
+ * @since v25.9.0
125
+ * @returns A stateful transform.
126
+ */
127
+ function decompressZstdSync(options?: ZstdOptions): SyncStatefulTransform;
128
+ }
129
+ declare module "zlib/iter" {
130
+ export * from "node:zlib/iter";
131
+ }
@@ -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: Thu, 14 May 2026 16:39:50 GMT
11
+ * Last updated: Tue, 19 May 2026 17:48:56 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits