node-red-contrib-tak-registration 0.16.5 → 0.16.7
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.
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/child_process.d.ts +6 -6
- package/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/node/http.d.ts +34 -10
- package/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/node/sqlite.d.ts +18 -0
- package/node_modules/@types/node/util.d.ts +10 -1
- package/node_modules/@types/node/v8.d.ts +4 -0
- package/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/fast-xml-parser/CHANGELOG.md +4 -0
- package/node_modules/fast-xml-parser/README.md +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +1 -1
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +12 -2
- package/package.json +2 -2
- package/tak-registration.js +1 -0
|
@@ -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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 01 Feb 2026 15:38:50 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
|
|
19
|
-
*
|
|
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
|
|
@@ -671,6 +671,7 @@ declare module "node:child_process" {
|
|
|
671
671
|
*
|
|
672
672
|
* ```js
|
|
673
673
|
* import { spawn } from 'node:child_process';
|
|
674
|
+
* import { once } from 'node:events';
|
|
674
675
|
* const ls = spawn('ls', ['-lh', '/usr']);
|
|
675
676
|
*
|
|
676
677
|
* ls.stdout.on('data', (data) => {
|
|
@@ -681,9 +682,8 @@ declare module "node:child_process" {
|
|
|
681
682
|
* console.error(`stderr: ${data}`);
|
|
682
683
|
* });
|
|
683
684
|
*
|
|
684
|
-
* ls
|
|
685
|
-
*
|
|
686
|
-
* });
|
|
685
|
+
* const [code] = await once(ls, 'close');
|
|
686
|
+
* console.log(`child process exited with code ${code}`);
|
|
687
687
|
* ```
|
|
688
688
|
*
|
|
689
689
|
* Example: A very elaborate way to run `ps ax | grep ssh`
|
|
@@ -2582,8 +2582,8 @@ declare module "node:crypto" {
|
|
|
2582
2582
|
interface X25519KeyPairOptions extends KeyPairExportOptions<"spki", "pkcs8"> {}
|
|
2583
2583
|
interface X448KeyPairOptions extends KeyPairExportOptions<"spki", "pkcs8"> {}
|
|
2584
2584
|
/**
|
|
2585
|
-
* Generates a new asymmetric key pair of the given `type`.
|
|
2586
|
-
*
|
|
2585
|
+
* Generates a new asymmetric key pair of the given `type`. See the
|
|
2586
|
+
* supported [asymmetric key types](https://nodejs.org/docs/latest-v25.x/api/crypto.html#asymmetric-key-types).
|
|
2587
2587
|
*
|
|
2588
2588
|
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
|
|
2589
2589
|
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
|
|
@@ -2672,8 +2672,8 @@ declare module "node:crypto" {
|
|
|
2672
2672
|
options?: T,
|
|
2673
2673
|
): KeyPairExportResult<T>;
|
|
2674
2674
|
/**
|
|
2675
|
-
* Generates a new asymmetric key pair of the given `type`.
|
|
2676
|
-
*
|
|
2675
|
+
* Generates a new asymmetric key pair of the given `type`. See the
|
|
2676
|
+
* supported [asymmetric key types](https://nodejs.org/docs/latest-v25.x/api/crypto.html#asymmetric-key-types).
|
|
2677
2677
|
*
|
|
2678
2678
|
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
|
|
2679
2679
|
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
|
|
@@ -357,6 +357,15 @@ declare module "node: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`
|
|
362
|
+
* or `Transfer-Encoding` headers (indicating no body) will be initialized with an
|
|
363
|
+
* already-ended body stream, so they will never emit any stream events
|
|
364
|
+
* (like `'data'` or `'end'`). You can use `req.readableEnded` to detect this case.
|
|
365
|
+
* @since v25.1.0
|
|
366
|
+
* @default false
|
|
367
|
+
*/
|
|
368
|
+
optimizeEmptyRequests?: boolean | undefined;
|
|
360
369
|
}
|
|
361
370
|
type RequestListener<
|
|
362
371
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
@@ -1037,6 +1046,7 @@ declare module "node:http" {
|
|
|
1037
1046
|
*
|
|
1038
1047
|
* ```js
|
|
1039
1048
|
* import http from 'node:http';
|
|
1049
|
+
* const agent = new http.Agent({ keepAlive: true });
|
|
1040
1050
|
*
|
|
1041
1051
|
* // Server has a 5 seconds keep-alive timeout by default
|
|
1042
1052
|
* http
|
|
@@ -1670,20 +1680,34 @@ declare module "node:http" {
|
|
|
1670
1680
|
/**
|
|
1671
1681
|
* Produces a socket/stream to be used for HTTP requests.
|
|
1672
1682
|
*
|
|
1673
|
-
* By default, this function
|
|
1674
|
-
*
|
|
1683
|
+
* By default, this function behaves identically to `net.createConnection()`,
|
|
1684
|
+
* synchronously returning the created socket. The optional `callback` parameter in the
|
|
1685
|
+
* signature is **not** used by this default implementation.
|
|
1675
1686
|
*
|
|
1676
|
-
*
|
|
1677
|
-
*
|
|
1687
|
+
* However, custom agents may override this method to provide greater flexibility,
|
|
1688
|
+
* for example, to create sockets asynchronously. When overriding `createConnection`:
|
|
1678
1689
|
*
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
1690
|
+
* 1. **Synchronous socket creation**: The overriding method can return the
|
|
1691
|
+
* socket/stream directly.
|
|
1692
|
+
* 2. **Asynchronous socket creation**: The overriding method can accept the `callback`
|
|
1693
|
+
* and pass the created socket/stream to it (e.g., `callback(null, newSocket)`).
|
|
1694
|
+
* If an error occurs during socket creation, it should be passed as the first
|
|
1695
|
+
* argument to the `callback` (e.g., `callback(err)`).
|
|
1682
1696
|
*
|
|
1683
|
-
*
|
|
1697
|
+
* The agent will call the provided `createConnection` function with `options` and
|
|
1698
|
+
* this internal `callback`. The `callback` provided by the agent has a signature
|
|
1699
|
+
* of `(err, stream)`.
|
|
1684
1700
|
* @since v0.11.4
|
|
1685
|
-
* @param options Options containing connection details. Check
|
|
1686
|
-
*
|
|
1701
|
+
* @param options Options containing connection details. Check
|
|
1702
|
+
* `net.createConnection` for the format of the options. For custom agents,
|
|
1703
|
+
* this object is passed to the custom `createConnection` function.
|
|
1704
|
+
* @param callback (Optional, primarily for custom agents) A function to be
|
|
1705
|
+
* called by a custom `createConnection` implementation when the socket is
|
|
1706
|
+
* created, especially for asynchronous operations.
|
|
1707
|
+
* @returns The created socket. This is returned by the default
|
|
1708
|
+
* implementation or by a custom synchronous `createConnection` implementation.
|
|
1709
|
+
* If a custom `createConnection` uses the `callback` for asynchronous
|
|
1710
|
+
* operation, this return value might not be the primary way to obtain the socket.
|
|
1687
1711
|
*/
|
|
1688
1712
|
createConnection(
|
|
1689
1713
|
options: ClientRequestArgs,
|
|
@@ -24,6 +24,12 @@ declare module "node:https" {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
|
|
27
|
+
*
|
|
28
|
+
* Like `http.Agent`, the `createConnection(options[, callback])` method can be overridden
|
|
29
|
+
* to customize how TLS connections are established.
|
|
30
|
+
*
|
|
31
|
+
* > See `agent.createConnection()` for details on overriding this method,
|
|
32
|
+
* > including asynchronous socket creation with a callback.
|
|
27
33
|
* @since v0.4.5
|
|
28
34
|
*/
|
|
29
35
|
class Agent extends http.Agent {
|
|
@@ -825,7 +825,7 @@ declare module "node:net" {
|
|
|
825
825
|
function setDefaultAutoSelectFamily(value: boolean): void;
|
|
826
826
|
/**
|
|
827
827
|
* Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`.
|
|
828
|
-
* The initial default value is `
|
|
828
|
+
* The initial default value is `500` or the value specified via the command line option `--network-family-autoselection-attempt-timeout`.
|
|
829
829
|
* @returns The current default value of the `autoSelectFamilyAttemptTimeout` option.
|
|
830
830
|
* @since v19.8.0, v18.8.0
|
|
831
831
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "25.0
|
|
3
|
+
"version": "25.2.0",
|
|
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": "
|
|
153
|
+
"typesPublisherContentHash": "070141665b6c093c16b6b39451f81eb12361c201bfdd3ed8dc437e63f3088059",
|
|
154
154
|
"typeScriptVersion": "5.2"
|
|
155
155
|
}
|
|
@@ -43,11 +43,6 @@ declare module "node:perf_hooks" {
|
|
|
43
43
|
| "net" // Node.js only
|
|
44
44
|
| "node" // Node.js only
|
|
45
45
|
| "resource"; // available on the Web
|
|
46
|
-
interface EventLoopUtilization {
|
|
47
|
-
idle: number;
|
|
48
|
-
active: number;
|
|
49
|
-
utilization: number;
|
|
50
|
-
}
|
|
51
46
|
interface ConnectionTimingInfo {
|
|
52
47
|
domainLookupStartTime: number;
|
|
53
48
|
domainLookupEndTime: number;
|
|
@@ -88,6 +83,9 @@ declare module "node:perf_hooks" {
|
|
|
88
83
|
entryTypes?: EntryType[];
|
|
89
84
|
type?: EntryType;
|
|
90
85
|
}
|
|
86
|
+
// TODO: remove in next major
|
|
87
|
+
/** @deprecated Use `TimerifyOptions` instead. */
|
|
88
|
+
interface PerformanceTimerifyOptions extends TimerifyOptions {}
|
|
91
89
|
interface PerformanceEventMap {
|
|
92
90
|
"resourcetimingbufferfull": Event;
|
|
93
91
|
}
|
|
@@ -137,50 +135,9 @@ declare module "node:perf_hooks" {
|
|
|
137
135
|
options?: EventListenerOptions | boolean,
|
|
138
136
|
): void;
|
|
139
137
|
/**
|
|
140
|
-
*
|
|
141
|
-
* cumulative duration of time the event loop has been both idle and active as a
|
|
142
|
-
* high resolution milliseconds timer. The `utilization` value is the calculated
|
|
143
|
-
* Event Loop Utilization (ELU).
|
|
144
|
-
*
|
|
145
|
-
* If bootstrapping has not yet finished on the main thread the properties have
|
|
146
|
-
* the value of `0`. The ELU is immediately available on [Worker threads](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html#worker-threads) since
|
|
147
|
-
* bootstrap happens within the event loop.
|
|
148
|
-
*
|
|
149
|
-
* Both `utilization1` and `utilization2` are optional parameters.
|
|
150
|
-
*
|
|
151
|
-
* If `utilization1` is passed, then the delta between the current call's `active`
|
|
152
|
-
* and `idle` times, as well as the corresponding `utilization` value are
|
|
153
|
-
* calculated and returned (similar to `process.hrtime()`).
|
|
154
|
-
*
|
|
155
|
-
* If `utilization1` and `utilization2` are both passed, then the delta is
|
|
156
|
-
* calculated between the two arguments. This is a convenience option because,
|
|
157
|
-
* unlike `process.hrtime()`, calculating the ELU is more complex than a
|
|
158
|
-
* single subtraction.
|
|
159
|
-
*
|
|
160
|
-
* ELU is similar to CPU utilization, except that it only measures event loop
|
|
161
|
-
* statistics and not CPU usage. It represents the percentage of time the event
|
|
162
|
-
* loop has spent outside the event loop's event provider (e.g. `epoll_wait`).
|
|
163
|
-
* No other CPU idle time is taken into consideration. The following is an example
|
|
164
|
-
* of how a mostly idle process will have a high ELU.
|
|
138
|
+
* This is an alias of `perf_hooks.eventLoopUtilization()`.
|
|
165
139
|
*
|
|
166
|
-
*
|
|
167
|
-
* import { eventLoopUtilization } from 'node:perf_hooks';
|
|
168
|
-
* import { spawnSync } from 'node:child_process';
|
|
169
|
-
*
|
|
170
|
-
* setImmediate(() => {
|
|
171
|
-
* const elu = eventLoopUtilization();
|
|
172
|
-
* spawnSync('sleep', ['5']);
|
|
173
|
-
* console.log(eventLoopUtilization(elu).utilization);
|
|
174
|
-
* });
|
|
175
|
-
* ```
|
|
176
|
-
*
|
|
177
|
-
* Although the CPU is mostly idle while running this script, the value of
|
|
178
|
-
* `utilization` is `1`. This is because the call to
|
|
179
|
-
* `child_process.spawnSync()` blocks the event loop from proceeding.
|
|
180
|
-
*
|
|
181
|
-
* Passing in a user-defined object instead of the result of a previous call to
|
|
182
|
-
* `eventLoopUtilization()` will lead to undefined behavior. The return values
|
|
183
|
-
* are not guaranteed to reflect any correct state of the event loop.
|
|
140
|
+
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
184
141
|
* @since v14.10.0, v12.19.0
|
|
185
142
|
* @param utilization1 The result of a previous call to
|
|
186
143
|
* `eventLoopUtilization()`.
|
|
@@ -192,40 +149,12 @@ declare module "node:perf_hooks" {
|
|
|
192
149
|
utilization2?: EventLoopUtilization,
|
|
193
150
|
): EventLoopUtilization;
|
|
194
151
|
/**
|
|
195
|
-
*
|
|
152
|
+
* This is an alias of `perf_hooks.timerify()`.
|
|
196
153
|
*
|
|
197
|
-
*
|
|
198
|
-
* wrapped function. A `PerformanceObserver` must be subscribed to the `'function'`
|
|
199
|
-
* event type in order for the timing details to be accessed.
|
|
200
|
-
*
|
|
201
|
-
* ```js
|
|
202
|
-
* import { performance, PerformanceObserver } from 'node:perf_hooks';
|
|
203
|
-
*
|
|
204
|
-
* function someFunction() {
|
|
205
|
-
* console.log('hello world');
|
|
206
|
-
* }
|
|
207
|
-
*
|
|
208
|
-
* const wrapped = performance.timerify(someFunction);
|
|
209
|
-
*
|
|
210
|
-
* const obs = new PerformanceObserver((list) => {
|
|
211
|
-
* console.log(list.getEntries()[0].duration);
|
|
212
|
-
*
|
|
213
|
-
* performance.clearMarks();
|
|
214
|
-
* performance.clearMeasures();
|
|
215
|
-
* obs.disconnect();
|
|
216
|
-
* });
|
|
217
|
-
* obs.observe({ entryTypes: ['function'] });
|
|
218
|
-
*
|
|
219
|
-
* // A performance timeline entry will be created
|
|
220
|
-
* wrapped();
|
|
221
|
-
* ```
|
|
222
|
-
*
|
|
223
|
-
* If the wrapped function returns a promise, a finally handler will be attached
|
|
224
|
-
* to the promise and the duration will be reported once the finally handler is
|
|
225
|
-
* invoked.
|
|
154
|
+
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
226
155
|
* @since v8.5.0
|
|
227
156
|
*/
|
|
228
|
-
timerify<T extends (...args: any[]) => any>(fn: T, options?:
|
|
157
|
+
timerify<T extends (...args: any[]) => any>(fn: T, options?: TimerifyOptions): T;
|
|
229
158
|
}
|
|
230
159
|
var Performance: {
|
|
231
160
|
prototype: Performance;
|
|
@@ -305,14 +234,6 @@ declare module "node:perf_hooks" {
|
|
|
305
234
|
};
|
|
306
235
|
var performance: Performance;
|
|
307
236
|
// #endregion
|
|
308
|
-
interface PerformanceTimerifyOptions {
|
|
309
|
-
/**
|
|
310
|
-
* A histogram object created using
|
|
311
|
-
* `perf_hooks.createHistogram()` that will record runtime durations in
|
|
312
|
-
* nanoseconds.
|
|
313
|
-
*/
|
|
314
|
-
histogram?: RecordableHistogram | undefined;
|
|
315
|
-
}
|
|
316
237
|
/**
|
|
317
238
|
* _This class is an extension by Node.js. It is not available in Web browsers._
|
|
318
239
|
*
|
|
@@ -557,6 +478,66 @@ declare module "node:perf_hooks" {
|
|
|
557
478
|
*/
|
|
558
479
|
add(other: RecordableHistogram): void;
|
|
559
480
|
}
|
|
481
|
+
interface EventLoopUtilization {
|
|
482
|
+
idle: number;
|
|
483
|
+
active: number;
|
|
484
|
+
utilization: number;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* The `eventLoopUtilization()` function returns an object that contains the
|
|
488
|
+
* cumulative duration of time the event loop has been both idle and active as a
|
|
489
|
+
* high resolution milliseconds timer. The `utilization` value is the calculated
|
|
490
|
+
* Event Loop Utilization (ELU).
|
|
491
|
+
*
|
|
492
|
+
* If bootstrapping has not yet finished on the main thread the properties have
|
|
493
|
+
* the value of `0`. The ELU is immediately available on [Worker threads](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html#worker-threads) since
|
|
494
|
+
* bootstrap happens within the event loop.
|
|
495
|
+
*
|
|
496
|
+
* Both `utilization1` and `utilization2` are optional parameters.
|
|
497
|
+
*
|
|
498
|
+
* If `utilization1` is passed, then the delta between the current call's `active`
|
|
499
|
+
* and `idle` times, as well as the corresponding `utilization` value are
|
|
500
|
+
* calculated and returned (similar to `process.hrtime()`).
|
|
501
|
+
*
|
|
502
|
+
* If `utilization1` and `utilization2` are both passed, then the delta is
|
|
503
|
+
* calculated between the two arguments. This is a convenience option because,
|
|
504
|
+
* unlike `process.hrtime()`, calculating the ELU is more complex than a
|
|
505
|
+
* single subtraction.
|
|
506
|
+
*
|
|
507
|
+
* ELU is similar to CPU utilization, except that it only measures event loop
|
|
508
|
+
* statistics and not CPU usage. It represents the percentage of time the event
|
|
509
|
+
* loop has spent outside the event loop's event provider (e.g. `epoll_wait`).
|
|
510
|
+
* No other CPU idle time is taken into consideration. The following is an example
|
|
511
|
+
* of how a mostly idle process will have a high ELU.
|
|
512
|
+
*
|
|
513
|
+
* ```js
|
|
514
|
+
* import { eventLoopUtilization } from 'node:perf_hooks';
|
|
515
|
+
* import { spawnSync } from 'node:child_process';
|
|
516
|
+
*
|
|
517
|
+
* setImmediate(() => {
|
|
518
|
+
* const elu = eventLoopUtilization();
|
|
519
|
+
* spawnSync('sleep', ['5']);
|
|
520
|
+
* console.log(eventLoopUtilization(elu).utilization);
|
|
521
|
+
* });
|
|
522
|
+
* ```
|
|
523
|
+
*
|
|
524
|
+
* Although the CPU is mostly idle while running this script, the value of
|
|
525
|
+
* `utilization` is `1`. This is because the call to
|
|
526
|
+
* `child_process.spawnSync()` blocks the event loop from proceeding.
|
|
527
|
+
*
|
|
528
|
+
* Passing in a user-defined object instead of the result of a previous call to
|
|
529
|
+
* `eventLoopUtilization()` will lead to undefined behavior. The return values
|
|
530
|
+
* are not guaranteed to reflect any correct state of the event loop.
|
|
531
|
+
* @since v25.2.0
|
|
532
|
+
* @param utilization1 The result of a previous call to
|
|
533
|
+
* `eventLoopUtilization()`.
|
|
534
|
+
* @param utilization2 The result of a previous call to
|
|
535
|
+
* `eventLoopUtilization()` prior to `utilization1`.
|
|
536
|
+
*/
|
|
537
|
+
function eventLoopUtilization(
|
|
538
|
+
utilization1?: EventLoopUtilization,
|
|
539
|
+
utilization2?: EventLoopUtilization,
|
|
540
|
+
): EventLoopUtilization;
|
|
560
541
|
/**
|
|
561
542
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
562
543
|
*
|
|
@@ -586,6 +567,49 @@ declare module "node:perf_hooks" {
|
|
|
586
567
|
* @since v11.10.0
|
|
587
568
|
*/
|
|
588
569
|
function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram;
|
|
570
|
+
interface TimerifyOptions {
|
|
571
|
+
/**
|
|
572
|
+
* A histogram object created using
|
|
573
|
+
* `perf_hooks.createHistogram()` that will record runtime durations in
|
|
574
|
+
* nanoseconds.
|
|
575
|
+
*/
|
|
576
|
+
histogram?: RecordableHistogram | undefined;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
580
|
+
*
|
|
581
|
+
* Wraps a function within a new function that measures the running time of the
|
|
582
|
+
* wrapped function. A `PerformanceObserver` must be subscribed to the `'function'`
|
|
583
|
+
* event type in order for the timing details to be accessed.
|
|
584
|
+
*
|
|
585
|
+
* ```js
|
|
586
|
+
* import { timerify, performance, PerformanceObserver } from 'node:perf_hooks';
|
|
587
|
+
*
|
|
588
|
+
* function someFunction() {
|
|
589
|
+
* console.log('hello world');
|
|
590
|
+
* }
|
|
591
|
+
*
|
|
592
|
+
* const wrapped = timerify(someFunction);
|
|
593
|
+
*
|
|
594
|
+
* const obs = new PerformanceObserver((list) => {
|
|
595
|
+
* console.log(list.getEntries()[0].duration);
|
|
596
|
+
*
|
|
597
|
+
* performance.clearMarks();
|
|
598
|
+
* performance.clearMeasures();
|
|
599
|
+
* obs.disconnect();
|
|
600
|
+
* });
|
|
601
|
+
* obs.observe({ entryTypes: ['function'] });
|
|
602
|
+
*
|
|
603
|
+
* // A performance timeline entry will be created
|
|
604
|
+
* wrapped();
|
|
605
|
+
* ```
|
|
606
|
+
*
|
|
607
|
+
* If the wrapped function returns a promise, a finally handler will be attached
|
|
608
|
+
* to the promise and the duration will be reported once the finally handler is
|
|
609
|
+
* invoked.
|
|
610
|
+
* @since v25.2.0
|
|
611
|
+
*/
|
|
612
|
+
function timerify<T extends (...args: any[]) => any>(fn: T, options?: TimerifyOptions): T;
|
|
589
613
|
interface CreateHistogramOptions {
|
|
590
614
|
/**
|
|
591
615
|
* The minimum recordable value. Must be an integer value greater than 0.
|
|
@@ -613,8 +637,6 @@ declare module "node:perf_hooks" {
|
|
|
613
637
|
interface MarkOptions extends PerformanceMarkOptions {}
|
|
614
638
|
/** @deprecated Use the canonical `PerformanceMeasureOptions` instead. */
|
|
615
639
|
interface MeasureOptions extends PerformanceMeasureOptions {}
|
|
616
|
-
/** @deprecated Use `PerformanceTimerifyOptions` instead. */
|
|
617
|
-
interface TimerifyOptions extends PerformanceTimerifyOptions {}
|
|
618
640
|
}
|
|
619
641
|
declare module "perf_hooks" {
|
|
620
642
|
export * from "node:perf_hooks";
|
|
@@ -253,7 +253,7 @@ declare module "node:process" {
|
|
|
253
253
|
/**
|
|
254
254
|
* A value that is `"strip"` by default,
|
|
255
255
|
* `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` if
|
|
256
|
-
* Node.js is run with `--no-
|
|
256
|
+
* Node.js is run with `--no-strip-types`.
|
|
257
257
|
* @since v22.10.0
|
|
258
258
|
*/
|
|
259
259
|
readonly typescript: "strip" | "transform" | false;
|
|
@@ -123,6 +123,14 @@ declare module "node:sqlite" {
|
|
|
123
123
|
* @default false
|
|
124
124
|
*/
|
|
125
125
|
allowUnknownNamedParameters?: boolean | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* If `true`, enables the defensive flag. When the defensive flag is enabled,
|
|
128
|
+
* language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
|
|
129
|
+
* The defensive flag can also be set using `enableDefensive()`.
|
|
130
|
+
* @since v25.1.0
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
defensive?: boolean | undefined;
|
|
126
134
|
}
|
|
127
135
|
interface CreateSessionOptions {
|
|
128
136
|
/**
|
|
@@ -294,6 +302,14 @@ declare module "node:sqlite" {
|
|
|
294
302
|
* @param allow Whether to allow loading extensions.
|
|
295
303
|
*/
|
|
296
304
|
enableLoadExtension(allow: boolean): void;
|
|
305
|
+
/**
|
|
306
|
+
* Enables or disables the defensive flag. When the defensive flag is active,
|
|
307
|
+
* language features that allow ordinary SQL to deliberately corrupt the database file are disabled.
|
|
308
|
+
* See [`SQLITE_DBCONFIG_DEFENSIVE`](https://www.sqlite.org/c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive) in the SQLite documentation for details.
|
|
309
|
+
* @since v25.1.0
|
|
310
|
+
* @param active Whether to set the defensive flag.
|
|
311
|
+
*/
|
|
312
|
+
enableDefensive(active: boolean): void;
|
|
297
313
|
/**
|
|
298
314
|
* This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html)
|
|
299
315
|
* @since v24.0.0
|
|
@@ -468,6 +484,8 @@ declare module "node:sqlite" {
|
|
|
468
484
|
* [`sqlite3changeset_apply()`](https://www.sqlite.org/session/sqlite3changeset_apply.html).
|
|
469
485
|
*
|
|
470
486
|
* ```js
|
|
487
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
488
|
+
*
|
|
471
489
|
* const sourceDb = new DatabaseSync(':memory:');
|
|
472
490
|
* const targetDb = new DatabaseSync(':memory:');
|
|
473
491
|
*
|
|
@@ -838,6 +838,15 @@ declare module "node:util" {
|
|
|
838
838
|
*/
|
|
839
839
|
export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
|
840
840
|
export { debuglog as debug };
|
|
841
|
+
export interface DeprecateOptions {
|
|
842
|
+
/**
|
|
843
|
+
* When false do not change the prototype of object
|
|
844
|
+
* while emitting the deprecation warning.
|
|
845
|
+
* @since v25.2.0
|
|
846
|
+
* @default true
|
|
847
|
+
*/
|
|
848
|
+
modifyPrototype?: boolean | undefined;
|
|
849
|
+
}
|
|
841
850
|
/**
|
|
842
851
|
* The `util.deprecate()` method wraps `fn` (which may be a function or class) in
|
|
843
852
|
* such a way that it is marked as deprecated.
|
|
@@ -898,7 +907,7 @@ declare module "node:util" {
|
|
|
898
907
|
* @param code A deprecation code. See the `list of deprecated APIs` for a list of codes.
|
|
899
908
|
* @return The deprecated function wrapped to emit a warning.
|
|
900
909
|
*/
|
|
901
|
-
export function deprecate<T extends Function>(fn: T, msg: string, code?: string): T;
|
|
910
|
+
export function deprecate<T extends Function>(fn: T, msg: string, code?: string, options?: DeprecateOptions): T;
|
|
902
911
|
export interface IsDeepStrictEqualOptions {
|
|
903
912
|
/**
|
|
904
913
|
* If `true`, prototype and constructor
|
|
@@ -33,6 +33,7 @@ declare module "node:v8" {
|
|
|
33
33
|
total_global_handles_size: number;
|
|
34
34
|
used_global_handles_size: number;
|
|
35
35
|
external_memory: number;
|
|
36
|
+
total_allocated_bytes: number;
|
|
36
37
|
}
|
|
37
38
|
interface HeapCodeStatistics {
|
|
38
39
|
code_and_metadata_size: number;
|
|
@@ -93,6 +94,9 @@ declare module "node:v8" {
|
|
|
93
94
|
* `external_memory` The value of external\_memory is the memory size of array
|
|
94
95
|
* buffers and external strings.
|
|
95
96
|
*
|
|
97
|
+
* `total_allocated_bytes` The value of total allocated bytes since the Isolate
|
|
98
|
+
* creation
|
|
99
|
+
*
|
|
96
100
|
* ```js
|
|
97
101
|
* {
|
|
98
102
|
* total_heap_size: 7326976,
|
|
@@ -749,7 +749,7 @@ declare module "node:vm" {
|
|
|
749
749
|
* // "contextifiedObject" when creating the context.
|
|
750
750
|
* export default secret;
|
|
751
751
|
* `, { context: referencingModule.context });
|
|
752
|
-
* moduleMap.set(specifier,
|
|
752
|
+
* moduleMap.set(specifier, requestedModule);
|
|
753
753
|
* // Resolve the dependencies of the new module as well.
|
|
754
754
|
* resolveAndLinkDependencies(requestedModule);
|
|
755
755
|
* }
|
|
@@ -819,19 +819,47 @@ declare module "node:vm" {
|
|
|
819
819
|
*/
|
|
820
820
|
status: ModuleStatus;
|
|
821
821
|
/**
|
|
822
|
-
* Evaluate the module.
|
|
823
|
-
*
|
|
824
|
-
*
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
*
|
|
828
|
-
*
|
|
829
|
-
*
|
|
830
|
-
*
|
|
831
|
-
*
|
|
832
|
-
*
|
|
833
|
-
*
|
|
834
|
-
*
|
|
822
|
+
* Evaluate the module and its depenendencies. Corresponds to the [Evaluate() concrete method](https://tc39.es/ecma262/#sec-moduleevaluation) field of
|
|
823
|
+
* [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records)s in the ECMAScript specification.
|
|
824
|
+
*
|
|
825
|
+
* If the module is a `vm.SourceTextModule`, `evaluate()` must be called after the module has been instantiated;
|
|
826
|
+
* otherwise `evaluate()` will return a rejected promise.
|
|
827
|
+
*
|
|
828
|
+
* For a `vm.SourceTextModule`, the promise returned by `evaluate()` may be fulfilled either
|
|
829
|
+
* synchronously or asynchronously:
|
|
830
|
+
*
|
|
831
|
+
* 1. If the `vm.SourceTextModule` has no top-level `await` in itself or any of its dependencies, the promise will be
|
|
832
|
+
* fulfilled _synchronously_ after the module and all its dependencies have been evaluated.
|
|
833
|
+
* 1. If the evaluation succeeds, the promise will be _synchronously_ resolved to `undefined`.
|
|
834
|
+
* 2. If the evaluation results in an exception, the promise will be _synchronously_ rejected with the exception
|
|
835
|
+
* that causes the evaluation to fail, which is the same as `module.error`.
|
|
836
|
+
* 2. If the `vm.SourceTextModule` has top-level `await` in itself or any of its dependencies, the promise will be
|
|
837
|
+
* fulfilled _asynchronously_ after the module and all its dependencies have been evaluated.
|
|
838
|
+
* 1. If the evaluation succeeds, the promise will be _asynchronously_ resolved to `undefined`.
|
|
839
|
+
* 2. If the evaluation results in an exception, the promise will be _asynchronously_ rejected with the exception
|
|
840
|
+
* that causes the evaluation to fail.
|
|
841
|
+
*
|
|
842
|
+
* If the module is a `vm.SyntheticModule`, `evaluate()` always returns a promise that fulfills synchronously, see
|
|
843
|
+
* the specification of [Evaluate() of a Synthetic Module Record](https://tc39.es/ecma262/#sec-smr-Evaluate):
|
|
844
|
+
*
|
|
845
|
+
* 1. If the `evaluateCallback` passed to its constructor throws an exception synchronously, `evaluate()` returns
|
|
846
|
+
* a promise that will be synchronously rejected with that exception.
|
|
847
|
+
* 2. If the `evaluateCallback` does not throw an exception, `evaluate()` returns a promise that will be
|
|
848
|
+
* synchronously resolved to `undefined`.
|
|
849
|
+
*
|
|
850
|
+
* The `evaluateCallback` of a `vm.SyntheticModule` is executed synchronously within the `evaluate()` call, and its
|
|
851
|
+
* return value is discarded. This means if `evaluateCallback` is an asynchronous function, the promise returned by
|
|
852
|
+
* `evaluate()` will not reflect its asynchronous behavior, and any rejections from an asynchronous
|
|
853
|
+
* `evaluateCallback` will be lost.
|
|
854
|
+
*
|
|
855
|
+
* `evaluate()` could also be called again after the module has already been evaluated, in which case:
|
|
856
|
+
*
|
|
857
|
+
* 1. If the initial evaluation ended in success (`module.status` is `'evaluated'`), it will do nothing
|
|
858
|
+
* and return a promise that resolves to `undefined`.
|
|
859
|
+
* 2. If the initial evaluation resulted in an exception (`module.status` is `'errored'`), it will re-reject
|
|
860
|
+
* the exception that the initial evaluation resulted in.
|
|
861
|
+
*
|
|
862
|
+
* This method cannot be called while the module is being evaluated (`module.status` is `'evaluating'`).
|
|
835
863
|
* @return Fulfills with `undefined` upon success.
|
|
836
864
|
*/
|
|
837
865
|
evaluate(options?: ModuleEvaluateOptions): Promise<void>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<small>Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.</small>
|
|
2
2
|
|
|
3
|
+
**5.3.4 / 2026-01-30**
|
|
4
|
+
- fix: handle HTML numeric and hex entities when out of range
|
|
5
|
+
|
|
6
|
+
|
|
3
7
|
**5.3.3 / 2025-12-12**
|
|
4
8
|
- fix #775: transformTagName with allowBooleanAttributes adds an unnecessary attribute
|
|
5
9
|
|
|
@@ -171,7 +171,7 @@ Bundle size
|
|
|
171
171
|
</table>
|
|
172
172
|
|
|
173
173
|
**note**:
|
|
174
|
-
- Version 6 is released with version 4 for experimental use. Based on
|
|
174
|
+
- Version 6 is released with version 4 for experimental use. Based on its demand, it'll be developed and the features can be different in final release.
|
|
175
175
|
- Version 5 has the same functionalities as version 4.
|
|
176
176
|
|
|
177
177
|
## Performance
|