aws-delivlib 15.0.16 → 15.0.18

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 (101) hide show
  1. package/lib/publishing/github/node_modules/.yarn-integrity +2 -2
  2. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +1 -1
  3. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert.d.ts +5 -5
  4. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +26 -6
  5. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +1 -2
  6. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/child_process.d.ts +2 -2
  7. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +15 -15
  8. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts +17 -17
  9. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +35 -28
  10. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts +1 -1
  11. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  12. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts +16 -16
  13. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts +1 -1
  14. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts +1 -2
  15. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +16 -9
  16. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +28 -19
  17. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.d.ts +7 -6
  18. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  19. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +2 -2
  20. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +6 -3
  21. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/https.d.ts +1 -1
  22. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/index.d.ts +7 -5
  23. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +3 -7
  24. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +63 -29
  25. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +2 -5
  26. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/os.d.ts +8 -7
  27. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +13 -3
  28. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/path.d.ts +1 -1
  29. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/perf_hooks.d.ts +8 -8
  30. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +21 -11
  31. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/punycode.d.ts +1 -1
  32. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +1 -1
  33. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline/promises.d.ts +0 -1
  34. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +13 -13
  35. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/repl.d.ts +14 -16
  36. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sea.d.ts +1 -1
  37. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/sqlite.d.ts +182 -2
  38. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream.d.ts +8 -19
  39. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/string_decoder.d.ts +1 -1
  40. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +53 -15
  41. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers/promises.d.ts +1 -1
  42. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers.d.ts +1 -1
  43. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +2 -48
  44. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/trace_events.d.ts +6 -6
  45. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  46. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  47. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  48. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  49. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  50. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  51. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  52. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts +1 -1
  53. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts +52 -19
  54. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +16 -295
  55. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +29 -32
  56. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +17 -10
  57. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/wasi.d.ts +1 -1
  58. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/worker_threads.d.ts +34 -18
  59. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +5 -7
  60. package/lib/publishing/github/node_modules/undici-types/agent.d.ts +7 -7
  61. package/lib/publishing/github/node_modules/undici-types/api.d.ts +24 -24
  62. package/lib/publishing/github/node_modules/undici-types/balanced-pool.d.ts +11 -11
  63. package/lib/publishing/github/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  64. package/lib/publishing/github/node_modules/undici-types/client.d.ts +12 -13
  65. package/lib/publishing/github/node_modules/undici-types/cookies.d.ts +2 -0
  66. package/lib/publishing/github/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
  67. package/lib/publishing/github/node_modules/undici-types/dispatcher.d.ts +117 -92
  68. package/lib/publishing/github/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
  69. package/lib/publishing/github/node_modules/undici-types/errors.d.ts +69 -47
  70. package/lib/publishing/github/node_modules/undici-types/fetch.d.ts +17 -16
  71. package/lib/publishing/github/node_modules/undici-types/formdata.d.ts +7 -7
  72. package/lib/publishing/github/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  73. package/lib/publishing/github/node_modules/undici-types/global-origin.d.ts +5 -5
  74. package/lib/publishing/github/node_modules/undici-types/h2c-client.d.ts +75 -0
  75. package/lib/publishing/github/node_modules/undici-types/handlers.d.ts +7 -7
  76. package/lib/publishing/github/node_modules/undici-types/header.d.ts +157 -1
  77. package/lib/publishing/github/node_modules/undici-types/index.d.ts +51 -47
  78. package/lib/publishing/github/node_modules/undici-types/interceptors.d.ts +25 -8
  79. package/lib/publishing/github/node_modules/undici-types/mock-agent.d.ts +33 -18
  80. package/lib/publishing/github/node_modules/undici-types/mock-call-history.d.ts +111 -0
  81. package/lib/publishing/github/node_modules/undici-types/mock-client.d.ts +4 -4
  82. package/lib/publishing/github/node_modules/undici-types/mock-errors.d.ts +3 -3
  83. package/lib/publishing/github/node_modules/undici-types/mock-interceptor.d.ts +19 -19
  84. package/lib/publishing/github/node_modules/undici-types/mock-pool.d.ts +4 -4
  85. package/lib/publishing/github/node_modules/undici-types/package.json +1 -1
  86. package/lib/publishing/github/node_modules/undici-types/patch.d.ts +0 -4
  87. package/lib/publishing/github/node_modules/undici-types/pool-stats.d.ts +8 -8
  88. package/lib/publishing/github/node_modules/undici-types/pool.d.ts +12 -12
  89. package/lib/publishing/github/node_modules/undici-types/proxy-agent.d.ts +4 -4
  90. package/lib/publishing/github/node_modules/undici-types/readable.d.ts +18 -15
  91. package/lib/publishing/github/node_modules/undici-types/retry-agent.d.ts +1 -1
  92. package/lib/publishing/github/node_modules/undici-types/retry-handler.d.ts +10 -10
  93. package/lib/publishing/github/node_modules/undici-types/util.d.ts +3 -3
  94. package/lib/publishing/github/node_modules/undici-types/utility.d.ts +7 -0
  95. package/lib/publishing/github/node_modules/undici-types/webidl.d.ts +44 -6
  96. package/lib/publishing/github/node_modules/undici-types/websocket.d.ts +35 -1
  97. package/package.json +2 -2
  98. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/compatibility/index.d.ts +0 -9
  99. package/lib/publishing/github/node_modules/@types/jsonwebtoken/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  100. package/lib/publishing/github/node_modules/undici-types/file.d.ts +0 -39
  101. package/lib/publishing/github/node_modules/undici-types/filereader.d.ts +0 -54
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
3
3
  * separate module.
4
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/https.js)
4
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/https.js)
5
5
  */
6
6
  declare module "https" {
7
7
  import { Duplex } from "node:stream";
@@ -22,15 +22,17 @@
22
22
  * IN THE SOFTWARE.
23
23
  */
24
24
 
25
- // NOTE: These definitions support Node.js and TypeScript 5.7+.
25
+ // NOTE: These definitions support Node.js and TypeScript 5.8+.
26
26
 
27
- // Reference required TypeScript libs:
27
+ // Reference required TypeScript libraries:
28
28
  /// <reference lib="es2020" />
29
+ /// <reference lib="esnext.disposable" />
30
+ /// <reference lib="esnext.float16" />
29
31
 
30
- // TypeScript backwards-compatibility definitions:
31
- /// <reference path="compatibility/index.d.ts" />
32
+ // Iterator definitions required for compatibility with TypeScript <5.6:
33
+ /// <reference path="compatibility/iterators.d.ts" />
32
34
 
33
- // Definitions specific to TypeScript 5.7+:
35
+ // Definitions for Node.js modules specific to TypeScript 5.7+:
34
36
  /// <reference path="globals.typedarray.d.ts" />
35
37
  /// <reference path="buffer.buffer.d.ts" />
36
38
 
@@ -6,7 +6,7 @@
6
6
  /**
7
7
  * The `node:inspector` module provides an API for interacting with the V8
8
8
  * inspector.
9
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/inspector.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/inspector.js)
10
10
  */
11
11
  declare module 'inspector' {
12
12
  import EventEmitter = require('node:events');
@@ -2865,7 +2865,7 @@ declare module 'inspector' {
2865
2865
  * If wait is `true`, will block until a client has connected to the inspect port
2866
2866
  * and flow control has been passed to the debugger client.
2867
2867
  *
2868
- * See the [security warning](https://nodejs.org/docs/latest-v22.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure)
2868
+ * See the [security warning](https://nodejs.org/docs/latest-v24.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure)
2869
2869
  * regarding the `host` parameter usage.
2870
2870
  * @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI.
2871
2871
  * @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI.
@@ -2948,7 +2948,6 @@ declare module 'inspector' {
2948
2948
  * Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that
2949
2949
  * the application is about to send an HTTP request.
2950
2950
  * @since v22.6.0
2951
- * @experimental
2952
2951
  */
2953
2952
  function requestWillBeSent(params: RequestWillBeSentEventDataType): void;
2954
2953
  /**
@@ -2957,7 +2956,6 @@ declare module 'inspector' {
2957
2956
  * Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that
2958
2957
  * HTTP response is available.
2959
2958
  * @since v22.6.0
2960
- * @experimental
2961
2959
  */
2962
2960
  function responseReceived(params: ResponseReceivedEventDataType): void;
2963
2961
  /**
@@ -2966,7 +2964,6 @@ declare module 'inspector' {
2966
2964
  * Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that
2967
2965
  * HTTP request has finished loading.
2968
2966
  * @since v22.6.0
2969
- * @experimental
2970
2967
  */
2971
2968
  function loadingFinished(params: LoadingFinishedEventDataType): void;
2972
2969
  /**
@@ -2975,7 +2972,6 @@ declare module 'inspector' {
2975
2972
  * Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that
2976
2973
  * HTTP request has failed to load.
2977
2974
  * @since v22.7.0
2978
- * @experimental
2979
2975
  */
2980
2976
  function loadingFailed(params: LoadingFailedEventDataType): void;
2981
2977
  }
@@ -2992,7 +2988,7 @@ declare module 'node:inspector' {
2992
2988
  /**
2993
2989
  * The `node:inspector/promises` module provides an API for interacting with the V8
2994
2990
  * inspector.
2995
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/inspector/promises.js)
2991
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/inspector/promises.js)
2996
2992
  * @since v19.0.0
2997
2993
  */
2998
2994
  declare module 'inspector/promises' {
@@ -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-v22.x/api/module.html#module-compile-cache).
33
+ * [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache).
34
34
  * @since v22.8.0
35
35
  */
36
36
  namespace compileCacheStatus {
@@ -81,7 +81,7 @@ declare module "module" {
81
81
  directory?: string;
82
82
  }
83
83
  /**
84
- * Enable [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
84
+ * Enable [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache)
85
85
  * in the current Node.js instance.
86
86
  *
87
87
  * If `cacheDir` is not specified, Node.js will either use the directory specified by the
@@ -99,7 +99,7 @@ declare module "module" {
99
99
  * contains the path to the directory where the compile cache is stored. The `status`
100
100
  * field in the returned object would be one of the `module.constants.compileCacheStatus`
101
101
  * values to indicate the result of the attempt to enable the
102
- * [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache).
102
+ * [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache).
103
103
  *
104
104
  * This method only affects the current Node.js instance. To enable it in child worker threads,
105
105
  * either call this method in child worker threads too, or set the
@@ -112,7 +112,7 @@ declare module "module" {
112
112
  */
113
113
  function enableCompileCache(cacheDir?: string): EnableCompileCacheResult;
114
114
  /**
115
- * Flush the [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
115
+ * Flush the [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache)
116
116
  * accumulated from modules already loaded
117
117
  * in the current Node.js instance to disk. This returns after all the flushing
118
118
  * file system operations come to an end, no matter they succeed or not. If there
@@ -123,7 +123,7 @@ declare module "module" {
123
123
  function flushCompileCache(): void;
124
124
  /**
125
125
  * @since v22.8.0
126
- * @return Path to the [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
126
+ * @return Path to the [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache)
127
127
  * directory if it is enabled, or `undefined` otherwise.
128
128
  */
129
129
  function getCompileCacheDir(): string | undefined;
@@ -194,7 +194,7 @@ declare module "module" {
194
194
  */
195
195
  data?: Data | undefined;
196
196
  /**
197
- * [Transferable objects](https://nodejs.org/docs/latest-v22.x/api/worker_threads.html#portpostmessagevalue-transferlist)
197
+ * [Transferable objects](https://nodejs.org/docs/latest-v24.x/api/worker_threads.html#portpostmessagevalue-transferlist)
198
198
  * to be passed into the `initialize` hook.
199
199
  */
200
200
  transferList?: any[] | undefined;
@@ -203,10 +203,10 @@ declare module "module" {
203
203
  /**
204
204
  * Register a module that exports hooks that customize Node.js module
205
205
  * resolution and loading behavior. See
206
- * [Customization hooks](https://nodejs.org/docs/latest-v22.x/api/module.html#customization-hooks).
206
+ * [Customization hooks](https://nodejs.org/docs/latest-v24.x/api/module.html#customization-hooks).
207
207
  *
208
208
  * This feature requires `--allow-worker` if used with the
209
- * [Permission Model](https://nodejs.org/docs/latest-v22.x/api/permissions.html#permission-model).
209
+ * [Permission Model](https://nodejs.org/docs/latest-v24.x/api/permissions.html#permission-model).
210
210
  * @since v20.6.0, v18.19.0
211
211
  * @param specifier Customization hooks to be registered; this should be
212
212
  * the same string that would be passed to `import()`, except that if it is
@@ -222,12 +222,12 @@ declare module "module" {
222
222
  function register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
223
223
  interface RegisterHooksOptions {
224
224
  /**
225
- * See [load hook](https://nodejs.org/docs/latest-v22.x/api/module.html#loadurl-context-nextload).
225
+ * See [load hook](https://nodejs.org/docs/latest-v24.x/api/module.html#loadurl-context-nextload).
226
226
  * @default undefined
227
227
  */
228
228
  load?: LoadHookSync | undefined;
229
229
  /**
230
- * See [resolve hook](https://nodejs.org/docs/latest-v22.x/api/module.html#resolvespecifier-context-nextresolve).
230
+ * See [resolve hook](https://nodejs.org/docs/latest-v24.x/api/module.html#resolvespecifier-context-nextresolve).
231
231
  * @default undefined
232
232
  */
233
233
  resolve?: ResolveHookSync | undefined;
@@ -239,7 +239,7 @@ declare module "module" {
239
239
  deregister(): void;
240
240
  }
241
241
  /**
242
- * Register [hooks](https://nodejs.org/docs/latest-v22.x/api/module.html#customization-hooks)
242
+ * Register [hooks](https://nodejs.org/docs/latest-v24.x/api/module.html#customization-hooks)
243
243
  * that customize Node.js module resolution and loading behavior.
244
244
  * @since v22.15.0
245
245
  * @experimental
@@ -270,9 +270,9 @@ declare module "module" {
270
270
  * with `vm.runInContext()` or `vm.compileFunction()`.
271
271
  * By default, it will throw an error if the code contains TypeScript features
272
272
  * that require transformation such as `Enums`,
273
- * see [type-stripping](https://nodejs.org/docs/latest-v22.x/api/typescript.md#type-stripping) for more information.
273
+ * see [type-stripping](https://nodejs.org/docs/latest-v24.x/api/typescript.md#type-stripping) for more information.
274
274
  * When mode is `'transform'`, it also transforms TypeScript features to JavaScript,
275
- * see [transform TypeScript features](https://nodejs.org/docs/latest-v22.x/api/typescript.md#typescript-features) for more information.
275
+ * see [transform TypeScript features](https://nodejs.org/docs/latest-v24.x/api/typescript.md#typescript-features) for more information.
276
276
  * When mode is `'strip'`, source maps are not generated, because locations are preserved.
277
277
  * If `sourceMap` is provided, when mode is `'strip'`, an error will be thrown.
278
278
  *
@@ -360,6 +360,7 @@ declare module "module" {
360
360
  type?: string | undefined;
361
361
  }
362
362
  type ModuleFormat =
363
+ | "addon"
363
364
  | "builtin"
364
365
  | "commonjs"
365
366
  | "commonjs-typescript"
@@ -576,34 +577,67 @@ declare module "module" {
576
577
  global {
577
578
  interface ImportMeta {
578
579
  /**
579
- * The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
580
- * **Caveat:** only present on `file:` modules.
580
+ * The directory name of the current module.
581
+ *
582
+ * This is the same as the ``path.dirname()` of the `import.meta.filename`.
583
+ *
584
+ * > **Caveat**: only present on `file:` modules.
585
+ * @since v21.2.0, v20.11.0
581
586
  */
582
587
  dirname: string;
583
588
  /**
584
- * The full absolute path and filename of the current module, with symlinks resolved.
589
+ * The full absolute path and filename of the current module, with
590
+ * symlinks resolved.
591
+ *
585
592
  * This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
586
- * **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
593
+ *
594
+ * > **Caveat** only local modules support this property. Modules not using the
595
+ * > `file:` protocol will not provide it.
596
+ * @since v21.2.0, v20.11.0
587
597
  */
588
598
  filename: string;
589
599
  /**
590
600
  * The absolute `file:` URL of the module.
601
+ *
602
+ * This is defined exactly the same as it is in browsers providing the URL of the
603
+ * current module file.
604
+ *
605
+ * This enables useful patterns such as relative file loading:
606
+ *
607
+ * ```js
608
+ * import { readFileSync } from 'node:fs';
609
+ * const buffer = readFileSync(new URL('./data.proto', import.meta.url));
610
+ * ```
591
611
  */
592
612
  url: string;
593
613
  /**
594
- * Provides a module-relative resolution function scoped to each module, returning
595
- * the URL string.
614
+ * `import.meta.resolve` is a module-relative resolution function scoped to
615
+ * each module, returning the URL string.
596
616
  *
597
- * Second `parent` parameter is only used when the `--experimental-import-meta-resolve`
598
- * command flag enabled.
617
+ * ```js
618
+ * const dependencyAsset = import.meta.resolve('component-lib/asset.css');
619
+ * // file:///app/node_modules/component-lib/asset.css
620
+ * import.meta.resolve('./dep.js');
621
+ * // file:///app/dep.js
622
+ * ```
599
623
  *
600
- * @since v20.6.0
624
+ * All features of the Node.js module resolution are supported. Dependency
625
+ * resolutions are subject to the permitted exports resolutions within the package.
601
626
  *
602
- * @param specifier The module specifier to resolve relative to `parent`.
603
- * @param parent The absolute parent module URL to resolve from.
604
- * @returns The absolute (`file:`) URL string for the resolved module.
605
- */
606
- resolve(specifier: string, parent?: string | URL | undefined): string;
627
+ * **Caveats**:
628
+ *
629
+ * * This can result in synchronous file-system operations, which
630
+ * can impact performance similarly to `require.resolve`.
631
+ * * This feature is not available within custom loaders (it would
632
+ * create a deadlock).
633
+ * @since v13.9.0, v12.16.0
634
+ * @param specifier The module specifier to resolve relative to the
635
+ * current module.
636
+ * @param parent An optional absolute parent module URL to resolve from.
637
+ * **Default:** `import.meta.url`
638
+ * @returns The absolute URL string that the specifier would resolve to.
639
+ */
640
+ resolve(specifier: string, parent?: string | URL): string;
607
641
  }
608
642
  namespace NodeJS {
609
643
  interface Module {
@@ -678,7 +712,7 @@ declare module "module" {
678
712
  * Modules are cached in this object when they are required. By deleting a key
679
713
  * value from this object, the next `require` will reload the module.
680
714
  * This does not apply to
681
- * [native addons](https://nodejs.org/docs/latest-v22.x/api/addons.html),
715
+ * [native addons](https://nodejs.org/docs/latest-v24.x/api/addons.html),
682
716
  * for which reloading will result in an error.
683
717
  * @since v0.3.0
684
718
  */
@@ -712,7 +746,7 @@ declare module "module" {
712
746
  * Paths to resolve module location from. If present, these
713
747
  * paths are used instead of the default resolution paths, with the exception
714
748
  * of
715
- * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v22.x/api/modules.html#loading-from-the-global-folders)
749
+ * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v24.x/api/modules.html#loading-from-the-global-folders)
716
750
  * like `$HOME/.node_modules`, which are
717
751
  * always included. Each of these paths is used as a starting point for
718
752
  * the module resolution algorithm, meaning that the `node_modules` hierarchy
@@ -10,7 +10,7 @@
10
10
  * ```js
11
11
  * import net from 'node:net';
12
12
  * ```
13
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/net.js)
13
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/net.js)
14
14
  */
15
15
  declare module "net" {
16
16
  import * as stream from "node:stream";
@@ -43,9 +43,6 @@ declare module "net" {
43
43
  */
44
44
  callback(bytesWritten: number, buffer: Uint8Array): boolean;
45
45
  }
46
- // TODO: remove empty ConnectOpts placeholder at next major @types/node version.
47
- /** @deprecated */
48
- interface ConnectOpts {}
49
46
  interface TcpSocketConnectOpts {
50
47
  port: number;
51
48
  host?: string | undefined;
@@ -538,7 +535,7 @@ declare module "net" {
538
535
  keepAliveInitialDelay?: number | undefined;
539
536
  /**
540
537
  * Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
541
- * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v22.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode).
538
+ * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v24.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode).
542
539
  * @since v18.17.0, v20.1.0
543
540
  */
544
541
  highWaterMark?: number | undefined;
@@ -5,7 +5,7 @@
5
5
  * ```js
6
6
  * import os from 'node:os';
7
7
  * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/os.js)
8
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/os.js)
9
9
  */
10
10
  declare module "os" {
11
11
  interface CpuInfo {
@@ -241,7 +241,7 @@ declare module "os" {
241
241
  * environment variables for the home directory before falling back to the
242
242
  * operating system response.
243
243
  *
244
- * Throws a [`SystemError`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
244
+ * Throws a [`SystemError`](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
245
245
  * @since v6.0.0
246
246
  */
247
247
  function userInfo(options: { encoding: "buffer" }): UserInfo<Buffer>;
@@ -417,13 +417,13 @@ declare module "os" {
417
417
  const EOL: string;
418
418
  /**
419
419
  * Returns the operating system CPU architecture for which the Node.js binary was
420
- * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
421
- * and `'x64'`.
420
+ * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`,
421
+ * `'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`.
422
422
  *
423
- * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v22.x/api/process.html#processarch).
423
+ * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v24.x/api/process.html#processarch).
424
424
  * @since v0.5.0
425
425
  */
426
- function arch(): string;
426
+ function arch(): NodeJS.Architecture;
427
427
  /**
428
428
  * Returns a string identifying the kernel version.
429
429
  *
@@ -445,7 +445,8 @@ declare module "os" {
445
445
  */
446
446
  function platform(): NodeJS.Platform;
447
447
  /**
448
- * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, `mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`.
448
+ * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`,
449
+ * `mips`, `mips64`, `ppc64`, `ppc64le`, `s390x`, `i386`, `i686`, `x86_64`.
449
450
  *
450
451
  * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not
451
452
  * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.15.30",
3
+ "version": "24.0.0",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -204,10 +204,20 @@
204
204
  "main": "",
205
205
  "types": "index.d.ts",
206
206
  "typesVersions": {
207
+ "<=5.1": {
208
+ "*": [
209
+ "ts5.1/*"
210
+ ]
211
+ },
207
212
  "<=5.6": {
208
213
  "*": [
209
214
  "ts5.6/*"
210
215
  ]
216
+ },
217
+ "<=5.7": {
218
+ "*": [
219
+ "ts5.7/*"
220
+ ]
211
221
  }
212
222
  },
213
223
  "repository": {
@@ -217,9 +227,9 @@
217
227
  },
218
228
  "scripts": {},
219
229
  "dependencies": {
220
- "undici-types": "~6.21.0"
230
+ "undici-types": "~7.8.0"
221
231
  },
222
232
  "peerDependencies": {},
223
- "typesPublisherContentHash": "e608b189ccd6623034719d736dfcdaf6bae11f1e8fe989b19c4a6d3221277a64",
233
+ "typesPublisherContentHash": "8d6ceac3f0f5283bf419c4930f679c52f7a63cc3f0cc2bd866acff9fb14a8eba",
224
234
  "typeScriptVersion": "5.1"
225
235
  }
@@ -13,7 +13,7 @@ declare module "path/win32" {
13
13
  * ```js
14
14
  * import path from 'node:path';
15
15
  * ```
16
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/path.js)
16
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/path.js)
17
17
  */
18
18
  declare module "path" {
19
19
  namespace path {
@@ -27,7 +27,7 @@
27
27
  * performance.measure('A to B', 'A', 'B');
28
28
  * });
29
29
  * ```
30
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/perf_hooks.js)
30
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/perf_hooks.js)
31
31
  */
32
32
  declare module "perf_hooks" {
33
33
  import { AsyncResource } from "node:async_hooks";
@@ -895,7 +895,7 @@ declare module "perf_hooks" {
895
895
  global {
896
896
  /**
897
897
  * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:perf_hooks'`
898
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceentry
898
+ * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performanceentry
899
899
  * @since v19.0.0
900
900
  */
901
901
  var PerformanceEntry: typeof globalThis extends {
@@ -905,7 +905,7 @@ declare module "perf_hooks" {
905
905
  : typeof _PerformanceEntry;
906
906
  /**
907
907
  * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:perf_hooks'`
908
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performancemark
908
+ * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performancemark
909
909
  * @since v19.0.0
910
910
  */
911
911
  var PerformanceMark: typeof globalThis extends {
@@ -915,7 +915,7 @@ declare module "perf_hooks" {
915
915
  : typeof _PerformanceMark;
916
916
  /**
917
917
  * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:perf_hooks'`
918
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performancemeasure
918
+ * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performancemeasure
919
919
  * @since v19.0.0
920
920
  */
921
921
  var PerformanceMeasure: typeof globalThis extends {
@@ -925,7 +925,7 @@ declare module "perf_hooks" {
925
925
  : typeof _PerformanceMeasure;
926
926
  /**
927
927
  * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:perf_hooks'`
928
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceobserver
928
+ * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performanceobserver
929
929
  * @since v19.0.0
930
930
  */
931
931
  var PerformanceObserver: typeof globalThis extends {
@@ -935,7 +935,7 @@ declare module "perf_hooks" {
935
935
  : typeof _PerformanceObserver;
936
936
  /**
937
937
  * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:perf_hooks'`
938
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceobserverentrylist
938
+ * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performanceobserverentrylist
939
939
  * @since v19.0.0
940
940
  */
941
941
  var PerformanceObserverEntryList: typeof globalThis extends {
@@ -945,7 +945,7 @@ declare module "perf_hooks" {
945
945
  : typeof _PerformanceObserverEntryList;
946
946
  /**
947
947
  * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:perf_hooks'`
948
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performanceresourcetiming
948
+ * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performanceresourcetiming
949
949
  * @since v19.0.0
950
950
  */
951
951
  var PerformanceResourceTiming: typeof globalThis extends {
@@ -955,7 +955,7 @@ declare module "perf_hooks" {
955
955
  : typeof _PerformanceResourceTiming;
956
956
  /**
957
957
  * `performance` is a global reference for `import { performance } from 'node:perf_hooks'`
958
- * @see https://nodejs.org/docs/latest-v22.x/api/globals.html#performance
958
+ * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performance
959
959
  * @since v16.0.0
960
960
  */
961
961
  var performance: typeof globalThis extends {
@@ -194,7 +194,7 @@ declare module "process" {
194
194
  readonly ipv6: boolean;
195
195
  /**
196
196
  * A boolean value that is `true` if the current Node.js build supports
197
- * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v22.x/api/modules.md#loading-ecmascript-modules-using-require).
197
+ * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v24.x/api/modules.md#loading-ecmascript-modules-using-require).
198
198
  * @since v22.10.0
199
199
  */
200
200
  readonly require_module: boolean;
@@ -231,8 +231,9 @@ declare module "process" {
231
231
  */
232
232
  readonly tls_sni: boolean;
233
233
  /**
234
- * A value that is `"strip"` if Node.js is run with `--experimental-strip-types`,
235
- * `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` otherwise.
234
+ * A value that is `"strip"` by default,
235
+ * `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` if
236
+ * Node.js is run with `--no-experimental-strip-types`.
236
237
  * @since v22.10.0
237
238
  */
238
239
  readonly typescript: "strip" | "transform" | false;
@@ -274,10 +275,8 @@ declare module "process" {
274
275
  | "loong64"
275
276
  | "mips"
276
277
  | "mipsel"
277
- | "ppc"
278
278
  | "ppc64"
279
279
  | "riscv64"
280
- | "s390"
281
280
  | "s390x"
282
281
  | "x64";
283
282
  type Signals =
@@ -748,7 +747,7 @@ declare module "process" {
748
747
  * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()`
749
748
  * unless there are specific reasons such as custom dlopen flags or loading from ES modules.
750
749
  *
751
- * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v22.x/api/os.html#dlopen-constants)`
750
+ * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v24.x/api/os.html#dlopen-constants)`
752
751
  * documentation for details.
753
752
  *
754
753
  * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon
@@ -1490,6 +1489,18 @@ declare module "process" {
1490
1489
  * @since v9.2.0, v8.10.0, v6.13.0
1491
1490
  */
1492
1491
  readonly ppid: number;
1492
+ /**
1493
+ * The `process.threadCpuUsage()` method returns the user and system CPU time usage of
1494
+ * the current worker thread, in an object with properties `user` and `system`, whose
1495
+ * values are microsecond values (millionth of a second).
1496
+ *
1497
+ * The result of a previous call to `process.threadCpuUsage()` can be passed as the
1498
+ * argument to the function, to get a diff reading.
1499
+ * @since v23.9.0
1500
+ * @param previousValue A previous return value from calling
1501
+ * `process.threadCpuUsage()`
1502
+ */
1503
+ threadCpuUsage(previousValue?: CpuUsage): CpuUsage;
1493
1504
  /**
1494
1505
  * The `process.title` property returns the current process title (i.e. returns
1495
1506
  * the current value of `ps`). Assigning a new value to `process.title` modifies
@@ -1510,7 +1521,8 @@ declare module "process" {
1510
1521
  title: string;
1511
1522
  /**
1512
1523
  * The operating system CPU architecture for which the Node.js binary was compiled.
1513
- * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
1524
+ * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`,
1525
+ * `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`.
1514
1526
  *
1515
1527
  * ```js
1516
1528
  * import { arch } from 'node:process';
@@ -1566,13 +1578,11 @@ declare module "process" {
1566
1578
  * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more
1567
1579
  * information.
1568
1580
  * @since v19.6.0, v18.15.0
1569
- * @experimental
1570
1581
  */
1571
1582
  constrainedMemory(): number;
1572
1583
  /**
1573
1584
  * Gets the amount of free memory that is still available to the process (in bytes).
1574
- * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v22.x/api/process.html#processavailablememory) for more information.
1575
- * @experimental
1585
+ * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v24.x/api/process.html#processavailablememory) for more information.
1576
1586
  * @since v20.13.0
1577
1587
  */
1578
1588
  availableMemory(): number;
@@ -1845,7 +1855,7 @@ declare module "process" {
1845
1855
  allowedNodeEnvironmentFlags: ReadonlySet<string>;
1846
1856
  /**
1847
1857
  * `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
1848
- * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v22.x/api/report.html).
1858
+ * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v24.x/api/report.html).
1849
1859
  * @since v11.8.0
1850
1860
  */
1851
1861
  report: ProcessReport;
@@ -24,7 +24,7 @@
24
24
  * made available to developers as a convenience. Fixes or other modifications to
25
25
  * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
26
26
  * @deprecated Since v7.0.0 - Deprecated
27
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/punycode.js)
27
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/punycode.js)
28
28
  */
29
29
  declare module "punycode" {
30
30
  /**
@@ -9,7 +9,7 @@
9
9
  * `querystring` is more performant than `URLSearchParams` but is not a
10
10
  * standardized API. Use `URLSearchParams` when performance is not critical or
11
11
  * when compatibility with browser code is desirable.
12
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/querystring.js)
12
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/querystring.js)
13
13
  */
14
14
  declare module "querystring" {
15
15
  interface StringifyOptions {
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * @since v17.0.0
3
- * @experimental
4
3
  */
5
4
  declare module "readline/promises" {
6
5
  import { Abortable } from "node:events";