cdk-common 2.1.11 → 2.1.13

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 (137) hide show
  1. package/.jsii +81 -3
  2. package/API.md +78 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +14 -1
  5. package/lib/managed-policies.js +14 -1
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/assert/strict.d.ts +0 -46
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +0 -5
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +18 -38
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.buffer.d.ts +1 -1
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +0 -45
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +0 -67
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +0 -54
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/console.d.ts +0 -58
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/constants.d.ts +0 -6
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +0 -18
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +0 -27
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +0 -24
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/dns/promises.d.ts +0 -6
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +0 -46
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/domain.d.ts +0 -16
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +0 -36
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +0 -10
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +0 -20
  25. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +0 -41
  26. package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +0 -10
  27. package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +0 -5
  28. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector/promises.d.ts +0 -6
  29. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +0 -5
  30. package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +0 -3
  31. package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +53 -16
  32. package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +0 -9
  33. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +4 -4
  34. package/node_modules/@types/concat-stream/node_modules/@types/node/path.d.ts +0 -9
  35. package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +0 -31
  36. package/node_modules/@types/concat-stream/node_modules/@types/node/punycode.d.ts +0 -28
  37. package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +0 -13
  38. package/node_modules/@types/concat-stream/node_modules/@types/node/quic.d.ts +0 -13
  39. package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +0 -3
  40. package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +0 -35
  41. package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +0 -10
  42. package/node_modules/@types/concat-stream/node_modules/@types/node/sea.d.ts +0 -115
  43. package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +0 -44
  44. package/node_modules/@types/concat-stream/node_modules/@types/node/stream/consumers.d.ts +81 -5
  45. package/node_modules/@types/concat-stream/node_modules/@types/node/stream/web.d.ts +3 -3
  46. package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +27 -23
  47. package/node_modules/@types/concat-stream/node_modules/@types/node/string_decoder.d.ts +0 -40
  48. package/node_modules/@types/concat-stream/node_modules/@types/node/test/reporters.d.ts +0 -38
  49. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +7 -80
  50. package/node_modules/@types/concat-stream/node_modules/@types/node/timers/promises.d.ts +0 -15
  51. package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +0 -10
  52. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +6 -16
  53. package/node_modules/@types/concat-stream/node_modules/@types/node/trace_events.d.ts +0 -94
  54. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -1
  55. package/node_modules/@types/concat-stream/node_modules/@types/node/tty.d.ts +0 -25
  56. package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +0 -9
  57. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +0 -10
  58. package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +0 -8
  59. package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +0 -38
  60. package/node_modules/@types/concat-stream/node_modules/@types/node/wasi.d.ts +0 -71
  61. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +15 -61
  62. package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +0 -93
  63. package/node_modules/@types/concat-stream/node_modules/undici-types/cache-interceptor.d.ts +6 -0
  64. package/node_modules/@types/concat-stream/node_modules/undici-types/client.d.ts +10 -0
  65. package/node_modules/@types/concat-stream/node_modules/undici-types/package.json +1 -1
  66. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  67. package/node_modules/@types/form-data/node_modules/@types/node/assert/strict.d.ts +0 -46
  68. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +0 -5
  69. package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +18 -38
  70. package/node_modules/@types/form-data/node_modules/@types/node/buffer.buffer.d.ts +1 -1
  71. package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +0 -45
  72. package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +0 -67
  73. package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +0 -54
  74. package/node_modules/@types/form-data/node_modules/@types/node/console.d.ts +0 -58
  75. package/node_modules/@types/form-data/node_modules/@types/node/constants.d.ts +0 -6
  76. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +0 -18
  77. package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +0 -27
  78. package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +0 -24
  79. package/node_modules/@types/form-data/node_modules/@types/node/dns/promises.d.ts +0 -6
  80. package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +0 -46
  81. package/node_modules/@types/form-data/node_modules/@types/node/domain.d.ts +0 -16
  82. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +0 -36
  83. package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +0 -10
  84. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +0 -20
  85. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +0 -41
  86. package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +0 -10
  87. package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +0 -5
  88. package/node_modules/@types/form-data/node_modules/@types/node/inspector/promises.d.ts +0 -6
  89. package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +0 -5
  90. package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +0 -3
  91. package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +53 -16
  92. package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +0 -9
  93. package/node_modules/@types/form-data/node_modules/@types/node/package.json +4 -4
  94. package/node_modules/@types/form-data/node_modules/@types/node/path.d.ts +0 -9
  95. package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +0 -31
  96. package/node_modules/@types/form-data/node_modules/@types/node/punycode.d.ts +0 -28
  97. package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +0 -13
  98. package/node_modules/@types/form-data/node_modules/@types/node/quic.d.ts +0 -13
  99. package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +0 -3
  100. package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +0 -35
  101. package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +0 -10
  102. package/node_modules/@types/form-data/node_modules/@types/node/sea.d.ts +0 -115
  103. package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +0 -44
  104. package/node_modules/@types/form-data/node_modules/@types/node/stream/consumers.d.ts +81 -5
  105. package/node_modules/@types/form-data/node_modules/@types/node/stream/web.d.ts +3 -3
  106. package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +27 -23
  107. package/node_modules/@types/form-data/node_modules/@types/node/string_decoder.d.ts +0 -40
  108. package/node_modules/@types/form-data/node_modules/@types/node/test/reporters.d.ts +0 -38
  109. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +7 -80
  110. package/node_modules/@types/form-data/node_modules/@types/node/timers/promises.d.ts +0 -15
  111. package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +0 -10
  112. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +6 -16
  113. package/node_modules/@types/form-data/node_modules/@types/node/trace_events.d.ts +0 -94
  114. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -1
  115. package/node_modules/@types/form-data/node_modules/@types/node/tty.d.ts +0 -25
  116. package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +0 -9
  117. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +0 -10
  118. package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +0 -8
  119. package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +0 -38
  120. package/node_modules/@types/form-data/node_modules/@types/node/wasi.d.ts +0 -71
  121. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +15 -61
  122. package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +0 -93
  123. package/node_modules/@types/form-data/node_modules/undici-types/cache-interceptor.d.ts +6 -0
  124. package/node_modules/@types/form-data/node_modules/undici-types/client.d.ts +10 -0
  125. package/node_modules/@types/form-data/node_modules/undici-types/package.json +1 -1
  126. package/node_modules/qs/CHANGELOG.md +6 -0
  127. package/node_modules/qs/dist/qs.js +16 -16
  128. package/node_modules/qs/lib/parse.js +2 -2
  129. package/node_modules/qs/package.json +3 -3
  130. package/node_modules/qs/test/parse.js +86 -0
  131. package/node_modules/qs/test/stringify.js +9 -0
  132. package/node_modules/qs/test/utils.js +31 -3
  133. package/node_modules/side-channel-list/CHANGELOG.md +25 -4
  134. package/node_modules/side-channel-list/index.js +1 -3
  135. package/node_modules/side-channel-list/package.json +8 -8
  136. package/node_modules/side-channel-list/test/index.js +50 -0
  137. package/package.json +27 -27
@@ -1,31 +1,3 @@
1
- /**
2
- * **The version of the punycode module bundled in Node.js is being deprecated. **In a future major version of Node.js this module will be removed. Users
3
- * currently depending on the `punycode` module should switch to using the
4
- * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL
5
- * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`.
6
- *
7
- * The `punycode` module is a bundled version of the [Punycode.js](https://github.com/bestiejs/punycode.js) module. It
8
- * can be accessed using:
9
- *
10
- * ```js
11
- * import punycode from 'node:punycode';
12
- * ```
13
- *
14
- * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is
15
- * primarily intended for use in Internationalized Domain Names. Because host
16
- * names in URLs are limited to ASCII characters only, Domain Names that contain
17
- * non-ASCII characters must be converted into ASCII using the Punycode scheme.
18
- * For instance, the Japanese character that translates into the English word, `'example'` is `'例'`. The Internationalized Domain Name, `'例.com'` (equivalent
19
- * to `'example.com'`) is represented by Punycode as the ASCII string `'xn--fsq.com'`.
20
- *
21
- * The `punycode` module provides a simple implementation of the Punycode standard.
22
- *
23
- * The `punycode` module is a third-party dependency used by Node.js and
24
- * made available to developers as a convenience. Fixes or other modifications to
25
- * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
26
- * @deprecated
27
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/punycode.js)
28
- */
29
1
  declare module "node:punycode" {
30
2
  /**
31
3
  * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only
@@ -1,16 +1,3 @@
1
- /**
2
- * The `node:querystring` module provides utilities for parsing and formatting URL
3
- * query strings. It can be accessed using:
4
- *
5
- * ```js
6
- * import querystring from 'node:querystring';
7
- * ```
8
- *
9
- * `querystring` is more performant than `URLSearchParams` but is not a
10
- * standardized API. Use `URLSearchParams` when performance is not critical or
11
- * when compatibility with browser code is desirable.
12
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/querystring.js)
13
- */
14
1
  declare module "node:querystring" {
15
2
  interface StringifyOptions {
16
3
  /**
@@ -1,16 +1,3 @@
1
- /**
2
- * The 'node:quic' module provides an implementation of the QUIC protocol.
3
- * To access it, start Node.js with the `--experimental-quic` option and:
4
- *
5
- * ```js
6
- * import quic from 'node:quic';
7
- * ```
8
- *
9
- * The module is only available under the `node:` scheme.
10
- * @since v23.8.0
11
- * @experimental
12
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/quic.js)
13
- */
14
1
  declare module "node:quic" {
15
2
  import { KeyObject, webcrypto } from "node:crypto";
16
3
  import { SocketAddress } from "node:net";
@@ -1,6 +1,3 @@
1
- /**
2
- * @since v17.0.0
3
- */
4
1
  declare module "node:readline/promises" {
5
2
  import { Abortable } from "node:events";
6
3
  import {
@@ -1,38 +1,3 @@
1
- /**
2
- * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v25.x/api/stream.html#readable-streams) stream
3
- * (such as [`process.stdin`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstdin)) one line at a time.
4
- *
5
- * To use the promise-based APIs:
6
- *
7
- * ```js
8
- * import * as readline from 'node:readline/promises';
9
- * ```
10
- *
11
- * To use the callback and sync APIs:
12
- *
13
- * ```js
14
- * import * as readline from 'node:readline';
15
- * ```
16
- *
17
- * The following simple example illustrates the basic use of the `node:readline` module.
18
- *
19
- * ```js
20
- * import * as readline from 'node:readline/promises';
21
- * import { stdin as input, stdout as output } from 'node:process';
22
- *
23
- * const rl = readline.createInterface({ input, output });
24
- *
25
- * const answer = await rl.question('What do you think of Node.js? ');
26
- *
27
- * console.log(`Thank you for your valuable feedback: ${answer}`);
28
- *
29
- * rl.close();
30
- * ```
31
- *
32
- * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be
33
- * received on the `input` stream.
34
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/readline.js)
35
- */
36
1
  declare module "node:readline" {
37
2
  import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
38
3
  interface Key {
@@ -1,13 +1,3 @@
1
- /**
2
- * The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation
3
- * that is available both as a standalone program or includible in other
4
- * applications. It can be accessed using:
5
- *
6
- * ```js
7
- * import repl from 'node:repl';
8
- * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/repl.js)
10
- */
11
1
  declare module "node:repl" {
12
2
  import { AsyncCompleter, Completer, Interface, InterfaceEventMap } from "node:readline";
13
3
  import { InspectOptions } from "node:util";
@@ -1,118 +1,3 @@
1
- /**
2
- * This feature allows the distribution of a Node.js application conveniently to a
3
- * system that does not have Node.js installed.
4
- *
5
- * Node.js supports the creation of [single executable applications](https://github.com/nodejs/single-executable) by allowing
6
- * the injection of a blob prepared by Node.js, which can contain a bundled script,
7
- * into the `node` binary. During start up, the program checks if anything has been
8
- * injected. If the blob is found, it executes the script in the blob. Otherwise
9
- * Node.js operates as it normally does.
10
- *
11
- * The single executable application feature currently only supports running a
12
- * single embedded script using the `CommonJS` module system.
13
- *
14
- * Users can create a single executable application from their bundled script
15
- * with the `node` binary itself and any tool which can inject resources into the
16
- * binary.
17
- *
18
- * Here are the steps for creating a single executable application using one such
19
- * tool, [postject](https://github.com/nodejs/postject):
20
- *
21
- * 1. Create a JavaScript file:
22
- * ```bash
23
- * echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js
24
- * ```
25
- * 2. Create a configuration file building a blob that can be injected into the
26
- * single executable application (see `Generating single executable preparation blobs` for details):
27
- * ```bash
28
- * echo '{ "main": "hello.js", "output": "sea-prep.blob" }' > sea-config.json
29
- * ```
30
- * 3. Generate the blob to be injected:
31
- * ```bash
32
- * node --experimental-sea-config sea-config.json
33
- * ```
34
- * 4. Create a copy of the `node` executable and name it according to your needs:
35
- * * On systems other than Windows:
36
- * ```bash
37
- * cp $(command -v node) hello
38
- * ```
39
- * * On Windows:
40
- * ```text
41
- * node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')"
42
- * ```
43
- * The `.exe` extension is necessary.
44
- * 5. Remove the signature of the binary (macOS and Windows only):
45
- * * On macOS:
46
- * ```bash
47
- * codesign --remove-signature hello
48
- * ```
49
- * * On Windows (optional):
50
- * [signtool](https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool) can be used from the installed [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/).
51
- * If this step is
52
- * skipped, ignore any signature-related warning from postject.
53
- * ```powershell
54
- * signtool remove /s hello.exe
55
- * ```
56
- * 6. Inject the blob into the copied binary by running `postject` with
57
- * the following options:
58
- * * `hello` / `hello.exe` \- The name of the copy of the `node` executable
59
- * created in step 4.
60
- * * `NODE_SEA_BLOB` \- The name of the resource / note / section in the binary
61
- * where the contents of the blob will be stored.
62
- * * `sea-prep.blob` \- The name of the blob created in step 1.
63
- * * `--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2` \- The [fuse](https://www.electronjs.org/docs/latest/tutorial/fuses) used by the Node.js project to detect if a file has been
64
- * injected.
65
- * * `--macho-segment-name NODE_SEA` (only needed on macOS) - The name of the
66
- * segment in the binary where the contents of the blob will be
67
- * stored.
68
- * To summarize, here is the required command for each platform:
69
- * * On Linux:
70
- * ```bash
71
- * npx postject hello NODE_SEA_BLOB sea-prep.blob \
72
- * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
73
- * ```
74
- * * On Windows - PowerShell:
75
- * ```powershell
76
- * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob `
77
- * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
78
- * ```
79
- * * On Windows - Command Prompt:
80
- * ```text
81
- * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^
82
- * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
83
- * ```
84
- * * On macOS:
85
- * ```bash
86
- * npx postject hello NODE_SEA_BLOB sea-prep.blob \
87
- * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \
88
- * --macho-segment-name NODE_SEA
89
- * ```
90
- * 7. Sign the binary (macOS and Windows only):
91
- * * On macOS:
92
- * ```bash
93
- * codesign --sign - hello
94
- * ```
95
- * * On Windows (optional):
96
- * A certificate needs to be present for this to work. However, the unsigned
97
- * binary would still be runnable.
98
- * ```powershell
99
- * signtool sign /fd SHA256 hello.exe
100
- * ```
101
- * 8. Run the binary:
102
- * * On systems other than Windows
103
- * ```console
104
- * $ ./hello world
105
- * Hello, world!
106
- * ```
107
- * * On Windows
108
- * ```console
109
- * $ .\hello.exe world
110
- * Hello, world!
111
- * ```
112
- * @since v19.7.0, v18.16.0
113
- * @experimental
114
- * @see [source](https://github.com/nodejs/node/blob/v25.x/src/node_sea.cc)
115
- */
116
1
  declare module "node:sea" {
117
2
  type AssetKey = string;
118
3
  /**
@@ -1,47 +1,3 @@
1
- /**
2
- * The `node:sqlite` module facilitates working with SQLite databases.
3
- * To access it:
4
- *
5
- * ```js
6
- * import sqlite from 'node:sqlite';
7
- * ```
8
- *
9
- * This module is only available under the `node:` scheme. The following will not
10
- * work:
11
- *
12
- * ```js
13
- * import sqlite from 'sqlite';
14
- * ```
15
- *
16
- * The following example shows the basic usage of the `node:sqlite` module to open
17
- * an in-memory database, write data to the database, and then read the data back.
18
- *
19
- * ```js
20
- * import { DatabaseSync } from 'node:sqlite';
21
- * const database = new DatabaseSync(':memory:');
22
- *
23
- * // Execute SQL statements from strings.
24
- * database.exec(`
25
- * CREATE TABLE data(
26
- * key INTEGER PRIMARY KEY,
27
- * value TEXT
28
- * ) STRICT
29
- * `);
30
- * // Create a prepared statement to insert data into the database.
31
- * const insert = database.prepare('INSERT INTO data (key, value) VALUES (?, ?)');
32
- * // Execute the prepared statement with bound values.
33
- * insert.run(1, 'hello');
34
- * insert.run(2, 'world');
35
- * // Create a prepared statement to read data from the database.
36
- * const query = database.prepare('SELECT * FROM data ORDER BY key');
37
- * // Execute the prepared statement and log the result set.
38
- * console.log(query.all());
39
- * // Prints: [ { key: 1, value: 'hello' }, { key: 2, value: 'world' } ]
40
- * ```
41
- * @since v22.5.0
42
- * @experimental
43
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/sqlite.js)
44
- */
45
1
  declare module "node:sqlite" {
46
2
  import { PathLike } from "node:fs";
47
3
  type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
@@ -1,33 +1,109 @@
1
- /**
2
- * The utility consumer functions provide common options for consuming
3
- * streams.
4
- * @since v16.7.0
5
- */
6
1
  declare module "node:stream/consumers" {
7
2
  import { Blob, NonSharedBuffer } from "node:buffer";
8
3
  import { ReadableStream } from "node:stream/web";
9
4
  /**
5
+ * ```js
6
+ * import { arrayBuffer } from 'node:stream/consumers';
7
+ * import { Readable } from 'node:stream';
8
+ * import { TextEncoder } from 'node:util';
9
+ *
10
+ * const encoder = new TextEncoder();
11
+ * const dataArray = encoder.encode('hello world from consumers!');
12
+ *
13
+ * const readable = Readable.from(dataArray);
14
+ * const data = await arrayBuffer(readable);
15
+ * console.log(`from readable: ${data.byteLength}`);
16
+ * // Prints: from readable: 76
17
+ * ```
10
18
  * @since v16.7.0
11
19
  * @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream.
12
20
  */
13
21
  function arrayBuffer(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<ArrayBuffer>;
14
22
  /**
23
+ * ```js
24
+ * import { blob } from 'node:stream/consumers';
25
+ *
26
+ * const dataBlob = new Blob(['hello world from consumers!']);
27
+ *
28
+ * const readable = dataBlob.stream();
29
+ * const data = await blob(readable);
30
+ * console.log(`from readable: ${data.size}`);
31
+ * // Prints: from readable: 27
32
+ * ```
15
33
  * @since v16.7.0
16
34
  * @returns Fulfills with a `Blob` containing the full contents of the stream.
17
35
  */
18
36
  function blob(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<Blob>;
19
37
  /**
38
+ * ```js
39
+ * import { buffer } from 'node:stream/consumers';
40
+ * import { Readable } from 'node:stream';
41
+ * import { Buffer } from 'node:buffer';
42
+ *
43
+ * const dataBuffer = Buffer.from('hello world from consumers!');
44
+ *
45
+ * const readable = Readable.from(dataBuffer);
46
+ * const data = await buffer(readable);
47
+ * console.log(`from readable: ${data.length}`);
48
+ * // Prints: from readable: 27
49
+ * ```
20
50
  * @since v16.7.0
21
51
  * @returns Fulfills with a `Buffer` containing the full contents of the stream.
22
52
  */
23
53
  function buffer(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NonSharedBuffer>;
24
54
  /**
55
+ * ```js
56
+ * import { bytes } from 'node:stream/consumers';
57
+ * import { Readable } from 'node:stream';
58
+ * import { Buffer } from 'node:buffer';
59
+ *
60
+ * const dataBuffer = Buffer.from('hello world from consumers!');
61
+ *
62
+ * const readable = Readable.from(dataBuffer);
63
+ * const data = await bytes(readable);
64
+ * console.log(`from readable: ${data.length}`);
65
+ * // Prints: from readable: 27
66
+ * ```
67
+ * @since v25.6.0
68
+ * @returns Fulfills with a `Uint8Array` containing the full contents of the stream.
69
+ */
70
+ function bytes(
71
+ stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>,
72
+ ): Promise<NodeJS.NonSharedUint8Array>;
73
+ /**
74
+ * ```js
75
+ * import { json } from 'node:stream/consumers';
76
+ * import { Readable } from 'node:stream';
77
+ *
78
+ * const items = Array.from(
79
+ * {
80
+ * length: 100,
81
+ * },
82
+ * () => ({
83
+ * message: 'hello world from consumers!',
84
+ * }),
85
+ * );
86
+ *
87
+ * const readable = Readable.from(JSON.stringify(items));
88
+ * const data = await json(readable);
89
+ * console.log(`from readable: ${data.length}`);
90
+ * // Prints: from readable: 100
91
+ * ```
25
92
  * @since v16.7.0
26
93
  * @returns Fulfills with the contents of the stream parsed as a
27
94
  * UTF-8 encoded string that is then passed through `JSON.parse()`.
28
95
  */
29
96
  function json(stream: ReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<unknown>;
30
97
  /**
98
+ * ```js
99
+ * import { text } from 'node:stream/consumers';
100
+ * import { Readable } from 'node:stream';
101
+ *
102
+ * const readable = Readable.from('Hello world from consumers!');
103
+ * const data = await text(readable);
104
+ * console.log(`from readable: ${data.length}`);
105
+ * // Prints: from readable: 27
106
+ * ```
31
107
  * @since v16.7.0
32
108
  * @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string.
33
109
  */
@@ -206,7 +206,7 @@ declare module "node:stream/web" {
206
206
  interface ReadableStreamDefaultController<R = any> {
207
207
  readonly desiredSize: number | null;
208
208
  close(): void;
209
- enqueue(chunk?: R): void;
209
+ enqueue(chunk: R): void;
210
210
  error(e?: any): void;
211
211
  }
212
212
  var ReadableStreamDefaultController: {
@@ -251,7 +251,7 @@ declare module "node:stream/web" {
251
251
  };
252
252
  interface TransformStreamDefaultController<O = any> {
253
253
  readonly desiredSize: number | null;
254
- enqueue(chunk?: O): void;
254
+ enqueue(chunk: O): void;
255
255
  error(reason?: any): void;
256
256
  terminate(): void;
257
257
  }
@@ -284,7 +284,7 @@ declare module "node:stream/web" {
284
284
  abort(reason?: any): Promise<void>;
285
285
  close(): Promise<void>;
286
286
  releaseLock(): void;
287
- write(chunk?: W): Promise<void>;
287
+ write(chunk: W): Promise<void>;
288
288
  }
289
289
  var WritableStreamDefaultWriter: {
290
290
  prototype: WritableStreamDefaultWriter;
@@ -1,22 +1,3 @@
1
- /**
2
- * A stream is an abstract interface for working with streaming data in Node.js.
3
- * The `node:stream` module provides an API for implementing the stream interface.
4
- *
5
- * There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v25.x/api/http.html#class-httpincomingmessage)
6
- * and [`process.stdout`](https://nodejs.org/docs/latest-v25.x/api/process.html#processstdout) are both stream instances.
7
- *
8
- * Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v25.x/api/events.html#class-eventemitter).
9
- *
10
- * To access the `node:stream` module:
11
- *
12
- * ```js
13
- * import stream from 'node:stream';
14
- * ```
15
- *
16
- * The `node:stream` module is useful for creating new types of stream instances.
17
- * It is usually not necessary to use the `node:stream` module to consume streams.
18
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/stream.js)
19
- */
20
1
  declare module "node:stream" {
21
2
  import { Blob } from "node:buffer";
22
3
  import { Abortable, EventEmitter } from "node:events";
@@ -899,11 +880,20 @@ declare module "node:stream" {
899
880
  * @since v0.9.4
900
881
  * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
901
882
  * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
902
- * @param [encoding='utf8'] The encoding, if `chunk` is a string.
903
883
  * @param callback Callback for when this chunk of data is flushed.
904
884
  * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
905
885
  */
906
886
  write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean;
887
+ /**
888
+ * Writes data to the stream, with an explicit encoding for string data.
889
+ * @see {@link Writable.write} for full details.
890
+ * @since v0.9.4
891
+ * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
892
+ * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
893
+ * @param encoding The encoding, if `chunk` is a string.
894
+ * @param callback Callback for when this chunk of data is flushed.
895
+ * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
896
+ */
907
897
  write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean;
908
898
  /**
909
899
  * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream.
@@ -928,13 +918,27 @@ declare module "node:stream" {
928
918
  * // Writing more now is not allowed!
929
919
  * ```
930
920
  * @since v0.9.4
921
+ * @param cb Callback for when the stream is finished.
922
+ */
923
+ end(cb?: () => void): this;
924
+ /**
925
+ * Signals that no more data will be written, with one final chunk of data.
926
+ * @see {@link Writable.end} for full details.
927
+ * @since v0.9.4
931
928
  * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
932
929
  * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
933
- * @param encoding The encoding if `chunk` is a string
934
- * @param callback Callback for when the stream is finished.
930
+ * @param cb Callback for when the stream is finished.
935
931
  */
936
- end(cb?: () => void): this;
937
932
  end(chunk: any, cb?: () => void): this;
933
+ /**
934
+ * Signals that no more data will be written, with one final chunk of data.
935
+ * @see {@link Writable.end} for full details.
936
+ * @since v0.9.4
937
+ * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
938
+ * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
939
+ * @param encoding The encoding if `chunk` is a string
940
+ * @param cb Callback for when the stream is finished.
941
+ */
938
942
  end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
939
943
  /**
940
944
  * The `writable.cork()` method forces all written data to be buffered in memory.
@@ -1,43 +1,3 @@
1
- /**
2
- * The `node:string_decoder` module provides an API for decoding `Buffer` objects
3
- * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16
4
- * characters. It can be accessed using:
5
- *
6
- * ```js
7
- * import { StringDecoder } from 'node:string_decoder';
8
- * ```
9
- *
10
- * The following example shows the basic use of the `StringDecoder` class.
11
- *
12
- * ```js
13
- * import { StringDecoder } from 'node:string_decoder';
14
- * const decoder = new StringDecoder('utf8');
15
- *
16
- * const cent = Buffer.from([0xC2, 0xA2]);
17
- * console.log(decoder.write(cent)); // Prints: ¢
18
- *
19
- * const euro = Buffer.from([0xE2, 0x82, 0xAC]);
20
- * console.log(decoder.write(euro)); // Prints: €
21
- * ```
22
- *
23
- * When a `Buffer` instance is written to the `StringDecoder` instance, an
24
- * internal buffer is used to ensure that the decoded string does not contain
25
- * any incomplete multibyte characters. These are held in the buffer until the
26
- * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called.
27
- *
28
- * In the following example, the three UTF-8 encoded bytes of the European Euro
29
- * symbol (`€`) are written over three separate operations:
30
- *
31
- * ```js
32
- * import { StringDecoder } from 'node:string_decoder';
33
- * const decoder = new StringDecoder('utf8');
34
- *
35
- * decoder.write(Buffer.from([0xE2]));
36
- * decoder.write(Buffer.from([0x82]));
37
- * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
38
- * ```
39
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/string_decoder.js)
40
- */
41
1
  declare module "node:string_decoder" {
42
2
  class StringDecoder {
43
3
  constructor(encoding?: BufferEncoding);
@@ -1,41 +1,3 @@
1
- /**
2
- * The `node:test` module supports passing `--test-reporter`
3
- * flags for the test runner to use a specific reporter.
4
- *
5
- * The following built-reporters are supported:
6
- *
7
- * * `spec`
8
- * The `spec` reporter outputs the test results in a human-readable format. This
9
- * is the default reporter.
10
- *
11
- * * `tap`
12
- * The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format.
13
- *
14
- * * `dot`
15
- * The `dot` reporter outputs the test results in a compact format,
16
- * where each passing test is represented by a `.`,
17
- * and each failing test is represented by a `X`.
18
- *
19
- * * `junit`
20
- * The junit reporter outputs test results in a jUnit XML format
21
- *
22
- * * `lcov`
23
- * The `lcov` reporter outputs test coverage when used with the
24
- * `--experimental-test-coverage` flag.
25
- *
26
- * The exact output of these reporters is subject to change between versions of
27
- * Node.js, and should not be relied on programmatically. If programmatic access
28
- * to the test runner's output is required, use the events emitted by the
29
- * `TestsStream`.
30
- *
31
- * The reporters are available via the `node:test/reporters` module:
32
- *
33
- * ```js
34
- * import { tap, spec, dot, junit, lcov } from 'node:test/reporters';
35
- * ```
36
- * @since v19.9.0, v18.17.0
37
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/test/reporters.js)
38
- */
39
1
  declare module "node:test/reporters" {
40
2
  import { Transform, TransformOptions } from "node:stream";
41
3
  import { EventData } from "node:test";