@types/node 16.11.39 → 16.11.42

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 v16.11/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 07 Jun 2022 19:01:35 GMT
11
+ * Last updated: Wed, 29 Jun 2022 21:02:26 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node v16.11/domain.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * **This module is pending deprecation.** Once a replacement API has been
3
- * finalized, this module will be fully deprecated. Most developers should**not** have cause to use this module. Users who absolutely must have
3
+ * finalized, this module will be fully deprecated. Most developers should
4
+ * **not** have cause to use this module. Users who absolutely must have
4
5
  * the functionality that domains provide may rely on it for the time being
5
6
  * but should expect to have to migrate to a different solution
6
7
  * in the future.
node v16.11/events.d.ts CHANGED
@@ -260,6 +260,24 @@ declare module 'events' {
260
260
  * @since v15.2.0
261
261
  */
262
262
  static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
263
+ /**
264
+ * ```js
265
+ * const {
266
+ * setMaxListeners,
267
+ * EventEmitter
268
+ * } = require('events');
269
+ *
270
+ * const target = new EventTarget();
271
+ * const emitter = new EventEmitter();
272
+ *
273
+ * setMaxListeners(5, target, emitter);
274
+ * ```
275
+ * @since v15.4.0
276
+ * @param n A non-negative number. The maximum number of listeners per `EventTarget` event.
277
+ * @param eventsTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter}
278
+ * objects.
279
+ */
280
+ static setMaxListeners(n?: number, ...eventTargets: Array<DOMEventTarget | NodeJS.EventEmitter>): void;
263
281
  /**
264
282
  * This symbol shall be used to install a listener for only monitoring `'error'`
265
283
  * events. Listeners installed using this symbol are called before the regular
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.39",
3
+ "version": "16.11.42",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "7aa869a029d31d031b0b348b049f4188caf1dcbd75bb266b15a944a752ecc044",
224
- "typeScriptVersion": "3.9"
223
+ "typesPublisherContentHash": "9327fb48bfcc52faadada495806ce5b95e1d97ca96ac15f31d99ab32746ac344",
224
+ "typeScriptVersion": "4.0"
225
225
  }
node v16.11/url.d.ts CHANGED
@@ -59,8 +59,12 @@ declare module 'url' {
59
59
  * lenient, non-standard algorithm for parsing URL strings, security
60
60
  * issues can be introduced. Specifically, issues with [host name spoofing](https://hackerone.com/reports/678487) and
61
61
  * incorrect handling of usernames and passwords have been identified.
62
+ *
63
+ * Deprecation of this API has been shelved for now primarily due to the the
64
+ * inability of the [WHATWG API to parse relative URLs](https://github.com/nodejs/node/issues/12682#issuecomment-1154492373).
65
+ * [Discussions are ongoing](https://github.com/whatwg/url/issues/531) for the best way to resolve this.
66
+ *
62
67
  * @since v0.1.25
63
- * @deprecated Legacy: Use the WHATWG URL API instead.
64
68
  * @param urlString The URL string to parse.
65
69
  * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
66
70
  * on the returned URL object will be an unparsed, undecoded string.