@psnext/slingcli 3.1.20260904-1 → 3.3.20260911-1

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 (711) hide show
  1. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
  2. package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
  3. package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
  4. package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
  5. package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
  6. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
  7. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
  8. package/node_modules/@aws-sdk/core/package.json +1 -1
  9. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  10. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  12. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  13. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  14. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +3 -3
  16. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  17. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  18. package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  21. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  22. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  23. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  25. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-PBNSMEG7.js → chunk-VDBOM5UG.js} +9 -9
  26. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
  27. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
  28. package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
  29. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +25 -8
  30. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
  31. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EventSource.md +4 -0
  32. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
  33. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
  34. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +33 -43
  35. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
  36. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +16 -2
  37. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +3 -0
  38. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +7 -2
  39. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
  40. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +9 -1
  41. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +221 -12
  42. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +76 -30
  43. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
  44. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
  45. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
  46. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +37 -8
  47. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
  48. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
  49. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
  50. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +106 -22
  51. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +29 -5
  52. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/decorator-handler.js +7 -1
  53. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
  54. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +21 -4
  55. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +155 -32
  56. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +65 -9
  57. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +115 -13
  58. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
  59. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +7 -0
  60. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dump.js +10 -23
  61. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +13 -1
  62. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-utils.js +217 -27
  63. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +43 -3
  64. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/parse.js +150 -147
  65. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
  66. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
  67. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +6 -0
  68. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +2 -3
  69. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +6 -1
  70. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +3 -3
  71. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +1 -1
  72. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  73. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  74. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +22 -0
  75. package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +3 -3
  76. package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +4 -4
  77. package/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
  78. package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
  79. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
  80. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
  81. package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
  82. package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
  83. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
  84. package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
  85. package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
  86. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  87. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
  88. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
  89. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
  90. package/node_modules/@smithy/core/errors.d.ts +5 -0
  91. package/node_modules/@smithy/core/errors.js +5 -0
  92. package/node_modules/@smithy/core/package.json +11 -2
  93. package/node_modules/@types/node/README.md +3 -3
  94. package/node_modules/@types/node/assert/strict.d.ts +56 -13
  95. package/node_modules/@types/node/assert.d.ts +190 -189
  96. package/node_modules/@types/node/async_hooks.d.ts +43 -151
  97. package/node_modules/@types/node/buffer.buffer.d.ts +13 -12
  98. package/node_modules/@types/node/buffer.d.ts +237 -102
  99. package/node_modules/@types/node/child_process.d.ts +154 -39
  100. package/node_modules/@types/node/cluster.d.ts +384 -238
  101. package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  102. package/node_modules/@types/node/compatibility/index.d.ts +9 -0
  103. package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  104. package/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
  105. package/node_modules/@types/node/console.d.ts +404 -45
  106. package/node_modules/@types/node/constants.d.ts +10 -3
  107. package/node_modules/@types/node/crypto.d.ts +1600 -1007
  108. package/node_modules/@types/node/dgram.d.ts +81 -133
  109. package/node_modules/@types/node/diagnostics_channel.d.ts +59 -277
  110. package/node_modules/@types/node/dns/promises.d.ts +15 -9
  111. package/node_modules/@types/node/dns.d.ts +183 -136
  112. package/node_modules/@types/node/domain.d.ts +32 -12
  113. package/node_modules/@types/node/events.d.ts +696 -728
  114. package/node_modules/@types/node/fs/promises.d.ts +85 -256
  115. package/node_modules/@types/node/fs.d.ts +525 -865
  116. package/node_modules/@types/node/globals.d.ts +34 -12
  117. package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
  118. package/node_modules/@types/node/http.d.ts +311 -432
  119. package/node_modules/@types/node/http2.d.ts +891 -545
  120. package/node_modules/@types/node/https.d.ts +243 -64
  121. package/node_modules/@types/node/index.d.ts +7 -25
  122. package/node_modules/@types/node/inspector.d.ts +58 -70
  123. package/node_modules/@types/node/inspector.generated.d.ts +411 -765
  124. package/node_modules/@types/node/module.d.ts +219 -54
  125. package/node_modules/@types/node/net.d.ts +222 -208
  126. package/node_modules/@types/node/os.d.ts +49 -41
  127. package/node_modules/@types/node/package.json +3 -13
  128. package/node_modules/@types/node/path.d.ts +141 -119
  129. package/node_modules/@types/node/perf_hooks.d.ts +673 -310
  130. package/node_modules/@types/node/process.d.ts +205 -389
  131. package/node_modules/@types/node/punycode.d.ts +31 -3
  132. package/node_modules/@types/node/querystring.d.ts +16 -3
  133. package/node_modules/@types/node/readline/promises.d.ts +6 -3
  134. package/node_modules/@types/node/readline.d.ts +152 -66
  135. package/node_modules/@types/node/repl.d.ts +109 -101
  136. package/node_modules/@types/node/sea.d.ts +116 -1
  137. package/node_modules/@types/node/sqlite.d.ts +68 -486
  138. package/node_modules/@types/node/stream/consumers.d.ts +15 -91
  139. package/node_modules/@types/node/stream/promises.d.ts +15 -136
  140. package/node_modules/@types/node/stream/web.d.ts +456 -179
  141. package/node_modules/@types/node/stream.d.ts +491 -603
  142. package/node_modules/@types/node/string_decoder.d.ts +43 -3
  143. package/node_modules/@types/node/test.d.ts +292 -513
  144. package/node_modules/@types/node/timers/promises.d.ts +18 -3
  145. package/node_modules/@types/node/timers.d.ts +141 -3
  146. package/node_modules/@types/node/tls.d.ts +242 -140
  147. package/node_modules/@types/node/trace_events.d.ts +97 -3
  148. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +8 -7
  149. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
  150. package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
  151. package/node_modules/@types/node/tty.d.ts +43 -61
  152. package/node_modules/@types/node/url.d.ts +584 -156
  153. package/node_modules/@types/node/util.d.ts +1110 -181
  154. package/node_modules/@types/node/v8.d.ts +36 -175
  155. package/node_modules/@types/node/vm.d.ts +209 -292
  156. package/node_modules/@types/node/wasi.d.ts +74 -24
  157. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
  158. package/node_modules/@types/node/web-globals/domexception.d.ts +0 -15
  159. package/node_modules/@types/node/web-globals/events.d.ts +0 -9
  160. package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
  161. package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
  162. package/node_modules/@types/node/web-globals/streams.d.ts +0 -93
  163. package/node_modules/@types/node/worker_threads.d.ts +407 -257
  164. package/node_modules/@types/node/zlib.d.ts +165 -7
  165. package/node_modules/hono/dist/cjs/client/client.js +4 -4
  166. package/node_modules/hono/dist/cjs/hono-base.js +7 -6
  167. package/node_modules/hono/dist/cjs/jsx/base.js +18 -1
  168. package/node_modules/hono/dist/cjs/jsx/components.js +25 -26
  169. package/node_modules/hono/dist/cjs/jsx/context.js +5 -5
  170. package/node_modules/hono/dist/cjs/jsx/dom/server.js +5 -1
  171. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +2 -2
  172. package/node_modules/hono/dist/cjs/jsx/streaming.js +4 -5
  173. package/node_modules/hono/dist/client/client.js +4 -4
  174. package/node_modules/hono/dist/hono-base.js +7 -6
  175. package/node_modules/hono/dist/jsx/base.js +15 -1
  176. package/node_modules/hono/dist/jsx/components.js +26 -27
  177. package/node_modules/hono/dist/jsx/context.js +6 -6
  178. package/node_modules/hono/dist/jsx/dom/server.js +5 -1
  179. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +3 -3
  180. package/node_modules/hono/dist/jsx/streaming.js +5 -6
  181. package/node_modules/hono/dist/types/context.d.ts +2 -2
  182. package/node_modules/hono/dist/types/jsx/base.d.ts +3 -0
  183. package/node_modules/hono/package.json +2 -2
  184. package/node_modules/jose/dist/types/index.d.ts +1 -2
  185. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -11
  186. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
  187. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
  188. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
  189. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
  190. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
  191. package/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
  192. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
  193. package/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
  194. package/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
  195. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
  196. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
  197. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
  198. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
  199. package/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
  200. package/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
  201. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
  202. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
  203. package/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
  204. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
  205. package/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
  206. package/node_modules/jose/dist/types/key/export.d.ts +6 -6
  207. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
  208. package/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
  209. package/node_modules/jose/dist/types/key/import.d.ts +19 -18
  210. package/node_modules/jose/dist/types/types.d.ts +152 -247
  211. package/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
  212. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +6 -1
  213. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
  214. package/node_modules/jose/dist/types/util/errors.d.ts +29 -40
  215. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
  216. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
  217. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
  218. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
  219. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
  220. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
  221. package/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
  222. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
  223. package/node_modules/jose/dist/webapi/jwks/local.js +16 -10
  224. package/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
  225. package/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
  226. package/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
  227. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
  228. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
  229. package/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
  230. package/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
  231. package/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
  232. package/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
  233. package/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
  234. package/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
  235. package/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
  236. package/node_modules/jose/dist/webapi/key/export.js +12 -16
  237. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
  238. package/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
  239. package/node_modules/jose/dist/webapi/key/import.js +5 -9
  240. package/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
  241. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
  242. package/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
  243. package/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
  244. package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
  245. package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
  246. package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
  247. package/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
  248. package/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
  249. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
  250. package/node_modules/jose/dist/webapi/lib/key.js +119 -59
  251. package/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
  252. package/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
  253. package/node_modules/jose/dist/webapi/util/base64url.js +5 -19
  254. package/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
  255. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
  256. package/node_modules/jose/package.json +1 -1
  257. package/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
  258. package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
  259. package/node_modules/undici/lib/dispatcher/client-h2.js +70 -14
  260. package/node_modules/undici/lib/dispatcher/client.js +6 -2
  261. package/node_modules/undici/lib/handler/cache-handler.js +21 -5
  262. package/node_modules/undici/lib/handler/retry-handler.js +42 -7
  263. package/node_modules/undici/lib/interceptor/cache.js +20 -1
  264. package/node_modules/undici/lib/interceptor/decompress.js +146 -14
  265. package/node_modules/undici/lib/interceptor/dump.js +10 -23
  266. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
  267. package/node_modules/undici/lib/web/websocket/connection.js +1 -1
  268. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
  269. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
  270. package/node_modules/undici/package.json +1 -1
  271. package/node_modules/undici/types/interceptors.d.ts +2 -0
  272. package/node_modules/undici-types/agent.d.ts +13 -12
  273. package/node_modules/undici-types/api.d.ts +26 -26
  274. package/node_modules/undici-types/balanced-pool.d.ts +12 -13
  275. package/node_modules/undici-types/client.d.ts +34 -55
  276. package/node_modules/undici-types/connector.d.ts +2 -4
  277. package/node_modules/undici-types/cookies.d.ts +0 -2
  278. package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
  279. package/node_modules/undici-types/dispatcher.d.ts +137 -134
  280. package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
  281. package/node_modules/undici-types/errors.d.ts +54 -82
  282. package/node_modules/undici-types/eventsource.d.ts +4 -9
  283. package/node_modules/undici-types/fetch.d.ts +24 -46
  284. package/node_modules/undici-types/file.d.ts +39 -0
  285. package/node_modules/undici-types/filereader.d.ts +54 -0
  286. package/node_modules/undici-types/formdata.d.ts +7 -7
  287. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  288. package/node_modules/undici-types/global-origin.d.ts +5 -5
  289. package/node_modules/undici-types/handlers.d.ts +9 -8
  290. package/node_modules/undici-types/header.d.ts +1 -162
  291. package/node_modules/undici-types/index.d.ts +47 -69
  292. package/node_modules/undici-types/interceptors.d.ts +9 -72
  293. package/node_modules/undici-types/mock-agent.d.ts +18 -36
  294. package/node_modules/undici-types/mock-client.d.ts +4 -6
  295. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  296. package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
  297. package/node_modules/undici-types/mock-pool.d.ts +4 -6
  298. package/node_modules/undici-types/package.json +1 -1
  299. package/node_modules/undici-types/patch.d.ts +4 -0
  300. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  301. package/node_modules/undici-types/pool.d.ts +14 -14
  302. package/node_modules/undici-types/proxy-agent.d.ts +6 -7
  303. package/node_modules/undici-types/readable.d.ts +16 -19
  304. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  305. package/node_modules/undici-types/retry-handler.d.ts +10 -19
  306. package/node_modules/undici-types/util.d.ts +3 -3
  307. package/node_modules/undici-types/webidl.d.ts +30 -148
  308. package/node_modules/undici-types/websocket.d.ts +10 -48
  309. package/node_modules/zod/compile.cjs +19 -0
  310. package/node_modules/zod/index.cjs +19 -0
  311. package/node_modules/zod/locales/index.cjs +19 -0
  312. package/node_modules/zod/mini/index.cjs +19 -0
  313. package/node_modules/zod/package.json +8 -7
  314. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  315. package/node_modules/zod/src/v4/classic/checks.ts +0 -1
  316. package/node_modules/zod/src/v4/classic/external.ts +2 -0
  317. package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
  318. package/node_modules/zod/src/v4/classic/schemas.ts +255 -164
  319. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +59 -9
  320. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
  321. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
  322. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +274 -0
  323. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
  324. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
  325. package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
  326. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  327. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
  328. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  329. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +18 -2
  330. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
  331. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
  332. package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
  333. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
  334. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
  335. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +225 -0
  336. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
  337. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
  338. package/node_modules/zod/src/v4/classic/tests/string.test.ts +25 -0
  339. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
  340. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +147 -3
  341. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
  342. package/node_modules/zod/src/v4/core/api.ts +30 -6
  343. package/node_modules/zod/src/v4/core/checks.ts +1 -101
  344. package/node_modules/zod/src/v4/core/compile.ts +202 -88
  345. package/node_modules/zod/src/v4/core/doc.ts +6 -2
  346. package/node_modules/zod/src/v4/core/errors.ts +3 -6
  347. package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
  348. package/node_modules/zod/src/v4/core/json-schema-processors.ts +226 -68
  349. package/node_modules/zod/src/v4/core/memoizer.ts +78 -28
  350. package/node_modules/zod/src/v4/core/parse.ts +37 -16
  351. package/node_modules/zod/src/v4/core/regexes.ts +10 -4
  352. package/node_modules/zod/src/v4/core/schemas.ts +359 -122
  353. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  354. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  355. package/node_modules/zod/src/v4/core/tests/compile.test.ts +222 -2
  356. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  357. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  358. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  359. package/node_modules/zod/src/v4/core/to-json-schema.ts +10 -8
  360. package/node_modules/zod/src/v4/core/util.ts +222 -147
  361. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  362. package/node_modules/zod/src/v4/core/visit.ts +11 -0
  363. package/node_modules/zod/src/v4/locales/ar.ts +1 -0
  364. package/node_modules/zod/src/v4/locales/az.ts +1 -0
  365. package/node_modules/zod/src/v4/locales/be.ts +1 -0
  366. package/node_modules/zod/src/v4/locales/bg.ts +1 -0
  367. package/node_modules/zod/src/v4/locales/bn.ts +1 -0
  368. package/node_modules/zod/src/v4/locales/ca.ts +1 -0
  369. package/node_modules/zod/src/v4/locales/ckb.ts +1 -0
  370. package/node_modules/zod/src/v4/locales/cs.ts +1 -0
  371. package/node_modules/zod/src/v4/locales/da.ts +1 -0
  372. package/node_modules/zod/src/v4/locales/de.ts +1 -0
  373. package/node_modules/zod/src/v4/locales/el.ts +1 -0
  374. package/node_modules/zod/src/v4/locales/en.ts +1 -0
  375. package/node_modules/zod/src/v4/locales/eo.ts +1 -0
  376. package/node_modules/zod/src/v4/locales/es.ts +1 -0
  377. package/node_modules/zod/src/v4/locales/fa.ts +1 -0
  378. package/node_modules/zod/src/v4/locales/fi.ts +1 -0
  379. package/node_modules/zod/src/v4/locales/fr-CA.ts +1 -0
  380. package/node_modules/zod/src/v4/locales/fr.ts +1 -0
  381. package/node_modules/zod/src/v4/locales/gu.ts +1 -0
  382. package/node_modules/zod/src/v4/locales/he.ts +1 -0
  383. package/node_modules/zod/src/v4/locales/hi.ts +1 -0
  384. package/node_modules/zod/src/v4/locales/hr.ts +1 -0
  385. package/node_modules/zod/src/v4/locales/hu.ts +1 -0
  386. package/node_modules/zod/src/v4/locales/hy.ts +1 -0
  387. package/node_modules/zod/src/v4/locales/id.ts +1 -0
  388. package/node_modules/zod/src/v4/locales/index.ts +1 -0
  389. package/node_modules/zod/src/v4/locales/is.ts +1 -0
  390. package/node_modules/zod/src/v4/locales/it.ts +1 -0
  391. package/node_modules/zod/src/v4/locales/ja.ts +1 -0
  392. package/node_modules/zod/src/v4/locales/ka.ts +1 -0
  393. package/node_modules/zod/src/v4/locales/km.ts +1 -0
  394. package/node_modules/zod/src/v4/locales/kn.ts +1 -0
  395. package/node_modules/zod/src/v4/locales/ko.ts +1 -0
  396. package/node_modules/zod/src/v4/locales/lt.ts +1 -0
  397. package/node_modules/zod/src/v4/locales/mk.ts +1 -0
  398. package/node_modules/zod/src/v4/locales/ms.ts +1 -0
  399. package/node_modules/zod/src/v4/locales/ne.ts +1 -0
  400. package/node_modules/zod/src/v4/locales/nl.ts +1 -0
  401. package/node_modules/zod/src/v4/locales/nn.ts +1 -0
  402. package/node_modules/zod/src/v4/locales/no.ts +1 -0
  403. package/node_modules/zod/src/v4/locales/ota.ts +1 -0
  404. package/node_modules/zod/src/v4/locales/pl.ts +1 -0
  405. package/node_modules/zod/src/v4/locales/ps.ts +1 -0
  406. package/node_modules/zod/src/v4/locales/pt-BR.ts +1 -0
  407. package/node_modules/zod/src/v4/locales/pt.ts +1 -0
  408. package/node_modules/zod/src/v4/locales/ro.ts +1 -0
  409. package/node_modules/zod/src/v4/locales/ru.ts +1 -0
  410. package/node_modules/zod/src/v4/locales/sk.ts +1 -0
  411. package/node_modules/zod/src/v4/locales/sl.ts +1 -0
  412. package/node_modules/zod/src/v4/locales/sv.ts +1 -0
  413. package/node_modules/zod/src/v4/locales/ta.ts +1 -0
  414. package/node_modules/zod/src/v4/locales/tg.ts +134 -0
  415. package/node_modules/zod/src/v4/locales/th.ts +1 -0
  416. package/node_modules/zod/src/v4/locales/tk.ts +1 -0
  417. package/node_modules/zod/src/v4/locales/tr.ts +1 -0
  418. package/node_modules/zod/src/v4/locales/uk.ts +1 -0
  419. package/node_modules/zod/src/v4/locales/ur.ts +1 -0
  420. package/node_modules/zod/src/v4/locales/uz.ts +1 -0
  421. package/node_modules/zod/src/v4/locales/vi.ts +1 -0
  422. package/node_modules/zod/src/v4/locales/yo.ts +1 -0
  423. package/node_modules/zod/src/v4/locales/zh-CN.ts +1 -0
  424. package/node_modules/zod/src/v4/locales/zh-TW.ts +1 -0
  425. package/node_modules/zod/src/v4/mini/checks.ts +0 -1
  426. package/node_modules/zod/src/v4/mini/external.ts +2 -0
  427. package/node_modules/zod/src/v4/mini/schemas.ts +39 -3
  428. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
  429. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
  430. package/node_modules/zod/src/v4/mini/tests/index.test.ts +30 -0
  431. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
  432. package/node_modules/zod/src/v4/mini/tests/string.test.ts +16 -0
  433. package/node_modules/zod/v3/ZodError.cjs +19 -0
  434. package/node_modules/zod/v3/errors.cjs +19 -0
  435. package/node_modules/zod/v3/external.cjs +19 -0
  436. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  437. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  438. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  439. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  440. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  441. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  442. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  443. package/node_modules/zod/v3/index.cjs +19 -0
  444. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  445. package/node_modules/zod/v3/types.cjs +19 -0
  446. package/node_modules/zod/v4/classic/checks.cjs +20 -2
  447. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  448. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  449. package/node_modules/zod/v4/classic/checks.js +1 -1
  450. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  451. package/node_modules/zod/v4/classic/compat.cjs +19 -0
  452. package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
  453. package/node_modules/zod/v4/classic/errors.cjs +19 -0
  454. package/node_modules/zod/v4/classic/external.cjs +22 -1
  455. package/node_modules/zod/v4/classic/external.d.cts +1 -1
  456. package/node_modules/zod/v4/classic/external.d.ts +1 -1
  457. package/node_modules/zod/v4/classic/external.js +1 -1
  458. package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
  459. package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
  460. package/node_modules/zod/v4/classic/in-out.cjs +19 -0
  461. package/node_modules/zod/v4/classic/index.cjs +19 -0
  462. package/node_modules/zod/v4/classic/iso.cjs +19 -0
  463. package/node_modules/zod/v4/classic/parse.cjs +19 -0
  464. package/node_modules/zod/v4/classic/schemas.cjs +100 -31
  465. package/node_modules/zod/v4/classic/schemas.d.cts +17 -1
  466. package/node_modules/zod/v4/classic/schemas.d.ts +17 -1
  467. package/node_modules/zod/v4/classic/schemas.js +77 -29
  468. package/node_modules/zod/v4/core/api.cjs +37 -2
  469. package/node_modules/zod/v4/core/api.d.cts +6 -4
  470. package/node_modules/zod/v4/core/api.d.ts +6 -4
  471. package/node_modules/zod/v4/core/api.js +17 -2
  472. package/node_modules/zod/v4/core/checks.cjs +19 -96
  473. package/node_modules/zod/v4/core/checks.d.cts +1 -1
  474. package/node_modules/zod/v4/core/checks.d.ts +1 -1
  475. package/node_modules/zod/v4/core/checks.js +0 -96
  476. package/node_modules/zod/v4/core/compile.cjs +172 -72
  477. package/node_modules/zod/v4/core/compile.d.cts +18 -4
  478. package/node_modules/zod/v4/core/compile.d.ts +18 -4
  479. package/node_modules/zod/v4/core/compile.js +153 -73
  480. package/node_modules/zod/v4/core/core.cjs +19 -0
  481. package/node_modules/zod/v4/core/doc.cjs +26 -2
  482. package/node_modules/zod/v4/core/doc.js +7 -2
  483. package/node_modules/zod/v4/core/errors.cjs +21 -5
  484. package/node_modules/zod/v4/core/errors.js +2 -5
  485. package/node_modules/zod/v4/core/index.cjs +19 -0
  486. package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
  487. package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
  488. package/node_modules/zod/v4/core/json-schema-processors.cjs +215 -63
  489. package/node_modules/zod/v4/core/json-schema-processors.d.cts +17 -0
  490. package/node_modules/zod/v4/core/json-schema-processors.d.ts +17 -0
  491. package/node_modules/zod/v4/core/json-schema-processors.js +195 -64
  492. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  493. package/node_modules/zod/v4/core/memoizer.cjs +114 -23
  494. package/node_modules/zod/v4/core/memoizer.js +72 -23
  495. package/node_modules/zod/v4/core/parse.cjs +56 -16
  496. package/node_modules/zod/v4/core/parse.js +37 -16
  497. package/node_modules/zod/v4/core/regexes.cjs +29 -6
  498. package/node_modules/zod/v4/core/regexes.d.cts +2 -0
  499. package/node_modules/zod/v4/core/regexes.d.ts +2 -0
  500. package/node_modules/zod/v4/core/regexes.js +8 -4
  501. package/node_modules/zod/v4/core/registries.cjs +19 -0
  502. package/node_modules/zod/v4/core/schemas.cjs +331 -103
  503. package/node_modules/zod/v4/core/schemas.d.cts +43 -8
  504. package/node_modules/zod/v4/core/schemas.d.ts +43 -8
  505. package/node_modules/zod/v4/core/schemas.js +310 -102
  506. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  507. package/node_modules/zod/v4/core/to-json-schema.cjs +29 -7
  508. package/node_modules/zod/v4/core/to-json-schema.d.cts +7 -3
  509. package/node_modules/zod/v4/core/to-json-schema.d.ts +7 -3
  510. package/node_modules/zod/v4/core/to-json-schema.js +8 -7
  511. package/node_modules/zod/v4/core/util.cjs +181 -143
  512. package/node_modules/zod/v4/core/util.d.cts +25 -4
  513. package/node_modules/zod/v4/core/util.d.ts +25 -4
  514. package/node_modules/zod/v4/core/util.js +160 -143
  515. package/node_modules/zod/v4/core/versions.cjs +21 -2
  516. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  517. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  518. package/node_modules/zod/v4/core/versions.js +2 -2
  519. package/node_modules/zod/v4/core/visit.cjs +31 -0
  520. package/node_modules/zod/v4/core/visit.js +12 -0
  521. package/node_modules/zod/v4/index.cjs +19 -0
  522. package/node_modules/zod/v4/locales/ar.cjs +1 -0
  523. package/node_modules/zod/v4/locales/ar.js +1 -0
  524. package/node_modules/zod/v4/locales/az.cjs +1 -0
  525. package/node_modules/zod/v4/locales/az.js +1 -0
  526. package/node_modules/zod/v4/locales/be.cjs +1 -0
  527. package/node_modules/zod/v4/locales/be.js +1 -0
  528. package/node_modules/zod/v4/locales/bg.cjs +1 -0
  529. package/node_modules/zod/v4/locales/bg.js +1 -0
  530. package/node_modules/zod/v4/locales/bn.cjs +1 -0
  531. package/node_modules/zod/v4/locales/bn.js +1 -0
  532. package/node_modules/zod/v4/locales/ca.cjs +1 -0
  533. package/node_modules/zod/v4/locales/ca.js +1 -0
  534. package/node_modules/zod/v4/locales/ckb.cjs +1 -0
  535. package/node_modules/zod/v4/locales/ckb.js +1 -0
  536. package/node_modules/zod/v4/locales/cs.cjs +1 -0
  537. package/node_modules/zod/v4/locales/cs.js +1 -0
  538. package/node_modules/zod/v4/locales/da.cjs +1 -0
  539. package/node_modules/zod/v4/locales/da.js +1 -0
  540. package/node_modules/zod/v4/locales/de.cjs +1 -0
  541. package/node_modules/zod/v4/locales/de.js +1 -0
  542. package/node_modules/zod/v4/locales/el.cjs +1 -0
  543. package/node_modules/zod/v4/locales/el.js +1 -0
  544. package/node_modules/zod/v4/locales/en.cjs +1 -0
  545. package/node_modules/zod/v4/locales/en.js +1 -0
  546. package/node_modules/zod/v4/locales/eo.cjs +1 -0
  547. package/node_modules/zod/v4/locales/eo.js +1 -0
  548. package/node_modules/zod/v4/locales/es.cjs +1 -0
  549. package/node_modules/zod/v4/locales/es.js +1 -0
  550. package/node_modules/zod/v4/locales/fa.cjs +1 -0
  551. package/node_modules/zod/v4/locales/fa.js +1 -0
  552. package/node_modules/zod/v4/locales/fi.cjs +1 -0
  553. package/node_modules/zod/v4/locales/fi.js +1 -0
  554. package/node_modules/zod/v4/locales/fr-CA.cjs +1 -0
  555. package/node_modules/zod/v4/locales/fr-CA.js +1 -0
  556. package/node_modules/zod/v4/locales/fr.cjs +1 -0
  557. package/node_modules/zod/v4/locales/fr.js +1 -0
  558. package/node_modules/zod/v4/locales/gu.cjs +1 -0
  559. package/node_modules/zod/v4/locales/gu.js +1 -0
  560. package/node_modules/zod/v4/locales/he.cjs +1 -0
  561. package/node_modules/zod/v4/locales/he.js +1 -0
  562. package/node_modules/zod/v4/locales/hi.cjs +1 -0
  563. package/node_modules/zod/v4/locales/hi.js +1 -0
  564. package/node_modules/zod/v4/locales/hr.cjs +1 -0
  565. package/node_modules/zod/v4/locales/hr.js +1 -0
  566. package/node_modules/zod/v4/locales/hu.cjs +1 -0
  567. package/node_modules/zod/v4/locales/hu.js +1 -0
  568. package/node_modules/zod/v4/locales/hy.cjs +1 -0
  569. package/node_modules/zod/v4/locales/hy.js +1 -0
  570. package/node_modules/zod/v4/locales/id.cjs +1 -0
  571. package/node_modules/zod/v4/locales/id.js +1 -0
  572. package/node_modules/zod/v4/locales/index.cjs +22 -1
  573. package/node_modules/zod/v4/locales/index.d.cts +1 -0
  574. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  575. package/node_modules/zod/v4/locales/index.js +1 -0
  576. package/node_modules/zod/v4/locales/is.cjs +1 -0
  577. package/node_modules/zod/v4/locales/is.js +1 -0
  578. package/node_modules/zod/v4/locales/it.cjs +1 -0
  579. package/node_modules/zod/v4/locales/it.js +1 -0
  580. package/node_modules/zod/v4/locales/ja.cjs +1 -0
  581. package/node_modules/zod/v4/locales/ja.js +1 -0
  582. package/node_modules/zod/v4/locales/ka.cjs +1 -0
  583. package/node_modules/zod/v4/locales/ka.js +1 -0
  584. package/node_modules/zod/v4/locales/km.cjs +1 -0
  585. package/node_modules/zod/v4/locales/km.js +1 -0
  586. package/node_modules/zod/v4/locales/kn.cjs +1 -0
  587. package/node_modules/zod/v4/locales/kn.js +1 -0
  588. package/node_modules/zod/v4/locales/ko.cjs +1 -0
  589. package/node_modules/zod/v4/locales/ko.js +1 -0
  590. package/node_modules/zod/v4/locales/lt.cjs +1 -0
  591. package/node_modules/zod/v4/locales/lt.js +1 -0
  592. package/node_modules/zod/v4/locales/mk.cjs +1 -0
  593. package/node_modules/zod/v4/locales/mk.js +1 -0
  594. package/node_modules/zod/v4/locales/ms.cjs +1 -0
  595. package/node_modules/zod/v4/locales/ms.js +1 -0
  596. package/node_modules/zod/v4/locales/ne.cjs +1 -0
  597. package/node_modules/zod/v4/locales/ne.js +1 -0
  598. package/node_modules/zod/v4/locales/nl.cjs +1 -0
  599. package/node_modules/zod/v4/locales/nl.js +1 -0
  600. package/node_modules/zod/v4/locales/nn.cjs +1 -0
  601. package/node_modules/zod/v4/locales/nn.js +1 -0
  602. package/node_modules/zod/v4/locales/no.cjs +1 -0
  603. package/node_modules/zod/v4/locales/no.js +1 -0
  604. package/node_modules/zod/v4/locales/ota.cjs +1 -0
  605. package/node_modules/zod/v4/locales/ota.js +1 -0
  606. package/node_modules/zod/v4/locales/pl.cjs +1 -0
  607. package/node_modules/zod/v4/locales/pl.js +1 -0
  608. package/node_modules/zod/v4/locales/ps.cjs +1 -0
  609. package/node_modules/zod/v4/locales/ps.js +1 -0
  610. package/node_modules/zod/v4/locales/pt-BR.cjs +1 -0
  611. package/node_modules/zod/v4/locales/pt-BR.js +1 -0
  612. package/node_modules/zod/v4/locales/pt.cjs +1 -0
  613. package/node_modules/zod/v4/locales/pt.js +1 -0
  614. package/node_modules/zod/v4/locales/ro.cjs +1 -0
  615. package/node_modules/zod/v4/locales/ro.js +1 -0
  616. package/node_modules/zod/v4/locales/ru.cjs +1 -0
  617. package/node_modules/zod/v4/locales/ru.js +1 -0
  618. package/node_modules/zod/v4/locales/sk.cjs +1 -0
  619. package/node_modules/zod/v4/locales/sk.js +1 -0
  620. package/node_modules/zod/v4/locales/sl.cjs +1 -0
  621. package/node_modules/zod/v4/locales/sl.js +1 -0
  622. package/node_modules/zod/v4/locales/sv.cjs +1 -0
  623. package/node_modules/zod/v4/locales/sv.js +1 -0
  624. package/node_modules/zod/v4/locales/ta.cjs +1 -0
  625. package/node_modules/zod/v4/locales/ta.js +1 -0
  626. package/node_modules/zod/v4/locales/tg.cjs +143 -0
  627. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  628. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  629. package/node_modules/zod/v4/locales/tg.js +116 -0
  630. package/node_modules/zod/v4/locales/th.cjs +1 -0
  631. package/node_modules/zod/v4/locales/th.js +1 -0
  632. package/node_modules/zod/v4/locales/tk.cjs +1 -0
  633. package/node_modules/zod/v4/locales/tk.js +1 -0
  634. package/node_modules/zod/v4/locales/tr.cjs +1 -0
  635. package/node_modules/zod/v4/locales/tr.js +1 -0
  636. package/node_modules/zod/v4/locales/uk.cjs +1 -0
  637. package/node_modules/zod/v4/locales/uk.js +1 -0
  638. package/node_modules/zod/v4/locales/ur.cjs +1 -0
  639. package/node_modules/zod/v4/locales/ur.js +1 -0
  640. package/node_modules/zod/v4/locales/uz.cjs +1 -0
  641. package/node_modules/zod/v4/locales/uz.js +1 -0
  642. package/node_modules/zod/v4/locales/vi.cjs +1 -0
  643. package/node_modules/zod/v4/locales/vi.js +1 -0
  644. package/node_modules/zod/v4/locales/yo.cjs +1 -0
  645. package/node_modules/zod/v4/locales/yo.js +1 -0
  646. package/node_modules/zod/v4/locales/zh-CN.cjs +1 -0
  647. package/node_modules/zod/v4/locales/zh-CN.js +1 -0
  648. package/node_modules/zod/v4/locales/zh-TW.cjs +1 -0
  649. package/node_modules/zod/v4/locales/zh-TW.js +1 -0
  650. package/node_modules/zod/v4/mini/checks.cjs +20 -2
  651. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  652. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  653. package/node_modules/zod/v4/mini/checks.js +1 -1
  654. package/node_modules/zod/v4/mini/coerce.cjs +19 -0
  655. package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
  656. package/node_modules/zod/v4/mini/external.cjs +22 -1
  657. package/node_modules/zod/v4/mini/external.d.cts +1 -1
  658. package/node_modules/zod/v4/mini/external.d.ts +1 -1
  659. package/node_modules/zod/v4/mini/external.js +1 -1
  660. package/node_modules/zod/v4/mini/in-out.cjs +19 -0
  661. package/node_modules/zod/v4/mini/index.cjs +19 -0
  662. package/node_modules/zod/v4/mini/iso.cjs +19 -0
  663. package/node_modules/zod/v4/mini/parse.cjs +19 -0
  664. package/node_modules/zod/v4/mini/schemas.cjs +42 -4
  665. package/node_modules/zod/v4/mini/schemas.d.cts +9 -1
  666. package/node_modules/zod/v4/mini/schemas.d.ts +9 -1
  667. package/node_modules/zod/v4/mini/schemas.js +19 -2
  668. package/node_modules/zod/v4-mini/index.cjs +19 -0
  669. package/package.json +2 -2
  670. package/slingshot/index.js +151 -149
  671. package/node_modules/@types/node/ffi.d.ts +0 -486
  672. package/node_modules/@types/node/inspector/promises.d.ts +0 -35
  673. package/node_modules/@types/node/path/posix.d.ts +0 -8
  674. package/node_modules/@types/node/path/win32.d.ts +0 -8
  675. package/node_modules/@types/node/quic.d.ts +0 -2151
  676. package/node_modules/@types/node/stream/iter.d.ts +0 -452
  677. package/node_modules/@types/node/test/reporters.d.ts +0 -59
  678. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  679. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  680. package/node_modules/@types/node/ts5.7/index.d.ts +0 -118
  681. package/node_modules/@types/node/util/types.d.ts +0 -558
  682. package/node_modules/@types/node/vfs.d.ts +0 -210
  683. package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  684. package/node_modules/@types/node/web-globals/console.d.ts +0 -9
  685. package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  686. package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  687. package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  688. package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  689. package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  690. package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  691. package/node_modules/@types/node/web-globals/url.d.ts +0 -24
  692. package/node_modules/@types/node/zlib/iter.d.ts +0 -131
  693. package/node_modules/jose/dist/webapi/lib/base64.js +0 -20
  694. package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
  695. package/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
  696. package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
  697. package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
  698. package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
  699. package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
  700. package/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
  701. package/node_modules/jose/dist/webapi/lib/signing.js +0 -22
  702. package/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
  703. package/node_modules/undici-types/cache-interceptor.d.ts +0 -179
  704. package/node_modules/undici-types/client-stats.d.ts +0 -15
  705. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
  706. package/node_modules/undici-types/h2c-client.d.ts +0 -73
  707. package/node_modules/undici-types/mock-call-history.d.ts +0 -111
  708. package/node_modules/undici-types/round-robin-pool.d.ts +0 -39
  709. package/node_modules/undici-types/snapshot-agent.d.ts +0 -113
  710. package/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
  711. package/node_modules/undici-types/utility.d.ts +0 -7
@@ -1,3 +1,47 @@
1
+ /**
2
+ * The `node:sqlite` module facilitates working with SQLite databases.
3
+ * To access it:
4
+ *
5
+ * ```js
6
+ * import sqlite from 'node:sqlite';
7
+ * ```
8
+ *
9
+ * This module is only available under the `node:` scheme. The following will not
10
+ * work:
11
+ *
12
+ * ```js
13
+ * import sqlite from 'sqlite';
14
+ * ```
15
+ *
16
+ * The following example shows the basic usage of the `node:sqlite` module to open
17
+ * an in-memory database, write data to the database, and then read the data back.
18
+ *
19
+ * ```js
20
+ * import { DatabaseSync } from 'node:sqlite';
21
+ * const database = new DatabaseSync(':memory:');
22
+ *
23
+ * // Execute SQL statements from strings.
24
+ * database.exec(`
25
+ * CREATE TABLE data(
26
+ * key INTEGER PRIMARY KEY,
27
+ * value TEXT
28
+ * ) STRICT
29
+ * `);
30
+ * // Create a prepared statement to insert data into the database.
31
+ * const insert = database.prepare('INSERT INTO data (key, value) VALUES (?, ?)');
32
+ * // Execute the prepared statement with bound values.
33
+ * insert.run(1, 'hello');
34
+ * insert.run(2, 'world');
35
+ * // Create a prepared statement to read data from the database.
36
+ * const query = database.prepare('SELECT * FROM data ORDER BY key');
37
+ * // Execute the prepared statement and log the result set.
38
+ * console.log(query.all());
39
+ * // Prints: [ { key: 1, value: 'hello' }, { key: 2, value: 'world' } ]
40
+ * ```
41
+ * @since v22.5.0
42
+ * @experimental
43
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/sqlite.js)
44
+ */
1
45
  declare module "node:sqlite" {
2
46
  import { PathLike } from "node:fs";
3
47
  type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
@@ -48,68 +92,37 @@ declare module "node:sqlite" {
48
92
  * The [busy timeout](https://sqlite.org/c3ref/busy_timeout.html) in milliseconds. This is the maximum amount of
49
93
  * time that SQLite will wait for a database lock to be released before
50
94
  * returning an error.
51
- * @since v24.0.0
95
+ * @since v22.16.0
52
96
  * @default 0
53
97
  */
54
98
  timeout?: number | undefined;
55
99
  /**
56
100
  * If `true`, integer fields are read as JavaScript `BigInt` values. If `false`,
57
101
  * integer fields are read as JavaScript numbers.
58
- * @since v24.4.0
102
+ * @since v22.18.0
59
103
  * @default false
60
104
  */
61
105
  readBigInts?: boolean | undefined;
62
106
  /**
63
107
  * If `true`, query results are returned as arrays instead of objects.
64
- * @since v24.4.0
108
+ * @since v22.18.0
65
109
  * @default false
66
110
  */
67
111
  returnArrays?: boolean | undefined;
68
112
  /**
69
113
  * If `true`, allows binding named parameters without the prefix
70
114
  * character (e.g., `foo` instead of `:foo`).
71
- * @since v24.4.40
115
+ * @since v22.18.0
72
116
  * @default true
73
117
  */
74
118
  allowBareNamedParameters?: boolean | undefined;
75
119
  /**
76
120
  * If `true`, unknown named parameters are ignored when binding.
77
121
  * If `false`, an exception is thrown for unknown named parameters.
78
- * @since v24.4.40
122
+ * @since v22.18.0
79
123
  * @default false
80
124
  */
81
125
  allowUnknownNamedParameters?: boolean | undefined;
82
- /**
83
- * If `true`, enables the defensive flag. When the defensive flag is enabled,
84
- * language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
85
- * The defensive flag can also be set using `enableDefensive()`.
86
- * @since v25.1.0
87
- * @default true
88
- */
89
- defensive?: boolean | undefined;
90
- /**
91
- * Configuration for various SQLite limits. These limits
92
- * can be used to prevent excessive resource consumption when handling
93
- * potentially malicious input. See [Run-Time Limits](https://www.sqlite.org/c3ref/c_limit_attached.html) and [Limit Constants](https://www.sqlite.org/c3ref/limit.html)
94
- * in the SQLite documentation for details. Default values are determined by
95
- * SQLite's compile-time defaults and may vary depending on how SQLite was
96
- * built. The following properties are supported:
97
- * @since v25.8.0
98
- */
99
- limits?: NodeJS.PartialOptions<DatabaseLimits> | undefined;
100
- }
101
- interface DatabaseLimits {
102
- length: number;
103
- sqlLength: number;
104
- column: number;
105
- exprDepth: number;
106
- compoundSelect: number;
107
- vdbeOp: number;
108
- functionArg: number;
109
- attach: number;
110
- likePatternLength: number;
111
- variableNumber: number;
112
- triggerDepth: number;
113
126
  }
114
127
  interface CreateSessionOptions {
115
128
  /**
@@ -127,12 +140,8 @@ declare module "node:sqlite" {
127
140
  }
128
141
  interface ApplyChangesetOptions {
129
142
  /**
130
- * for each table affected by at least
131
- * one change in the changeset, the `filter` callback is invoked with the
132
- * table name as the first argument. If the return value is falsy, then no
133
- * attempt is made to apply any changes to the table.
134
- * Otherwise, if the return value is truthy or no `filter` callback is provided,
135
- * all changes related to the table are attempted.
143
+ * Skip changes that, when targeted table name is supplied to this function, return a truthy value.
144
+ * By default, all changes are attempted.
136
145
  * @since v22.12.0
137
146
  */
138
147
  filter?: ((tableName: string) => boolean) | undefined;
@@ -162,13 +171,6 @@ declare module "node:sqlite" {
162
171
  */
163
172
  onConflict?: ((conflictType: number) => number) | undefined;
164
173
  }
165
- interface DeserializeOptions {
166
- /**
167
- * Name of the database to deserialize into.
168
- * @default 'main'
169
- */
170
- dbName?: string | undefined;
171
- }
172
174
  interface FunctionOptions {
173
175
  /**
174
176
  * If `true`, the [`SQLITE_DETERMINISTIC`](https://www.sqlite.org/c3ref/c_deterministic.html) flag is
@@ -223,28 +225,6 @@ declare module "node:sqlite" {
223
225
  */
224
226
  inverse?: ((accumulator: T, ...args: SQLOutputValue[]) => T) | undefined;
225
227
  }
226
- interface PrepareOptions {
227
- /**
228
- * If `true`, integer fields are read as `BigInt`s.
229
- * @since v25.5.0
230
- */
231
- readBigInts?: boolean | undefined;
232
- /**
233
- * If `true`, results are returned as arrays.
234
- * @since v25.5.0
235
- */
236
- returnArrays?: boolean | undefined;
237
- /**
238
- * If `true`, allows binding named parameters without the prefix character.
239
- * @since v25.5.0
240
- */
241
- allowBareNamedParameters?: boolean | undefined;
242
- /**
243
- * If `true`, unknown named parameters are ignored.
244
- * @since v25.5.0
245
- */
246
- allowUnknownNamedParameters?: boolean | undefined;
247
- }
248
228
  /**
249
229
  * This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
250
230
  * exposed by this class execute synchronously.
@@ -286,7 +266,7 @@ declare module "node:sqlite" {
286
266
  *
287
267
  * db.prepare('SELECT sumint(y) as total FROM t3').get(); // { total: 21 }
288
268
  * ```
289
- * @since v24.0.0
269
+ * @since v22.16.0
290
270
  * @param name The name of the SQLite function to create.
291
271
  * @param options Function configuration settings.
292
272
  */
@@ -302,23 +282,10 @@ declare module "node:sqlite" {
302
282
  * Loads a shared library into the database connection. This method is a wrapper
303
283
  * around [`sqlite3_load_extension()`](https://www.sqlite.org/c3ref/load_extension.html). It is required to enable the
304
284
  * `allowExtension` option when constructing the `DatabaseSync` instance.
305
- *
306
- * ```js
307
- * import { DatabaseSync } from 'node:sqlite';
308
- * const database = new DatabaseSync(':memory:', { allowExtension: true });
309
- *
310
- * // Load using the entry point derived from the filename.
311
- * database.loadExtension('./decimal.dylib');
312
- *
313
- * // Override the entry point when the derived name does not match.
314
- * database.loadExtension('./base64.dylib', 'sqlite3_base64_init');
315
285
  * @since v22.13.0
316
286
  * @param path The path to the shared library to load.
317
- * @param entryPoint The name of the extension's entry-point function. When
318
- * omitted, SQLite derives the entry point from the shared library's filename;
319
- * pass this argument explicitly when the derived name does not match.
320
287
  */
321
- loadExtension(path: string, entryPoint?: string): void;
288
+ loadExtension(path: string): void;
322
289
  /**
323
290
  * Enables or disables the `loadExtension` SQL function, and the `loadExtension()`
324
291
  * method. When `allowExtension` is `false` when constructing, you cannot enable
@@ -327,17 +294,9 @@ declare module "node:sqlite" {
327
294
  * @param allow Whether to allow loading extensions.
328
295
  */
329
296
  enableLoadExtension(allow: boolean): void;
330
- /**
331
- * Enables or disables the defensive flag. When the defensive flag is active,
332
- * language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
333
- * See [`SQLITE_DBCONFIG_DEFENSIVE`](https://www.sqlite.org/c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive) in the SQLite documentation for details.
334
- * @since v25.1.0
335
- * @param active Whether to set the defensive flag.
336
- */
337
- enableDefensive(active: boolean): void;
338
297
  /**
339
298
  * This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html)
340
- * @since v24.0.0
299
+ * @since v22.16.0
341
300
  * @param dbName Name of the database. This can be `'main'` (the default primary database) or any other
342
301
  * database that has been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html) **Default:** `'main'`.
343
302
  * @returns The location of the database file. When using an in-memory database,
@@ -358,75 +317,18 @@ declare module "node:sqlite" {
358
317
  * @since v22.13.0
359
318
  * @param name The name of the SQLite function to create.
360
319
  * @param options Optional configuration settings for the function.
361
- * @param fn The JavaScript function to call when the SQLite function is
362
- * invoked. The return value of this function should be a valid SQLite data type:
363
- * see [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v26.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite). The result defaults to
364
- * `NULL` if the return value is `undefined`.
320
+ * @param func The JavaScript function to call when the SQLite
321
+ * function is invoked. The return value of this function should be a valid
322
+ * SQLite data type: see
323
+ * [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v22.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite).
324
+ * The result defaults to `NULL` if the return value is `undefined`.
365
325
  */
366
326
  function(
367
327
  name: string,
368
328
  options: FunctionOptions,
369
- fn: (...args: SQLOutputValue[]) => SQLInputValue,
370
- ): void;
371
- function(name: string, fn: (...args: SQLOutputValue[]) => SQLInputValue): void;
372
- /**
373
- * Sets an authorizer callback that SQLite will invoke whenever it attempts to
374
- * access data or modify the database schema through prepared statements.
375
- * This can be used to implement security policies, audit access, or restrict certain operations.
376
- * This method is a wrapper around [`sqlite3_set_authorizer()`](https://sqlite.org/c3ref/set_authorizer.html).
377
- *
378
- * When invoked, the callback receives five arguments:
379
- *
380
- * * `actionCode` {number} The type of operation being performed (e.g.,
381
- * `SQLITE_INSERT`, `SQLITE_UPDATE`, `SQLITE_SELECT`).
382
- * * `arg1` {string|null} The first argument (context-dependent, often a table name).
383
- * * `arg2` {string|null} The second argument (context-dependent, often a column name).
384
- * * `dbName` {string|null} The name of the database.
385
- * * `triggerOrView` {string|null} The name of the trigger or view causing the access.
386
- *
387
- * The callback must return one of the following constants:
388
- *
389
- * * `SQLITE_OK` - Allow the operation.
390
- * * `SQLITE_DENY` - Deny the operation (causes an error).
391
- * * `SQLITE_IGNORE` - Ignore the operation (silently skip).
392
- *
393
- * ```js
394
- * import { DatabaseSync, constants } from 'node:sqlite';
395
- * const db = new DatabaseSync(':memory:');
396
- *
397
- * // Set up an authorizer that denies all table creation
398
- * db.setAuthorizer((actionCode) => {
399
- * if (actionCode === constants.SQLITE_CREATE_TABLE) {
400
- * return constants.SQLITE_DENY;
401
- * }
402
- * return constants.SQLITE_OK;
403
- * });
404
- *
405
- * // This will work
406
- * db.prepare('SELECT 1').get();
407
- *
408
- * // This will throw an error due to authorization denial
409
- * try {
410
- * db.exec('CREATE TABLE blocked (id INTEGER)');
411
- * } catch (err) {
412
- * console.log('Operation blocked:', err.message);
413
- * }
414
- * ```
415
- * @since v24.10.0
416
- * @param callback The authorizer function to set, or `null` to
417
- * clear the current authorizer.
418
- */
419
- setAuthorizer(
420
- callback:
421
- | ((
422
- actionCode: number,
423
- arg1: string | null,
424
- arg2: string | null,
425
- dbName: string | null,
426
- triggerOrView: string | null,
427
- ) => number)
428
- | null,
329
+ func: (...args: SQLOutputValue[]) => SQLInputValue,
429
330
  ): void;
331
+ function(name: string, func: (...args: SQLOutputValue[]) => SQLInputValue): void;
430
332
  /**
431
333
  * Whether the database is currently open or not.
432
334
  * @since v22.15.0
@@ -435,191 +337,23 @@ declare module "node:sqlite" {
435
337
  /**
436
338
  * Whether the database is currently within a transaction. This method
437
339
  * is a wrapper around [`sqlite3_get_autocommit()`](https://sqlite.org/c3ref/get_autocommit.html).
438
- * @since v24.0.0
340
+ * @since v22.16.0
439
341
  */
440
342
  readonly isTransaction: boolean;
441
- /**
442
- * An object for getting and setting SQLite database limits at runtime.
443
- * Each property corresponds to an SQLite limit and can be read or written.
444
- *
445
- * ```js
446
- * const db = new DatabaseSync(':memory:');
447
- *
448
- * // Read current limit
449
- * console.log(db.limits.length);
450
- *
451
- * // Set a new limit
452
- * db.limits.sqlLength = 100000;
453
- *
454
- * // Reset a limit to its compile-time maximum
455
- * db.limits.sqlLength = Infinity;
456
- * ```
457
- *
458
- * Available properties: `length`, `sqlLength`, `column`, `exprDepth`,
459
- * `compoundSelect`, `vdbeOp`, `functionArg`, `attach`, `likePatternLength`,
460
- * `variableNumber`, `triggerDepth`.
461
- *
462
- * Setting a property to `Infinity` resets the limit to its compile-time maximum value.
463
- * @since v25.8.0
464
- */
465
- readonly limits: DatabaseLimits;
466
343
  /**
467
344
  * 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
468
345
  * the constructor. An exception is thrown if the database is already open.
469
346
  * @since v22.5.0
470
347
  */
471
348
  open(): void;
472
- /**
473
- * Serializes the database into a binary representation, returned as a
474
- * `Uint8Array`. This is useful for saving, cloning, or transferring an in-memory
475
- * database. This method is a wrapper around [`sqlite3_serialize()`](https://sqlite.org/c3ref/serialize.html).
476
- *
477
- * ```js
478
- * import { DatabaseSync } from 'node:sqlite';
479
- *
480
- * const db = new DatabaseSync(':memory:');
481
- * db.exec('CREATE TABLE t(key INTEGER PRIMARY KEY, value TEXT)');
482
- * db.exec("INSERT INTO t VALUES (1, 'hello')");
483
- * const buffer = db.serialize();
484
- * console.log(buffer.length); // Prints the byte length of the database
485
- * ```
486
- * @since v26.1.0
487
- * @param dbName Name of the database to serialize. This can be `'main'`
488
- * (the default primary database) or any other database that has been added with
489
- * [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html). **Default:** `'main'`.
490
- * @returns A binary representation of the database.
491
- */
492
- serialize(dbName?: string): NodeJS.NonSharedUint8Array;
493
- /**
494
- * Loads a serialized database into this connection, replacing the current
495
- * database. The deserialized database is writable. Existing prepared statements
496
- * are finalized before deserialization is attempted, even if the operation
497
- * subsequently fails. This method is a wrapper around
498
- * [`sqlite3_deserialize()`](https://sqlite.org/c3ref/deserialize.html).
499
- *
500
- * ```js
501
- * import { DatabaseSync } from 'node:sqlite';
502
- *
503
- * const original = new DatabaseSync(':memory:');
504
- * original.exec('CREATE TABLE t(key INTEGER PRIMARY KEY, value TEXT)');
505
- * original.exec("INSERT INTO t VALUES (1, 'hello')");
506
- * const buffer = original.serialize();
507
- * original.close();
508
- *
509
- * const clone = new DatabaseSync(':memory:');
510
- * clone.deserialize(buffer);
511
- * console.log(clone.prepare('SELECT value FROM t').get());
512
- * // Prints: { value: 'hello' }
513
- * ```
514
- * @since v26.1.0
515
- * @param buffer A binary representation of a database, such as the
516
- * output of `database.serialize()`.
517
- * @param options Optional configuration for the deserialization.
518
- */
519
- deserialize(buffer: Uint8Array, options?: DeserializeOptions): void;
520
349
  /**
521
350
  * Compiles a SQL statement into a [prepared statement](https://www.sqlite.org/c3ref/stmt.html). This method is a wrapper
522
351
  * around [`sqlite3_prepare_v2()`](https://www.sqlite.org/c3ref/prepare.html).
523
352
  * @since v22.5.0
524
353
  * @param sql A SQL string to compile to a prepared statement.
525
- * @param options Optional configuration for the prepared statement.
526
354
  * @return The prepared statement.
527
355
  */
528
- prepare(sql: string, options?: PrepareOptions): StatementSync;
529
- /**
530
- * Creates a new {@link SQLTagStore}, which is a Least Recently Used (LRU) cache
531
- * for storing prepared statements. This allows for the efficient reuse of
532
- * prepared statements by tagging them with a unique identifier.
533
- *
534
- * When a tagged SQL literal is executed, the `SQLTagStore` checks if a prepared
535
- * statement for the corresponding SQL query string already exists in the cache.
536
- * If it does, the cached statement is used. If not, a new prepared statement is
537
- * created, executed, and then stored in the cache for future use. This mechanism
538
- * helps to avoid the overhead of repeatedly parsing and preparing the same SQL
539
- * statements.
540
- *
541
- * Tagged statements bind the placeholder values from the template literal as
542
- * parameters to the underlying prepared statement. For example:
543
- *
544
- * ```js
545
- * sqlTagStore.get`SELECT ${value}`;
546
- * ```
547
- *
548
- * is equivalent to:
549
- *
550
- * ```js
551
- * db.prepare('SELECT ?').get(value);
552
- * ```
553
- *
554
- * However, in the first example, the tag store will cache the underlying prepared
555
- * statement for future use.
556
- *
557
- * > **Note:** The `${value}` syntax in tagged statements _binds_ a parameter to
558
- * > the prepared statement. This differs from its behavior in _untagged_ template
559
- * > literals, where it performs string interpolation.
560
- * >
561
- * > ```js
562
- * > // This a safe example of binding a parameter to a tagged statement.
563
- * > sqlTagStore.run`INSERT INTO t1 (id) VALUES (${id})`;
564
- * >
565
- * > // This is an *unsafe* example of an untagged template string.
566
- * > // `id` is interpolated into the query text as a string.
567
- * > // This can lead to SQL injection and data corruption.
568
- * > db.run(`INSERT INTO t1 (id) VALUES (${id})`);
569
- * > ```
570
- *
571
- * The tag store will match a statement from the cache if the query strings
572
- * (including the positions of any bound placeholders) are identical.
573
- *
574
- * ```js
575
- * // The following statements will match in the cache:
576
- * sqlTagStore.get`SELECT * FROM t1 WHERE id = ${id} AND active = 1`;
577
- * sqlTagStore.get`SELECT * FROM t1 WHERE id = ${12345} AND active = 1`;
578
- *
579
- * // The following statements will not match, as the query strings
580
- * // and bound placeholders differ:
581
- * sqlTagStore.get`SELECT * FROM t1 WHERE id = ${id} AND active = 1`;
582
- * sqlTagStore.get`SELECT * FROM t1 WHERE id = 12345 AND active = 1`;
583
- *
584
- * // The following statements will not match, as matches are case-sensitive:
585
- * sqlTagStore.get`SELECT * FROM t1 WHERE id = ${id} AND active = 1`;
586
- * sqlTagStore.get`select * from t1 where id = ${id} and active = 1`;
587
- * ```
588
- *
589
- * The only way of binding parameters in tagged statements is with the `${value}`
590
- * syntax. Do not add parameter binding placeholders (`?` etc.) to the SQL query
591
- * string itself.
592
- *
593
- * ```js
594
- * import { DatabaseSync } from 'node:sqlite';
595
- *
596
- * const db = new DatabaseSync(':memory:');
597
- * const sql = db.createSQLTagStore();
598
- *
599
- * db.exec('CREATE TABLE users (id INT, name TEXT)');
600
- *
601
- * // Using the 'run' method to insert data.
602
- * // The tagged literal is used to identify the prepared statement.
603
- * sql.run`INSERT INTO users VALUES (1, 'Alice')`;
604
- * sql.run`INSERT INTO users VALUES (2, 'Bob')`;
605
- *
606
- * // Using the 'get' method to retrieve a single row.
607
- * const name = 'Alice';
608
- * const user = sql.get`SELECT * FROM users WHERE name = ${name}`;
609
- * console.log(user); // { id: 1, name: 'Alice' }
610
- *
611
- * // Using the 'all' method to retrieve all rows.
612
- * const allUsers = sql.all`SELECT * FROM users ORDER BY id`;
613
- * console.log(allUsers);
614
- * // [
615
- * // { id: 1, name: 'Alice' },
616
- * // { id: 2, name: 'Bob' }
617
- * // ]
618
- * ```
619
- * @since v24.9.0
620
- * @returns A new SQL tag store for caching prepared statements.
621
- */
622
- createTagStore(maxSize?: number): SQLTagStore;
356
+ prepare(sql: string): StatementSync;
623
357
  /**
624
358
  * Creates and attaches a session to the database. This method is a wrapper around
625
359
  * [`sqlite3session_create()`](https://www.sqlite.org/session/sqlite3session_create.html) and
@@ -635,8 +369,6 @@ declare module "node:sqlite" {
635
369
  * [`sqlite3changeset_apply()`](https://www.sqlite.org/session/sqlite3changeset_apply.html).
636
370
  *
637
371
  * ```js
638
- * import { DatabaseSync } from 'node:sqlite';
639
- *
640
372
  * const sourceDb = new DatabaseSync(':memory:');
641
373
  * const targetDb = new DatabaseSync(':memory:');
642
374
  *
@@ -663,6 +395,7 @@ declare module "node:sqlite" {
663
395
  * Closes the database connection. If the database connection is already closed
664
396
  * then this is a no-op.
665
397
  * @since v22.15.0
398
+ * @experimental
666
399
  */
667
400
  [Symbol.dispose](): void;
668
401
  }
@@ -694,107 +427,6 @@ declare module "node:sqlite" {
694
427
  * [`sqlite3session_delete()`](https://www.sqlite.org/session/sqlite3session_delete.html).
695
428
  */
696
429
  close(): void;
697
- /**
698
- * Closes the session. If the session is already closed, does nothing.
699
- * @since v24.9.0
700
- */
701
- [Symbol.dispose](): void;
702
- }
703
- /**
704
- * This class represents a single LRU (Least Recently Used) cache for storing
705
- * prepared statements.
706
- *
707
- * Instances of this class are created via the `database.createTagStore()`
708
- * method, not by using a constructor. The store caches prepared statements based
709
- * on the provided SQL query string. When the same query is seen again, the store
710
- * retrieves the cached statement and safely applies the new values through
711
- * parameter binding, thereby preventing attacks like SQL injection.
712
- *
713
- * The cache has a maxSize that defaults to 1000 statements, but a custom size can
714
- * be provided (e.g., `database.createTagStore(100)`). All APIs exposed by this
715
- * class execute synchronously.
716
- * @since v24.9.0
717
- */
718
- interface SQLTagStore {
719
- /**
720
- * Executes the given SQL query and returns all resulting rows as an array of
721
- * objects.
722
- *
723
- * This function is intended to be used as a template literal tag, not to be
724
- * called directly.
725
- * @since v24.9.0
726
- * @param stringElements Template literal elements containing the SQL
727
- * query.
728
- * @param boundParameters Parameter values to be bound to placeholders in the template string.
729
- * @returns An array of objects representing the rows returned by the query.
730
- */
731
- all(
732
- stringElements: TemplateStringsArray,
733
- ...boundParameters: SQLInputValue[]
734
- ): Record<string, SQLOutputValue>[];
735
- /**
736
- * Executes the given SQL query and returns the first resulting row as an object.
737
- *
738
- * This function is intended to be used as a template literal tag, not to be
739
- * called directly.
740
- * @since v24.9.0
741
- * @param stringElements Template literal elements containing the SQL
742
- * query.
743
- * @param boundParameters Parameter values to be bound to placeholders in the template string.
744
- * @returns An object representing the first row returned by
745
- * the query, or `undefined` if no rows are returned.
746
- */
747
- get(
748
- stringElements: TemplateStringsArray,
749
- ...boundParameters: SQLInputValue[]
750
- ): Record<string, SQLOutputValue> | undefined;
751
- /**
752
- * Executes the given SQL query and returns an iterator over the resulting rows.
753
- *
754
- * This function is intended to be used as a template literal tag, not to be
755
- * called directly.
756
- * @since v24.9.0
757
- * @param stringElements Template literal elements containing the SQL
758
- * query.
759
- * @param boundParameters Parameter values to be bound to placeholders in the template string.
760
- * @returns An iterator that yields objects representing the rows returned by the query.
761
- */
762
- iterate(
763
- stringElements: TemplateStringsArray,
764
- ...boundParameters: SQLInputValue[]
765
- ): NodeJS.Iterator<Record<string, SQLOutputValue>>;
766
- /**
767
- * Executes the given SQL query, which is expected to not return any rows (e.g., INSERT, UPDATE, DELETE).
768
- *
769
- * This function is intended to be used as a template literal tag, not to be
770
- * called directly.
771
- * @since v24.9.0
772
- * @param stringElements Template literal elements containing the SQL
773
- * query.
774
- * @param boundParameters Parameter values to be bound to placeholders in the template string.
775
- * @returns An object containing information about the execution, including `changes` and `lastInsertRowid`.
776
- */
777
- run(stringElements: TemplateStringsArray, ...boundParameters: SQLInputValue[]): StatementResultingChanges;
778
- /**
779
- * A read-only property that returns the number of prepared statements currently in the cache.
780
- * @since v24.9.0
781
- */
782
- readonly size: number;
783
- /**
784
- * A read-only property that returns the maximum number of prepared statements the cache can hold.
785
- * @since v24.9.0
786
- */
787
- readonly capacity: number;
788
- /**
789
- * A read-only property that returns the `DatabaseSync` object associated with this `SQLTagStore`.
790
- * @since v24.9.0
791
- */
792
- readonly db: DatabaseSync;
793
- /**
794
- * Resets the LRU cache, clearing all stored prepared statements.
795
- * @since v24.9.0
796
- */
797
- clear(): void;
798
430
  }
799
431
  interface StatementColumnMetadata {
800
432
  /**
@@ -875,7 +507,7 @@ declare module "node:sqlite" {
875
507
  /**
876
508
  * This method is used to retrieve information about the columns returned by the
877
509
  * prepared statement.
878
- * @since v23.11.0
510
+ * @since v22.16.0
879
511
  * @returns An array of objects. Each object corresponds to a column
880
512
  * in the prepared statement, and contains the following properties:
881
513
  */
@@ -964,7 +596,7 @@ declare module "node:sqlite" {
964
596
  /**
965
597
  * When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead
966
598
  * of objects.
967
- * @since v24.0.0
599
+ * @since v22.16.0
968
600
  * @param enabled Enables or disables the return of query results as arrays.
969
601
  */
970
602
  setReturnArrays(enabled: boolean): void;
@@ -1038,14 +670,13 @@ declare module "node:sqlite" {
1038
670
  *
1039
671
  * console.log('Backup completed', totalPagesTransferred);
1040
672
  * ```
1041
- * @since v23.8.0
673
+ * @since v22.16.0
1042
674
  * @param sourceDb The database to backup. The source database must be open.
1043
675
  * @param path The path where the backup will be created. If the file already exists,
1044
676
  * the contents will be overwritten.
1045
677
  * @param options Optional configuration for the backup. The
1046
678
  * following properties are supported:
1047
- * @returns A promise that fulfills with the total number of backed-up pages upon completion, or rejects if an
1048
- * error occurs.
679
+ * @returns A promise that fulfills with the total number of backed-up pages upon completion, or rejects if an error occurs.
1049
680
  */
1050
681
  function backup(sourceDb: DatabaseSync, path: PathLike, options?: BackupOptions): Promise<number>;
1051
682
  /**
@@ -1087,54 +718,5 @@ declare module "node:sqlite" {
1087
718
  * @since v22.12.0
1088
719
  */
1089
720
  const SQLITE_CHANGESET_ABORT: number;
1090
- /**
1091
- * Deny the operation and cause an error to be returned.
1092
- * @since v24.10.0
1093
- */
1094
- const SQLITE_DENY: number;
1095
- /**
1096
- * Ignore the operation and continue as if it had never been requested.
1097
- * @since 24.10.0
1098
- */
1099
- const SQLITE_IGNORE: number;
1100
- /**
1101
- * Allow the operation to proceed normally.
1102
- * @since v24.10.0
1103
- */
1104
- const SQLITE_OK: number;
1105
- const SQLITE_CREATE_INDEX: number;
1106
- const SQLITE_CREATE_TABLE: number;
1107
- const SQLITE_CREATE_TEMP_INDEX: number;
1108
- const SQLITE_CREATE_TEMP_TABLE: number;
1109
- const SQLITE_CREATE_TEMP_TRIGGER: number;
1110
- const SQLITE_CREATE_TEMP_VIEW: number;
1111
- const SQLITE_CREATE_TRIGGER: number;
1112
- const SQLITE_CREATE_VIEW: number;
1113
- const SQLITE_DELETE: number;
1114
- const SQLITE_DROP_INDEX: number;
1115
- const SQLITE_DROP_TABLE: number;
1116
- const SQLITE_DROP_TEMP_INDEX: number;
1117
- const SQLITE_DROP_TEMP_TABLE: number;
1118
- const SQLITE_DROP_TEMP_TRIGGER: number;
1119
- const SQLITE_DROP_TEMP_VIEW: number;
1120
- const SQLITE_DROP_TRIGGER: number;
1121
- const SQLITE_DROP_VIEW: number;
1122
- const SQLITE_INSERT: number;
1123
- const SQLITE_PRAGMA: number;
1124
- const SQLITE_READ: number;
1125
- const SQLITE_SELECT: number;
1126
- const SQLITE_TRANSACTION: number;
1127
- const SQLITE_UPDATE: number;
1128
- const SQLITE_ATTACH: number;
1129
- const SQLITE_DETACH: number;
1130
- const SQLITE_ALTER_TABLE: number;
1131
- const SQLITE_REINDEX: number;
1132
- const SQLITE_ANALYZE: number;
1133
- const SQLITE_CREATE_VTABLE: number;
1134
- const SQLITE_DROP_VTABLE: number;
1135
- const SQLITE_FUNCTION: number;
1136
- const SQLITE_SAVEPOINT: number;
1137
- const SQLITE_COPY: number;
1138
- const SQLITE_RECURSIVE: number;
1139
721
  }
1140
722
  }