aws-delivlib 15.0.16 → 15.0.18

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 (101) hide show
  1. package/lib/publishing/github/node_modules/.yarn-integrity +2 -2
  2. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +1 -1
  3. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert.d.ts +5 -5
  4. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +26 -6
  5. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +1 -2
  6. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/child_process.d.ts +2 -2
  7. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +15 -15
  8. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts +17 -17
  9. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +35 -28
  10. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts +1 -1
  11. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  12. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts +16 -16
  13. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts +1 -1
  14. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts +1 -2
  15. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +16 -9
  16. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +28 -19
  17. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.d.ts +7 -6
  18. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  19. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +2 -2
  20. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +6 -3
  21. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/https.d.ts +1 -1
  22. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/index.d.ts +7 -5
  23. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +3 -7
  24. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +63 -29
  25. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +2 -5
  26. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/os.d.ts +8 -7
  27. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +13 -3
  28. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/path.d.ts +1 -1
  29. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/perf_hooks.d.ts +8 -8
  30. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +21 -11
  31. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/punycode.d.ts +1 -1
  32. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +1 -1
  33. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline/promises.d.ts +0 -1
  34. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +13 -13
  35. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/repl.d.ts +14 -16
  36. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sea.d.ts +1 -1
  37. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sqlite.d.ts +182 -2
  38. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream.d.ts +8 -19
  39. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/string_decoder.d.ts +1 -1
  40. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +53 -15
  41. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers/promises.d.ts +1 -1
  42. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers.d.ts +1 -1
  43. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +2 -48
  44. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/trace_events.d.ts +6 -6
  45. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  46. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  47. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  48. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  49. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  50. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  51. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  52. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts +1 -1
  53. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts +52 -19
  54. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +16 -295
  55. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +29 -32
  56. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +17 -10
  57. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/wasi.d.ts +1 -1
  58. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/worker_threads.d.ts +34 -18
  59. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +5 -7
  60. package/lib/publishing/github/node_modules/undici-types/agent.d.ts +7 -7
  61. package/lib/publishing/github/node_modules/undici-types/api.d.ts +24 -24
  62. package/lib/publishing/github/node_modules/undici-types/balanced-pool.d.ts +11 -11
  63. package/lib/publishing/github/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  64. package/lib/publishing/github/node_modules/undici-types/client.d.ts +12 -13
  65. package/lib/publishing/github/node_modules/undici-types/cookies.d.ts +2 -0
  66. package/lib/publishing/github/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  67. package/lib/publishing/github/node_modules/undici-types/dispatcher.d.ts +117 -92
  68. package/lib/publishing/github/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  69. package/lib/publishing/github/node_modules/undici-types/errors.d.ts +69 -47
  70. package/lib/publishing/github/node_modules/undici-types/fetch.d.ts +17 -16
  71. package/lib/publishing/github/node_modules/undici-types/formdata.d.ts +7 -7
  72. package/lib/publishing/github/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  73. package/lib/publishing/github/node_modules/undici-types/global-origin.d.ts +5 -5
  74. package/lib/publishing/github/node_modules/undici-types/h2c-client.d.ts +75 -0
  75. package/lib/publishing/github/node_modules/undici-types/handlers.d.ts +7 -7
  76. package/lib/publishing/github/node_modules/undici-types/header.d.ts +157 -1
  77. package/lib/publishing/github/node_modules/undici-types/index.d.ts +51 -47
  78. package/lib/publishing/github/node_modules/undici-types/interceptors.d.ts +25 -8
  79. package/lib/publishing/github/node_modules/undici-types/mock-agent.d.ts +33 -18
  80. package/lib/publishing/github/node_modules/undici-types/mock-call-history.d.ts +111 -0
  81. package/lib/publishing/github/node_modules/undici-types/mock-client.d.ts +4 -4
  82. package/lib/publishing/github/node_modules/undici-types/mock-errors.d.ts +3 -3
  83. package/lib/publishing/github/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  84. package/lib/publishing/github/node_modules/undici-types/mock-pool.d.ts +4 -4
  85. package/lib/publishing/github/node_modules/undici-types/package.json +1 -1
  86. package/lib/publishing/github/node_modules/undici-types/patch.d.ts +0 -4
  87. package/lib/publishing/github/node_modules/undici-types/pool-stats.d.ts +8 -8
  88. package/lib/publishing/github/node_modules/undici-types/pool.d.ts +12 -12
  89. package/lib/publishing/github/node_modules/undici-types/proxy-agent.d.ts +4 -4
  90. package/lib/publishing/github/node_modules/undici-types/readable.d.ts +18 -15
  91. package/lib/publishing/github/node_modules/undici-types/retry-agent.d.ts +1 -1
  92. package/lib/publishing/github/node_modules/undici-types/retry-handler.d.ts +10 -10
  93. package/lib/publishing/github/node_modules/undici-types/util.d.ts +3 -3
  94. package/lib/publishing/github/node_modules/undici-types/utility.d.ts +7 -0
  95. package/lib/publishing/github/node_modules/undici-types/webidl.d.ts +44 -6
  96. package/lib/publishing/github/node_modules/undici-types/websocket.d.ts +35 -1
  97. package/package.json +2 -2
  98. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/compatibility/index.d.ts +0 -9
  99. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  100. package/lib/publishing/github/node_modules/undici-types/file.d.ts +0 -39
  101. package/lib/publishing/github/node_modules/undici-types/filereader.d.ts +0 -54
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream
3
- * (such as [`process.stdin`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstdin)) one line at a time.
2
+ * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v24.x/api/stream.html#readable-streams) stream
3
+ * (such as [`process.stdin`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstdin)) one line at a time.
4
4
  *
5
5
  * To use the promise-based APIs:
6
6
  *
@@ -31,7 +31,7 @@
31
31
  *
32
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
33
  * received on the `input` stream.
34
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/readline.js)
34
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/readline.js)
35
35
  */
36
36
  declare module "readline" {
37
37
  import { Abortable, EventEmitter } from "node:events";
@@ -46,7 +46,7 @@ declare module "readline" {
46
46
  }
47
47
  /**
48
48
  * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a
49
- * single `input` [Readable](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v22.x/api/stream.html#writable-streams) stream.
49
+ * single `input` [Readable](https://nodejs.org/docs/latest-v24.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v24.x/api/stream.html#writable-streams) stream.
50
50
  * The `output` stream is used to print prompts for user input that arrives on,
51
51
  * and is read from, the `input` stream.
52
52
  * @since v0.1.104
@@ -100,7 +100,7 @@ declare module "readline" {
100
100
  * > Instances of the `readline.Interface` class are constructed using the
101
101
  * > `readline.createInterface()` method.
102
102
  *
103
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/readline.html#class-interfaceconstructor
103
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/readline.html#class-interfaceconstructor
104
104
  */
105
105
  protected constructor(
106
106
  input: NodeJS.ReadableStream,
@@ -114,7 +114,7 @@ declare module "readline" {
114
114
  * > Instances of the `readline.Interface` class are constructed using the
115
115
  * > `readline.createInterface()` method.
116
116
  *
117
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/readline.html#class-interfaceconstructor
117
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/readline.html#class-interfaceconstructor
118
118
  */
119
119
  protected constructor(options: ReadLineOptions);
120
120
  /**
@@ -320,11 +320,11 @@ declare module "readline" {
320
320
  export type CompleterResult = [string[], string];
321
321
  export interface ReadLineOptions {
322
322
  /**
323
- * The [`Readable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream to listen to
323
+ * The [`Readable`](https://nodejs.org/docs/latest-v24.x/api/stream.html#readable-streams) stream to listen to
324
324
  */
325
325
  input: NodeJS.ReadableStream;
326
326
  /**
327
- * The [`Writable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#writable-streams) stream to write readline data to.
327
+ * The [`Writable`](https://nodejs.org/docs/latest-v24.x/api/stream.html#writable-streams) stream to write readline data to.
328
328
  */
329
329
  output?: NodeJS.WritableStream | undefined;
330
330
  /**
@@ -369,7 +369,7 @@ declare module "readline" {
369
369
  * `crlfDelay` will be coerced to a number no less than `100`.
370
370
  * It can be set to `Infinity`, in which case
371
371
  * `\r` followed by `\n` will always be considered a single newline
372
- * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v22.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
372
+ * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v24.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
373
373
  * @default 100
374
374
  */
375
375
  crlfDelay?: number | undefined;
@@ -557,7 +557,7 @@ declare module "readline" {
557
557
  cols: number;
558
558
  }
559
559
  /**
560
- * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) stream
560
+ * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v24.x/api/tty.html) stream
561
561
  * in a specified direction identified by `dir`.
562
562
  * @since v0.7.7
563
563
  * @param callback Invoked once the operation completes.
@@ -565,7 +565,7 @@ declare module "readline" {
565
565
  */
566
566
  export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
567
567
  /**
568
- * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) stream from
568
+ * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v24.x/api/tty.html) stream from
569
569
  * the current position of the cursor down.
570
570
  * @since v0.7.7
571
571
  * @param callback Invoked once the operation completes.
@@ -574,7 +574,7 @@ declare module "readline" {
574
574
  export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
575
575
  /**
576
576
  * The `readline.cursorTo()` method moves cursor to the specified position in a
577
- * given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) `stream`.
577
+ * given [TTY](https://nodejs.org/docs/latest-v24.x/api/tty.html) `stream`.
578
578
  * @since v0.7.7
579
579
  * @param callback Invoked once the operation completes.
580
580
  * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
@@ -582,7 +582,7 @@ declare module "readline" {
582
582
  export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
583
583
  /**
584
584
  * The `readline.moveCursor()` method moves the cursor _relative_ to its current
585
- * position in a given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) `stream`.
585
+ * position in a given [TTY](https://nodejs.org/docs/latest-v24.x/api/tty.html) `stream`.
586
586
  * @since v0.7.7
587
587
  * @param callback Invoked once the operation completes.
588
588
  * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * import repl from 'node:repl';
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/repl.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/repl.js)
10
10
  */
11
11
  declare module "repl" {
12
12
  import { AsyncCompleter, Completer, Interface } from "node:readline";
@@ -37,12 +37,10 @@ declare module "repl" {
37
37
  terminal?: boolean | undefined;
38
38
  /**
39
39
  * The function to be used when evaluating each given line of input.
40
- * Default: an async wrapper for the JavaScript `eval()` function. An `eval` function can
40
+ * **Default:** an async wrapper for the JavaScript `eval()` function. An `eval` function can
41
41
  * error with `repl.Recoverable` to indicate the input was incomplete and prompt for
42
- * additional lines.
43
- *
44
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_default_evaluation
45
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_custom_evaluation_functions
42
+ * additional lines. See the [custom evaluation functions](https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#custom-evaluation-functions)
43
+ * section for more details.
46
44
  */
47
45
  eval?: REPLEval | undefined;
48
46
  /**
@@ -74,13 +72,13 @@ declare module "repl" {
74
72
  * The function to invoke to format the output of each command before writing to `output`.
75
73
  * @default a wrapper for `util.inspect`
76
74
  *
77
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_customizing_repl_output
75
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_customizing_repl_output
78
76
  */
79
77
  writer?: REPLWriter | undefined;
80
78
  /**
81
79
  * An optional function used for custom Tab auto completion.
82
80
  *
83
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/readline.html#readline_use_of_the_completer_function
81
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/readline.html#readline_use_of_the_completer_function
84
82
  */
85
83
  completer?: Completer | AsyncCompleter | undefined;
86
84
  /**
@@ -168,33 +166,33 @@ declare module "repl" {
168
166
  /**
169
167
  * A value indicating whether the REPL is currently in "editor mode".
170
168
  *
171
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_commands_and_special_keys
169
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_commands_and_special_keys
172
170
  */
173
171
  readonly editorMode: boolean;
174
172
  /**
175
173
  * A value indicating whether the `_` variable has been assigned.
176
174
  *
177
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
175
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
178
176
  */
179
177
  readonly underscoreAssigned: boolean;
180
178
  /**
181
179
  * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL).
182
180
  *
183
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
181
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
184
182
  */
185
183
  readonly last: any;
186
184
  /**
187
185
  * A value indicating whether the `_error` variable has been assigned.
188
186
  *
189
187
  * @since v9.8.0
190
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
188
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
191
189
  */
192
190
  readonly underscoreErrAssigned: boolean;
193
191
  /**
194
192
  * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL).
195
193
  *
196
194
  * @since v9.8.0
197
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
195
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable
198
196
  */
199
197
  readonly lastError: any;
200
198
  /**
@@ -246,7 +244,7 @@ declare module "repl" {
246
244
  *
247
245
  * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS.
248
246
  *
249
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_class_replserver
247
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_class_replserver
250
248
  */
251
249
  private constructor();
252
250
  /**
@@ -291,7 +289,7 @@ declare module "repl" {
291
289
  * The `replServer.displayPrompt()` method readies the REPL instance for input
292
290
  * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input.
293
291
  *
294
- * When multi-line input is being entered, an ellipsis is printed rather than the
292
+ * When multi-line input is being entered, a pipe `'|'` is printed rather than the
295
293
  * 'prompt'.
296
294
  *
297
295
  * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`.
@@ -418,7 +416,7 @@ declare module "repl" {
418
416
  /**
419
417
  * Indicates a recoverable error that a `REPLServer` can use to support multi-line input.
420
418
  *
421
- * @see https://nodejs.org/dist/latest-v22.x/docs/api/repl.html#repl_recoverable_errors
419
+ * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_recoverable_errors
422
420
  */
423
421
  class Recoverable extends SyntaxError {
424
422
  err: Error;
@@ -111,7 +111,7 @@
111
111
  * ```
112
112
  * @since v19.7.0, v18.16.0
113
113
  * @experimental
114
- * @see [source](https://github.com/nodejs/node/blob/v22.x/src/node_sea.cc)
114
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/src/node_sea.cc)
115
115
  */
116
116
  declare module "node:sea" {
117
117
  type AssetKey = string;
@@ -40,7 +40,7 @@
40
40
  * ```
41
41
  * @since v22.5.0
42
42
  * @experimental
43
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/sqlite.js)
43
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/sqlite.js)
44
44
  */
45
45
  declare module "node:sqlite" {
46
46
  type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
@@ -89,6 +89,14 @@ declare module "node:sqlite" {
89
89
  * @default false
90
90
  */
91
91
  allowExtension?: boolean | undefined;
92
+ /**
93
+ * The [busy timeout](https://sqlite.org/c3ref/busy_timeout.html) in milliseconds. This is the maximum amount of
94
+ * time that SQLite will wait for a database lock to be released before
95
+ * returning an error.
96
+ * @since v24.0.0
97
+ * @default 0
98
+ */
99
+ timeout?: number | undefined;
92
100
  }
93
101
  interface CreateSessionOptions {
94
102
  /**
@@ -166,6 +174,31 @@ declare module "node:sqlite" {
166
174
  */
167
175
  varargs?: boolean | undefined;
168
176
  }
177
+ interface AggregateOptions<T extends SQLInputValue = SQLInputValue> extends FunctionOptions {
178
+ /**
179
+ * The identity value for the aggregation function. This value is used when the aggregation
180
+ * function is initialized. When a `Function` is passed the identity will be its return value.
181
+ */
182
+ start: T | (() => T);
183
+ /**
184
+ * The function to call for each row in the aggregation. The
185
+ * function receives the current state and the row value. The return value of
186
+ * this function should be the new state.
187
+ */
188
+ step: (accumulator: T, ...args: SQLOutputValue[]) => T;
189
+ /**
190
+ * The function to call to get the result of the
191
+ * aggregation. The function receives the final state and should return the
192
+ * result of the aggregation.
193
+ */
194
+ result?: ((accumulator: T) => SQLInputValue) | undefined;
195
+ /**
196
+ * When this function is provided, the `aggregate` method will work as a window function.
197
+ * The function receives the current state and the dropped row value. The return value of this function should be the
198
+ * new state.
199
+ */
200
+ inverse?: ((accumulator: T, ...args: SQLOutputValue[]) => T) | undefined;
201
+ }
169
202
  /**
170
203
  * This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
171
204
  * exposed by this class execute synchronously.
@@ -181,6 +214,38 @@ declare module "node:sqlite" {
181
214
  * @param options Configuration options for the database connection.
182
215
  */
183
216
  constructor(path: string | Buffer | URL, options?: DatabaseSyncOptions);
217
+ /**
218
+ * Registers a new aggregate function with the SQLite database. This method is a wrapper around
219
+ * [`sqlite3_create_window_function()`](https://www.sqlite.org/c3ref/create_function.html).
220
+ *
221
+ * When used as a window function, the `result` function will be called multiple times.
222
+ *
223
+ * ```js
224
+ * import { DatabaseSync } from 'node:sqlite';
225
+ *
226
+ * const db = new DatabaseSync(':memory:');
227
+ * db.exec(`
228
+ * CREATE TABLE t3(x, y);
229
+ * INSERT INTO t3 VALUES ('a', 4),
230
+ * ('b', 5),
231
+ * ('c', 3),
232
+ * ('d', 8),
233
+ * ('e', 1);
234
+ * `);
235
+ *
236
+ * db.aggregate('sumint', {
237
+ * start: 0,
238
+ * step: (acc, value) => acc + value,
239
+ * });
240
+ *
241
+ * db.prepare('SELECT sumint(y) as total FROM t3').get(); // { total: 21 }
242
+ * ```
243
+ * @since v24.0.0
244
+ * @param name The name of the SQLite function to create.
245
+ * @param options Function configuration settings.
246
+ */
247
+ aggregate(name: string, options: AggregateOptions): void;
248
+ aggregate<T extends SQLInputValue>(name: string, options: AggregateOptions<T>): void;
184
249
  /**
185
250
  * Closes the database connection. An exception is thrown if the database is not
186
251
  * open. This method is a wrapper around [`sqlite3_close_v2()`](https://www.sqlite.org/c3ref/close.html).
@@ -203,6 +268,15 @@ declare module "node:sqlite" {
203
268
  * @param allow Whether to allow loading extensions.
204
269
  */
205
270
  enableLoadExtension(allow: boolean): void;
271
+ /**
272
+ * This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html)
273
+ * @since v24.0.0
274
+ * @param dbName Name of the database. This can be `'main'` (the default primary database) or any other
275
+ * database that has been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html) **Default:** `'main'`.
276
+ * @returns The location of the database file. When using an in-memory database,
277
+ * this method returns null.
278
+ */
279
+ location(dbName?: string): string | null;
206
280
  /**
207
281
  * This method allows one or more SQL statements to be executed without returning
208
282
  * any results. This method is useful when executing SQL statements read from a
@@ -220,7 +294,7 @@ declare module "node:sqlite" {
220
294
  * @param func The JavaScript function to call when the SQLite
221
295
  * function is invoked. The return value of this function should be a valid
222
296
  * SQLite data type: see
223
- * [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v22.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
297
+ * [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v24.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
224
298
  * The result defaults to `NULL` if the return value is `undefined`.
225
299
  */
226
300
  function(
@@ -234,6 +308,12 @@ declare module "node:sqlite" {
234
308
  * @since v22.15.0
235
309
  */
236
310
  readonly isOpen: boolean;
311
+ /**
312
+ * Whether the database is currently within a transaction. This method
313
+ * is a wrapper around [`sqlite3_get_autocommit()`](https://sqlite.org/c3ref/get_autocommit.html).
314
+ * @since v24.0.0
315
+ */
316
+ readonly isTransaction: boolean;
237
317
  /**
238
318
  * Opens the database specified in the `path` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
239
319
  * the constructor. An exception is thrown if the database is already open.
@@ -322,6 +402,38 @@ declare module "node:sqlite" {
322
402
  */
323
403
  close(): void;
324
404
  }
405
+ interface StatementColumnMetadata {
406
+ /**
407
+ * The unaliased name of the column in the origin
408
+ * table, or `null` if the column is the result of an expression or subquery.
409
+ * This property is the result of [`sqlite3_column_origin_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
410
+ */
411
+ column: string | null;
412
+ /**
413
+ * The unaliased name of the origin database, or
414
+ * `null` if the column is the result of an expression or subquery. This
415
+ * property is the result of [`sqlite3_column_database_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
416
+ */
417
+ database: string | null;
418
+ /**
419
+ * The name assigned to the column in the result set of a
420
+ * `SELECT` statement. This property is the result of
421
+ * [`sqlite3_column_name()`](https://www.sqlite.org/c3ref/column_name.html).
422
+ */
423
+ name: string;
424
+ /**
425
+ * The unaliased name of the origin table, or `null` if
426
+ * the column is the result of an expression or subquery. This property is the
427
+ * result of [`sqlite3_column_table_name()`](https://www.sqlite.org/c3ref/column_database_name.html).
428
+ */
429
+ table: string | null;
430
+ /**
431
+ * The declared data type of the column, or `null` if the
432
+ * column is the result of an expression or subquery. This property is the
433
+ * result of [`sqlite3_column_decltype()`](https://www.sqlite.org/c3ref/column_decltype.html).
434
+ */
435
+ type: string | null;
436
+ }
325
437
  interface StatementResultingChanges {
326
438
  /**
327
439
  * The number of rows modified, inserted, or deleted by the most recently completed `INSERT`, `UPDATE`, or `DELETE` statement.
@@ -366,6 +478,14 @@ declare module "node:sqlite" {
366
478
  namedParameters: Record<string, SQLInputValue>,
367
479
  ...anonymousParameters: SQLInputValue[]
368
480
  ): Record<string, SQLOutputValue>[];
481
+ /**
482
+ * This method is used to retrieve information about the columns returned by the
483
+ * prepared statement.
484
+ * @since v23.11.0
485
+ * @returns An array of objects. Each object corresponds to a column
486
+ * in the prepared statement, and contains the following properties:
487
+ */
488
+ columns(): StatementColumnMetadata[];
369
489
  /**
370
490
  * The source SQL text of the prepared statement with parameter
371
491
  * placeholders replaced by the values that were used during the most recent
@@ -465,6 +585,66 @@ declare module "node:sqlite" {
465
585
  */
466
586
  readonly sourceSQL: string;
467
587
  }
588
+ interface BackupOptions {
589
+ /**
590
+ * Name of the source database. This can be `'main'` (the default primary database) or any other
591
+ * database that have been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html)
592
+ * @default 'main'
593
+ */
594
+ source?: string | undefined;
595
+ /**
596
+ * Name of the target database. This can be `'main'` (the default primary database) or any other
597
+ * database that have been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html)
598
+ * @default 'main'
599
+ */
600
+ target?: string | undefined;
601
+ /**
602
+ * Number of pages to be transmitted in each batch of the backup.
603
+ * @default 100
604
+ */
605
+ rate?: number | undefined;
606
+ /**
607
+ * Callback function that will be called with the number of pages copied and the total number of
608
+ * pages.
609
+ */
610
+ progress?: ((progressInfo: BackupProgressInfo) => void) | undefined;
611
+ }
612
+ interface BackupProgressInfo {
613
+ totalPages: number;
614
+ remainingPages: number;
615
+ }
616
+ /**
617
+ * This method makes a database backup. This method abstracts the
618
+ * [`sqlite3_backup_init()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupinit),
619
+ * [`sqlite3_backup_step()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupstep)
620
+ * and [`sqlite3_backup_finish()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupfinish) functions.
621
+ *
622
+ * The backed-up database can be used normally during the backup process. Mutations coming from the same connection - same
623
+ * `DatabaseSync` - object will be reflected in the backup right away. However, mutations from other connections will cause
624
+ * the backup process to restart.
625
+ *
626
+ * ```js
627
+ * import { backup, DatabaseSync } from 'node:sqlite';
628
+ *
629
+ * const sourceDb = new DatabaseSync('source.db');
630
+ * const totalPagesTransferred = await backup(sourceDb, 'backup.db', {
631
+ * rate: 1, // Copy one page at a time.
632
+ * progress: ({ totalPages, remainingPages }) => {
633
+ * console.log('Backup in progress', { totalPages, remainingPages });
634
+ * },
635
+ * });
636
+ *
637
+ * console.log('Backup completed', totalPagesTransferred);
638
+ * ```
639
+ * @since v23.8.0
640
+ * @param sourceDb The database to backup. The source database must be open.
641
+ * @param path The path where the backup will be created. If the file already exists,
642
+ * the contents will be overwritten.
643
+ * @param options Optional configuration for the backup. The
644
+ * following properties are supported:
645
+ * @returns A promise that resolves when the backup is completed and rejects if an error occurs.
646
+ */
647
+ function backup(sourceDb: DatabaseSync, path: string | Buffer | URL, options?: BackupOptions): Promise<void>;
468
648
  /**
469
649
  * @since v22.13.0
470
650
  */
@@ -2,10 +2,10 @@
2
2
  * A stream is an abstract interface for working with streaming data in Node.js.
3
3
  * The `node:stream` module provides an API for implementing the stream interface.
4
4
  *
5
- * There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v22.x/api/http.html#class-httpincomingmessage)
6
- * and [`process.stdout`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstdout) are both stream instances.
5
+ * There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v24.x/api/http.html#class-httpincomingmessage)
6
+ * and [`process.stdout`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstdout) are both stream instances.
7
7
  *
8
- * Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v22.x/api/events.html#class-eventemitter).
8
+ * Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v24.x/api/events.html#class-eventemitter).
9
9
  *
10
10
  * To access the `node:stream` module:
11
11
  *
@@ -15,7 +15,7 @@
15
15
  *
16
16
  * The `node:stream` module is useful for creating new types of stream instances.
17
17
  * It is usually not necessary to use the `node:stream` module to consume streams.
18
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/stream.js)
18
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/stream.js)
19
19
  */
20
20
  declare module "stream" {
21
21
  import { Abortable, EventEmitter } from "node:events";
@@ -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
  /**
@@ -122,13 +118,13 @@ declare module "stream" {
122
118
  */
123
119
  readonly readableEncoding: BufferEncoding | null;
124
120
  /**
125
- * Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v22.x/api/stream.html#event-end) event is emitted.
121
+ * Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v24.x/api/stream.html#event-end) event is emitted.
126
122
  * @since v12.9.0
127
123
  */
128
124
  readonly readableEnded: boolean;
129
125
  /**
130
126
  * This property reflects the current state of a `Readable` stream as described
131
- * in the [Three states](https://nodejs.org/docs/latest-v22.x/api/stream.html#three-states) section.
127
+ * in the [Three states](https://nodejs.org/docs/latest-v24.x/api/stream.html#three-states) section.
132
128
  * @since v9.4.0
133
129
  */
134
130
  readonly readableFlowing: boolean | null;
@@ -719,7 +715,6 @@ declare module "stream" {
719
715
  /**
720
716
  * A utility method for creating a `Writable` from a web `WritableStream`.
721
717
  * @since v17.0.0
722
- * @experimental
723
718
  */
724
719
  static fromWeb(
725
720
  writableStream: streamWeb.WritableStream,
@@ -728,7 +723,6 @@ declare module "stream" {
728
723
  /**
729
724
  * A utility method for creating a web `WritableStream` from a `Writable`.
730
725
  * @since v17.0.0
731
- * @experimental
732
726
  */
733
727
  static toWeb(streamWritable: Writable): streamWeb.WritableStream;
734
728
  /**
@@ -740,7 +734,6 @@ declare module "stream" {
740
734
  /**
741
735
  * Returns whether the stream was destroyed or errored before emitting `'finish'`.
742
736
  * @since v18.0.0, v16.17.0
743
- * @experimental
744
737
  */
745
738
  readonly writableAborted: boolean;
746
739
  /**
@@ -1090,7 +1083,6 @@ declare module "stream" {
1090
1083
  /**
1091
1084
  * A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`.
1092
1085
  * @since v17.0.0
1093
- * @experimental
1094
1086
  */
1095
1087
  static toWeb(streamDuplex: Duplex): {
1096
1088
  readable: streamWeb.ReadableStream;
@@ -1099,7 +1091,6 @@ declare module "stream" {
1099
1091
  /**
1100
1092
  * A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`.
1101
1093
  * @since v17.0.0
1102
- * @experimental
1103
1094
  */
1104
1095
  static fromWeb(
1105
1096
  duplexStream: {
@@ -1380,7 +1371,7 @@ declare module "stream" {
1380
1371
  * Especially useful in error handling scenarios where a stream is destroyed
1381
1372
  * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`.
1382
1373
  *
1383
- * The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v22.x/api/stream.html#streamfinishedstream-options).
1374
+ * The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v24.x/api/stream.html#streamfinishedstream-options).
1384
1375
  *
1385
1376
  * `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been
1386
1377
  * invoked. The reason for this is so that unexpected `'error'` events (due to
@@ -1468,7 +1459,7 @@ declare module "stream" {
1468
1459
  * );
1469
1460
  * ```
1470
1461
  *
1471
- * The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v22.x/api/stream.html#streampipelinesource-transforms-destination-options).
1462
+ * The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v24.x/api/stream.html#streampipelinesource-transforms-destination-options).
1472
1463
  *
1473
1464
  * `stream.pipeline()` will call `stream.destroy(err)` on all streams except:
1474
1465
  *
@@ -1650,13 +1641,11 @@ declare module "stream" {
1650
1641
  /**
1651
1642
  * Returns whether the stream has encountered an error.
1652
1643
  * @since v17.3.0, v16.14.0
1653
- * @experimental
1654
1644
  */
1655
1645
  function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
1656
1646
  /**
1657
1647
  * Returns whether the stream is readable.
1658
1648
  * @since v17.4.0, v16.14.0
1659
- * @experimental
1660
1649
  */
1661
1650
  function isReadable(stream: Readable | NodeJS.ReadableStream): boolean;
1662
1651
  }
@@ -36,7 +36,7 @@
36
36
  * decoder.write(Buffer.from([0x82]));
37
37
  * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
38
38
  * ```
39
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/string_decoder.js)
39
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/string_decoder.js)
40
40
  */
41
41
  declare module "string_decoder" {
42
42
  class StringDecoder {