@rio-cloud/cdk-v2-constructs 8.2.0-alpha.0 → 8.2.1-alpha.0

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 (179) hide show
  1. package/.jsii +2 -2
  2. package/node_modules/@types/node/README.md +3 -3
  3. package/node_modules/@types/node/assert/strict.d.ts +105 -2
  4. package/node_modules/@types/node/assert.d.ts +211 -92
  5. package/node_modules/@types/node/async_hooks.d.ts +103 -19
  6. package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  7. package/node_modules/@types/node/buffer.d.ts +88 -516
  8. package/node_modules/@types/node/child_process.d.ts +167 -231
  9. package/node_modules/@types/node/cluster.d.ts +172 -26
  10. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  11. package/node_modules/@types/node/console.d.ts +66 -28
  12. package/node_modules/@types/node/constants.d.ts +14 -12
  13. package/node_modules/@types/node/crypto.d.ts +1458 -497
  14. package/node_modules/@types/node/dgram.d.ts +44 -30
  15. package/node_modules/@types/node/diagnostics_channel.d.ts +389 -4
  16. package/node_modules/@types/node/dns/promises.d.ts +120 -42
  17. package/node_modules/@types/node/dns.d.ts +209 -95
  18. package/node_modules/@types/node/domain.d.ts +14 -18
  19. package/node_modules/@types/node/events.d.ts +245 -113
  20. package/node_modules/@types/node/fs/promises.d.ts +194 -96
  21. package/node_modules/@types/node/fs.d.ts +695 -270
  22. package/node_modules/@types/node/globals.d.ts +97 -308
  23. package/node_modules/@types/node/globals.typedarray.d.ts +41 -0
  24. package/node_modules/@types/node/http.d.ts +363 -97
  25. package/node_modules/@types/node/http2.d.ts +684 -231
  26. package/node_modules/@types/node/https.d.ts +122 -87
  27. package/node_modules/@types/node/index.d.ts +24 -11
  28. package/node_modules/@types/node/inspector.d.ts +220 -2690
  29. package/node_modules/@types/node/inspector.generated.d.ts +4239 -0
  30. package/node_modules/@types/node/module.d.ts +705 -149
  31. package/node_modules/@types/node/net.d.ts +178 -54
  32. package/node_modules/@types/node/os.d.ts +47 -17
  33. package/node_modules/@types/node/package.json +22 -97
  34. package/node_modules/@types/node/path.d.ts +12 -3
  35. package/node_modules/@types/node/perf_hooks.d.ts +500 -97
  36. package/node_modules/@types/node/process.d.ts +657 -87
  37. package/node_modules/@types/node/punycode.d.ts +5 -5
  38. package/node_modules/@types/node/querystring.d.ts +24 -13
  39. package/node_modules/@types/node/readline/promises.d.ts +25 -14
  40. package/node_modules/@types/node/readline.d.ts +102 -41
  41. package/node_modules/@types/node/repl.d.ts +38 -30
  42. package/node_modules/@types/node/sea.d.ts +162 -0
  43. package/node_modules/@types/node/sqlite.d.ts +1040 -0
  44. package/node_modules/@types/node/stream/consumers.d.ts +33 -7
  45. package/node_modules/@types/node/stream/promises.d.ts +8 -1
  46. package/node_modules/@types/node/stream/web.d.ts +251 -28
  47. package/node_modules/@types/node/stream.d.ts +1060 -1055
  48. package/node_modules/@types/node/string_decoder.d.ts +8 -8
  49. package/node_modules/@types/node/test.d.ts +2133 -1166
  50. package/node_modules/@types/node/timers/promises.d.ts +31 -16
  51. package/node_modules/@types/node/timers.d.ts +159 -114
  52. package/node_modules/@types/node/tls.d.ts +232 -163
  53. package/node_modules/@types/node/trace_events.d.ts +43 -28
  54. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  55. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  56. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  57. package/node_modules/@types/node/ts5.6/index.d.ts +103 -0
  58. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  59. package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
  60. package/node_modules/@types/node/tty.d.ts +9 -9
  61. package/node_modules/@types/node/url.d.ts +236 -84
  62. package/node_modules/@types/node/util.d.ts +562 -412
  63. package/node_modules/@types/node/v8.d.ts +368 -21
  64. package/node_modules/@types/node/vm.d.ts +443 -149
  65. package/node_modules/@types/node/wasi.d.ts +62 -18
  66. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  67. package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
  68. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  69. package/node_modules/@types/node/web-globals/events.d.ts +97 -0
  70. package/node_modules/@types/node/web-globals/fetch.d.ts +62 -0
  71. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  72. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  73. package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
  74. package/node_modules/@types/node/worker_threads.d.ts +310 -107
  75. package/node_modules/@types/node/zlib.d.ts +301 -73
  76. package/node_modules/undici-types/LICENSE +21 -0
  77. package/node_modules/undici-types/agent.d.ts +13 -12
  78. package/node_modules/undici-types/api.d.ts +26 -26
  79. package/node_modules/undici-types/balanced-pool.d.ts +19 -7
  80. package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
  81. package/node_modules/undici-types/client-stats.d.ts +15 -0
  82. package/node_modules/undici-types/client.d.ts +26 -15
  83. package/node_modules/undici-types/connector.d.ts +2 -2
  84. package/node_modules/undici-types/cookies.d.ts +2 -0
  85. package/node_modules/undici-types/diagnostics-channel.d.ts +19 -12
  86. package/node_modules/undici-types/dispatcher.d.ts +148 -113
  87. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  88. package/node_modules/undici-types/errors.d.ts +79 -46
  89. package/node_modules/undici-types/eventsource.d.ts +66 -0
  90. package/node_modules/undici-types/fetch.d.ts +41 -39
  91. package/node_modules/undici-types/formdata.d.ts +8 -8
  92. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  93. package/node_modules/undici-types/global-origin.d.ts +5 -5
  94. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  95. package/node_modules/undici-types/handlers.d.ts +11 -5
  96. package/node_modules/undici-types/header.d.ts +157 -1
  97. package/node_modules/undici-types/index.d.ts +68 -43
  98. package/node_modules/undici-types/interceptors.d.ts +71 -3
  99. package/node_modules/undici-types/mock-agent.d.ts +36 -18
  100. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  101. package/node_modules/undici-types/mock-client.d.ts +6 -4
  102. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  103. package/node_modules/undici-types/mock-interceptor.d.ts +24 -23
  104. package/node_modules/undici-types/mock-pool.d.ts +6 -4
  105. package/node_modules/undici-types/package.json +1 -1
  106. package/node_modules/undici-types/patch.d.ts +0 -42
  107. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  108. package/node_modules/undici-types/pool.d.ts +21 -8
  109. package/node_modules/undici-types/proxy-agent.d.ts +5 -6
  110. package/node_modules/undici-types/readable.d.ts +24 -17
  111. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  112. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  113. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  114. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  115. package/node_modules/undici-types/util.d.ts +18 -0
  116. package/node_modules/undici-types/utility.d.ts +7 -0
  117. package/node_modules/undici-types/webidl.d.ts +157 -36
  118. package/node_modules/undici-types/websocket.d.ts +67 -12
  119. package/package.json +9 -60
  120. package/version.json +1 -1
  121. package/node_modules/@types/node/dom-events.d.ts +0 -122
  122. package/node_modules/@types/node/globals.global.d.ts +0 -1
  123. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  124. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  125. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  126. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  127. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  128. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  129. package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  130. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  131. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
  132. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
  133. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
  134. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  135. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  136. package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  137. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  138. package/node_modules/@types/node/ts4.8/events.d.ts +0 -796
  139. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1232
  140. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4289
  141. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -381
  142. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  143. package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
  144. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  145. package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  146. package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  147. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  148. package/node_modules/@types/node/ts4.8/module.d.ts +0 -287
  149. package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  150. package/node_modules/@types/node/ts4.8/os.d.ts +0 -477
  151. package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  152. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
  153. package/node_modules/@types/node/ts4.8/process.d.ts +0 -1532
  154. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  155. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  156. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  157. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  158. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  159. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  160. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  161. package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
  162. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  163. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  164. package/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
  165. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  166. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  167. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  168. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  169. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  170. package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  171. package/node_modules/@types/node/ts4.8/util.d.ts +0 -2186
  172. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  173. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -901
  174. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  175. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  176. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  177. package/node_modules/argparse/CHANGELOG.md +0 -216
  178. package/node_modules/undici-types/file.d.ts +0 -39
  179. package/node_modules/undici-types/filereader.d.ts +0 -54
package/.jsii CHANGED
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@pepperize/cdk-autoscaling-gitlab-runner": "^0.2.624",
25
- "aws-cdk-lib": "^2.254.0",
25
+ "aws-cdk-lib": "^2.259.0",
26
26
  "constructs": "^10.5.1",
27
27
  "datadog-cdk-constructs-v2": "^4.0.0"
28
28
  },
@@ -28278,5 +28278,5 @@
28278
28278
  }
28279
28279
  },
28280
28280
  "version": "0.0.0",
28281
- "fingerprint": "n2oDGzaFwzvuAk1eYD7xnv8ph+E+0SKBCklVqYad7WM="
28281
+ "fingerprint": "htSiH80vb8mZqAguG/U3h7juRKKLb/zChpLkJiDFqWQ="
28282
28282
  }
@@ -5,11 +5,11 @@
5
5
  This package contains type definitions for node (https://nodejs.org/).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v24.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 22 Nov 2023 00:24:48 GMT
11
+ * Last updated: Wed, 10 Jun 2026 22:15:09 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
15
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
15
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [David Junger](https://github.com/touffy), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Sebastian Silbermann](https://github.com/eps1lon), [Wilco Bakker](https://github.com/WilcoBakker), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), [Dmitry Semigradsky](https://github.com/Semigradsky), [René](https://github.com/Renegade334), and [Yagiz Nizipli](https://github.com/anonrig).
@@ -1,8 +1,111 @@
1
+ /**
2
+ * In strict assertion mode, non-strict methods behave like their corresponding
3
+ * strict methods. For example, `assert.deepEqual()` will behave like
4
+ * `assert.deepStrictEqual()`.
5
+ *
6
+ * In strict assertion mode, error messages for objects display a diff. In legacy
7
+ * assertion mode, error messages for objects display the objects, often truncated.
8
+ *
9
+ * To use strict assertion mode:
10
+ *
11
+ * ```js
12
+ * import { strict as assert } from 'node:assert';
13
+ * ```
14
+ *
15
+ * ```js
16
+ * import assert from 'node:assert/strict';
17
+ * ```
18
+ *
19
+ * Example error diff:
20
+ *
21
+ * ```js
22
+ * import { strict as assert } from 'node:assert';
23
+ *
24
+ * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
25
+ * // AssertionError: Expected inputs to be strictly deep-equal:
26
+ * // + actual - expected ... Lines skipped
27
+ * //
28
+ * // [
29
+ * // [
30
+ * // ...
31
+ * // 2,
32
+ * // + 3
33
+ * // - '3'
34
+ * // ],
35
+ * // ...
36
+ * // 5
37
+ * // ]
38
+ * ```
39
+ *
40
+ * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS`
41
+ * environment variables. This will also deactivate the colors in the REPL. For
42
+ * more on color support in terminal environments, read the tty
43
+ * [`getColorDepth()`](https://nodejs.org/docs/latest-v24.x/api/tty.html#writestreamgetcolordepthenv) documentation.
44
+ * @since v15.0.0
45
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/assert/strict.js)
46
+ */
1
47
  declare module "assert/strict" {
2
- import { strict } from "node:assert";
48
+ import {
49
+ Assert,
50
+ AssertionError,
51
+ AssertionErrorOptions,
52
+ AssertOptions,
53
+ AssertPredicate,
54
+ AssertStrict,
55
+ CallTracker,
56
+ CallTrackerCall,
57
+ CallTrackerReportInformation,
58
+ deepStrictEqual,
59
+ doesNotMatch,
60
+ doesNotReject,
61
+ doesNotThrow,
62
+ fail,
63
+ ifError,
64
+ match,
65
+ notDeepStrictEqual,
66
+ notStrictEqual,
67
+ ok,
68
+ partialDeepStrictEqual,
69
+ rejects,
70
+ strictEqual,
71
+ throws,
72
+ } from "node:assert";
73
+ function strict(value: unknown, message?: string | Error): asserts value;
74
+ namespace strict {
75
+ export {
76
+ Assert,
77
+ AssertionError,
78
+ AssertionErrorOptions,
79
+ AssertOptions,
80
+ AssertPredicate,
81
+ AssertStrict,
82
+ CallTracker,
83
+ CallTrackerCall,
84
+ CallTrackerReportInformation,
85
+ deepStrictEqual,
86
+ deepStrictEqual as deepEqual,
87
+ doesNotMatch,
88
+ doesNotReject,
89
+ doesNotThrow,
90
+ fail,
91
+ ifError,
92
+ match,
93
+ notDeepStrictEqual,
94
+ notDeepStrictEqual as notDeepEqual,
95
+ notStrictEqual,
96
+ notStrictEqual as notEqual,
97
+ ok,
98
+ partialDeepStrictEqual,
99
+ rejects,
100
+ strict,
101
+ strictEqual,
102
+ strictEqual as equal,
103
+ throws,
104
+ };
105
+ }
3
106
  export = strict;
4
107
  }
5
108
  declare module "node:assert/strict" {
6
- import { strict } from "node:assert";
109
+ import strict = require("assert/strict");
7
110
  export = strict;
8
111
  }
@@ -1,20 +1,166 @@
1
1
  /**
2
2
  * The `node:assert` module provides a set of assertion functions for verifying
3
3
  * invariants.
4
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/assert.js)
4
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/assert.js)
5
5
  */
6
6
  declare module "assert" {
7
+ import strict = require("assert/strict");
7
8
  /**
8
- * An alias of {@link ok}.
9
+ * An alias of {@link assert.ok}.
9
10
  * @since v0.5.9
10
11
  * @param value The input that is checked for being truthy.
11
12
  */
12
13
  function assert(value: unknown, message?: string | Error): asserts value;
14
+ const kOptions: unique symbol;
13
15
  namespace assert {
16
+ type AssertMethodNames =
17
+ | "deepEqual"
18
+ | "deepStrictEqual"
19
+ | "doesNotMatch"
20
+ | "doesNotReject"
21
+ | "doesNotThrow"
22
+ | "equal"
23
+ | "fail"
24
+ | "ifError"
25
+ | "match"
26
+ | "notDeepEqual"
27
+ | "notDeepStrictEqual"
28
+ | "notEqual"
29
+ | "notStrictEqual"
30
+ | "ok"
31
+ | "partialDeepStrictEqual"
32
+ | "rejects"
33
+ | "strictEqual"
34
+ | "throws";
35
+ interface AssertOptions {
36
+ /**
37
+ * If set to `'full'`, shows the full diff in assertion errors.
38
+ * @default 'simple'
39
+ */
40
+ diff?: "simple" | "full" | undefined;
41
+ /**
42
+ * If set to `true`, non-strict methods behave like their
43
+ * corresponding strict methods.
44
+ * @default true
45
+ */
46
+ strict?: boolean | undefined;
47
+ /**
48
+ * If set to `true`, skips prototype and constructor
49
+ * comparison in deep equality checks.
50
+ * @since v24.9.0
51
+ * @default false
52
+ */
53
+ skipPrototype?: boolean | undefined;
54
+ }
55
+ interface Assert extends Pick<typeof assert, AssertMethodNames> {
56
+ readonly [kOptions]: AssertOptions & { strict: false };
57
+ }
58
+ interface AssertStrict extends Pick<typeof strict, AssertMethodNames> {
59
+ readonly [kOptions]: AssertOptions & { strict: true };
60
+ }
14
61
  /**
15
- * Indicates the failure of an assertion. All errors thrown by the `node:assert`module will be instances of the `AssertionError` class.
62
+ * The `Assert` class allows creating independent assertion instances with custom options.
63
+ * @since v24.6.0
64
+ */
65
+ var Assert: {
66
+ /**
67
+ * Creates a new assertion instance. The `diff` option controls the verbosity of diffs in assertion error messages.
68
+ *
69
+ * ```js
70
+ * const { Assert } = require('node:assert');
71
+ * const assertInstance = new Assert({ diff: 'full' });
72
+ * assertInstance.deepStrictEqual({ a: 1 }, { a: 2 });
73
+ * // Shows a full diff in the error message.
74
+ * ```
75
+ *
76
+ * **Important**: When destructuring assertion methods from an `Assert` instance,
77
+ * the methods lose their connection to the instance's configuration options (such
78
+ * as `diff`, `strict`, and `skipPrototype` settings).
79
+ * The destructured methods will fall back to default behavior instead.
80
+ *
81
+ * ```js
82
+ * const myAssert = new Assert({ diff: 'full' });
83
+ *
84
+ * // This works as expected - uses 'full' diff
85
+ * myAssert.strictEqual({ a: 1 }, { b: { c: 1 } });
86
+ *
87
+ * // This loses the 'full' diff setting - falls back to default 'simple' diff
88
+ * const { strictEqual } = myAssert;
89
+ * strictEqual({ a: 1 }, { b: { c: 1 } });
90
+ * ```
91
+ *
92
+ * The `skipPrototype` option affects all deep equality methods:
93
+ *
94
+ * ```js
95
+ * class Foo {
96
+ * constructor(a) {
97
+ * this.a = a;
98
+ * }
99
+ * }
100
+ *
101
+ * class Bar {
102
+ * constructor(a) {
103
+ * this.a = a;
104
+ * }
105
+ * }
106
+ *
107
+ * const foo = new Foo(1);
108
+ * const bar = new Bar(1);
109
+ *
110
+ * // Default behavior - fails due to different constructors
111
+ * const assert1 = new Assert();
112
+ * assert1.deepStrictEqual(foo, bar); // AssertionError
113
+ *
114
+ * // Skip prototype comparison - passes if properties are equal
115
+ * const assert2 = new Assert({ skipPrototype: true });
116
+ * assert2.deepStrictEqual(foo, bar); // OK
117
+ * ```
118
+ *
119
+ * When destructured, methods lose access to the instance's `this` context and revert to default assertion behavior
120
+ * (diff: 'simple', non-strict mode).
121
+ * To maintain custom options when using destructured methods, avoid
122
+ * destructuring and call methods directly on the instance.
123
+ * @since v24.6.0
124
+ */
125
+ new(
126
+ options?: AssertOptions & { strict?: true | undefined },
127
+ ): AssertStrict;
128
+ new(
129
+ options: AssertOptions,
130
+ ): Assert;
131
+ };
132
+ interface AssertionErrorOptions {
133
+ /**
134
+ * If provided, the error message is set to this value.
135
+ */
136
+ message?: string | undefined;
137
+ /**
138
+ * The `actual` property on the error instance.
139
+ */
140
+ actual?: unknown;
141
+ /**
142
+ * The `expected` property on the error instance.
143
+ */
144
+ expected?: unknown;
145
+ /**
146
+ * The `operator` property on the error instance.
147
+ */
148
+ operator?: string | undefined;
149
+ /**
150
+ * If provided, the generated stack trace omits frames before this function.
151
+ */
152
+ stackStartFn?: Function | undefined;
153
+ /**
154
+ * If set to `'full'`, shows the full diff in assertion errors.
155
+ * @default 'simple'
156
+ */
157
+ diff?: "simple" | "full" | undefined;
158
+ }
159
+ /**
160
+ * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class.
16
161
  */
17
162
  class AssertionError extends Error {
163
+ constructor(options: AssertionErrorOptions);
18
164
  /**
19
165
  * Set to the `actual` argument for methods such as {@link assert.strictEqual()}.
20
166
  */
@@ -23,10 +169,6 @@ declare module "assert" {
23
169
  * Set to the `expected` argument for methods such as {@link assert.strictEqual()}.
24
170
  */
25
171
  expected: unknown;
26
- /**
27
- * Set to the passed in operator value.
28
- */
29
- operator: string;
30
172
  /**
31
173
  * Indicates if the message was auto-generated (`true`) or not.
32
174
  */
@@ -35,19 +177,10 @@ declare module "assert" {
35
177
  * Value is always `ERR_ASSERTION` to show that the error is an assertion error.
36
178
  */
37
179
  code: "ERR_ASSERTION";
38
- constructor(options?: {
39
- /** If provided, the error message is set to this value. */
40
- message?: string | undefined;
41
- /** The `actual` property on the error instance. */
42
- actual?: unknown | undefined;
43
- /** The `expected` property on the error instance. */
44
- expected?: unknown | undefined;
45
- /** The `operator` property on the error instance. */
46
- operator?: string | undefined;
47
- /** If provided, the generated stack trace omits frames before this function. */
48
- // eslint-disable-next-line @typescript-eslint/ban-types
49
- stackStartFn?: Function | undefined;
50
- });
180
+ /**
181
+ * Set to the passed in operator value.
182
+ */
183
+ operator: string;
51
184
  }
52
185
  /**
53
186
  * This feature is deprecated and will be removed in a future version.
@@ -76,10 +209,12 @@ declare module "assert" {
76
209
  * @since v14.2.0, v12.19.0
77
210
  * @param [fn='A no-op function']
78
211
  * @param [exact=1]
79
- * @return that wraps `fn`.
212
+ * @return A function that wraps `fn`.
80
213
  */
81
214
  calls(exact?: number): () => void;
82
- calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
215
+ calls(fn: undefined, exact?: number): () => void;
216
+ calls<Func extends (...args: any[]) => any>(fn: Func, exact?: number): Func;
217
+ calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func | (() => void);
83
218
  /**
84
219
  * Example:
85
220
  *
@@ -96,8 +231,7 @@ declare module "assert" {
96
231
  * [{ thisArg: undefined, arguments: [1, 2, 3] }]);
97
232
  * ```
98
233
  * @since v18.8.0, v16.18.0
99
- * @param fn
100
- * @return An Array with all the calls to a tracked function.
234
+ * @return An array with all the calls to a tracked function.
101
235
  */
102
236
  getCalls(fn: Function): CallTrackerCall[];
103
237
  /**
@@ -130,12 +264,11 @@ declare module "assert" {
130
264
  * // ]
131
265
  * ```
132
266
  * @since v14.2.0, v12.19.0
133
- * @return An Array of objects containing information about the wrapper functions returned by `calls`.
267
+ * @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}.
134
268
  */
135
269
  report(): CallTrackerReportInformation[];
136
270
  /**
137
- * Reset calls of the call tracker.
138
- * If a tracked function is passed as an argument, the calls will be reset for it.
271
+ * Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it.
139
272
  * If no arguments are passed, all tracked functions will be reset.
140
273
  *
141
274
  * ```js
@@ -158,7 +291,7 @@ declare module "assert" {
158
291
  */
159
292
  reset(fn?: Function): void;
160
293
  /**
161
- * Iterates through the list of functions passed to `tracker.calls()` and will throw an error for functions that
294
+ * Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that
162
295
  * have not been called the expected number of times.
163
296
  *
164
297
  * ```js
@@ -228,14 +361,14 @@ declare module "assert" {
228
361
  expected: unknown,
229
362
  message?: string | Error,
230
363
  operator?: string,
231
- // eslint-disable-next-line @typescript-eslint/ban-types
364
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
232
365
  stackStartFn?: Function,
233
366
  ): never;
234
367
  /**
235
- * Tests if `value` is truthy. It is equivalent to`assert.equal(!!value, true, message)`.
368
+ * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`.
236
369
  *
237
- * If `value` is not truthy, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is `undefined`, a default
238
- * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
370
+ * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default
371
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
239
372
  * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
240
373
  *
241
374
  * Be aware that in the `repl` the error message will be different to the one
@@ -317,8 +450,8 @@ declare module "assert" {
317
450
  * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
318
451
  * ```
319
452
  *
320
- * If the values are not equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default
321
- * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
453
+ * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
454
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
322
455
  * @since v0.1.21
323
456
  */
324
457
  function equal(actual: unknown, expected: unknown, message?: string | Error): void;
@@ -347,8 +480,8 @@ declare module "assert" {
347
480
  * // AssertionError: 1 != '1'
348
481
  * ```
349
482
  *
350
- * If the values are equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default error
351
- * message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
483
+ * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error
484
+ * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
352
485
  * @since v0.1.21
353
486
  */
354
487
  function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
@@ -414,8 +547,8 @@ declare module "assert" {
414
547
  * // OK
415
548
  * ```
416
549
  *
417
- * If the values are deeply equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a default
418
- * error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
550
+ * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
551
+ * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
419
552
  * instead of the `AssertionError`.
420
553
  * @since v0.1.21
421
554
  */
@@ -452,8 +585,8 @@ declare module "assert" {
452
585
  * // TypeError: Inputs are not identical
453
586
  * ```
454
587
  *
455
- * If the values are not strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
456
- * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
588
+ * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
589
+ * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
457
590
  * instead of the `AssertionError`.
458
591
  * @since v0.1.21
459
592
  */
@@ -477,8 +610,8 @@ declare module "assert" {
477
610
  * // OK
478
611
  * ```
479
612
  *
480
- * If the values are strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
481
- * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
613
+ * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
614
+ * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
482
615
  * instead of the `AssertionError`.
483
616
  * @since v0.1.21
484
617
  */
@@ -519,7 +652,7 @@ declare module "assert" {
519
652
  * using an object, it is also possible to use a regular expression, when
520
653
  * validating against a string property. See below for examples.
521
654
  *
522
- * If specified, `message` will be appended to the message provided by the`AssertionError` if the `fn` call fails to throw or in case the error validation
655
+ * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation
523
656
  * fails.
524
657
  *
525
658
  * Custom validation object/error instance:
@@ -649,8 +782,8 @@ declare module "assert" {
649
782
  * ```
650
783
  *
651
784
  * `error` cannot be a string. If a string is provided as the second
652
- * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Using the same
653
- * message as the thrown error message is going to result in an`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
785
+ * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same
786
+ * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
654
787
  * a string as the second argument gets considered:
655
788
  *
656
789
  * ```js
@@ -703,9 +836,9 @@ declare module "assert" {
703
836
  * adding a comment next to the specific code path that should not throw and keep
704
837
  * error messages as expressive as possible.
705
838
  *
706
- * When `assert.doesNotThrow()` is called, it will immediately call the `fn`function.
839
+ * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function.
707
840
  *
708
- * If an error is thrown and it is the same type as that specified by the `error`parameter, then an `AssertionError` is thrown. If the error is of a
841
+ * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a
709
842
  * different type, or if the `error` parameter is undefined, the error is
710
843
  * propagated back to the caller.
711
844
  *
@@ -741,7 +874,7 @@ declare module "assert" {
741
874
  * );
742
875
  * ```
743
876
  *
744
- * If an `AssertionError` is thrown and a value is provided for the `message`parameter, the value of `message` will be appended to the `AssertionError` message:
877
+ * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message:
745
878
  *
746
879
  * ```js
747
880
  * import assert from 'node:assert/strict';
@@ -762,7 +895,7 @@ declare module "assert" {
762
895
  /**
763
896
  * Throws `value` if `value` is not `undefined` or `null`. This is useful when
764
897
  * testing the `error` argument in callbacks. The stack trace contains all frames
765
- * from the error passed to `ifError()` including the potential new frames for`ifError()` itself.
898
+ * from the error passed to `ifError()` including the potential new frames for `ifError()` itself.
766
899
  *
767
900
  * ```js
768
901
  * import assert from 'node:assert/strict';
@@ -797,18 +930,18 @@ declare module "assert" {
797
930
  * calls the function and awaits the returned promise to complete. It will then
798
931
  * check that the promise is rejected.
799
932
  *
800
- * If `asyncFn` is a function and it throws an error synchronously,`assert.rejects()` will return a rejected `Promise` with that error. If the
801
- * function does not return a promise, `assert.rejects()` will return a rejected`Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases the error
802
- * handler is skipped.
933
+ * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
934
+ * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v24.x/api/errors.html#err_invalid_return_value)
935
+ * error. In both cases the error handler is skipped.
803
936
  *
804
937
  * Besides the async nature to await the completion behaves identically to {@link throws}.
805
938
  *
806
939
  * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
807
940
  * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
808
941
  * an object where each property will be tested for, or an instance of error where
809
- * each property will be tested for including the non-enumerable `message` and`name` properties.
942
+ * each property will be tested for including the non-enumerable `message` and `name` properties.
810
943
  *
811
- * If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject.
944
+ * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject.
812
945
  *
813
946
  * ```js
814
947
  * import assert from 'node:assert/strict';
@@ -850,10 +983,9 @@ declare module "assert" {
850
983
  * });
851
984
  * ```
852
985
  *
853
- * `error` cannot be a string. If a string is provided as the second
854
- * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Please read the
855
- * example in {@link throws} carefully if using a string as the second
856
- * argument gets considered.
986
+ * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to
987
+ * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the
988
+ * example in {@link throws} carefully if using a string as the second argument gets considered.
857
989
  * @since v10.0.0
858
990
  */
859
991
  function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
@@ -867,9 +999,9 @@ declare module "assert" {
867
999
  * calls the function and awaits the returned promise to complete. It will then
868
1000
  * check that the promise is not rejected.
869
1001
  *
870
- * If `asyncFn` is a function and it throws an error synchronously,`assert.doesNotReject()` will return a rejected `Promise` with that error. If
1002
+ * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
871
1003
  * the function does not return a promise, `assert.doesNotReject()` will return a
872
- * rejected `Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases
1004
+ * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v24.x/api/errors.html#err_invalid_return_value) error. In both cases
873
1005
  * the error handler is skipped.
874
1006
  *
875
1007
  * Using `assert.doesNotReject()` is actually not useful because there is little
@@ -929,10 +1061,10 @@ declare module "assert" {
929
1061
  * // OK
930
1062
  * ```
931
1063
  *
932
- * If the values do not match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
1064
+ * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
933
1065
  * to the value of the `message` parameter. If the `message` parameter is
934
1066
  * undefined, a default error message is assigned. If the `message` parameter is an
935
- * instance of an `Error` then it will be thrown instead of the `AssertionError`.
1067
+ * instance of an [Error](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
936
1068
  * @since v13.6.0, v12.16.0
937
1069
  */
938
1070
  function match(value: string, regExp: RegExp, message?: string | Error): void;
@@ -952,41 +1084,28 @@ declare module "assert" {
952
1084
  * // OK
953
1085
  * ```
954
1086
  *
955
- * If the values do match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
1087
+ * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
956
1088
  * to the value of the `message` parameter. If the `message` parameter is
957
1089
  * undefined, a default error message is assigned. If the `message` parameter is an
958
- * instance of an `Error` then it will be thrown instead of the `AssertionError`.
1090
+ * instance of an [Error](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
959
1091
  * @since v13.6.0, v12.16.0
960
1092
  */
961
1093
  function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
962
- const strict:
963
- & Omit<
964
- typeof assert,
965
- | "equal"
966
- | "notEqual"
967
- | "deepEqual"
968
- | "notDeepEqual"
969
- | "ok"
970
- | "strictEqual"
971
- | "deepStrictEqual"
972
- | "ifError"
973
- | "strict"
974
- >
975
- & {
976
- (value: unknown, message?: string | Error): asserts value;
977
- equal: typeof strictEqual;
978
- notEqual: typeof notStrictEqual;
979
- deepEqual: typeof deepStrictEqual;
980
- notDeepEqual: typeof notDeepStrictEqual;
981
- // Mapped types and assertion functions are incompatible?
982
- // TS2775: Assertions require every name in the call target
983
- // to be declared with an explicit type annotation.
984
- ok: typeof ok;
985
- strictEqual: typeof strictEqual;
986
- deepStrictEqual: typeof deepStrictEqual;
987
- ifError: typeof ifError;
988
- strict: typeof strict;
989
- };
1094
+ /**
1095
+ * Tests for partial deep equality between the `actual` and `expected` parameters.
1096
+ * "Deep" equality means that the enumerable "own" properties of child objects
1097
+ * are recursively evaluated also by the following rules. "Partial" equality means
1098
+ * that only properties that exist on the `expected` parameter are going to be
1099
+ * compared.
1100
+ *
1101
+ * This method always passes the same test cases as `assert.deepStrictEqual()`,
1102
+ * behaving as a super set of it.
1103
+ * @since v22.13.0
1104
+ */
1105
+ function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
1106
+ }
1107
+ namespace assert {
1108
+ export { strict };
990
1109
  }
991
1110
  export = assert;
992
1111
  }