@chainlink/external-adapter-framework 2.13.1 → 2.13.2

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 (30) hide show
  1. package/adapter/market-status.d.ts +5 -0
  2. package/adapter/market-status.js +5 -0
  3. package/adapter/market-status.js.map +1 -1
  4. package/generator-adapter/generators/app/templates/src/index.ts.ejs +1 -1
  5. package/generator-adapter/node_modules/.yarn-integrity +4 -4
  6. package/generator-adapter/node_modules/@types/node/README.md +1 -1
  7. package/generator-adapter/node_modules/@types/node/child_process.d.ts +6 -6
  8. package/generator-adapter/node_modules/@types/node/crypto.d.ts +8 -8
  9. package/generator-adapter/node_modules/@types/node/http.d.ts +31 -11
  10. package/generator-adapter/node_modules/@types/node/https.d.ts +6 -0
  11. package/generator-adapter/node_modules/@types/node/inspector.generated.d.ts +14 -1
  12. package/generator-adapter/node_modules/@types/node/module.d.ts +27 -16
  13. package/generator-adapter/node_modules/@types/node/net.d.ts +21 -2
  14. package/generator-adapter/node_modules/@types/node/package.json +3 -3
  15. package/generator-adapter/node_modules/@types/node/perf_hooks.d.ts +125 -65
  16. package/generator-adapter/node_modules/@types/node/process.d.ts +2 -7
  17. package/generator-adapter/node_modules/@types/node/sqlite.d.ts +31 -10
  18. package/generator-adapter/node_modules/@types/node/stream/web.d.ts +5 -5
  19. package/generator-adapter/node_modules/@types/node/stream.d.ts +27 -4
  20. package/generator-adapter/node_modules/@types/node/tls.d.ts +7 -7
  21. package/generator-adapter/node_modules/@types/node/url.d.ts +2 -2
  22. package/generator-adapter/node_modules/@types/node/util.d.ts +9 -1
  23. package/generator-adapter/node_modules/@types/node/v8.d.ts +26 -0
  24. package/generator-adapter/node_modules/@types/node/vm.d.ts +30 -15
  25. package/generator-adapter/node_modules/@types/node/worker_threads.d.ts +17 -19
  26. package/generator-adapter/node_modules/@types/node/zlib.d.ts +68 -4
  27. package/generator-adapter/node_modules/@yeoman/types/package.json +3 -7
  28. package/generator-adapter/node_modules/@yeoman/types/types/environment/environment.d.ts +7 -5
  29. package/generator-adapter/package.json +2 -2
  30. package/package.json +13 -13
@@ -21,6 +21,11 @@ export declare const marketStatusEndpointInputParametersDefinition: {
21
21
  readonly type: "string";
22
22
  readonly description: "DHH-DHH:TZ, 520-020:America/New_York means Fri 20:00 to Sun 20:00 Eastern Time Zone";
23
23
  };
24
+ readonly force245MarketStatus: {
25
+ readonly type: "boolean";
26
+ readonly description: "Return response in 24/5 market status";
27
+ readonly default: false;
28
+ };
24
29
  };
25
30
  export declare enum MarketStatus {
26
31
  UNKNOWN = 0,
@@ -24,6 +24,11 @@ exports.marketStatusEndpointInputParametersDefinition = {
24
24
  type: 'string',
25
25
  description: 'DHH-DHH:TZ, 520-020:America/New_York means Fri 20:00 to Sun 20:00 Eastern Time Zone',
26
26
  },
27
+ force245MarketStatus: {
28
+ type: 'boolean',
29
+ description: 'Return response in 24/5 market status',
30
+ default: false,
31
+ },
27
32
  };
28
33
  var MarketStatus;
29
34
  (function (MarketStatus) {
@@ -1 +1 @@
1
- {"version":3,"file":"market-status.js","sourceRoot":"","sources":["../../../src/adapter/market-status.ts"],"names":[],"mappings":";;;AACA,yCAA4C;AAE5C,+DAAgE;AAChE,+CAAuD;AAEvD;;GAEG;AACU,QAAA,6CAA6C,GAAG;IAC3D,MAAM,EAAE;QACN,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,wBAAwB;QACrC,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;QAC5B,OAAO,EAAE,SAAS;KACnB;IACD,OAAO,EAAE;QACP,IAAI,EAAE,QAAQ;QACd,WAAW,EACT,qFAAqF;KACxF;CACO,CAAA;AAEV,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qDAAW,CAAA;IACX,mDAAU,CAAA;I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,MAAM,CAAC,CAAA;IACf,CAAC;CACF;AAnBD,oDAmBC"}
@@ -9,7 +9,7 @@ export const adapter = new Adapter({
9
9
  <% } -%><%= ' ' %> defaultEndpoint: <%= defaultEndpoint.normalizedEndpointName %>.name,
10
10
  <% if (includeComments) { -%>
11
11
  // Adapter name
12
- <% } -%><%= ' ' %> name: '<%= adapterName.toUpperCase().replace('-', '_') %>',
12
+ <% } -%><%= ' ' %> name: '<%= adapterName.toUpperCase().replaceAll('-', '_') %>',
13
13
  <% if (includeComments) { -%>
14
14
  // Adapter configuration (environment variables)
15
15
  <% } -%><%= ' ' %> config,
@@ -6,9 +6,9 @@
6
6
  "flags": [],
7
7
  "linkedModules": [],
8
8
  "topLevelPatterns": [
9
- "@types/node@24.10.13",
9
+ "@types/node@24.12.2",
10
10
  "@yeoman/adapter@4.0.2",
11
- "@yeoman/types@1.9.1",
11
+ "@yeoman/types@1.10.3",
12
12
  "mem-fs@4.1.4",
13
13
  "yeoman-generator@7.5.1"
14
14
  ],
@@ -61,14 +61,14 @@
61
61
  "@types/lodash-es@^4.17.9": "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.12.tgz#65f6d1e5f80539aa7cfbfc962de5def0cf4f341b",
62
62
  "@types/lodash@*": "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.13.tgz#786e2d67cfd95e32862143abe7463a7f90c300eb",
63
63
  "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-22.10.1.tgz#41ffeee127b8975a05f8c4f83fb89bcb2987d766",
64
- "@types/node@24.10.13": "https://registry.yarnpkg.com/@types/node/-/node-24.10.13.tgz#2fac25c0e30f3848e19912c3b8791a28370e9e07",
64
+ "@types/node@24.12.2": "https://registry.yarnpkg.com/@types/node/-/node-24.12.2.tgz#353cb161dbf1785ea25e8829ba7ec574c5c629ac",
65
65
  "@types/node@>=18": "https://registry.yarnpkg.com/@types/node/-/node-22.10.1.tgz#41ffeee127b8975a05f8c4f83fb89bcb2987d766",
66
66
  "@types/normalize-package-data@^2.4.3": "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901",
67
67
  "@types/vinyl@^2.0.12": "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.12.tgz#17642ca9a8ae10f3db018e9f885da4188db4c6e6",
68
68
  "@types/vinyl@^2.0.7": "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.12.tgz#17642ca9a8ae10f3db018e9f885da4188db4c6e6",
69
69
  "@yeoman/adapter@4.0.2": "https://registry.yarnpkg.com/@yeoman/adapter/-/adapter-4.0.2.tgz#e1424226cf90077c979d24010db5dd8e385d3504",
70
70
  "@yeoman/namespace@^1.0.0": "https://registry.yarnpkg.com/@yeoman/namespace/-/namespace-1.0.1.tgz#8034277c4a62bdf41e05e2d890bc674bc320eb99",
71
- "@yeoman/types@1.9.1": "https://registry.yarnpkg.com/@yeoman/types/-/types-1.9.1.tgz#7752af2c0e3a4cdbbc98840235a56cb36da25259",
71
+ "@yeoman/types@1.10.3": "https://registry.yarnpkg.com/@yeoman/types/-/types-1.10.3.tgz#52f3efc0db7440b0058dfbef98cfafec5632e7b1",
72
72
  "ansi-regex@^6.0.1": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.1.0.tgz#95ec409c69619d6cb1b8b34f14b660ef28ebd654",
73
73
  "ansi-styles@^4.1.0": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937",
74
74
  "array-differ@^4.0.0": "https://registry.yarnpkg.com/array-differ/-/array-differ-4.0.0.tgz#aa3c891c653523290c880022f45b06a42051b026",
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v24.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 10 Feb 2026 14:48:58 GMT
11
+ * Last updated: Fri, 03 Apr 2026 11:14:41 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * ```js
7
7
  * import { spawn } from 'node:child_process';
8
+ * import { once } from 'node:events';
8
9
  * const ls = spawn('ls', ['-lh', '/usr']);
9
10
  *
10
11
  * ls.stdout.on('data', (data) => {
@@ -15,9 +16,8 @@
15
16
  * console.error(`stderr: ${data}`);
16
17
  * });
17
18
  *
18
- * ls.on('close', (code) => {
19
- * console.log(`child process exited with code ${code}`);
20
- * });
19
+ * const [code] = await once(ls, 'close');
20
+ * console.log(`child process exited with code ${code}`);
21
21
  * ```
22
22
  *
23
23
  * By default, pipes for `stdin`, `stdout`, and `stderr` are established between
@@ -719,6 +719,7 @@ declare module "child_process" {
719
719
  *
720
720
  * ```js
721
721
  * import { spawn } from 'node:child_process';
722
+ * import { once } from 'node:events';
722
723
  * const ls = spawn('ls', ['-lh', '/usr']);
723
724
  *
724
725
  * ls.stdout.on('data', (data) => {
@@ -729,9 +730,8 @@ declare module "child_process" {
729
730
  * console.error(`stderr: ${data}`);
730
731
  * });
731
732
  *
732
- * ls.on('close', (code) => {
733
- * console.log(`child process exited with code ${code}`);
734
- * });
733
+ * const [code] = await once(ls, 'close');
734
+ * console.log(`child process exited with code ${code}`);
735
735
  * ```
736
736
  *
737
737
  * Example: A very elaborate way to run `ps ax | grep ssh`
@@ -2709,12 +2709,12 @@ declare module "crypto" {
2709
2709
  privateKey: T2;
2710
2710
  }
2711
2711
  /**
2712
- * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
2713
- * Ed25519, Ed448, X25519, X448, DH, and ML-DSA are currently supported.
2712
+ * Generates a new asymmetric key pair of the given `type`.
2713
+ * See the supported [asymmetric key types](https://nodejs.org/docs/latest-v24.x/api/crypto.html#asymmetric-key-types).
2714
2714
  *
2715
2715
  * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
2716
- * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2717
- * the respective part of the key is returned as a `KeyObject`.
2716
+ * behaves as if {@link KeyObject.export `keyObject.export()`} had been called on its result. Otherwise,
2717
+ * the respective part of the key is returned as a {@link KeyObject `KeyObject`}.
2718
2718
  *
2719
2719
  * When encoding public keys, it is recommended to use `'spki'`. When encoding
2720
2720
  * private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
@@ -3007,12 +3007,12 @@ declare module "crypto" {
3007
3007
  options?: SLHDSAKeyPairKeyObjectOptions,
3008
3008
  ): KeyPairKeyObjectResult;
3009
3009
  /**
3010
- * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
3011
- * Ed25519, Ed448, X25519, X448, and DH are currently supported.
3010
+ * Generates a new asymmetric key pair of the given `type`.
3011
+ * See the supported [asymmetric key types](https://nodejs.org/docs/latest-v24.x/api/crypto.html#asymmetric-key-types).
3012
3012
  *
3013
3013
  * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
3014
- * behaves as if `keyObject.export()` had been called on its result. Otherwise,
3015
- * the respective part of the key is returned as a `KeyObject`.
3014
+ * behaves as if {@link KeyObject.export `keyObject.export()`} had been called on its result. Otherwise,
3015
+ * the respective part of the key is returned as a {@link KeyObject `KeyObject`}.
3016
3016
  *
3017
3017
  * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage:
3018
3018
  *
@@ -357,6 +357,14 @@ declare module "http" {
357
357
  * @since v18.17.0, v20.2.0
358
358
  */
359
359
  rejectNonStandardBodyWrites?: boolean | undefined;
360
+ /**
361
+ * If set to `true`, requests without `Content-Length` or `Transfer-Encoding` headers (indicating no body)
362
+ * will be initialized with an already-ended body stream, so they will never emit any stream events
363
+ * (like `'data'` or `'end'`). You can use `req.readableEnded` to detect this case.
364
+ * @default false
365
+ * @since v24.12.0
366
+ */
367
+ optimizeEmptyRequests?: boolean | undefined;
360
368
  }
361
369
  type RequestListener<
362
370
  Request extends typeof IncomingMessage = typeof IncomingMessage,
@@ -939,7 +947,7 @@ declare module "http" {
939
947
  * been transmitted are equal or not.
940
948
  *
941
949
  * Attempting to set a header field name or value that contains invalid characters
942
- * will result in a \[`Error`\]\[\] being thrown.
950
+ * will result in a `Error` being thrown.
943
951
  * @since v0.1.30
944
952
  */
945
953
  writeHead(
@@ -1020,6 +1028,7 @@ declare module "http" {
1020
1028
  *
1021
1029
  * ```js
1022
1030
  * import http from 'node:http';
1031
+ * const agent = new http.Agent({ keepAlive: true });
1023
1032
  *
1024
1033
  * // Server has a 5 seconds keep-alive timeout by default
1025
1034
  * http
@@ -1661,20 +1670,31 @@ declare module "http" {
1661
1670
  /**
1662
1671
  * Produces a socket/stream to be used for HTTP requests.
1663
1672
  *
1664
- * By default, this function is the same as `net.createConnection()`. However,
1665
- * custom agents may override this method in case greater flexibility is desired.
1673
+ * By default, this function behaves identically to `net.createConnection()`, synchronously
1674
+ * returning the created socket. The optional `callback` parameter in the signature is not
1675
+ * used by this default implementation.
1666
1676
  *
1667
- * A socket/stream can be supplied in one of two ways: by returning the
1668
- * socket/stream from this function, or by passing the socket/stream to `callback`.
1677
+ * However, custom agents may override this method to provide greater flexibility,
1678
+ * for example, to create sockets asynchronously. When overriding `createConnection`:
1669
1679
  *
1670
- * This method is guaranteed to return an instance of the `net.Socket` class,
1671
- * a subclass of `stream.Duplex`, unless the user specifies a socket
1672
- * type other than `net.Socket`.
1680
+ * 1. **Synchronous socket creation**: The overriding method can return the socket/stream directly.
1681
+ * 2. **Asynchronous socket creation**: The overriding method can accept the `callback` and pass
1682
+ * the created socket/stream to it (e.g., `callback(null, newSocket)`). If an error occurs during
1683
+ * socket creation, it should be passed as the first argument to the `callback` (e.g., `callback(err)`).
1673
1684
  *
1674
- * `callback` has a signature of `(err, stream)`.
1685
+ * The agent will call the provided `createConnection` function with `options` and this internal
1686
+ * `callback`. The `callback` provided by the agent has a signature of `(err, stream)`.
1675
1687
  * @since v0.11.4
1676
- * @param options Options containing connection details. Check `createConnection` for the format of the options
1677
- * @param callback Callback function that receives the created socket
1688
+ * @param options Options containing connection details. Check `net.createConnection()`
1689
+ * for the format of the options. For custom agents, this object is passed
1690
+ * to the custom `createConnection` function.
1691
+ * @param callback (Optional, primarily for custom agents) A function to be called by a custom
1692
+ * `createConnection` implementation when the socket is created, especially for
1693
+ * asynchronous operations.
1694
+ * @returns `stream.Duplex` The created socket. This is returned by the default implementation
1695
+ * or by a custom synchronous `createConnection` implementation. If a
1696
+ * custom `createConnection` uses the `callback` for asynchronous operation,
1697
+ * this return value might not be the primary way to obtain the socket.
1678
1698
  */
1679
1699
  createConnection(
1680
1700
  options: ClientRequestArgs,
@@ -25,6 +25,12 @@ declare module "https" {
25
25
  }
26
26
  /**
27
27
  * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
28
+ *
29
+ * Like `http.Agent`, the `createConnection(options[, callback])` method can be overridden to customize
30
+ * how TLS connections are established.
31
+ *
32
+ * > See [`agent.createConnection()`](https://nodejs.org/docs/latest-v24.x/api/http.html#agentcreateconnectionoptions-callback)
33
+ * for details on overriding this method, including asynchronous socket creation with a callback.
28
34
  * @since v0.4.5
29
35
  */
30
36
  class Agent extends http.Agent {
@@ -1791,6 +1791,18 @@ declare module "inspector" {
1791
1791
  */
1792
1792
  headers: Headers;
1793
1793
  }
1794
+ interface EnableParameterType {
1795
+ /**
1796
+ * Buffer size in bytes to use when preserving network payloads (XHRs, etc).
1797
+ * @experimental
1798
+ */
1799
+ maxTotalBufferSize?: number | undefined;
1800
+ /**
1801
+ * Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
1802
+ * @experimental
1803
+ */
1804
+ maxResourceBufferSize?: number | undefined;
1805
+ }
1794
1806
  interface GetRequestPostDataParameterType {
1795
1807
  /**
1796
1808
  * Identifier of the network request to get content for.
@@ -2379,6 +2391,7 @@ declare module "inspector" {
2379
2391
  /**
2380
2392
  * Enables network tracking, network events will now be delivered to the client.
2381
2393
  */
2394
+ post(method: "Network.enable", params?: Network.EnableParameterType, callback?: (err: Error | null) => void): void;
2382
2395
  post(method: "Network.enable", callback?: (err: Error | null) => void): void;
2383
2396
  /**
2384
2397
  * Returns post data sent with the request. Returns an error when no data was sent with the request.
@@ -3477,7 +3490,7 @@ declare module "inspector/promises" {
3477
3490
  /**
3478
3491
  * Enables network tracking, network events will now be delivered to the client.
3479
3492
  */
3480
- post(method: "Network.enable"): Promise<void>;
3493
+ post(method: "Network.enable", params?: Network.EnableParameterType): Promise<void>;
3481
3494
  /**
3482
3495
  * Returns post data sent with the request. Returns an error when no data was sent with the request.
3483
3496
  */
@@ -80,37 +80,48 @@ declare module "module" {
80
80
  */
81
81
  directory?: string;
82
82
  }
83
+ interface EnableCompileCacheOptions {
84
+ /**
85
+ * Optional. Directory to store the compile cache. If not specified, the directory specified by
86
+ * the [`NODE_COMPILE_CACHE=dir`](https://nodejs.org/docs/latest-v24.x/api/cli.html#node_compile_cachedir)
87
+ * environment variable will be used if it's set, or `path.join(os.tmpdir(), 'node-compile-cache')` otherwise.
88
+ * @since v24.12.0
89
+ */
90
+ directory?: string | undefined;
91
+ /**
92
+ * Optional. If `true`, enables portable compile cache so that the cache can be reused even if the project directory
93
+ * is moved. This is a best-effort feature. If not specified, it will depend on whether the environment variable
94
+ * [NODE_COMPILE_CACHE_PORTABLE=1](https://nodejs.org/docs/latest-v24.x/api/cli.html#node_compile_cache_portable1) is set.
95
+ * @since v24.12.0
96
+ */
97
+ portable?: boolean | undefined;
98
+ }
83
99
  /**
84
100
  * Enable [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache)
85
101
  * in the current Node.js instance.
86
102
  *
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
103
+ * For general use cases, it's recommended to call `module.enableCompileCache()` without specifying the
104
+ * `options.directory`, so that the directory can be overridden by the `NODE_COMPILE_CACHE` environment
92
105
  * variable when necessary.
93
106
  *
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`
101
- * values to indicate the result of the attempt to enable the
107
+ * Since compile cache is supposed to be a optimization that is not mission critical, this method is
108
+ * designed to not throw any exception when the compile cache cannot be enabled. Instead, it will return
109
+ * an object containing an error message in the `message` field to aid debugging. If compile cache is
110
+ * enabled successfully, the `directory` field in the returned object contains the path to the directory
111
+ * where the compile cache is stored. The `status` field in the returned object would be one of the
112
+ * `module.constants.compileCacheStatus` values to indicate the result of the attempt to enable the
102
113
  * [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache).
103
114
  *
104
115
  * This method only affects the current Node.js instance. To enable it in child worker threads,
105
116
  * either call this method in child worker threads too, or set the
106
117
  * `process.env.NODE_COMPILE_CACHE` value to compile cache directory so the behavior can
107
118
  * be inherited into the child workers. The directory can be obtained either from the
108
- * `directory` field returned by this method, or with {@link getCompileCacheDir}.
119
+ * `directory` field returned by this method, or with {@link getCompileCacheDir `module.getCompileCacheDir()`}.
109
120
  * @since v22.8.0
110
- * @param cacheDir Optional path to specify the directory where the compile cache
121
+ * @param options Optional. If a string is passed, it is considered to be `options.directory`.
111
122
  * will be stored/retrieved.
112
123
  */
113
- function enableCompileCache(cacheDir?: string): EnableCompileCacheResult;
124
+ function enableCompileCache(options?: string | EnableCompileCacheOptions): EnableCompileCacheResult;
114
125
  /**
115
126
  * Flush the [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache)
116
127
  * accumulated from modules already loaded
@@ -105,9 +105,14 @@ declare module "net" {
105
105
  * See `Writable` stream `write()` method for more
106
106
  * information.
107
107
  * @since v0.1.90
108
- * @param [encoding='utf8'] Only used when data is `string`.
109
108
  */
110
109
  write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
110
+ /**
111
+ * Sends data on the socket, with an explicit encoding for string data.
112
+ * @see {@link Socket.write} for full details.
113
+ * @since v0.1.90
114
+ * @param [encoding='utf8'] Only used when data is `string`.
115
+ */
111
116
  write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
112
117
  /**
113
118
  * Initiate a connection on a given socket.
@@ -347,12 +352,26 @@ declare module "net" {
347
352
  *
348
353
  * See `writable.end()` for further details.
349
354
  * @since v0.1.90
350
- * @param [encoding='utf8'] Only used when data is `string`.
351
355
  * @param callback Optional callback for when the socket is finished.
352
356
  * @return The socket itself.
353
357
  */
354
358
  end(callback?: () => void): this;
359
+ /**
360
+ * Half-closes the socket, with one final chunk of data.
361
+ * @see {@link Socket.end} for full details.
362
+ * @since v0.1.90
363
+ * @param callback Optional callback for when the socket is finished.
364
+ * @return The socket itself.
365
+ */
355
366
  end(buffer: Uint8Array | string, callback?: () => void): this;
367
+ /**
368
+ * Half-closes the socket, with one final chunk of data.
369
+ * @see {@link Socket.end} for full details.
370
+ * @since v0.1.90
371
+ * @param [encoding='utf8'] Only used when data is `string`.
372
+ * @param callback Optional callback for when the socket is finished.
373
+ * @return The socket itself.
374
+ */
356
375
  end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
357
376
  /**
358
377
  * events.EventEmitter
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.10.13",
3
+ "version": "24.12.2",
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": "2ec3065bf306401d19db2ee65619ca53b48d5461db1133c7eeb53d407b8dcbc8",
154
- "typeScriptVersion": "5.2"
153
+ "typesPublisherContentHash": "d7203ff42f0a932fc10105074ec5f78418782e8d306c14cb314ce869dff07f43",
154
+ "typeScriptVersion": "5.3"
155
155
  }