@types/node 13.13.24 → 13.13.25

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 v13.13/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v13.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 08 Oct 2020 19:27:17 GMT
11
+ * Last updated: Fri, 09 Oct 2020 06:51:14 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.13.24",
3
+ "version": "13.13.25",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -241,6 +241,6 @@
241
241
  },
242
242
  "scripts": {},
243
243
  "dependencies": {},
244
- "typesPublisherContentHash": "34a8cbeaffa06589d064788f03010995ffea1ff95f3f9659f40acdf579b21f53",
244
+ "typesPublisherContentHash": "fcd71413e6b3994cd9d832594e65a9d7f6ed4987154d3a1b163534b6de359a84",
245
245
  "typeScriptVersion": "3.2"
246
246
  }
@@ -1,12 +1,68 @@
1
1
  declare module "punycode" {
2
+ /**
3
+ * @deprecated since v7.0.0
4
+ * The version of the punycode module bundled in Node.js is being deprecated.
5
+ * In a future major version of Node.js this module will be removed.
6
+ * Users currently depending on the punycode module should switch to using
7
+ * the userland-provided Punycode.js module instead.
8
+ */
2
9
  function decode(string: string): string;
10
+ /**
11
+ * @deprecated since v7.0.0
12
+ * The version of the punycode module bundled in Node.js is being deprecated.
13
+ * In a future major version of Node.js this module will be removed.
14
+ * Users currently depending on the punycode module should switch to using
15
+ * the userland-provided Punycode.js module instead.
16
+ */
3
17
  function encode(string: string): string;
18
+ /**
19
+ * @deprecated since v7.0.0
20
+ * The version of the punycode module bundled in Node.js is being deprecated.
21
+ * In a future major version of Node.js this module will be removed.
22
+ * Users currently depending on the punycode module should switch to using
23
+ * the userland-provided Punycode.js module instead.
24
+ */
4
25
  function toUnicode(domain: string): string;
26
+ /**
27
+ * @deprecated since v7.0.0
28
+ * The version of the punycode module bundled in Node.js is being deprecated.
29
+ * In a future major version of Node.js this module will be removed.
30
+ * Users currently depending on the punycode module should switch to using
31
+ * the userland-provided Punycode.js module instead.
32
+ */
5
33
  function toASCII(domain: string): string;
34
+ /**
35
+ * @deprecated since v7.0.0
36
+ * The version of the punycode module bundled in Node.js is being deprecated.
37
+ * In a future major version of Node.js this module will be removed.
38
+ * Users currently depending on the punycode module should switch to using
39
+ * the userland-provided Punycode.js module instead.
40
+ */
6
41
  const ucs2: ucs2;
7
42
  interface ucs2 {
43
+ /**
44
+ * @deprecated since v7.0.0
45
+ * The version of the punycode module bundled in Node.js is being deprecated.
46
+ * In a future major version of Node.js this module will be removed.
47
+ * Users currently depending on the punycode module should switch to using
48
+ * the userland-provided Punycode.js module instead.
49
+ */
8
50
  decode(string: string): number[];
51
+ /**
52
+ * @deprecated since v7.0.0
53
+ * The version of the punycode module bundled in Node.js is being deprecated.
54
+ * In a future major version of Node.js this module will be removed.
55
+ * Users currently depending on the punycode module should switch to using
56
+ * the userland-provided Punycode.js module instead.
57
+ */
9
58
  encode(codePoints: number[]): string;
10
59
  }
60
+ /**
61
+ * @deprecated since v7.0.0
62
+ * The version of the punycode module bundled in Node.js is being deprecated.
63
+ * In a future major version of Node.js this module will be removed.
64
+ * Users currently depending on the punycode module should switch to using
65
+ * the userland-provided Punycode.js module instead.
66
+ */
11
67
  const version: string;
12
68
  }
@@ -6,6 +6,7 @@ declare module "worker_threads" {
6
6
 
7
7
  const isMainThread: boolean;
8
8
  const parentPort: null | MessagePort;
9
+ const resourceLimits: ResourceLimits;
9
10
  const SHARE_ENV: unique symbol;
10
11
  const threadId: number;
11
12
  const workerData: any;
@@ -15,9 +16,11 @@ declare module "worker_threads" {
15
16
  readonly port2: MessagePort;
16
17
  }
17
18
 
19
+ type TransferListItem = ArrayBuffer | MessagePort;
20
+
18
21
  class MessagePort extends EventEmitter {
19
22
  close(): void;
20
- postMessage(value: any, transferList?: Array<ArrayBuffer | MessagePort>): void;
23
+ postMessage(value: any, transferList?: TransferListItem[]): void;
21
24
  ref(): void;
22
25
  unref(): void;
23
26
  start(): void;
@@ -74,7 +77,7 @@ declare module "worker_threads" {
74
77
  /**
75
78
  * Additional data to send in the first worker message.
76
79
  */
77
- transferList?: Array<ArrayBuffer | MessagePort>;
80
+ transferList?: TransferListItem[];
78
81
  }
79
82
 
80
83
  interface ResourceLimits {
@@ -83,6 +86,21 @@ declare module "worker_threads" {
83
86
  codeRangeSizeMb?: number;
84
87
  }
85
88
 
89
+ interface ResourceLimits {
90
+ /**
91
+ * The maximum size of a heap space for recently created objects.
92
+ */
93
+ maxYoungGenerationSizeMb?: number;
94
+ /**
95
+ * The maximum size of the main heap in MB.
96
+ */
97
+ maxOldGenerationSizeMb?: number;
98
+ /**
99
+ * The size of a pre-allocated memory range used for generated code.
100
+ */
101
+ codeRangeSizeMb?: number;
102
+ }
103
+
86
104
  class Worker extends EventEmitter {
87
105
  readonly stdin: Writable | null;
88
106
  readonly stdout: Readable;
@@ -97,7 +115,7 @@ declare module "worker_threads" {
97
115
  */
98
116
  constructor(filename: string | URL, options?: WorkerOptions);
99
117
 
100
- postMessage(value: any, transferList?: Array<ArrayBuffer | MessagePort>): void;
118
+ postMessage(value: any, transferList?: TransferListItem[]): void;
101
119
  ref(): void;
102
120
  unref(): void;
103
121
  /**