@types/node 26.2.0 → 26.3.0

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.
node/README.md CHANGED
@@ -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: Fri, 07 Aug 2026 17:46:44 GMT
11
+ * Last updated: Mon, 24 Aug 2026 19:40:21 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/buffer.buffer.d.ts CHANGED
@@ -316,11 +316,11 @@ declare module "node:buffer" {
316
316
  * such `Buffer` instances with zeroes.
317
317
  *
318
318
  * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
319
- * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This
320
- * allows applications to avoid the garbage collection overhead of creating many
321
- * individually allocated `Buffer` instances. This approach improves both
322
- * performance and memory usage by eliminating the need to track and clean up as
323
- * many individual `ArrayBuffer` objects.
319
+ * allocations less than `Buffer.poolSize >>> 1` (32KiB when default poolSize is used) are sliced
320
+ * from a single pre-allocated `Buffer`. This allows applications to avoid the
321
+ * garbage collection overhead of creating many individually allocated `Buffer`
322
+ * instances. This approach improves both performance and memory usage by
323
+ * eliminating the need to track and clean up as many individual `ArrayBuffer` objects.
324
324
  *
325
325
  * However, in the case where a developer may need to retain a small chunk of
326
326
  * memory from a pool for an indeterminate amount of time, it may be appropriate
node/crypto.d.ts CHANGED
@@ -3742,7 +3742,7 @@ declare module "node:crypto" {
3742
3742
  ciphertext: NodeJS.BufferSource,
3743
3743
  sharedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams,
3744
3744
  extractable: boolean,
3745
- usages: KeyUsage[],
3745
+ keyUsages: KeyUsage[],
3746
3746
  ): Promise<CryptoKey>;
3747
3747
  decrypt(
3748
3748
  algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
@@ -3774,7 +3774,7 @@ declare module "node:crypto" {
3774
3774
  encapsulationKey: CryptoKey,
3775
3775
  sharedKeyAlgorithm: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | KmacImportParams,
3776
3776
  extractable: boolean,
3777
- usages: KeyUsage[],
3777
+ keyUsages: KeyUsage[],
3778
3778
  ): Promise<EncapsulatedKey>;
3779
3779
  encrypt(
3780
3780
  algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
node/http.d.ts CHANGED
@@ -175,6 +175,7 @@ declare module "node:http" {
175
175
  headers?: OutgoingHttpHeaders | readonly string[] | undefined;
176
176
  host?: string | null | undefined;
177
177
  hostname?: string | null | undefined;
178
+ httpValidation?: "strict" | "relaxed" | "insecure" | undefined;
178
179
  insecureHTTPParser?: boolean | undefined;
179
180
  localAddress?: string | undefined;
180
181
  localPort?: number | undefined;
@@ -254,6 +255,21 @@ declare module "node:http" {
254
255
  * @since v20.1.0
255
256
  */
256
257
  highWaterMark?: number | undefined;
258
+ /**
259
+ * Controls HTTP header value validation strictness
260
+ * for incoming requests. Accepted values are:
261
+ * * `'strict'`: Strictest validation; rejects any non-ASCII or control
262
+ * characters in header values.
263
+ * * `'relaxed'`: Allows a limited set of non-ASCII characters in header
264
+ * values, aligning with the
265
+ * [Fetch specification](https://fetch.spec.whatwg.org/).
266
+ * * `'insecure'`: Disables all header value validation (equivalent to
267
+ * `insecureHTTPParser: true`).
268
+ *
269
+ * Cannot be used together with `insecureHTTPParser`. **Default:** `'strict'`.
270
+ * @since v26.3.0
271
+ */
272
+ httpValidation?: "strict" | "relaxed" | "insecure" | undefined;
257
273
  /**
258
274
  * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
259
275
  * Using the insecure parser should be avoided.
node/http2.d.ts CHANGED
@@ -840,9 +840,12 @@ declare module "node:http2" {
840
840
  * HTTP/2 request to the connected server.
841
841
  *
842
842
  * When a `ClientHttp2Session` is first created, the socket may not yet be
843
- * connected. if `clienthttp2session.request()` is called during this time, the
843
+ * connected. If `clienthttp2session.request()` is called during this time, the
844
844
  * actual request will be deferred until the socket is ready to go.
845
- * If the `session` is closed before the actual request be executed, an `ERR_HTTP2_GOAWAY_SESSION` is thrown.
845
+ *
846
+ * If the session becomes unavailable before the request can be created, the
847
+ * returned stream will emit `ERR_HTTP2_GOAWAY_SESSION` or
848
+ * `ERR_HTTP2_INVALID_SESSION` asynchronously.
846
849
  *
847
850
  * This method is only available if `http2session.type` is equal to `http2.constants.NGHTTP2_SESSION_CLIENT`.
848
851
  *
@@ -1166,6 +1169,11 @@ declare module "node:http2" {
1166
1169
  * @default 128
1167
1170
  */
1168
1171
  maxHeaderListPairs?: number | undefined;
1172
+ /**
1173
+ * Sets the maximum number of uniq origin the sever
1174
+ * can send via ORIGIN frames. **Default:** `128`.
1175
+ */
1176
+ maxOriginSetSize?: number | undefined;
1169
1177
  /**
1170
1178
  * Sets the maximum number of outstanding, unacknowledged pings.
1171
1179
  * @default 10
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "26.2.0",
3
+ "version": "26.3.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": "~8.3.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "e8c7e12bafdd8ff8648e4d416be7af2d4373bffe17a7498d815e251898739e7c",
153
+ "typesPublisherContentHash": "125032099e1f7132c95bf327b36f694c396de965952f7cb9632ac916bbad47e9",
154
154
  "typeScriptVersion": "5.6"
155
155
  }
node/process.d.ts CHANGED
@@ -549,6 +549,58 @@ declare module "node:process" {
549
549
  * @since v20.0.0
550
550
  */
551
551
  has(scope: string, reference?: string): boolean;
552
+ /**
553
+ * Drops the specified permission from the current process. This operation is
554
+ * **irreversible** — once a permission is dropped, it cannot be restored through
555
+ * any Node.js API.
556
+ *
557
+ * If no reference is provided, the entire scope is dropped. For example,
558
+ * `process.permission.drop('fs.read')` will revoke ALL file system read
559
+ * permissions.
560
+ *
561
+ * When a reference is provided, only the permission for that specific resource
562
+ * is dropped. For example, `process.permission.drop('fs.read', '/etc/myapp')`
563
+ * will revoke read access to that directory while keeping other read
564
+ * permissions intact.
565
+ *
566
+ * **Important:** You can only drop the exact resource that was explicitly
567
+ * granted. The reference passed to `drop()` must match the original grant:
568
+ *
569
+ * * If a permission was granted using a wildcard (`*`), such as
570
+ * `--allow-fs-read=*`, individual paths cannot be dropped - only the entire
571
+ * scope can be dropped (by calling `drop()` without a reference).
572
+ * * If a directory was granted (e.g. `--allow-fs-read=/my/folder`), you cannot
573
+ * drop access to individual files inside it. You must drop the same directory
574
+ * that was granted. Any remaining grants continue to apply.
575
+ *
576
+ * The available scopes are the same as [`process.permission.has()`][]:
577
+ *
578
+ * `fs` - All File System (drops both read and write)
579
+ * * `fs.read` - File System read operations
580
+ * * `fs.write` - File System write operations
581
+ * * `child` - Child process spawning operations
582
+ * * `worker` - Worker thread spawning operation
583
+ * * `net` - Network operations
584
+ * * `inspector` - Inspector operations
585
+ * * `wasi` - WASI operations
586
+ * * `addon` - Native addon operations
587
+ *
588
+ * ```js
589
+ * const fs = require('node:fs');
590
+ *
591
+ * // Read configuration during startup
592
+ * const config = fs.readFileSync('/etc/myapp/config.json', 'utf8');
593
+ *
594
+ * // Drop read access to the config directory after initialization
595
+ * process.permission.drop('fs.read', '/etc/myapp');
596
+ *
597
+ * // This will now throw ERR_ACCESS_DENIED
598
+ * fs.readFileSync('/etc/myapp/config.json');
599
+ * ```
600
+ * @since v26.3.0
601
+ * @experimental
602
+ */
603
+ drop(scope: string, reference?: string): void;
552
604
  }
553
605
  interface ProcessReport {
554
606
  /**
node/quic.d.ts CHANGED
@@ -2,7 +2,7 @@ declare module "node:quic" {
2
2
  import { NonSharedBuffer } from "node:buffer";
3
3
  import { KeyObject } from "node:crypto";
4
4
  import { FileHandle } from "node:fs/promises";
5
- import { SocketAddress } from "node:net";
5
+ import { BlockList, SocketAddress } from "node:net";
6
6
  import { Writer } from "node:stream/iter";
7
7
  import { EphemeralKeyInfo, PeerCertificate } from "node:tls";
8
8
  /**
@@ -192,34 +192,40 @@ declare module "node:quic" {
192
192
  */
193
193
  authoritative?: boolean | undefined;
194
194
  }
195
+ /**
196
+ * @since v26.3.0
197
+ */
195
198
  interface ApplicationOptions {
196
199
  /**
197
- * Maximum number of header name-value pairs accepted per header block. Headers beyond this limit are silently
198
- * dropped. **Default:** `128`
200
+ * Maximum number of header name-value pairs accepted per header block.
201
+ * Headers beyond this limit are silently dropped. **Default:** `128`
199
202
  */
200
- maxHeaderPairs?: number | undefined;
203
+ maxHeaderPairs?: bigint | number | undefined;
201
204
  /**
202
- * Maximum total byte length of all header names and values combined per header block. Headers that would push
203
- * the total over this limit are silently dropped. **Default:** `8192`
205
+ * Maximum total byte length of all header names and values combined per header
206
+ * block. Headers that would push the total over this limit are silently
207
+ * dropped. **Default:** `8192`
204
208
  */
205
- maxHeaderLength?: number | undefined;
209
+ maxHeaderLength?: bigint | number | undefined;
206
210
  /**
207
- * Maximum size of a compressed header field section (QPACK). `0` means unlimited. **Default:** `0`
211
+ * Maximum size of a compressed header field section (QPACK). `0` means
212
+ * unlimited. **Default:** `0`
208
213
  */
209
- maxFieldSectionSize?: number | undefined;
214
+ maxFieldSectionSize?: bigint | number | undefined;
210
215
  /**
211
- * QPACK dynamic table capacity in bytes. Set to `0` to disable the dynamic table. **Default:** `4096`
216
+ * QPACK dynamic table capacity in bytes. Set to `0` to disable the dynamic
217
+ * table. **Default:** `4096`
212
218
  */
213
- qpackMaxDTableCapacity?: number | undefined;
219
+ qpackMaxDTableCapacity?: bigint | number | undefined;
214
220
  /**
215
221
  * QPACK encoder maximum dynamic table capacity. **Default:** `4096`
216
222
  */
217
- qpackEncoderMaxDTableCapacity?: number | undefined;
223
+ qpackEncoderMaxDTableCapacity?: bigint | number | undefined;
218
224
  /**
219
- * Maximum number of streams that can be blocked waiting for QPACK dynamic table updates.
220
- * **Default:** `100`
225
+ * Maximum number of streams that can e blocked waiting for QPACK dynamic table
226
+ * updates. **Default:** `100`
221
227
  */
222
- qpackBlockedStreams?: number | undefined;
228
+ qpackBlockedStreams?: bigint | number | undefined;
223
229
  /**
224
230
  * Enable the extended CONNECT protocol (RFC 9220). **Default:** `false`
225
231
  */
@@ -256,8 +262,7 @@ declare module "node:quic" {
256
262
  */
257
263
  alpn?: string | readonly string[] | undefined;
258
264
  /**
259
- * HTTP/3 application-specific options. These only apply when the negotiated
260
- * ALPN selects the HTTP/3 application (`'h3'`).
265
+ * Application-specific options.
261
266
  * @since v26.2.0
262
267
  */
263
268
  application?: ApplicationOptions | undefined;
@@ -342,7 +347,12 @@ declare module "node:quic" {
342
347
  minVersion?: number | undefined;
343
348
  /**
344
349
  * When the remote peer advertises a preferred address, this option specifies whether
345
- * to use it or ignore it.
350
+ * to use it or ignore it. The default is `'ignore'` because honoring a server's
351
+ * preferred address causes the client to migrate its connection to a different IP
352
+ * address, which can be exploited for data exfiltration attacks that are
353
+ * indistinguishable from legitimate QUIC connection migration at the network level.
354
+ * Set to `'use'` only when connecting to trusted servers that require preferred
355
+ * address migration.
346
356
  * @since v23.8.0
347
357
  */
348
358
  preferredAddressPolicy?: "use" | "ignore" | "default" | undefined;
@@ -370,6 +380,21 @@ declare module "node:quic" {
370
380
  * @since v26.2.0
371
381
  */
372
382
  datagramDropPolicy?: "drop-oldest" | "drop-newest" | undefined;
383
+ /**
384
+ * The maximum time in milliseconds that a peer-initiated stream can be idle
385
+ * (no data received) before it is automatically destroyed. This protects
386
+ * against slowloris-style attacks where a remote peer opens streams but never
387
+ * sends data, holding server resources indefinitely. Only peer-initiated
388
+ * streams are checked — locally-initiated streams are the application's
389
+ * responsibility. Set to `0` to disable.
390
+ *
391
+ * The idle check runs as part of the normal send processing loop, so it adds
392
+ * no additional timers or event loop overhead. The
393
+ * `session.stats.streamsIdleTimedOut` counter tracks how many streams have been
394
+ * destroyed by this mechanism.
395
+ * @since v26.3.0
396
+ */
397
+ streamIdleTimeout?: bigint | number | undefined;
373
398
  /**
374
399
  * The maximum number of `SendPendingData` cycles a datagram can survive
375
400
  * without being sent before it is abandoned. When a datagram cannot be
@@ -397,6 +422,30 @@ declare module "node:quic" {
397
422
  * @since v23.8.0
398
423
  */
399
424
  handshakeTimeout?: bigint | number | undefined;
425
+ /**
426
+ * Controls how the client handles server certificate validation:
427
+ *
428
+ * * `'strict'` — OpenSSL aborts the TLS handshake immediately if the server's
429
+ * certificate fails validation. The `session.opened` promise rejects with a
430
+ * TLS error. The application cannot inspect the certificate or the error
431
+ * details. This is the most secure mode.
432
+ *
433
+ * * `'auto'` — The TLS handshake completes regardless of validation result.
434
+ * If validation fails, the `session.opened` promise is rejected with an error
435
+ * containing the validation reason, and the session is destroyed. The
436
+ * `onhandshake` callback (if set) fires before rejection, allowing diagnostic
437
+ * logging. This is the default and matches the behavior of `tls.connect()`
438
+ * with `rejectUnauthorized: true`.
439
+ *
440
+ * * `'manual'` — The TLS handshake completes regardless of validation result.
441
+ * The `session.opened` promise resolves with the handshake info, which includes
442
+ * `validationErrorReason` and `validationErrorCode` if validation failed. The
443
+ * application is responsible for checking these values and deciding whether to
444
+ * continue. Use this mode for custom validation logic, certificate pinning, or
445
+ * intentionally accepting self-signed certificates.
446
+ * @since v26.3.0
447
+ */
448
+ verifyPeer?: "strict" | "auto" | "manual" | undefined;
400
449
  /**
401
450
  * The peer server name to target (SNI). Defaults to `'localhost'`.
402
451
  * @since v26.1.0
@@ -569,6 +618,31 @@ declare module "node:quic" {
569
618
  * @since v23.8.0
570
619
  */
571
620
  address?: SocketAddress | string | undefined;
621
+ /**
622
+ * An optional `net.BlockList` instance for filtering incoming packets by
623
+ * source address. When configured, every received UDP packet is checked against
624
+ * the block list before any QUIC processing occurs, minimizing resource
625
+ * expenditure on blocked sources. The block list is evaluated live — rules
626
+ * added to the `BlockList` object after the endpoint is created take effect
627
+ * immediately.
628
+ *
629
+ * See `endpointOptions.blockListPolicy` for how matches are interpreted.
630
+ * @since v26.3.0
631
+ */
632
+ blockList?: BlockList | undefined;
633
+ /**
634
+ * Controls how the `endpointOptions.blockList` is interpreted:
635
+ *
636
+ * * `'deny'` — Packets from addresses matching the block list are dropped.
637
+ * All other addresses are accepted. This is the typical blocklist mode.
638
+ * * `'allow'` — Only packets from addresses matching the block list are
639
+ * accepted. All other addresses are dropped. This is an allowlist mode
640
+ * for restricting access to known clients.
641
+ *
642
+ * If no block list is configured, this option has no effect.
643
+ * @since v26.3.0
644
+ */
645
+ blockListPolicy?: "deny" | "allow" | undefined;
572
646
  /**
573
647
  * The endpoint maintains an internal cache of validated socket addresses as a
574
648
  * performance optimization. This option sets the maximum number of addresses
@@ -625,15 +699,69 @@ declare module "node:quic" {
625
699
  */
626
700
  maxConnectionsTotal?: number | undefined;
627
701
  /**
628
- * Specifies the maximum number of QUIC retry attempts allowed per remote peer address.
629
- * @since v23.8.0
702
+ * The maximum number of QUIC retry packets the endpoint will send per second.
703
+ * This is a global rate limit (not per-host) that caps the total server-wide
704
+ * retry response rate, preventing spoofed-source floods from consuming unbounded
705
+ * resources.
706
+ * @since v26.3.0
630
707
  */
631
- maxRetries?: bigint | number | undefined;
708
+ retryRate?: number | undefined;
632
709
  /**
633
- * Specifies the maximum number of stateless resets that are allowed per remote peer address.
634
- * @since v23.8.0
710
+ * The maximum burst of retry packets allowed before rate limiting takes effect.
711
+ * @since v26.3.0
635
712
  */
636
- maxStatelessResetsPerHost?: bigint | number | undefined;
713
+ retryBurst?: number | undefined;
714
+ /**
715
+ * The maximum number of stateless reset packets the endpoint will send per second.
716
+ * @since v26.3.0
717
+ */
718
+ statelessResetRate?: number | undefined;
719
+ /**
720
+ * The maximum burst of stateless reset packets allowed before rate limiting
721
+ * takes effect.
722
+ * @since v26.3.0
723
+ */
724
+ statelessResetBurst?: number | undefined;
725
+ /**
726
+ * The maximum number of version negotiation packets the endpoint will send per
727
+ * second.
728
+ * @since v26.3.0
729
+ */
730
+ versionNegotiationRate?: number | undefined;
731
+ /**
732
+ * The maximum number of immediate connection close packets the endpoint will
733
+ * send per second.
734
+ * @since v26.3.0
735
+ */
736
+ versionNegotiationBurst?: number | undefined;
737
+ /**
738
+ * The maximum number of immediate connection close packets the endpoint will
739
+ * send per second.
740
+ * @since v26.3.0
741
+ */
742
+ immediateCloseRate?: number | undefined;
743
+ /**
744
+ * The maximum burst of immediate connection close packets allowed before rate
745
+ * limiting takes effect.
746
+ * @since v26.3.0
747
+ */
748
+ immediateCloseBurst?: number | undefined;
749
+ /**
750
+ * The maximum number of new sessions that a single remote address can create per
751
+ * second. This is a per-host rate limit tracked in the address validation LRU
752
+ * cache. It prevents a validated remote address from churning through sessions
753
+ * (rapidly opening and abandoning connections) faster than the server can handle.
754
+ * For benchmarking where traffic comes from a single source, set this to a high
755
+ * value.
756
+ * @since v26.3.0
757
+ */
758
+ sessionCreationRate?: number | undefined;
759
+ /**
760
+ * The maximum burst of new session creations allowed from a single remote address
761
+ * before rate limiting takes effect.
762
+ * @since v26.3.0
763
+ */
764
+ sessionCreationBurst?: number | undefined;
637
765
  /**
638
766
  * Specifies the length of time a QUIC retry token is considered valid.
639
767
  * @since v23.8.0
@@ -846,25 +974,66 @@ declare module "node:quic" {
846
974
  */
847
975
  readonly serverBusyCount: bigint;
848
976
  /**
849
- * The total number of QUIC retry attempts on this endpoint. Read only.
977
+ * The total number of retry packets sent by this endpoint. Read only.
850
978
  * @since v23.8.0
851
979
  */
852
980
  readonly retryCount: bigint;
853
981
  /**
854
- * The total number of sessions rejected due to QUIC version mismatch. Read only.
982
+ * The total number of retry packets dropped by the global rate
983
+ * limiter. Read only. A non-zero value indicates the endpoint is under retry
984
+ * flood pressure.
985
+ * @since v26.3.0
986
+ */
987
+ readonly retryRateLimited: bigint;
988
+ /**
989
+ * The total number of version negotiation packets sent by this
990
+ * endpoint. Read only.
855
991
  * @since v23.8.0
856
992
  */
857
993
  readonly versionNegotiationCount: bigint;
858
994
  /**
859
- * The total number of stateless resets handled by this endpoint. Read only.
995
+ * The total number of version negotiation packets dropped by
996
+ * the global rate limiter. Read only.
997
+ * @since v26.3.0
998
+ */
999
+ readonly versionNegotiationRateLimited: bigint;
1000
+ /**
1001
+ * The total number of stateless reset packets sent by this
1002
+ * endpoint. Read only.
860
1003
  * @since v23.8.0
861
1004
  */
862
1005
  readonly statelessResetCount: bigint;
863
1006
  /**
864
- * The total number of sessions that were closed before handshake completed. Read only.
1007
+ * The total number of stateless reset packets dropped by the
1008
+ * global rate limiter. Read only.
1009
+ * @since v26.3.0
1010
+ */
1011
+ readonly statelessResetRateLimited: bigint;
1012
+ /**
1013
+ * The total number of immediate connection close packets sent
1014
+ * by this endpoint. Read only.
865
1015
  * @since v23.8.0
866
1016
  */
867
1017
  readonly immediateCloseCount: bigint;
1018
+ /**
1019
+ * The total number of immediate connection close packets
1020
+ * dropped by the global rate limiter. Read only.
1021
+ * @since v26.3.0
1022
+ */
1023
+ readonly immediateCloseRateLimited: bigint;
1024
+ /**
1025
+ * The total number of session creation attempts dropped by the
1026
+ * per-host rate limiter. Read only. A non-zero value indicates one or more
1027
+ * remote addresses are creating sessions faster than the configured rate allows.
1028
+ * @since v26.3.0
1029
+ */
1030
+ readonly sessionCreationRateLimited: bigint;
1031
+ /**
1032
+ * The total number of incoming packets dropped by the
1033
+ * block list filter. Read only.
1034
+ * @since v26.3.0
1035
+ */
1036
+ readonly packetsBlocked: bigint;
868
1037
  }
869
1038
  }
870
1039
  interface CreateStreamOptions {
@@ -997,6 +1166,13 @@ declare module "node:quic" {
997
1166
  */
998
1167
  class QuicSession implements AsyncDisposable {
999
1168
  private constructor();
1169
+ /**
1170
+ * The current application-level options for this session. These include settings
1171
+ * that are specific to the negotiated application protocol (e.g. HTTP/3) and may
1172
+ * be negotiated separately from the transport parameters. Read only.
1173
+ * @since v26.3.0
1174
+ */
1175
+ readonly applicationOptions: { [K in keyof ApplicationOptions]-?: ApplicationOptions[K] & (bigint | boolean) };
1000
1176
  /**
1001
1177
  * Initiate a graceful close of the session. Existing streams will be allowed
1002
1178
  * to complete but no new streams will be opened. Once all streams have closed,
@@ -1395,6 +1571,12 @@ declare module "node:quic" {
1395
1571
  * @since v23.8.0
1396
1572
  */
1397
1573
  readonly datagramsLost: bigint;
1574
+ /**
1575
+ * The total number of peer-initiated streams destroyed by the
1576
+ * stream idle timeout. Read only.
1577
+ * @since v26.3.0
1578
+ */
1579
+ readonly streamsIdleTimedOut: bigint;
1398
1580
  }
1399
1581
  }
1400
1582
  interface QuicErrorOptions {
node/sqlite.d.ts CHANGED
@@ -127,8 +127,12 @@ declare module "node:sqlite" {
127
127
  }
128
128
  interface ApplyChangesetOptions {
129
129
  /**
130
- * Skip changes that, when targeted table name is supplied to this function, return a truthy value.
131
- * By default, all changes are attempted.
130
+ * for each table affected by at least
131
+ * one change in the changeset, the `filter` callback is invoked with the
132
+ * table name as the first argument. If the return value is falsy, then no
133
+ * attempt is made to apply any changes to the table.
134
+ * Otherwise, if the return value is truthy or no `filter` callback is provided,
135
+ * all changes related to the table are attempted.
132
136
  * @since v22.12.0
133
137
  */
134
138
  filter?: ((tableName: string) => boolean) | undefined;
node/test.d.ts CHANGED
@@ -677,6 +677,12 @@ declare module "node:test" {
677
677
  * The nesting level of the test.
678
678
  */
679
679
  nesting: number;
680
+ /**
681
+ * The `testId` of the enclosing test, or
682
+ * `undefined` for top-level tests. Lets custom reporters track lineage
683
+ * when concurrent siblings at the same nesting level interleave.
684
+ */
685
+ parentId: number | undefined;
680
686
  /**
681
687
  * The flattened lowercased tags declared on the test
682
688
  * and its ancestor suites, in declaration order. Empty for untagged tests.
@@ -711,6 +717,12 @@ declare module "node:test" {
711
717
  * The nesting level of the test.
712
718
  */
713
719
  nesting: number;
720
+ /**
721
+ * The `testId` of the enclosing test, or
722
+ * `undefined` for top-level tests. Lets custom reporters track lineage
723
+ * when concurrent siblings at the same nesting level interleave.
724
+ */
725
+ parentId: number | undefined;
714
726
  /**
715
727
  * The flattened lowercased tags declared on the test
716
728
  * and its ancestor suites, in declaration order. Empty for untagged tests.
@@ -738,6 +750,12 @@ declare module "node:test" {
738
750
  * The nesting level of the test.
739
751
  */
740
752
  nesting: number;
753
+ /**
754
+ * The `testId` of the enclosing test, or
755
+ * `undefined` for top-level tests. Lets custom reporters track lineage
756
+ * when concurrent siblings at the same nesting level interleave.
757
+ */
758
+ parentId: number | undefined;
741
759
  /**
742
760
  * The flattened lowercased tags declared on the test
743
761
  * and its ancestor suites, in declaration order. Empty for untagged tests.
@@ -789,6 +807,12 @@ declare module "node:test" {
789
807
  * The nesting level of the test.
790
808
  */
791
809
  nesting: number;
810
+ /**
811
+ * The `testId` of the enclosing test, or
812
+ * `undefined` for top-level tests. Lets custom reporters track lineage
813
+ * when concurrent siblings at the same nesting level interleave.
814
+ */
815
+ parentId: number | undefined;
792
816
  /**
793
817
  * The flattened lowercased tags declared on the test
794
818
  * and its ancestor suites, in declaration order. Empty for untagged tests.
@@ -856,6 +880,12 @@ declare module "node:test" {
856
880
  * The nesting level of the test.
857
881
  */
858
882
  nesting: number;
883
+ /**
884
+ * The `testId` of the enclosing test, or
885
+ * `undefined` for top-level tests. Lets custom reporters track lineage
886
+ * when concurrent siblings at the same nesting level interleave.
887
+ */
888
+ parentId: number | undefined;
859
889
  /**
860
890
  * The flattened lowercased tags declared on the test
861
891
  * and its ancestor suites, in declaration order. Empty for untagged tests.
@@ -900,6 +930,12 @@ declare module "node:test" {
900
930
  * The nesting level of the test.
901
931
  */
902
932
  nesting: number;
933
+ /**
934
+ * The `testId` of the enclosing test, or
935
+ * `undefined` for top-level tests. Lets custom reporters track lineage
936
+ * when concurrent siblings at the same nesting level interleave.
937
+ */
938
+ parentId: number | undefined;
903
939
  /**
904
940
  * The flattened lowercased tags declared on the test
905
941
  * and its ancestor suites, in declaration order. Empty for untagged tests.