cdk-ecr-deployment 3.0.110 → 3.0.112

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 (144) hide show
  1. package/.jsii +2 -2
  2. package/lib/index.js +5 -5
  3. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +1 -1
  5. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
  6. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +16 -9
  7. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
  8. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3 -3
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -2
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +17 -1
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +7 -7
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +3 -3
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +11 -15
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +19 -19
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +9 -9
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +17 -17
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +34 -15
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +86 -3
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -5
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +7 -7
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +44 -44
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +13 -13
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +22 -22
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
  50. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  51. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
  52. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  53. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +16 -9
  54. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
  55. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
  56. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
  57. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3 -3
  58. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  59. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
  60. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
  61. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
  62. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
  63. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -2
  64. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +17 -1
  65. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +7 -7
  66. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
  67. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
  68. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
  69. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +3 -3
  70. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +11 -15
  71. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
  72. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  73. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  74. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +19 -19
  75. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  76. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  77. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
  78. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +9 -9
  79. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
  80. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
  81. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +17 -17
  82. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +34 -15
  83. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
  84. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +86 -3
  85. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
  86. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  87. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -5
  88. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
  89. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  90. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +7 -7
  91. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +44 -44
  92. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
  93. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +13 -13
  94. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  95. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +22 -22
  96. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
  97. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  98. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
  99. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  100. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +16 -9
  101. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
  102. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
  103. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
  104. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3 -3
  105. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  106. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
  107. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
  108. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
  109. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
  110. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -2
  111. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +17 -1
  112. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +7 -7
  113. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
  114. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
  115. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
  116. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +3 -3
  117. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +11 -15
  118. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
  119. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  120. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  121. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +19 -19
  122. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  123. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  124. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
  125. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +9 -9
  126. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
  127. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
  128. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +17 -17
  129. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +34 -15
  130. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
  131. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +86 -3
  132. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
  133. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  134. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -5
  135. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
  136. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  137. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +7 -7
  138. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +44 -44
  139. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
  140. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +13 -13
  141. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  142. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +22 -22
  143. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
  144. package/package.json +1 -1
@@ -10,7 +10,7 @@
10
10
  * * [Resource Timing](https://www.w3.org/TR/resource-timing-2/)
11
11
  *
12
12
  * ```js
13
- * const { PerformanceObserver, performance } = require('node:perf_hooks');
13
+ * import { PerformanceObserver, performance } from 'node:perf_hooks';
14
14
  *
15
15
  * const obs = new PerformanceObserver((items) => {
16
16
  * console.log(items.getEntries()[0].duration);
@@ -355,10 +355,10 @@ declare module "perf_hooks" {
355
355
  * A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed.
356
356
  *
357
357
  * ```js
358
- * const {
358
+ * import {
359
359
  * performance,
360
360
  * PerformanceObserver,
361
- * } = require('node:perf_hooks');
361
+ * } from 'node:perf_hooks';
362
362
  *
363
363
  * function someFunction() {
364
364
  * console.log('hello world');
@@ -397,10 +397,10 @@ declare module "perf_hooks" {
397
397
  * with respect to `performanceEntry.startTime`.
398
398
  *
399
399
  * ```js
400
- * const {
400
+ * import {
401
401
  * performance,
402
402
  * PerformanceObserver,
403
- * } = require('node:perf_hooks');
403
+ * } from 'node:perf_hooks';
404
404
  *
405
405
  * const obs = new PerformanceObserver((perfObserverList, observer) => {
406
406
  * console.log(perfObserverList.getEntries());
@@ -440,10 +440,10 @@ declare module "perf_hooks" {
440
440
  * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`.
441
441
  *
442
442
  * ```js
443
- * const {
443
+ * import {
444
444
  * performance,
445
445
  * PerformanceObserver,
446
- * } = require('node:perf_hooks');
446
+ * } from 'node:perf_hooks';
447
447
  *
448
448
  * const obs = new PerformanceObserver((perfObserverList, observer) => {
449
449
  * console.log(perfObserverList.getEntriesByName('meow'));
@@ -491,10 +491,10 @@ declare module "perf_hooks" {
491
491
  * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`.
492
492
  *
493
493
  * ```js
494
- * const {
494
+ * import {
495
495
  * performance,
496
496
  * PerformanceObserver,
497
- * } = require('node:perf_hooks');
497
+ * } from 'node:perf_hooks';
498
498
  *
499
499
  * const obs = new PerformanceObserver((perfObserverList, observer) => {
500
500
  * console.log(perfObserverList.getEntriesByType('mark'));
@@ -544,10 +544,10 @@ declare module "perf_hooks" {
544
544
  * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`:
545
545
  *
546
546
  * ```js
547
- * const {
547
+ * import {
548
548
  * performance,
549
549
  * PerformanceObserver,
550
- * } = require('node:perf_hooks');
550
+ * } from 'node:perf_hooks';
551
551
  *
552
552
  * const obs = new PerformanceObserver((list, observer) => {
553
553
  * // Called once asynchronously. `list` contains three items.
@@ -816,7 +816,7 @@ declare module "perf_hooks" {
816
816
  * detect.
817
817
  *
818
818
  * ```js
819
- * const { monitorEventLoopDelay } = require('node:perf_hooks');
819
+ * import { monitorEventLoopDelay } from 'node:perf_hooks';
820
820
  * const h = monitorEventLoopDelay({ resolution: 20 });
821
821
  * h.enable();
822
822
  * // Do something.
@@ -865,7 +865,7 @@ declare module "perf_hooks" {
865
865
  } from "perf_hooks";
866
866
  global {
867
867
  /**
868
- * `PerformanceEntry` is a global reference for `require('node:perf_hooks').PerformanceEntry`
868
+ * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:perf_hooks'`
869
869
  * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceentry
870
870
  * @since v19.0.0
871
871
  */
@@ -875,7 +875,7 @@ declare module "perf_hooks" {
875
875
  } ? T
876
876
  : typeof _PerformanceEntry;
877
877
  /**
878
- * `PerformanceMark` is a global reference for `require('node:perf_hooks').PerformanceMark`
878
+ * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:perf_hooks'`
879
879
  * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performancemark
880
880
  * @since v19.0.0
881
881
  */
@@ -885,7 +885,7 @@ declare module "perf_hooks" {
885
885
  } ? T
886
886
  : typeof _PerformanceMark;
887
887
  /**
888
- * `PerformanceMeasure` is a global reference for `require('node:perf_hooks').PerformanceMeasure`
888
+ * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:perf_hooks'`
889
889
  * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performancemeasure
890
890
  * @since v19.0.0
891
891
  */
@@ -895,7 +895,7 @@ declare module "perf_hooks" {
895
895
  } ? T
896
896
  : typeof _PerformanceMeasure;
897
897
  /**
898
- * `PerformanceObserver` is a global reference for `require('node:perf_hooks').PerformanceObserver`
898
+ * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:perf_hooks'`
899
899
  * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceobserver
900
900
  * @since v19.0.0
901
901
  */
@@ -905,7 +905,7 @@ declare module "perf_hooks" {
905
905
  } ? T
906
906
  : typeof _PerformanceObserver;
907
907
  /**
908
- * `PerformanceObserverEntryList` is a global reference for `require('node:perf_hooks').PerformanceObserverEntryList`
908
+ * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:perf_hooks'`
909
909
  * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceobserverentrylist
910
910
  * @since v19.0.0
911
911
  */
@@ -915,7 +915,7 @@ declare module "perf_hooks" {
915
915
  } ? T
916
916
  : typeof _PerformanceObserverEntryList;
917
917
  /**
918
- * `PerformanceResourceTiming` is a global reference for `require('node:perf_hooks').PerformanceResourceTiming`
918
+ * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:perf_hooks'`
919
919
  * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceresourcetiming
920
920
  * @since v19.0.0
921
921
  */
@@ -925,7 +925,7 @@ declare module "perf_hooks" {
925
925
  } ? T
926
926
  : typeof _PerformanceResourceTiming;
927
927
  /**
928
- * `performance` is a global reference for `require('node:perf_hooks').performance`
928
+ * `performance` is a global reference for `import { performance } from 'node:perf_hooks'`
929
929
  * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performance
930
930
  * @since v16.0.0
931
931
  */
@@ -8,7 +8,7 @@
8
8
  * can be accessed using:
9
9
  *
10
10
  * ```js
11
- * const punycode = require('punycode');
11
+ * import punycode from 'node:punycode';
12
12
  * ```
13
13
  *
14
14
  * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is
@@ -3,7 +3,7 @@
3
3
  * query strings. It can be accessed using:
4
4
  *
5
5
  * ```js
6
- * const querystring = require('node:querystring');
6
+ * import querystring from 'node:querystring';
7
7
  * ```
8
8
  *
9
9
  * `querystring` is more performant than `URLSearchParams` but is not a
@@ -115,7 +115,7 @@ declare module "readline/promises" {
115
115
  * The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance.
116
116
  *
117
117
  * ```js
118
- * const readlinePromises = require('node:readline/promises');
118
+ * import readlinePromises from 'node:readline/promises';
119
119
  * const rl = readlinePromises.createInterface({
120
120
  * input: process.stdin,
121
121
  * output: process.stdout,
@@ -342,7 +342,7 @@ declare module "readline" {
342
342
  * The `readline.createInterface()` method creates a new `readline.Interface` instance.
343
343
  *
344
344
  * ```js
345
- * const readline = require('node:readline');
345
+ * import readline from 'node:readline';
346
346
  * const rl = readline.createInterface({
347
347
  * input: process.stdin,
348
348
  * output: process.stdout,
@@ -398,7 +398,7 @@ declare module "readline" {
398
398
  * implement a small command-line interface:
399
399
  *
400
400
  * ```js
401
- * const readline = require('node:readline');
401
+ * import readline from 'node:readline';
402
402
  * const rl = readline.createInterface({
403
403
  * input: process.stdin,
404
404
  * output: process.stdout,
@@ -430,8 +430,8 @@ declare module "readline" {
430
430
  * well as a `for await...of` loop:
431
431
  *
432
432
  * ```js
433
- * const fs = require('node:fs');
434
- * const readline = require('node:readline');
433
+ * import fs from 'node:fs';
434
+ * import readline from 'node:readline';
435
435
  *
436
436
  * async function processLineByLine() {
437
437
  * const fileStream = fs.createReadStream('input.txt');
@@ -455,8 +455,8 @@ declare module "readline" {
455
455
  * Alternatively, one could use the `'line'` event:
456
456
  *
457
457
  * ```js
458
- * const fs = require('node:fs');
459
- * const readline = require('node:readline');
458
+ * import fs from 'node:fs';
459
+ * import readline from 'node:readline';
460
460
  *
461
461
  * const rl = readline.createInterface({
462
462
  * input: fs.createReadStream('sample.txt'),
@@ -471,9 +471,9 @@ declare module "readline" {
471
471
  * Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied:
472
472
  *
473
473
  * ```js
474
- * const { once } = require('node:events');
475
- * const { createReadStream } = require('node:fs');
476
- * const { createInterface } = require('node:readline');
474
+ * import { once } from 'node:events';
475
+ * import { createReadStream } from 'node:fs';
476
+ * import { createInterface } from 'node:readline';
477
477
  *
478
478
  * (async function processLineByLine() {
479
479
  * try {
@@ -4,7 +4,7 @@
4
4
  * applications. It can be accessed using:
5
5
  *
6
6
  * ```js
7
- * const repl = require('node:repl');
7
+ * import repl from 'node:repl';
8
8
  * ```
9
9
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/repl.js)
10
10
  */
@@ -130,7 +130,7 @@ declare module "repl" {
130
130
  * or directly using the JavaScript `new` keyword.
131
131
  *
132
132
  * ```js
133
- * const repl = require('node:repl');
133
+ * import repl from 'node:repl';
134
134
  *
135
135
  * const options = { useColors: true };
136
136
  *
@@ -257,7 +257,7 @@ declare module "repl" {
257
257
  * The following example shows two new commands added to the REPL instance:
258
258
  *
259
259
  * ```js
260
- * const repl = require('node:repl');
260
+ * import repl from 'node:repl';
261
261
  *
262
262
  * const replServer = repl.start({ prompt: '> ' });
263
263
  * replServer.defineCommand('sayhello', {
@@ -407,7 +407,7 @@ declare module "repl" {
407
407
  * If `options` is a string, then it specifies the input prompt:
408
408
  *
409
409
  * ```js
410
- * const repl = require('node:repl');
410
+ * import repl from 'node:repl';
411
411
  *
412
412
  * // a Unix style prompt
413
413
  * repl.start('$ ');
@@ -10,7 +10,7 @@
10
10
  * work:
11
11
  *
12
12
  * ```js
13
- * import sqlite from 'sqlite';
13
+ * import sqlite from 'node:sqlite';
14
14
  * ```
15
15
  *
16
16
  * The following example shows the basic usage of the `node:sqlite` module to open
@@ -418,7 +418,7 @@ declare module "stream/web" {
418
418
  global {
419
419
  interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {}
420
420
  /**
421
- * `ByteLengthQueuingStrategy` class is a global reference for `require('stream/web').ByteLengthQueuingStrategy`.
421
+ * `ByteLengthQueuingStrategy` class is a global reference for `import { ByteLengthQueuingStrategy } from 'node:stream/web'`.
422
422
  * https://nodejs.org/api/globals.html#class-bytelengthqueuingstrategy
423
423
  * @since v18.0.0
424
424
  */
@@ -428,7 +428,7 @@ declare module "stream/web" {
428
428
 
429
429
  interface CompressionStream extends _CompressionStream {}
430
430
  /**
431
- * `CompressionStream` class is a global reference for `require('stream/web').CompressionStream`.
431
+ * `CompressionStream` class is a global reference for `import { CompressionStream } from 'node:stream/web'`.
432
432
  * https://nodejs.org/api/globals.html#class-compressionstream
433
433
  * @since v18.0.0
434
434
  */
@@ -448,7 +448,7 @@ declare module "stream/web" {
448
448
 
449
449
  interface CountQueuingStrategy extends _CountQueuingStrategy {}
450
450
  /**
451
- * `CountQueuingStrategy` class is a global reference for `require('stream/web').CountQueuingStrategy`.
451
+ * `CountQueuingStrategy` class is a global reference for `import { CountQueuingStrategy } from 'node:stream/web'`.
452
452
  * https://nodejs.org/api/globals.html#class-countqueuingstrategy
453
453
  * @since v18.0.0
454
454
  */
@@ -457,7 +457,7 @@ declare module "stream/web" {
457
457
 
458
458
  interface DecompressionStream extends _DecompressionStream {}
459
459
  /**
460
- * `DecompressionStream` class is a global reference for `require('stream/web').DecompressionStream`.
460
+ * `DecompressionStream` class is a global reference for `import { DecompressionStream } from 'node:stream/web'`.
461
461
  * https://nodejs.org/api/globals.html#class-decompressionstream
462
462
  * @since v18.0.0
463
463
  */
@@ -477,7 +477,7 @@ declare module "stream/web" {
477
477
 
478
478
  interface ReadableByteStreamController extends _ReadableByteStreamController {}
479
479
  /**
480
- * `ReadableByteStreamController` class is a global reference for `require('stream/web').ReadableByteStreamController`.
480
+ * `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
481
481
  * https://nodejs.org/api/globals.html#class-readablebytestreamcontroller
482
482
  * @since v18.0.0
483
483
  */
@@ -487,7 +487,7 @@ declare module "stream/web" {
487
487
 
488
488
  interface ReadableStream<R = any> extends _ReadableStream<R> {}
489
489
  /**
490
- * `ReadableStream` class is a global reference for `require('stream/web').ReadableStream`.
490
+ * `ReadableStream` class is a global reference for `import { ReadableStream } from 'node:stream/web'`.
491
491
  * https://nodejs.org/api/globals.html#class-readablestream
492
492
  * @since v18.0.0
493
493
  */
@@ -496,7 +496,7 @@ declare module "stream/web" {
496
496
 
497
497
  interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {}
498
498
  /**
499
- * `ReadableStreamBYOBReader` class is a global reference for `require('stream/web').ReadableStreamBYOBReader`.
499
+ * `ReadableStreamBYOBReader` class is a global reference for `import { ReadableStreamBYOBReader } from 'node:stream/web'`.
500
500
  * https://nodejs.org/api/globals.html#class-readablestreambyobreader
501
501
  * @since v18.0.0
502
502
  */
@@ -506,7 +506,7 @@ declare module "stream/web" {
506
506
 
507
507
  interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {}
508
508
  /**
509
- * `ReadableStreamBYOBRequest` class is a global reference for `require('stream/web').ReadableStreamBYOBRequest`.
509
+ * `ReadableStreamBYOBRequest` class is a global reference for `import { ReadableStreamBYOBRequest } from 'node:stream/web'`.
510
510
  * https://nodejs.org/api/globals.html#class-readablestreambyobrequest
511
511
  * @since v18.0.0
512
512
  */
@@ -516,7 +516,7 @@ declare module "stream/web" {
516
516
 
517
517
  interface ReadableStreamDefaultController<R = any> extends _ReadableStreamDefaultController<R> {}
518
518
  /**
519
- * `ReadableStreamDefaultController` class is a global reference for `require('stream/web').ReadableStreamDefaultController`.
519
+ * `ReadableStreamDefaultController` class is a global reference for `import { ReadableStreamDefaultController } from 'node:stream/web'`.
520
520
  * https://nodejs.org/api/globals.html#class-readablestreamdefaultcontroller
521
521
  * @since v18.0.0
522
522
  */
@@ -526,7 +526,7 @@ declare module "stream/web" {
526
526
 
527
527
  interface ReadableStreamDefaultReader<R = any> extends _ReadableStreamDefaultReader<R> {}
528
528
  /**
529
- * `ReadableStreamDefaultReader` class is a global reference for `require('stream/web').ReadableStreamDefaultReader`.
529
+ * `ReadableStreamDefaultReader` class is a global reference for `import { ReadableStreamDefaultReader } from 'node:stream/web'`.
530
530
  * https://nodejs.org/api/globals.html#class-readablestreamdefaultreader
531
531
  * @since v18.0.0
532
532
  */
@@ -536,7 +536,7 @@ declare module "stream/web" {
536
536
 
537
537
  interface TextDecoderStream extends _TextDecoderStream {}
538
538
  /**
539
- * `TextDecoderStream` class is a global reference for `require('stream/web').TextDecoderStream`.
539
+ * `TextDecoderStream` class is a global reference for `import { TextDecoderStream } from 'node:stream/web'`.
540
540
  * https://nodejs.org/api/globals.html#class-textdecoderstream
541
541
  * @since v18.0.0
542
542
  */
@@ -545,7 +545,7 @@ declare module "stream/web" {
545
545
 
546
546
  interface TextEncoderStream extends _TextEncoderStream {}
547
547
  /**
548
- * `TextEncoderStream` class is a global reference for `require('stream/web').TextEncoderStream`.
548
+ * `TextEncoderStream` class is a global reference for `import { TextEncoderStream } from 'node:stream/web'`.
549
549
  * https://nodejs.org/api/globals.html#class-textencoderstream
550
550
  * @since v18.0.0
551
551
  */
@@ -554,7 +554,7 @@ declare module "stream/web" {
554
554
 
555
555
  interface TransformStream<I = any, O = any> extends _TransformStream<I, O> {}
556
556
  /**
557
- * `TransformStream` class is a global reference for `require('stream/web').TransformStream`.
557
+ * `TransformStream` class is a global reference for `import { TransformStream } from 'node:stream/web'`.
558
558
  * https://nodejs.org/api/globals.html#class-transformstream
559
559
  * @since v18.0.0
560
560
  */
@@ -563,7 +563,7 @@ declare module "stream/web" {
563
563
 
564
564
  interface TransformStreamDefaultController<O = any> extends _TransformStreamDefaultController<O> {}
565
565
  /**
566
- * `TransformStreamDefaultController` class is a global reference for `require('stream/web').TransformStreamDefaultController`.
566
+ * `TransformStreamDefaultController` class is a global reference for `import { TransformStreamDefaultController } from 'node:stream/web'`.
567
567
  * https://nodejs.org/api/globals.html#class-transformstreamdefaultcontroller
568
568
  * @since v18.0.0
569
569
  */
@@ -573,7 +573,7 @@ declare module "stream/web" {
573
573
 
574
574
  interface WritableStream<W = any> extends _WritableStream<W> {}
575
575
  /**
576
- * `WritableStream` class is a global reference for `require('stream/web').WritableStream`.
576
+ * `WritableStream` class is a global reference for `import { WritableStream } from 'node:stream/web'`.
577
577
  * https://nodejs.org/api/globals.html#class-writablestream
578
578
  * @since v18.0.0
579
579
  */
@@ -582,7 +582,7 @@ declare module "stream/web" {
582
582
 
583
583
  interface WritableStreamDefaultController extends _WritableStreamDefaultController {}
584
584
  /**
585
- * `WritableStreamDefaultController` class is a global reference for `require('stream/web').WritableStreamDefaultController`.
585
+ * `WritableStreamDefaultController` class is a global reference for `import { WritableStreamDefaultController } from 'node:stream/web'`.
586
586
  * https://nodejs.org/api/globals.html#class-writablestreamdefaultcontroller
587
587
  * @since v18.0.0
588
588
  */
@@ -592,7 +592,7 @@ declare module "stream/web" {
592
592
 
593
593
  interface WritableStreamDefaultWriter<W = any> extends _WritableStreamDefaultWriter<W> {}
594
594
  /**
595
- * `WritableStreamDefaultWriter` class is a global reference for `require('stream/web').WritableStreamDefaultWriter`.
595
+ * `WritableStreamDefaultWriter` class is a global reference for `import { WritableStreamDefaultWriter } from 'node:stream/web'`.
596
596
  * https://nodejs.org/api/globals.html#class-writablestreamdefaultwriter
597
597
  * @since v18.0.0
598
598
  */
@@ -10,7 +10,7 @@
10
10
  * To access the `node:stream` module:
11
11
  *
12
12
  * ```js
13
- * const stream = require('node:stream');
13
+ * import stream from 'node:stream';
14
14
  * ```
15
15
  *
16
16
  * The `node:stream` module is useful for creating new types of stream instances.
@@ -303,7 +303,7 @@ declare module "stream" {
303
303
  * the method does nothing.
304
304
  *
305
305
  * ```js
306
- * const fs = require('node:fs');
306
+ * import fs from 'node:fs';
307
307
  * const readable = getReadableStreamSomehow();
308
308
  * const writable = fs.createWriteStream('file.txt');
309
309
  * // All the data from readable goes into 'file.txt',
@@ -341,7 +341,7 @@ declare module "stream" {
341
341
  * // Pull off a header delimited by \n\n.
342
342
  * // Use unshift() if we get too much.
343
343
  * // Call the callback with (error, header, stream).
344
- * const { StringDecoder } = require('node:string_decoder');
344
+ * import { StringDecoder } from 'node:string_decoder';
345
345
  * function parseHeader(stream, callback) {
346
346
  * stream.on('error', callback);
347
347
  * stream.on('readable', onReadable);
@@ -399,8 +399,8 @@ declare module "stream" {
399
399
  * libraries.
400
400
  *
401
401
  * ```js
402
- * const { OldReader } = require('./old-api-module.js');
403
- * const { Readable } = require('node:stream');
402
+ * import { OldReader } from './old-api-module.js';
403
+ * import { Readable } from 'node:stream';
404
404
  * const oreader = new OldReader();
405
405
  * const myReader = new Readable().wrap(oreader);
406
406
  *
@@ -806,7 +806,7 @@ declare module "stream" {
806
806
  *
807
807
  * ```js
808
808
  * // Write 'hello, ' and then end with 'world!'.
809
- * const fs = require('node:fs');
809
+ * import fs from 'node:fs';
810
810
  * const file = fs.createWriteStream('example.txt');
811
811
  * file.write('hello, ');
812
812
  * file.end('world!');
@@ -1250,6 +1250,25 @@ declare module "stream" {
1250
1250
  removeListener(event: "unpipe", listener: (src: Readable) => void): this;
1251
1251
  removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
1252
1252
  }
1253
+ /**
1254
+ * The utility function `duplexPair` returns an Array with two items,
1255
+ * each being a `Duplex` stream connected to the other side:
1256
+ *
1257
+ * ```js
1258
+ * const [ sideA, sideB ] = duplexPair();
1259
+ * ```
1260
+ *
1261
+ * Whatever is written to one stream is made readable on the other. It provides
1262
+ * behavior analogous to a network connection, where the data written by the client
1263
+ * becomes readable by the server, and vice-versa.
1264
+ *
1265
+ * The Duplex streams are symmetrical; one or the other may be used without any
1266
+ * difference in behavior.
1267
+ * @param options A value to pass to both {@link Duplex} constructors,
1268
+ * to set options such as buffering.
1269
+ * @since v22.6.0
1270
+ */
1271
+ function duplexPair(options?: DuplexOptions): [Duplex, Duplex];
1253
1272
  type TransformCallback = (error?: Error | null, data?: any) => void;
1254
1273
  interface TransformOptions extends DuplexOptions {
1255
1274
  construct?(this: Transform, callback: (error?: Error | null) => void): void;
@@ -1304,7 +1323,7 @@ declare module "stream" {
1304
1323
  * stream, and `controller.error(new AbortError())` for webstreams.
1305
1324
  *
1306
1325
  * ```js
1307
- * const fs = require('node:fs');
1326
+ * import fs from 'node:fs';
1308
1327
  *
1309
1328
  * const controller = new AbortController();
1310
1329
  * const read = addAbortSignal(
@@ -1398,8 +1417,8 @@ declare module "stream" {
1398
1417
  * or has experienced an error or a premature close event.
1399
1418
  *
1400
1419
  * ```js
1401
- * const { finished } = require('node:stream');
1402
- * const fs = require('node:fs');
1420
+ * import { finished } from 'node:stream';
1421
+ * import fs from 'node:fs';
1403
1422
  *
1404
1423
  * const rs = fs.createReadStream('archive.tar');
1405
1424
  *
@@ -1482,9 +1501,9 @@ declare module "stream" {
1482
1501
  * properly cleaning up and provide a callback when the pipeline is complete.
1483
1502
  *
1484
1503
  * ```js
1485
- * const { pipeline } = require('node:stream');
1486
- * const fs = require('node:fs');
1487
- * const zlib = require('node:zlib');
1504
+ * import { pipeline } from 'node:stream';
1505
+ * import fs from 'node:fs';
1506
+ * import zlib from 'node:zlib';
1488
1507
  *
1489
1508
  * // Use the pipeline API to easily pipe a series of streams
1490
1509
  * // together and get notified when the pipeline is fully done.
@@ -1524,9 +1543,9 @@ declare module "stream" {
1524
1543
  * See the example below:
1525
1544
  *
1526
1545
  * ```js
1527
- * const fs = require('node:fs');
1528
- * const http = require('node:http');
1529
- * const { pipeline } = require('node:stream');
1546
+ * import fs from 'node:fs';
1547
+ * import http from 'node:http';
1548
+ * import { pipeline } from 'node:stream';
1530
1549
  *
1531
1550
  * const server = http.createServer((req, res) => {
1532
1551
  * const fileStream = fs.createReadStream('./fileNotExist.txt');
@@ -4,13 +4,13 @@
4
4
  * characters. It can be accessed using:
5
5
  *
6
6
  * ```js
7
- * const { StringDecoder } = require('node:string_decoder');
7
+ * import { StringDecoder } from 'node:string_decoder';
8
8
  * ```
9
9
  *
10
10
  * The following example shows the basic use of the `StringDecoder` class.
11
11
  *
12
12
  * ```js
13
- * const { StringDecoder } = require('node:string_decoder');
13
+ * import { StringDecoder } from 'node:string_decoder';
14
14
  * const decoder = new StringDecoder('utf8');
15
15
  *
16
16
  * const cent = Buffer.from([0xC2, 0xA2]);
@@ -29,7 +29,7 @@
29
29
  * symbol (`€`) are written over three separate operations:
30
30
  *
31
31
  * ```js
32
- * const { StringDecoder } = require('node:string_decoder');
32
+ * import { StringDecoder } from 'node:string_decoder';
33
33
  * const decoder = new StringDecoder('utf8');
34
34
  *
35
35
  * decoder.write(Buffer.from([0xE2]));