@types/node 25.2.2 → 25.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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/package.json +3 -3
  3. node/test.d.ts +2 -1
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: Sun, 08 Feb 2026 00:09:19 GMT
11
+ * Last updated: Thu, 19 Feb 2026 00:56:10 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "25.2.2",
3
+ "version": "25.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",
@@ -147,9 +147,9 @@
147
147
  },
148
148
  "scripts": {},
149
149
  "dependencies": {
150
- "undici-types": "~7.16.0"
150
+ "undici-types": "~7.18.0"
151
151
  },
152
152
  "peerDependencies": {},
153
- "typesPublisherContentHash": "765ef440300302cdea004b925c35f2813d0883562f317541c7ef8e960501af28",
153
+ "typesPublisherContentHash": "a19f9d8a20f4c05e503d3ed972a84b1b5aae749a0628d95d2aefe902cff79797",
154
154
  "typeScriptVersion": "5.2"
155
155
  }
node/test.d.ts CHANGED
@@ -82,6 +82,7 @@ declare module "node:test" {
82
82
  import { AssertMethodNames } from "node:assert";
83
83
  import { Readable, ReadableEventMap } from "node:stream";
84
84
  import { TestEvent } from "node:test/reporters";
85
+ import { URL } from "node:url";
85
86
  import TestFn = test.TestFn;
86
87
  import TestOptions = test.TestOptions;
87
88
  /**
@@ -1692,7 +1693,7 @@ declare module "node:test" {
1692
1693
  * @param specifier A string identifying the module to mock.
1693
1694
  * @param options Optional configuration options for the mock module.
1694
1695
  */
1695
- module(specifier: string, options?: MockModuleOptions): MockModuleContext;
1696
+ module(specifier: string | URL, options?: MockModuleOptions): MockModuleContext;
1696
1697
  /**
1697
1698
  * Creates a mock for a property value on an object. This allows you to track and control access to a specific property,
1698
1699
  * including how many times it is read (getter) or written (setter), and to restore the original value after mocking.