cdk-common 2.0.1202 → 2.0.1203

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 (217) hide show
  1. package/.jsii +2 -2
  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/assert.d.ts +5 -5
  5. package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +26 -6
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +1 -2
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +2 -2
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +15 -15
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/console.d.ts +17 -17
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +35 -28
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +1 -1
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +16 -16
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/domain.d.ts +1 -1
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +1 -2
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +16 -9
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +28 -19
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +7 -6
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +2 -2
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +6 -3
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +1 -1
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +7 -5
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +3 -7
  25. package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +63 -29
  26. package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +2 -5
  27. package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +8 -7
  28. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +13 -3
  29. package/node_modules/@types/concat-stream/node_modules/@types/node/path.d.ts +1 -1
  30. package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +8 -8
  31. package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +21 -11
  32. package/node_modules/@types/concat-stream/node_modules/@types/node/punycode.d.ts +1 -1
  33. package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +1 -1
  34. package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +0 -1
  35. package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +13 -13
  36. package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +14 -16
  37. package/node_modules/@types/concat-stream/node_modules/@types/node/sea.d.ts +1 -1
  38. package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +182 -2
  39. package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +8 -19
  40. package/node_modules/@types/concat-stream/node_modules/@types/node/string_decoder.d.ts +1 -1
  41. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +53 -15
  42. package/node_modules/@types/concat-stream/node_modules/@types/node/timers/promises.d.ts +1 -1
  43. package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +1 -1
  44. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +2 -48
  45. package/node_modules/@types/concat-stream/node_modules/@types/node/trace_events.d.ts +6 -6
  46. package/node_modules/@types/concat-stream/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  47. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  48. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  49. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  50. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  51. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  52. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  53. package/node_modules/@types/concat-stream/node_modules/@types/node/tty.d.ts +1 -1
  54. package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +52 -19
  55. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +16 -295
  56. package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +29 -32
  57. package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +17 -10
  58. package/node_modules/@types/concat-stream/node_modules/@types/node/wasi.d.ts +1 -1
  59. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +34 -18
  60. package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +5 -7
  61. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/agent.d.ts +7 -7
  62. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/api.d.ts +24 -24
  63. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/balanced-pool.d.ts +11 -11
  64. package/node_modules/@types/concat-stream/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  65. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/client.d.ts +12 -13
  66. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/cookies.d.ts +2 -0
  67. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/diagnostics-channel.d.ts +10 -10
  68. package/node_modules/@types/concat-stream/node_modules/undici-types/dispatcher.d.ts +281 -0
  69. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/env-http-proxy-agent.d.ts +2 -2
  70. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/errors.d.ts +69 -47
  71. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/fetch.d.ts +17 -16
  72. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/formdata.d.ts +7 -7
  73. package/node_modules/@types/concat-stream/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  74. package/node_modules/@types/concat-stream/node_modules/undici-types/global-origin.d.ts +7 -0
  75. package/node_modules/@types/concat-stream/node_modules/undici-types/h2c-client.d.ts +75 -0
  76. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/handlers.d.ts +7 -7
  77. package/node_modules/@types/concat-stream/node_modules/undici-types/header.d.ts +160 -0
  78. package/node_modules/@types/concat-stream/node_modules/undici-types/index.d.ts +75 -0
  79. package/node_modules/@types/concat-stream/node_modules/undici-types/interceptors.d.ts +34 -0
  80. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-agent.d.ts +33 -18
  81. package/node_modules/@types/concat-stream/node_modules/undici-types/mock-call-history.d.ts +111 -0
  82. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-client.d.ts +4 -4
  83. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-errors.d.ts +3 -3
  84. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-interceptor.d.ts +19 -19
  85. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-pool.d.ts +4 -4
  86. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/package.json +1 -1
  87. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/patch.d.ts +0 -4
  88. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/pool-stats.d.ts +8 -8
  89. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/pool.d.ts +12 -12
  90. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/proxy-agent.d.ts +4 -4
  91. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/readable.d.ts +18 -15
  92. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/retry-agent.d.ts +1 -1
  93. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/retry-handler.d.ts +10 -10
  94. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/util.d.ts +3 -3
  95. package/node_modules/@types/concat-stream/node_modules/undici-types/utility.d.ts +7 -0
  96. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/webidl.d.ts +44 -6
  97. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/websocket.d.ts +35 -1
  98. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  99. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +5 -5
  100. package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +26 -6
  101. package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +1 -2
  102. package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +2 -2
  103. package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +15 -15
  104. package/node_modules/@types/form-data/node_modules/@types/node/console.d.ts +17 -17
  105. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +35 -28
  106. package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +1 -1
  107. package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  108. package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +16 -16
  109. package/node_modules/@types/form-data/node_modules/@types/node/domain.d.ts +1 -1
  110. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +1 -2
  111. package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +16 -9
  112. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +28 -19
  113. package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +7 -6
  114. package/node_modules/@types/form-data/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  115. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +2 -2
  116. package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +6 -3
  117. package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +1 -1
  118. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +7 -5
  119. package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +3 -7
  120. package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +63 -29
  121. package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +2 -5
  122. package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +8 -7
  123. package/node_modules/@types/form-data/node_modules/@types/node/package.json +13 -3
  124. package/node_modules/@types/form-data/node_modules/@types/node/path.d.ts +1 -1
  125. package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +8 -8
  126. package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +21 -11
  127. package/node_modules/@types/form-data/node_modules/@types/node/punycode.d.ts +1 -1
  128. package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +1 -1
  129. package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +0 -1
  130. package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +13 -13
  131. package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +14 -16
  132. package/node_modules/@types/form-data/node_modules/@types/node/sea.d.ts +1 -1
  133. package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +182 -2
  134. package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +8 -19
  135. package/node_modules/@types/form-data/node_modules/@types/node/string_decoder.d.ts +1 -1
  136. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +53 -15
  137. package/node_modules/@types/form-data/node_modules/@types/node/timers/promises.d.ts +1 -1
  138. package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +1 -1
  139. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +2 -48
  140. package/node_modules/@types/form-data/node_modules/@types/node/trace_events.d.ts +6 -6
  141. package/node_modules/@types/form-data/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  142. package/node_modules/@types/form-data/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  143. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  144. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  145. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  146. package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  147. package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  148. package/node_modules/@types/form-data/node_modules/@types/node/tty.d.ts +1 -1
  149. package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +52 -19
  150. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +16 -295
  151. package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +29 -32
  152. package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +17 -10
  153. package/node_modules/@types/form-data/node_modules/@types/node/wasi.d.ts +1 -1
  154. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +34 -18
  155. package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +5 -7
  156. package/node_modules/@types/form-data/node_modules/undici-types/LICENSE +21 -0
  157. package/node_modules/@types/form-data/node_modules/undici-types/README.md +6 -0
  158. package/node_modules/@types/form-data/node_modules/undici-types/agent.d.ts +31 -0
  159. package/node_modules/@types/form-data/node_modules/undici-types/api.d.ts +43 -0
  160. package/node_modules/@types/form-data/node_modules/undici-types/balanced-pool.d.ts +29 -0
  161. package/node_modules/@types/form-data/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  162. package/node_modules/@types/form-data/node_modules/undici-types/cache.d.ts +36 -0
  163. package/node_modules/@types/form-data/node_modules/undici-types/client.d.ts +107 -0
  164. package/node_modules/@types/form-data/node_modules/undici-types/connector.d.ts +34 -0
  165. package/node_modules/@types/form-data/node_modules/undici-types/content-type.d.ts +21 -0
  166. package/node_modules/@types/form-data/node_modules/undici-types/cookies.d.ts +30 -0
  167. package/node_modules/@types/form-data/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  168. package/node_modules/@types/form-data/node_modules/undici-types/dispatcher.d.ts +281 -0
  169. package/node_modules/@types/form-data/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  170. package/node_modules/@types/form-data/node_modules/undici-types/errors.d.ts +171 -0
  171. package/node_modules/@types/form-data/node_modules/undici-types/eventsource.d.ts +61 -0
  172. package/node_modules/@types/form-data/node_modules/undici-types/fetch.d.ts +210 -0
  173. package/node_modules/@types/form-data/node_modules/undici-types/formdata.d.ts +108 -0
  174. package/node_modules/@types/form-data/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  175. package/node_modules/@types/form-data/node_modules/undici-types/global-origin.d.ts +7 -0
  176. package/node_modules/@types/form-data/node_modules/undici-types/h2c-client.d.ts +75 -0
  177. package/node_modules/@types/form-data/node_modules/undici-types/handlers.d.ts +15 -0
  178. package/node_modules/@types/form-data/node_modules/undici-types/header.d.ts +160 -0
  179. package/node_modules/@types/form-data/node_modules/undici-types/index.d.ts +75 -0
  180. package/node_modules/@types/form-data/node_modules/undici-types/interceptors.d.ts +34 -0
  181. package/node_modules/@types/form-data/node_modules/undici-types/mock-agent.d.ts +65 -0
  182. package/node_modules/@types/form-data/node_modules/undici-types/mock-call-history.d.ts +111 -0
  183. package/node_modules/@types/form-data/node_modules/undici-types/mock-client.d.ts +25 -0
  184. package/node_modules/@types/form-data/node_modules/undici-types/mock-errors.d.ts +12 -0
  185. package/node_modules/@types/form-data/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  186. package/node_modules/@types/form-data/node_modules/undici-types/mock-pool.d.ts +25 -0
  187. package/node_modules/@types/form-data/node_modules/undici-types/package.json +55 -0
  188. package/node_modules/@types/form-data/node_modules/undici-types/patch.d.ts +29 -0
  189. package/node_modules/@types/form-data/node_modules/undici-types/pool-stats.d.ts +19 -0
  190. package/node_modules/@types/form-data/node_modules/undici-types/pool.d.ts +39 -0
  191. package/node_modules/@types/form-data/node_modules/undici-types/proxy-agent.d.ts +28 -0
  192. package/node_modules/@types/form-data/node_modules/undici-types/readable.d.ts +68 -0
  193. package/node_modules/@types/form-data/node_modules/undici-types/retry-agent.d.ts +8 -0
  194. package/node_modules/@types/form-data/node_modules/undici-types/retry-handler.d.ts +116 -0
  195. package/node_modules/@types/form-data/node_modules/undici-types/util.d.ts +18 -0
  196. package/node_modules/@types/form-data/node_modules/undici-types/utility.d.ts +7 -0
  197. package/node_modules/@types/form-data/node_modules/undici-types/webidl.d.ts +266 -0
  198. package/node_modules/@types/form-data/node_modules/undici-types/websocket.d.ts +184 -0
  199. package/package.json +1 -1
  200. package/node_modules/@types/concat-stream/node_modules/@types/node/compatibility/index.d.ts +0 -9
  201. package/node_modules/@types/concat-stream/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  202. package/node_modules/@types/form-data/node_modules/@types/node/compatibility/index.d.ts +0 -9
  203. package/node_modules/@types/form-data/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  204. package/node_modules/undici-types/dispatcher.d.ts +0 -256
  205. package/node_modules/undici-types/file.d.ts +0 -39
  206. package/node_modules/undici-types/filereader.d.ts +0 -54
  207. package/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  208. package/node_modules/undici-types/global-origin.d.ts +0 -7
  209. package/node_modules/undici-types/header.d.ts +0 -4
  210. package/node_modules/undici-types/index.d.ts +0 -71
  211. package/node_modules/undici-types/interceptors.d.ts +0 -17
  212. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/LICENSE +0 -0
  213. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/README.md +0 -0
  214. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/cache.d.ts +0 -0
  215. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/connector.d.ts +0 -0
  216. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/content-type.d.ts +0 -0
  217. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/eventsource.d.ts +0 -0
@@ -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 {
@@ -76,7 +76,7 @@
76
76
  *
77
77
  * If any tests fail, the process exit code is set to `1`.
78
78
  * @since v18.0.0, v16.17.0
79
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/test.js)
79
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/test.js)
80
80
  */
81
81
  declare module "node:test" {
82
82
  import { Readable } from "node:stream";
@@ -320,9 +320,17 @@ declare module "node:test" {
320
320
  * @default false
321
321
  */
322
322
  concurrency?: number | boolean | undefined;
323
+ /**
324
+ * Specifies the current working directory to be used by the test runner.
325
+ * Serves as the base path for resolving files according to the
326
+ * [test runner execution model](https://nodejs.org/docs/latest-v24.x/api/test.html#test-runner-execution-model).
327
+ * @since v23.0.0
328
+ * @default process.cwd()
329
+ */
330
+ cwd?: string | undefined;
323
331
  /**
324
332
  * An array containing the list of files to run. If omitted, files are run according to the
325
- * [test runner execution model](https://nodejs.org/docs/latest-v22.x/api/test.html#test-runner-execution-model).
333
+ * [test runner execution model](https://nodejs.org/docs/latest-v24.x/api/test.html#test-runner-execution-model).
326
334
  */
327
335
  files?: readonly string[] | undefined;
328
336
  /**
@@ -335,7 +343,7 @@ declare module "node:test" {
335
343
  /**
336
344
  * An array containing the list of glob patterns to match test files.
337
345
  * This option cannot be used together with `files`. If omitted, files are run according to the
338
- * [test runner execution model](https://nodejs.org/docs/latest-v22.x/api/test.html#test-runner-execution-model).
346
+ * [test runner execution model](https://nodejs.org/docs/latest-v24.x/api/test.html#test-runner-execution-model).
339
347
  * @since v22.6.0
340
348
  */
341
349
  globPatterns?: readonly string[] | undefined;
@@ -416,7 +424,7 @@ declare module "node:test" {
416
424
  */
417
425
  shard?: TestShard | undefined;
418
426
  /**
419
- * enable [code coverage](https://nodejs.org/docs/latest-v22.x/api/test.html#collecting-code-coverage) collection.
427
+ * enable [code coverage](https://nodejs.org/docs/latest-v24.x/api/test.html#collecting-code-coverage) collection.
420
428
  * @since v22.10.0
421
429
  * @default false
422
430
  */
@@ -837,7 +845,7 @@ declare module "node:test" {
837
845
  * highlighting.
838
846
  * @since v22.14.0
839
847
  * @param value A value to serialize to a string. If Node.js was started with
840
- * the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--test-update-snapshots)
848
+ * the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--test-update-snapshots)
841
849
  * flag, the serialized value is written to
842
850
  * `path`. Otherwise, the serialized value is compared to the contents of the
843
851
  * existing snapshot file.
@@ -860,7 +868,7 @@ declare module "node:test" {
860
868
  * ```
861
869
  * @since v22.3.0
862
870
  * @param value A value to serialize to a string. If Node.js was started with
863
- * the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--test-update-snapshots)
871
+ * the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--test-update-snapshots)
864
872
  * flag, the serialized value is written to
865
873
  * the snapshot file. Otherwise, the serialized value is compared to the
866
874
  * corresponding value in the existing snapshot file.
@@ -1292,10 +1300,43 @@ declare module "node:test" {
1292
1300
  ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>;
1293
1301
 
1294
1302
  /**
1295
- * This function is used to mock the exports of ECMAScript modules, CommonJS modules, and Node.js builtin modules.
1296
- * Any references to the original module prior to mocking are not impacted.
1303
+ * This function is used to mock the exports of ECMAScript modules, CommonJS modules, JSON modules, and
1304
+ * Node.js builtin modules. Any references to the original module prior to mocking are not impacted. In
1305
+ * order to enable module mocking, Node.js must be started with the
1306
+ * [`--experimental-test-module-mocks`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--experimental-test-module-mocks)
1307
+ * command-line flag.
1308
+ *
1309
+ * The following example demonstrates how a mock is created for a module.
1310
+ *
1311
+ * ```js
1312
+ * test('mocks a builtin module in both module systems', async (t) => {
1313
+ * // Create a mock of 'node:readline' with a named export named 'fn', which
1314
+ * // does not exist in the original 'node:readline' module.
1315
+ * const mock = t.mock.module('node:readline', {
1316
+ * namedExports: { fn() { return 42; } },
1317
+ * });
1318
+ *
1319
+ * let esmImpl = await import('node:readline');
1320
+ * let cjsImpl = require('node:readline');
1297
1321
  *
1298
- * Only available through the [--experimental-test-module-mocks](https://nodejs.org/api/cli.html#--experimental-test-module-mocks) flag.
1322
+ * // cursorTo() is an export of the original 'node:readline' module.
1323
+ * assert.strictEqual(esmImpl.cursorTo, undefined);
1324
+ * assert.strictEqual(cjsImpl.cursorTo, undefined);
1325
+ * assert.strictEqual(esmImpl.fn(), 42);
1326
+ * assert.strictEqual(cjsImpl.fn(), 42);
1327
+ *
1328
+ * mock.restore();
1329
+ *
1330
+ * // The mock is restored, so the original builtin module is returned.
1331
+ * esmImpl = await import('node:readline');
1332
+ * cjsImpl = require('node:readline');
1333
+ *
1334
+ * assert.strictEqual(typeof esmImpl.cursorTo, 'function');
1335
+ * assert.strictEqual(typeof cjsImpl.cursorTo, 'function');
1336
+ * assert.strictEqual(esmImpl.fn, undefined);
1337
+ * assert.strictEqual(cjsImpl.fn, undefined);
1338
+ * });
1339
+ * ```
1299
1340
  * @since v22.3.0
1300
1341
  * @experimental
1301
1342
  * @param specifier A string identifying the module to mock.
@@ -1490,7 +1531,6 @@ declare module "node:test" {
1490
1531
  * The `MockTracker` provides a top-level `timers` export
1491
1532
  * which is a `MockTimers` instance.
1492
1533
  * @since v20.4.0
1493
- * @experimental
1494
1534
  */
1495
1535
  class MockTimers {
1496
1536
  /**
@@ -2213,7 +2253,7 @@ interface TestSummary {
2213
2253
  * import test from 'node:test/reporters';
2214
2254
  * ```
2215
2255
  * @since v19.9.0
2216
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/test/reporters.js)
2256
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/test/reporters.js)
2217
2257
  */
2218
2258
  declare module "node:test/reporters" {
2219
2259
  import { Transform, TransformOptions } from "node:stream";
@@ -2269,12 +2309,10 @@ declare module "node:test/reporters" {
2269
2309
  }
2270
2310
  /**
2271
2311
  * The `lcov` reporter outputs test coverage when used with the
2272
- * [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--experimental-test-coverage) flag.
2312
+ * [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--experimental-test-coverage) flag.
2273
2313
  * @since v22.0.0
2274
2314
  */
2275
- // TODO: change the export to a wrapper function once node@0db38f0 is merged (breaking change)
2276
- // const lcov: ReporterConstructorWrapper<typeof LcovReporter>;
2277
- const lcov: LcovReporter;
2315
+ const lcov: ReporterConstructorWrapper<typeof LcovReporter>;
2278
2316
 
2279
2317
  export { dot, junit, lcov, spec, tap, TestEvent };
2280
2318
  }
@@ -11,7 +11,7 @@
11
11
  * } from 'node:timers/promises';
12
12
  * ```
13
13
  * @since v15.0.0
14
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/timers/promises.js)
14
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/timers/promises.js)
15
15
  */
16
16
  declare module "timers/promises" {
17
17
  import { TimerOptions } from "node:timers";
@@ -6,7 +6,7 @@
6
6
  * The timer functions within Node.js implement a similar API as the timers API
7
7
  * provided by Web Browsers but use a different internal implementation that is
8
8
  * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
9
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/timers.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/timers.js)
10
10
  */
11
11
  declare module "timers" {
12
12
  import { Abortable } from "node:events";
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * import tls from 'node:tls';
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/tls.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/tls.js)
10
10
  */
11
11
  declare module "tls" {
12
12
  import { X509Certificate } from "node:crypto";
@@ -797,13 +797,6 @@ declare module "tls" {
797
797
  prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
798
798
  prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: TLSSocket) => void): this;
799
799
  }
800
- /**
801
- * @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
802
- */
803
- interface SecurePair {
804
- encrypted: TLSSocket;
805
- cleartext: TLSSocket;
806
- }
807
800
  type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
808
801
  interface SecureContextOptions {
809
802
  /**
@@ -1102,45 +1095,6 @@ declare module "tls" {
1102
1095
  secureConnectListener?: () => void,
1103
1096
  ): TLSSocket;
1104
1097
  function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
1105
- /**
1106
- * Creates a new secure pair object with two streams, one of which reads and writes
1107
- * the encrypted data and the other of which reads and writes the cleartext data.
1108
- * Generally, the encrypted stream is piped to/from an incoming encrypted data
1109
- * stream and the cleartext one is used as a replacement for the initial encrypted
1110
- * stream.
1111
- *
1112
- * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties.
1113
- *
1114
- * Using `cleartext` has the same API as {@link TLSSocket}.
1115
- *
1116
- * The `tls.createSecurePair()` method is now deprecated in favor of`tls.TLSSocket()`. For example, the code:
1117
- *
1118
- * ```js
1119
- * pair = tls.createSecurePair(// ... );
1120
- * pair.encrypted.pipe(socket);
1121
- * socket.pipe(pair.encrypted);
1122
- * ```
1123
- *
1124
- * can be replaced by:
1125
- *
1126
- * ```js
1127
- * secureSocket = tls.TLSSocket(socket, options);
1128
- * ```
1129
- *
1130
- * where `secureSocket` has the same API as `pair.cleartext`.
1131
- * @since v0.3.2
1132
- * @deprecated Since v0.11.3 - Use {@link TLSSocket} instead.
1133
- * @param context A secure context object as returned by `tls.createSecureContext()`
1134
- * @param isServer `true` to specify that this TLS connection should be opened as a server.
1135
- * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`.
1136
- * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`.
1137
- */
1138
- function createSecurePair(
1139
- context?: SecureContext,
1140
- isServer?: boolean,
1141
- requestCert?: boolean,
1142
- rejectUnauthorized?: boolean,
1143
- ): SecurePair;
1144
1098
  /**
1145
1099
  * `{@link createServer}` sets the default value of the `honorCipherOrder` option
1146
1100
  * to `true`, other APIs that create secure contexts leave it unset.
@@ -1197,7 +1151,7 @@ declare module "tls" {
1197
1151
  * the `ciphers` option of `{@link createSecureContext}`.
1198
1152
  *
1199
1153
  * Not all supported ciphers are enabled by default. See
1200
- * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v22.x/api/tls.html#modifying-the-default-tls-cipher-suite).
1154
+ * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v24.x/api/tls.html#modifying-the-default-tls-cipher-suite).
1201
1155
  *
1202
1156
  * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
1203
1157
  * TLSv1.2 and below.