cdk-common 2.0.1351 → 2.0.1353

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 (168) hide show
  1. package/.jsii +38 -2
  2. package/API.md +36 -0
  3. package/lib/main.js +1 -1
  4. package/lib/managed-policies.d.ts +7 -1
  5. package/lib/managed-policies.js +7 -1
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/assert/strict.d.ts +5 -11
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +9 -169
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +8 -8
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.buffer.d.ts +1 -7
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +44 -168
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +16 -64
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +240 -332
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/console.d.ts +49 -351
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/constants.d.ts +3 -4
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +279 -1631
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +15 -51
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/dns/promises.d.ts +3 -3
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +131 -132
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/domain.d.ts +13 -17
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +869 -791
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +7 -8
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +417 -455
  25. package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +6 -26
  26. package/node_modules/@types/concat-stream/node_modules/@types/node/globals.typedarray.d.ts +60 -0
  27. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +263 -254
  28. package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +528 -804
  29. package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +59 -239
  30. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +15 -1
  31. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector/promises.d.ts +41 -0
  32. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +6 -59
  33. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.generated.d.ts +3 -10
  34. package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +47 -122
  35. package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +63 -184
  36. package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +6 -6
  37. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  38. package/node_modules/@types/concat-stream/node_modules/@types/node/path/posix.d.ts +8 -0
  39. package/node_modules/@types/concat-stream/node_modules/@types/node/path/win32.d.ts +8 -0
  40. package/node_modules/@types/concat-stream/node_modules/@types/node/path.d.ts +120 -133
  41. package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +282 -643
  42. package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +156 -128
  43. package/node_modules/@types/concat-stream/node_modules/@types/node/punycode.d.ts +5 -5
  44. package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +4 -4
  45. package/node_modules/@types/concat-stream/node_modules/@types/node/quic.d.ts +910 -0
  46. package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +3 -3
  47. package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +67 -120
  48. package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +75 -98
  49. package/node_modules/@types/concat-stream/node_modules/@types/node/sea.d.ts +1 -1
  50. package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +2 -2
  51. package/node_modules/@types/concat-stream/node_modules/@types/node/stream/consumers.d.ts +10 -10
  52. package/node_modules/@types/concat-stream/node_modules/@types/node/stream/promises.d.ts +136 -15
  53. package/node_modules/@types/concat-stream/node_modules/@types/node/stream/web.d.ts +176 -453
  54. package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +555 -478
  55. package/node_modules/@types/concat-stream/node_modules/@types/node/string_decoder.d.ts +4 -4
  56. package/node_modules/@types/concat-stream/node_modules/@types/node/test/reporters.d.ts +96 -0
  57. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +80 -180
  58. package/node_modules/@types/concat-stream/node_modules/@types/node/timers/promises.d.ts +4 -4
  59. package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +4 -130
  60. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +102 -177
  61. package/node_modules/@types/concat-stream/node_modules/@types/node/trace_events.d.ts +9 -9
  62. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -7
  63. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +15 -1
  64. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +15 -1
  65. package/node_modules/@types/concat-stream/node_modules/@types/node/tty.d.ts +58 -16
  66. package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +54 -592
  67. package/node_modules/@types/concat-stream/node_modules/@types/node/util/types.d.ts +558 -0
  68. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +120 -792
  69. package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +32 -5
  70. package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +13 -13
  71. package/node_modules/@types/concat-stream/node_modules/@types/node/wasi.d.ts +4 -4
  72. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
  73. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  74. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/console.d.ts +9 -0
  75. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/crypto.d.ts +7 -0
  76. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  77. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/events.d.ts +9 -0
  78. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
  79. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  80. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  81. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  82. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/streams.d.ts +93 -0
  83. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  84. package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/url.d.ts +24 -0
  85. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +176 -358
  86. package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +8 -71
  87. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  88. package/node_modules/@types/form-data/node_modules/@types/node/assert/strict.d.ts +5 -11
  89. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +9 -169
  90. package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +8 -8
  91. package/node_modules/@types/form-data/node_modules/@types/node/buffer.buffer.d.ts +1 -7
  92. package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +44 -168
  93. package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +16 -64
  94. package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +240 -332
  95. package/node_modules/@types/form-data/node_modules/@types/node/console.d.ts +49 -351
  96. package/node_modules/@types/form-data/node_modules/@types/node/constants.d.ts +3 -4
  97. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +279 -1631
  98. package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +15 -51
  99. package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  100. package/node_modules/@types/form-data/node_modules/@types/node/dns/promises.d.ts +3 -3
  101. package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +131 -132
  102. package/node_modules/@types/form-data/node_modules/@types/node/domain.d.ts +13 -17
  103. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +869 -791
  104. package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +7 -8
  105. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +417 -455
  106. package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +6 -26
  107. package/node_modules/@types/form-data/node_modules/@types/node/globals.typedarray.d.ts +60 -0
  108. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +263 -254
  109. package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +528 -804
  110. package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +59 -239
  111. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +15 -1
  112. package/node_modules/@types/form-data/node_modules/@types/node/inspector/promises.d.ts +41 -0
  113. package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +6 -59
  114. package/node_modules/@types/form-data/node_modules/@types/node/inspector.generated.d.ts +3 -10
  115. package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +47 -122
  116. package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +63 -184
  117. package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +6 -6
  118. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  119. package/node_modules/@types/form-data/node_modules/@types/node/path/posix.d.ts +8 -0
  120. package/node_modules/@types/form-data/node_modules/@types/node/path/win32.d.ts +8 -0
  121. package/node_modules/@types/form-data/node_modules/@types/node/path.d.ts +120 -133
  122. package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +282 -643
  123. package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +156 -128
  124. package/node_modules/@types/form-data/node_modules/@types/node/punycode.d.ts +5 -5
  125. package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +4 -4
  126. package/node_modules/@types/form-data/node_modules/@types/node/quic.d.ts +910 -0
  127. package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +3 -3
  128. package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +67 -120
  129. package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +75 -98
  130. package/node_modules/@types/form-data/node_modules/@types/node/sea.d.ts +1 -1
  131. package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +2 -2
  132. package/node_modules/@types/form-data/node_modules/@types/node/stream/consumers.d.ts +10 -10
  133. package/node_modules/@types/form-data/node_modules/@types/node/stream/promises.d.ts +136 -15
  134. package/node_modules/@types/form-data/node_modules/@types/node/stream/web.d.ts +176 -453
  135. package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +555 -478
  136. package/node_modules/@types/form-data/node_modules/@types/node/string_decoder.d.ts +4 -4
  137. package/node_modules/@types/form-data/node_modules/@types/node/test/reporters.d.ts +96 -0
  138. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +80 -180
  139. package/node_modules/@types/form-data/node_modules/@types/node/timers/promises.d.ts +4 -4
  140. package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +4 -130
  141. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +102 -177
  142. package/node_modules/@types/form-data/node_modules/@types/node/trace_events.d.ts +9 -9
  143. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -7
  144. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +15 -1
  145. package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +15 -1
  146. package/node_modules/@types/form-data/node_modules/@types/node/tty.d.ts +58 -16
  147. package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +54 -592
  148. package/node_modules/@types/form-data/node_modules/@types/node/util/types.d.ts +558 -0
  149. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +120 -792
  150. package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +32 -5
  151. package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +13 -13
  152. package/node_modules/@types/form-data/node_modules/@types/node/wasi.d.ts +4 -4
  153. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
  154. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  155. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/console.d.ts +9 -0
  156. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/crypto.d.ts +7 -0
  157. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  158. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/events.d.ts +9 -0
  159. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
  160. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  161. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  162. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  163. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/streams.d.ts +93 -0
  164. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  165. package/node_modules/@types/form-data/node_modules/@types/node/web-globals/url.d.ts +24 -0
  166. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +176 -358
  167. package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +8 -71
  168. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @since v0.3.7
3
3
  */
4
- declare module "module" {
4
+ declare module "node:module" {
5
5
  import { URL } from "node:url";
6
6
  class Module {
7
7
  constructor(id: string, parent?: Module);
@@ -30,7 +30,7 @@ declare module "module" {
30
30
  /**
31
31
  * The following constants are returned as the `status` field in the object returned by
32
32
  * {@link enableCompileCache} to indicate the result of the attempt to enable the
33
- * [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache).
33
+ * [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache).
34
34
  * @since v22.8.0
35
35
  */
36
36
  namespace compileCacheStatus {
@@ -62,6 +62,24 @@ declare module "module" {
62
62
  const DISABLED: number;
63
63
  }
64
64
  }
65
+ interface EnableCompileCacheOptions {
66
+ /**
67
+ * Optional. Directory to store the compile cache. If not specified,
68
+ * the directory specified by the `NODE_COMPILE_CACHE=dir` environment variable
69
+ * will be used if it's set, or `path.join(os.tmpdir(), 'node-compile-cache')`
70
+ * otherwise.
71
+ * @since v25.0.0
72
+ */
73
+ directory?: string | undefined;
74
+ /**
75
+ * Optional. If `true`, enables portable compile cache so that
76
+ * the cache can be reused even if the project directory is moved. This is a best-effort
77
+ * feature. If not specified, it will depend on whether the environment variable
78
+ * `NODE_COMPILE_CACHE_PORTABLE=1` is set.
79
+ * @since v25.0.0
80
+ */
81
+ portable?: boolean | undefined;
82
+ }
65
83
  interface EnableCompileCacheResult {
66
84
  /**
67
85
  * One of the {@link constants.compileCacheStatus}
@@ -81,25 +99,21 @@ declare module "module" {
81
99
  directory?: string;
82
100
  }
83
101
  /**
84
- * Enable [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache)
102
+ * Enable [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache)
85
103
  * in the current Node.js instance.
86
104
  *
87
- * If `cacheDir` is not specified, Node.js will either use the directory specified by the
88
- * `NODE_COMPILE_CACHE=dir` environment variable if it's set, or use
89
- * `path.join(os.tmpdir(), 'node-compile-cache')` otherwise. For general use cases, it's
90
- * recommended to call `module.enableCompileCache()` without specifying the `cacheDir`,
91
- * so that the directory can be overridden by the `NODE_COMPILE_CACHE` environment
92
- * variable when necessary.
105
+ * For general use cases, it's recommended to call `module.enableCompileCache()` without
106
+ * specifying the `options.directory`, so that the directory can be overridden by the
107
+ * `NODE_COMPILE_CACHE` environment variable when necessary.
93
108
  *
94
- * Since compile cache is supposed to be a quiet optimization that is not required for the
95
- * application to be functional, this method is designed to not throw any exception when the
96
- * compile cache cannot be enabled. Instead, it will return an object containing an error
97
- * message in the `message` field to aid debugging.
98
- * If compile cache is enabled successfully, the `directory` field in the returned object
99
- * contains the path to the directory where the compile cache is stored. The `status`
100
- * field in the returned object would be one of the `module.constants.compileCacheStatus`
109
+ * Since compile cache is supposed to be a optimization that is not mission critical, this
110
+ * method is designed to not throw any exception when the compile cache cannot be enabled.
111
+ * Instead, it will return an object containing an error message in the `message` field to
112
+ * aid debugging. If compile cache is enabled successfully, the `directory` field in the
113
+ * returned object contains the path to the directory where the compile cache is stored. The
114
+ * `status` field in the returned object would be one of the `module.constants.compileCacheStatus`
101
115
  * values to indicate the result of the attempt to enable the
102
- * [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache).
116
+ * [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache).
103
117
  *
104
118
  * This method only affects the current Node.js instance. To enable it in child worker threads,
105
119
  * either call this method in child worker threads too, or set the
@@ -107,12 +121,11 @@ declare module "module" {
107
121
  * be inherited into the child workers. The directory can be obtained either from the
108
122
  * `directory` field returned by this method, or with {@link getCompileCacheDir}.
109
123
  * @since v22.8.0
110
- * @param cacheDir Optional path to specify the directory where the compile cache
111
- * will be stored/retrieved.
124
+ * @param options Optional. If a string is passed, it is considered to be `options.directory`.
112
125
  */
113
- function enableCompileCache(cacheDir?: string): EnableCompileCacheResult;
126
+ function enableCompileCache(options?: string | EnableCompileCacheOptions): EnableCompileCacheResult;
114
127
  /**
115
- * Flush the [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache)
128
+ * Flush the [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache)
116
129
  * accumulated from modules already loaded
117
130
  * in the current Node.js instance to disk. This returns after all the flushing
118
131
  * file system operations come to an end, no matter they succeed or not. If there
@@ -123,7 +136,7 @@ declare module "module" {
123
136
  function flushCompileCache(): void;
124
137
  /**
125
138
  * @since v22.8.0
126
- * @return Path to the [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache)
139
+ * @return Path to the [module compile cache](https://nodejs.org/docs/latest-v25.x/api/module.html#module-compile-cache)
127
140
  * directory if it is enabled, or `undefined` otherwise.
128
141
  */
129
142
  function getCompileCacheDir(): string | undefined;
@@ -194,7 +207,7 @@ declare module "module" {
194
207
  */
195
208
  data?: Data | undefined;
196
209
  /**
197
- * [Transferable objects](https://nodejs.org/docs/latest-v24.x/api/worker_threads.html#portpostmessagevalue-transferlist)
210
+ * [Transferable objects](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html#portpostmessagevalue-transferlist)
198
211
  * to be passed into the `initialize` hook.
199
212
  */
200
213
  transferList?: any[] | undefined;
@@ -203,10 +216,10 @@ declare module "module" {
203
216
  /**
204
217
  * Register a module that exports hooks that customize Node.js module
205
218
  * resolution and loading behavior. See
206
- * [Customization hooks](https://nodejs.org/docs/latest-v24.x/api/module.html#customization-hooks).
219
+ * [Customization hooks](https://nodejs.org/docs/latest-v25.x/api/module.html#customization-hooks).
207
220
  *
208
221
  * This feature requires `--allow-worker` if used with the
209
- * [Permission Model](https://nodejs.org/docs/latest-v24.x/api/permissions.html#permission-model).
222
+ * [Permission Model](https://nodejs.org/docs/latest-v25.x/api/permissions.html#permission-model).
210
223
  * @since v20.6.0, v18.19.0
211
224
  * @param specifier Customization hooks to be registered; this should be
212
225
  * the same string that would be passed to `import()`, except that if it is
@@ -222,12 +235,12 @@ declare module "module" {
222
235
  function register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
223
236
  interface RegisterHooksOptions {
224
237
  /**
225
- * See [load hook](https://nodejs.org/docs/latest-v24.x/api/module.html#loadurl-context-nextload).
238
+ * See [load hook](https://nodejs.org/docs/latest-v25.x/api/module.html#loadurl-context-nextload).
226
239
  * @default undefined
227
240
  */
228
241
  load?: LoadHookSync | undefined;
229
242
  /**
230
- * See [resolve hook](https://nodejs.org/docs/latest-v24.x/api/module.html#resolvespecifier-context-nextresolve).
243
+ * See [resolve hook](https://nodejs.org/docs/latest-v25.x/api/module.html#resolvespecifier-context-nextresolve).
231
244
  * @default undefined
232
245
  */
233
246
  resolve?: ResolveHookSync | undefined;
@@ -239,7 +252,7 @@ declare module "module" {
239
252
  deregister(): void;
240
253
  }
241
254
  /**
242
- * Register [hooks](https://nodejs.org/docs/latest-v24.x/api/module.html#customization-hooks)
255
+ * Register [hooks](https://nodejs.org/docs/latest-v25.x/api/module.html#customization-hooks)
243
256
  * that customize Node.js module resolution and loading behavior.
244
257
  * @since v22.15.0
245
258
  * @experimental
@@ -270,9 +283,9 @@ declare module "module" {
270
283
  * with `vm.runInContext()` or `vm.compileFunction()`.
271
284
  * By default, it will throw an error if the code contains TypeScript features
272
285
  * that require transformation such as `Enums`,
273
- * see [type-stripping](https://nodejs.org/docs/latest-v24.x/api/typescript.md#type-stripping) for more information.
286
+ * see [type-stripping](https://nodejs.org/docs/latest-v25.x/api/typescript.md#type-stripping) for more information.
274
287
  * When mode is `'transform'`, it also transforms TypeScript features to JavaScript,
275
- * see [transform TypeScript features](https://nodejs.org/docs/latest-v24.x/api/typescript.md#typescript-features) for more information.
288
+ * see [transform TypeScript features](https://nodejs.org/docs/latest-v25.x/api/typescript.md#typescript-features) for more information.
276
289
  * When mode is `'strip'`, source maps are not generated, because locations are preserved.
277
290
  * If `sourceMap` is provided, when mode is `'strip'`, an error will be thrown.
278
291
  *
@@ -623,94 +636,6 @@ declare module "module" {
623
636
  function wrap(script: string): string;
624
637
  }
625
638
  global {
626
- interface ImportMeta {
627
- /**
628
- * The directory name of the current module.
629
- *
630
- * This is the same as the `path.dirname()` of the `import.meta.filename`.
631
- *
632
- * > **Caveat**: only present on `file:` modules.
633
- * @since v21.2.0, v20.11.0
634
- */
635
- dirname: string;
636
- /**
637
- * The full absolute path and filename of the current module, with
638
- * symlinks resolved.
639
- *
640
- * This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
641
- *
642
- * > **Caveat** only local modules support this property. Modules not using the
643
- * > `file:` protocol will not provide it.
644
- * @since v21.2.0, v20.11.0
645
- */
646
- filename: string;
647
- /**
648
- * The absolute `file:` URL of the module.
649
- *
650
- * This is defined exactly the same as it is in browsers providing the URL of the
651
- * current module file.
652
- *
653
- * This enables useful patterns such as relative file loading:
654
- *
655
- * ```js
656
- * import { readFileSync } from 'node:fs';
657
- * const buffer = readFileSync(new URL('./data.proto', import.meta.url));
658
- * ```
659
- */
660
- url: string;
661
- /**
662
- * `import.meta.resolve` is a module-relative resolution function scoped to
663
- * each module, returning the URL string.
664
- *
665
- * ```js
666
- * const dependencyAsset = import.meta.resolve('component-lib/asset.css');
667
- * // file:///app/node_modules/component-lib/asset.css
668
- * import.meta.resolve('./dep.js');
669
- * // file:///app/dep.js
670
- * ```
671
- *
672
- * All features of the Node.js module resolution are supported. Dependency
673
- * resolutions are subject to the permitted exports resolutions within the package.
674
- *
675
- * **Caveats**:
676
- *
677
- * * This can result in synchronous file-system operations, which
678
- * can impact performance similarly to `require.resolve`.
679
- * * This feature is not available within custom loaders (it would
680
- * create a deadlock).
681
- * @since v13.9.0, v12.16.0
682
- * @param specifier The module specifier to resolve relative to the
683
- * current module.
684
- * @param parent An optional absolute parent module URL to resolve from.
685
- * **Default:** `import.meta.url`
686
- * @returns The absolute URL string that the specifier would resolve to.
687
- */
688
- resolve(specifier: string, parent?: string | URL): string;
689
- /**
690
- * `true` when the current module is the entry point of the current process; `false` otherwise.
691
- *
692
- * Equivalent to `require.main === module` in CommonJS.
693
- *
694
- * Analogous to Python's `__name__ == "__main__"`.
695
- *
696
- * ```js
697
- * export function foo() {
698
- * return 'Hello, world';
699
- * }
700
- *
701
- * function main() {
702
- * const message = foo();
703
- * console.log(message);
704
- * }
705
- *
706
- * if (import.meta.main) main();
707
- * // `foo` can be imported from another module without possible side-effects from `main`
708
- * ```
709
- * @since v24.2.0
710
- * @experimental
711
- */
712
- main: boolean;
713
- }
714
639
  namespace NodeJS {
715
640
  interface Module {
716
641
  /**
@@ -784,7 +709,7 @@ declare module "module" {
784
709
  * Modules are cached in this object when they are required. By deleting a key
785
710
  * value from this object, the next `require` will reload the module.
786
711
  * This does not apply to
787
- * [native addons](https://nodejs.org/docs/latest-v24.x/api/addons.html),
712
+ * [native addons](https://nodejs.org/docs/latest-v25.x/api/addons.html),
788
713
  * for which reloading will result in an error.
789
714
  * @since v0.3.0
790
715
  */
@@ -818,7 +743,7 @@ declare module "module" {
818
743
  * Paths to resolve module location from. If present, these
819
744
  * paths are used instead of the default resolution paths, with the exception
820
745
  * of
821
- * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v24.x/api/modules.html#loading-from-the-global-folders)
746
+ * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v25.x/api/modules.html#loading-from-the-global-folders)
822
747
  * like `$HOME/.node_modules`, which are
823
748
  * always included. Each of these paths is used as a starting point for
824
749
  * the module resolution algorithm, meaning that the `node_modules` hierarchy
@@ -888,7 +813,7 @@ declare module "module" {
888
813
  }
889
814
  export = Module;
890
815
  }
891
- declare module "node:module" {
892
- import module = require("module");
816
+ declare module "module" {
817
+ import module = require("node:module");
893
818
  export = module;
894
819
  }
@@ -10,13 +10,13 @@
10
10
  * ```js
11
11
  * import net from 'node:net';
12
12
  * ```
13
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/net.js)
13
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/net.js)
14
14
  */
15
- declare module "net" {
15
+ declare module "node:net" {
16
16
  import { NonSharedBuffer } from "node:buffer";
17
- import * as stream from "node:stream";
18
- import { Abortable, EventEmitter } from "node:events";
19
17
  import * as dns from "node:dns";
18
+ import { Abortable, EventEmitter, InternalEventEmitter } from "node:events";
19
+ import * as stream from "node:stream";
20
20
  type LookupFunction = (
21
21
  hostname: string,
22
22
  options: dns.LookupOptions,
@@ -70,6 +70,17 @@ declare module "net" {
70
70
  }
71
71
  type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
72
72
  type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed";
73
+ interface SocketEventMap extends Omit<stream.DuplexEventMap, "close"> {
74
+ "close": [hadError: boolean];
75
+ "connect": [];
76
+ "connectionAttempt": [ip: string, port: number, family: number];
77
+ "connectionAttemptFailed": [ip: string, port: number, family: number, error: Error];
78
+ "connectionAttemptTimeout": [ip: string, port: number, family: number];
79
+ "data": [data: string | NonSharedBuffer];
80
+ "lookup": [err: Error | null, address: string, family: number | null, host: string];
81
+ "ready": [];
82
+ "timeout": [];
83
+ }
73
84
  /**
74
85
  * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
75
86
  * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
@@ -354,141 +365,45 @@ declare module "net" {
354
365
  end(callback?: () => void): this;
355
366
  end(buffer: Uint8Array | string, callback?: () => void): this;
356
367
  end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
357
- /**
358
- * events.EventEmitter
359
- * 1. close
360
- * 2. connect
361
- * 3. connectionAttempt
362
- * 4. connectionAttemptFailed
363
- * 5. connectionAttemptTimeout
364
- * 6. data
365
- * 7. drain
366
- * 8. end
367
- * 9. error
368
- * 10. lookup
369
- * 11. ready
370
- * 12. timeout
371
- */
372
- addListener(event: string, listener: (...args: any[]) => void): this;
373
- addListener(event: "close", listener: (hadError: boolean) => void): this;
374
- addListener(event: "connect", listener: () => void): this;
375
- addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
376
- addListener(
377
- event: "connectionAttemptFailed",
378
- listener: (ip: string, port: number, family: number, error: Error) => void,
379
- ): this;
380
- addListener(
381
- event: "connectionAttemptTimeout",
382
- listener: (ip: string, port: number, family: number) => void,
383
- ): this;
384
- addListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
385
- addListener(event: "drain", listener: () => void): this;
386
- addListener(event: "end", listener: () => void): this;
387
- addListener(event: "error", listener: (err: Error) => void): this;
388
- addListener(
389
- event: "lookup",
390
- listener: (err: Error, address: string, family: string | number, host: string) => void,
391
- ): this;
392
- addListener(event: "ready", listener: () => void): this;
393
- addListener(event: "timeout", listener: () => void): this;
394
- emit(event: string | symbol, ...args: any[]): boolean;
395
- emit(event: "close", hadError: boolean): boolean;
396
- emit(event: "connect"): boolean;
397
- emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean;
398
- emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean;
399
- emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean;
400
- emit(event: "data", data: NonSharedBuffer): boolean;
401
- emit(event: "drain"): boolean;
402
- emit(event: "end"): boolean;
403
- emit(event: "error", err: Error): boolean;
404
- emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean;
405
- emit(event: "ready"): boolean;
406
- emit(event: "timeout"): boolean;
407
- on(event: string, listener: (...args: any[]) => void): this;
408
- on(event: "close", listener: (hadError: boolean) => void): this;
409
- on(event: "connect", listener: () => void): this;
410
- on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
411
- on(
412
- event: "connectionAttemptFailed",
413
- listener: (ip: string, port: number, family: number, error: Error) => void,
414
- ): this;
415
- on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
416
- on(event: "data", listener: (data: NonSharedBuffer) => void): this;
417
- on(event: "drain", listener: () => void): this;
418
- on(event: "end", listener: () => void): this;
419
- on(event: "error", listener: (err: Error) => void): this;
420
- on(
421
- event: "lookup",
422
- listener: (err: Error, address: string, family: string | number, host: string) => void,
423
- ): this;
424
- on(event: "ready", listener: () => void): this;
425
- on(event: "timeout", listener: () => void): this;
426
- once(event: string, listener: (...args: any[]) => void): this;
427
- once(event: "close", listener: (hadError: boolean) => void): this;
428
- once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
429
- once(
430
- event: "connectionAttemptFailed",
431
- listener: (ip: string, port: number, family: number, error: Error) => void,
368
+ // #region InternalEventEmitter
369
+ addListener<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
370
+ addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
371
+ emit<E extends keyof SocketEventMap>(eventName: E, ...args: SocketEventMap[E]): boolean;
372
+ emit(eventName: string | symbol, ...args: any[]): boolean;
373
+ listenerCount<E extends keyof SocketEventMap>(
374
+ eventName: E,
375
+ listener?: (...args: SocketEventMap[E]) => void,
376
+ ): number;
377
+ listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
378
+ listeners<E extends keyof SocketEventMap>(eventName: E): ((...args: SocketEventMap[E]) => void)[];
379
+ listeners(eventName: string | symbol): ((...args: any[]) => void)[];
380
+ off<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
381
+ off(eventName: string | symbol, listener: (...args: any[]) => void): this;
382
+ on<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
383
+ on(eventName: string | symbol, listener: (...args: any[]) => void): this;
384
+ once<E extends keyof SocketEventMap>(eventName: E, listener: (...args: SocketEventMap[E]) => void): this;
385
+ once(eventName: string | symbol, listener: (...args: any[]) => void): this;
386
+ prependListener<E extends keyof SocketEventMap>(
387
+ eventName: E,
388
+ listener: (...args: SocketEventMap[E]) => void,
432
389
  ): this;
433
- once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
434
- once(event: "connect", listener: () => void): this;
435
- once(event: "data", listener: (data: NonSharedBuffer) => void): this;
436
- once(event: "drain", listener: () => void): this;
437
- once(event: "end", listener: () => void): this;
438
- once(event: "error", listener: (err: Error) => void): this;
439
- once(
440
- event: "lookup",
441
- listener: (err: Error, address: string, family: string | number, host: string) => void,
390
+ prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
391
+ prependOnceListener<E extends keyof SocketEventMap>(
392
+ eventName: E,
393
+ listener: (...args: SocketEventMap[E]) => void,
442
394
  ): this;
443
- once(event: "ready", listener: () => void): this;
444
- once(event: "timeout", listener: () => void): this;
445
- prependListener(event: string, listener: (...args: any[]) => void): this;
446
- prependListener(event: "close", listener: (hadError: boolean) => void): this;
447
- prependListener(event: "connect", listener: () => void): this;
448
- prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
449
- prependListener(
450
- event: "connectionAttemptFailed",
451
- listener: (ip: string, port: number, family: number, error: Error) => void,
395
+ prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
396
+ rawListeners<E extends keyof SocketEventMap>(eventName: E): ((...args: SocketEventMap[E]) => void)[];
397
+ rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
398
+ // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
399
+ removeAllListeners<E extends keyof SocketEventMap>(eventName?: E): this;
400
+ removeAllListeners(eventName?: string | symbol): this;
401
+ removeListener<E extends keyof SocketEventMap>(
402
+ eventName: E,
403
+ listener: (...args: SocketEventMap[E]) => void,
452
404
  ): this;
453
- prependListener(
454
- event: "connectionAttemptTimeout",
455
- listener: (ip: string, port: number, family: number) => void,
456
- ): this;
457
- prependListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
458
- prependListener(event: "drain", listener: () => void): this;
459
- prependListener(event: "end", listener: () => void): this;
460
- prependListener(event: "error", listener: (err: Error) => void): this;
461
- prependListener(
462
- event: "lookup",
463
- listener: (err: Error, address: string, family: string | number, host: string) => void,
464
- ): this;
465
- prependListener(event: "ready", listener: () => void): this;
466
- prependListener(event: "timeout", listener: () => void): this;
467
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
468
- prependOnceListener(event: "close", listener: (hadError: boolean) => void): this;
469
- prependOnceListener(event: "connect", listener: () => void): this;
470
- prependOnceListener(
471
- event: "connectionAttempt",
472
- listener: (ip: string, port: number, family: number) => void,
473
- ): this;
474
- prependOnceListener(
475
- event: "connectionAttemptFailed",
476
- listener: (ip: string, port: number, family: number, error: Error) => void,
477
- ): this;
478
- prependOnceListener(
479
- event: "connectionAttemptTimeout",
480
- listener: (ip: string, port: number, family: number) => void,
481
- ): this;
482
- prependOnceListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
483
- prependOnceListener(event: "drain", listener: () => void): this;
484
- prependOnceListener(event: "end", listener: () => void): this;
485
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
486
- prependOnceListener(
487
- event: "lookup",
488
- listener: (err: Error, address: string, family: string | number, host: string) => void,
489
- ): this;
490
- prependOnceListener(event: "ready", listener: () => void): this;
491
- prependOnceListener(event: "timeout", listener: () => void): this;
405
+ removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
406
+ // #endregion
492
407
  }
493
408
  interface ListenOptions extends Abortable {
494
409
  backlog?: number | undefined;
@@ -536,7 +451,7 @@ declare module "net" {
536
451
  keepAliveInitialDelay?: number | undefined;
537
452
  /**
538
453
  * Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
539
- * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v24.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode).
454
+ * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v25.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode).
540
455
  * @since v18.17.0, v20.1.0
541
456
  */
542
457
  highWaterMark?: number | undefined;
@@ -558,11 +473,18 @@ declare module "net" {
558
473
  remotePort?: number;
559
474
  remoteFamily?: string;
560
475
  }
476
+ interface ServerEventMap {
477
+ "close": [];
478
+ "connection": [socket: Socket];
479
+ "error": [err: Error];
480
+ "listening": [];
481
+ "drop": [data?: DropArgument];
482
+ }
561
483
  /**
562
484
  * This class is used to create a TCP or `IPC` server.
563
485
  * @since v0.1.90
564
486
  */
565
- class Server extends EventEmitter {
487
+ class Server implements EventEmitter {
566
488
  constructor(connectionListener?: (socket: Socket) => void);
567
489
  constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void);
568
490
  /**
@@ -688,56 +610,13 @@ declare module "net" {
688
610
  * @since v5.7.0
689
611
  */
690
612
  readonly listening: boolean;
691
- /**
692
- * events.EventEmitter
693
- * 1. close
694
- * 2. connection
695
- * 3. error
696
- * 4. listening
697
- * 5. drop
698
- */
699
- addListener(event: string, listener: (...args: any[]) => void): this;
700
- addListener(event: "close", listener: () => void): this;
701
- addListener(event: "connection", listener: (socket: Socket) => void): this;
702
- addListener(event: "error", listener: (err: Error) => void): this;
703
- addListener(event: "listening", listener: () => void): this;
704
- addListener(event: "drop", listener: (data?: DropArgument) => void): this;
705
- emit(event: string | symbol, ...args: any[]): boolean;
706
- emit(event: "close"): boolean;
707
- emit(event: "connection", socket: Socket): boolean;
708
- emit(event: "error", err: Error): boolean;
709
- emit(event: "listening"): boolean;
710
- emit(event: "drop", data?: DropArgument): boolean;
711
- on(event: string, listener: (...args: any[]) => void): this;
712
- on(event: "close", listener: () => void): this;
713
- on(event: "connection", listener: (socket: Socket) => void): this;
714
- on(event: "error", listener: (err: Error) => void): this;
715
- on(event: "listening", listener: () => void): this;
716
- on(event: "drop", listener: (data?: DropArgument) => void): this;
717
- once(event: string, listener: (...args: any[]) => void): this;
718
- once(event: "close", listener: () => void): this;
719
- once(event: "connection", listener: (socket: Socket) => void): this;
720
- once(event: "error", listener: (err: Error) => void): this;
721
- once(event: "listening", listener: () => void): this;
722
- once(event: "drop", listener: (data?: DropArgument) => void): this;
723
- prependListener(event: string, listener: (...args: any[]) => void): this;
724
- prependListener(event: "close", listener: () => void): this;
725
- prependListener(event: "connection", listener: (socket: Socket) => void): this;
726
- prependListener(event: "error", listener: (err: Error) => void): this;
727
- prependListener(event: "listening", listener: () => void): this;
728
- prependListener(event: "drop", listener: (data?: DropArgument) => void): this;
729
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
730
- prependOnceListener(event: "close", listener: () => void): this;
731
- prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
732
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
733
- prependOnceListener(event: "listening", listener: () => void): this;
734
- prependOnceListener(event: "drop", listener: (data?: DropArgument) => void): this;
735
613
  /**
736
614
  * Calls {@link Server.close()} and returns a promise that fulfills when the server has closed.
737
615
  * @since v20.5.0
738
616
  */
739
617
  [Symbol.asyncDispose](): Promise<void>;
740
618
  }
619
+ interface Server extends InternalEventEmitter<ServerEventMap> {}
741
620
  type IPVersion = "ipv4" | "ipv6";
742
621
  /**
743
622
  * The `BlockList` object can be used with some network APIs to specify rules for
@@ -1049,6 +928,6 @@ declare module "net" {
1049
928
  static parse(input: string): SocketAddress | undefined;
1050
929
  }
1051
930
  }
1052
- declare module "node:net" {
1053
- export * from "net";
931
+ declare module "net" {
932
+ export * from "node:net";
1054
933
  }
@@ -5,9 +5,9 @@
5
5
  * ```js
6
6
  * import os from 'node:os';
7
7
  * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/os.js)
8
+ * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/os.js)
9
9
  */
10
- declare module "os" {
10
+ declare module "node:os" {
11
11
  import { NonSharedBuffer } from "buffer";
12
12
  interface CpuInfo {
13
13
  model: string;
@@ -251,7 +251,7 @@ declare module "os" {
251
251
  * environment variables for the home directory before falling back to the
252
252
  * operating system response.
253
253
  *
254
- * Throws a [`SystemError`](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
254
+ * Throws a [`SystemError`](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
255
255
  * @since v6.0.0
256
256
  */
257
257
  function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo<string>;
@@ -431,7 +431,7 @@ declare module "os" {
431
431
  * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`,
432
432
  * `'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`.
433
433
  *
434
- * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v24.x/api/process.html#processarch).
434
+ * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v25.x/api/process.html#processarch).
435
435
  * @since v0.5.0
436
436
  */
437
437
  function arch(): NodeJS.Architecture;
@@ -502,6 +502,6 @@ declare module "os" {
502
502
  function setPriority(priority: number): void;
503
503
  function setPriority(pid: number, priority: number): void;
504
504
  }
505
- declare module "node:os" {
506
- export * from "os";
505
+ declare module "os" {
506
+ export * from "node:os";
507
507
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.10.2",
3
+ "version": "25.0.3",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -150,6 +150,6 @@
150
150
  "undici-types": "~7.16.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "28e383d3b72da0727a96b2232c4dc476d6186afce14cc25ce43bedcf5566a919",
153
+ "typesPublisherContentHash": "f232fc4d25235ca95f233b42be2cfd08c384791f716e60e2c105ff6db6b0bdc4",
154
154
  "typeScriptVersion": "5.2"
155
155
  }