Skip to content

Commit 680aeb3

Browse files
committed
2018-16-20, Version 10.5.0 (Current)
Notable changes: * **crypto**: * Support for `crypto.scrypt()` has been added. [#20816](#20816) * **fs**: * BigInt support has been added to `fs.stat` and `fs.watchFile`. [#20220](#20220) * APIs that take `mode` as arguments no longer throw on values larger than `0o777`. [#20636](#20636) [#20975](#20975) (Fixes: [#20498](#20498)) * Fix crashes in closed event watchers. [#20985](#20985) (Fixes: [#20297](#20297)) * **Worker Threads**: * Support for multi-threading has been added behind the `--experimental-worker` flag in the `worker_threads` module. This feature is *experimental* and may receive breaking changes at any time. [#20876](#20876) PR-URL: #21400
1 parent a77b30c commit 680aeb3

File tree

5 files changed

+219
-48
lines changed

5 files changed

+219
-48
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ release.
3333
</tr>
3434
<tr>
3535
<td valign="top">
36-
<b><a href="doc/changelogs/CHANGELOG_V10.md#10.4.1">10.4.1</a></b><br/>
36+
<b><a href="doc/changelogs/CHANGELOG_V10.md#10.5.0">10.5.0</a></b><br/>
37+
<a href="doc/changelogs/CHANGELOG_V10.md#10.4.1">10.4.1</a><br/>
3738
<a href="doc/changelogs/CHANGELOG_V10.md#10.4.0">10.4.0</a><br/>
3839
<a href="doc/changelogs/CHANGELOG_V10.md#10.3.0">10.3.0</a><br/>
3940
<a href="doc/changelogs/CHANGELOG_V10.md#10.2.1">10.2.1</a><br/>

doc/api/crypto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ request.
21432143

21442144
### crypto.scrypt(password, salt, keylen[, options], callback)
21452145
<!-- YAML
2146-
added: REPLACEME
2146+
added: v10.5.0
21472147
-->
21482148
- `password` {string|Buffer|TypedArray}
21492149
- `salt` {string|Buffer|TypedArray}
@@ -2189,7 +2189,7 @@ crypto.scrypt('secret', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
21892189

21902190
### crypto.scryptSync(password, salt, keylen[, options])
21912191
<!-- YAML
2192-
added: REPLACEME
2192+
added: v10.5.0
21932193
-->
21942194
- `password` {string|Buffer|TypedArray}
21952195
- `salt` {string|Buffer|TypedArray}

doc/api/fs.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,8 +1686,8 @@ changes:
16861686
pr-url: https://github.com/nodejs/node/pull/7897
16871687
description: The `callback` parameter is no longer optional. Not passing
16881688
it will emit a deprecation warning with id DEP0013.
1689-
- version: REPLACEME
1690-
pr-url: REPLACEME
1689+
- version: v10.5.0
1690+
pr-url: https://github.com/nodejs/node/pull/20220
16911691
description: Accepts an additional `options` object to specify whether
16921692
the numeric values returned should be bigint.
16931693
-->
@@ -1708,8 +1708,8 @@ except that the file to be stat-ed is specified by the file descriptor `fd`.
17081708
<!-- YAML
17091709
added: v0.1.95
17101710
changes:
1711-
- version: REPLACEME
1712-
pr-url: REPLACEME
1711+
- version: v10.5.0
1712+
pr-url: https://github.com/nodejs/node/pull/20220
17131713
description: Accepts an additional `options` object to specify whether
17141714
the numeric values returned should be bigint.
17151715
-->
@@ -1999,8 +1999,8 @@ changes:
19991999
pr-url: https://github.com/nodejs/node/pull/7897
20002000
description: The `callback` parameter is no longer optional. Not passing
20012001
it will emit a deprecation warning with id DEP0013.
2002-
- version: REPLACEME
2003-
pr-url: REPLACEME
2002+
- version: v10.5.0
2003+
pr-url: https://github.com/nodejs/node/pull/20220
20042004
description: Accepts an additional `options` object to specify whether
20052005
the numeric values returned should be bigint.
20062006
-->
@@ -2026,8 +2026,8 @@ changes:
20262026
pr-url: https://github.com/nodejs/node/pull/10739
20272027
description: The `path` parameter can be a WHATWG `URL` object using `file:`
20282028
protocol. Support is currently still *experimental*.
2029-
- version: REPLACEME
2030-
pr-url: REPLACEME
2029+
- version: v10.5.0
2030+
pr-url: https://github.com/nodejs/node/pull/20220
20312031
description: Accepts an additional `options` object to specify whether
20322032
the numeric values returned should be bigint.
20332033
-->
@@ -2769,8 +2769,8 @@ changes:
27692769
pr-url: https://github.com/nodejs/node/pull/7897
27702770
description: The `callback` parameter is no longer optional. Not passing
27712771
it will emit a deprecation warning with id DEP0013.
2772-
- version: REPLACEME
2773-
pr-url: REPLACEME
2772+
- version: v10.5.0
2773+
pr-url: https://github.com/nodejs/node/pull/20220
27742774
description: Accepts an additional `options` object to specify whether
27752775
the numeric values returned should be bigint.
27762776
-->
@@ -2804,8 +2804,8 @@ changes:
28042804
pr-url: https://github.com/nodejs/node/pull/10739
28052805
description: The `path` parameter can be a WHATWG `URL` object using `file:`
28062806
protocol. Support is currently still *experimental*.
2807-
- version: REPLACEME
2808-
pr-url: REPLACEME
2807+
- version: v10.5.0
2808+
pr-url: https://github.com/nodejs/node/pull/20220
28092809
description: Accepts an additional `options` object to specify whether
28102810
the numeric values returned should be bigint.
28112811
-->
@@ -3594,8 +3594,8 @@ The `FileHandle` has to support reading.
35943594
<!-- YAML
35953595
added: v10.0.0
35963596
changes:
3597-
- version: REPLACEME
3598-
pr-url: REPLACEME
3597+
- version: v10.5.0
3598+
pr-url: https://github.com/nodejs/node/pull/20220
35993599
description: Accepts an additional `options` object to specify whether
36003600
the numeric values returned should be bigint.
36013601
-->
@@ -3930,8 +3930,8 @@ Asynchronous link(2). The `Promise` is resolved with no arguments upon success.
39303930
<!-- YAML
39313931
added: v10.0.0
39323932
changes:
3933-
- version: REPLACEME
3934-
pr-url: REPLACEME
3933+
- version: v10.5.0
3934+
pr-url: https://github.com/nodejs/node/pull/20220
39353935
description: Accepts an additional `options` object to specify whether
39363936
the numeric values returned should be bigint.
39373937
-->
@@ -4124,8 +4124,8 @@ error on POSIX.
41244124
<!-- YAML
41254125
added: v10.0.0
41264126
changes:
4127-
- version: REPLACEME
4128-
pr-url: REPLACEME
4127+
- version: v10.5.0
4128+
pr-url: https://github.com/nodejs/node/pull/20220
41294129
description: Accepts an additional `options` object to specify whether
41304130
the numeric values returned should be bigint.
41314131
-->

doc/api/worker_threads.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Worker Threads
22

3-
<!--introduced_in=REPLACEME-->
3+
<!--introduced_in=v10.5.0-->
44

55
> Stability: 1 - Experimental
66
@@ -55,7 +55,7 @@ benefit of handing the work off to it.
5555

5656
## worker.isMainThread
5757
<!-- YAML
58-
added: REPLACEME
58+
added: v10.5.0
5959
-->
6060

6161
* {boolean}
@@ -64,7 +64,7 @@ Is `true` if this code is not running inside of a [`Worker`][] thread.
6464

6565
## worker.parentPort
6666
<!-- YAML
67-
added: REPLACEME
67+
added: v10.5.0
6868
-->
6969

7070
* {null|MessagePort}
@@ -78,7 +78,7 @@ using `worker.postMessage()` will be available in this thread using
7878

7979
## worker.threadId
8080
<!-- YAML
81-
added: REPLACEME
81+
added: v10.5.0
8282
-->
8383

8484
* {integer}
@@ -88,15 +88,15 @@ An integer identifier for the current thread. On the corresponding worker object
8888

8989
## worker.workerData
9090
<!-- YAML
91-
added: REPLACEME
91+
added: v10.5.0
9292
-->
9393

9494
An arbitrary JavaScript value that contains a clone of the data passed
9595
to this thread’s `Worker` constructor.
9696

9797
## Class: MessageChannel
9898
<!-- YAML
99-
added: REPLACEME
99+
added: v10.5.0
100100
-->
101101

102102
Instances of the `worker.MessageChannel` class represent an asynchronous,
@@ -116,7 +116,7 @@ port2.postMessage({ foo: 'bar' });
116116

117117
## Class: MessagePort
118118
<!-- YAML
119-
added: REPLACEME
119+
added: v10.5.0
120120
-->
121121

122122
* Extends: {EventEmitter}
@@ -131,15 +131,15 @@ than `EventTarget`s, this implementation matches [browser `MessagePort`][]s.
131131

132132
### Event: 'close'
133133
<!-- YAML
134-
added: REPLACEME
134+
added: v10.5.0
135135
-->
136136

137137
The `'close'` event is emitted once either side of the channel has been
138138
disconnected.
139139

140140
### Event: 'message'
141141
<!-- YAML
142-
added: REPLACEME
142+
added: v10.5.0
143143
-->
144144

145145
* `value` {any} The transmitted value
@@ -152,7 +152,7 @@ to `postMessage()` and no further arguments.
152152

153153
### port.close()
154154
<!-- YAML
155-
added: REPLACEME
155+
added: v10.5.0
156156
-->
157157

158158
Disables further sending of messages on either side of the connection.
@@ -161,7 +161,7 @@ will happen over this `MessagePort`.
161161

162162
### port.postMessage(value[, transferList])
163163
<!-- YAML
164-
added: REPLACEME
164+
added: v10.5.0
165165
-->
166166

167167
* `value` {any}
@@ -198,7 +198,7 @@ behind this API, see the [serialization API of the `v8` module][v8.serdes].
198198

199199
### port.ref()
200200
<!-- YAML
201-
added: REPLACEME
201+
added: v10.5.0
202202
-->
203203

204204
Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port will
@@ -211,7 +211,7 @@ listeners for the event exist.
211211

212212
### port.start()
213213
<!-- YAML
214-
added: REPLACEME
214+
added: v10.5.0
215215
-->
216216

217217
Starts receiving messages on this `MessagePort`. When using this port
@@ -220,7 +220,7 @@ listeners are attached.
220220

221221
### port.unref()
222222
<!-- YAML
223-
added: REPLACEME
223+
added: v10.5.0
224224
-->
225225

226226
Calling `unref()` on a port will allow the thread to exit if this is the only
@@ -233,7 +233,7 @@ listeners for the event exist.
233233

234234
## Class: Worker
235235
<!-- YAML
236-
added: REPLACEME
236+
added: v10.5.0
237237
-->
238238

239239
The `Worker` class represents an independent JavaScript execution thread.
@@ -327,7 +327,7 @@ if (isMainThread) {
327327

328328
### Event: 'error'
329329
<!-- YAML
330-
added: REPLACEME
330+
added: v10.5.0
331331
-->
332332

333333
* `err` {Error}
@@ -337,7 +337,7 @@ exception. In that case, the worker will be terminated.
337337

338338
### Event: 'exit'
339339
<!-- YAML
340-
added: REPLACEME
340+
added: v10.5.0
341341
-->
342342

343343
* `exitCode` {integer}
@@ -349,7 +349,7 @@ be `1`.
349349

350350
### Event: 'message'
351351
<!-- YAML
352-
added: REPLACEME
352+
added: v10.5.0
353353
-->
354354

355355
* `value` {any} The transmitted value
@@ -360,15 +360,15 @@ event for more details.
360360

361361
### Event: 'online'
362362
<!-- YAML
363-
added: REPLACEME
363+
added: v10.5.0
364364
-->
365365

366366
The `'online'` event is emitted when the worker thread has started executing
367367
JavaScript code.
368368

369369
### worker.postMessage(value[, transferList])
370370
<!-- YAML
371-
added: REPLACEME
371+
added: v10.5.0
372372
-->
373373

374374
* `value` {any}
@@ -380,7 +380,7 @@ See [`port.postMessage()`][] for more details.
380380

381381
### worker.ref()
382382
<!-- YAML
383-
added: REPLACEME
383+
added: v10.5.0
384384
-->
385385

386386
Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker will
@@ -390,7 +390,7 @@ no effect.
390390

391391
### worker.stderr
392392
<!-- YAML
393-
added: REPLACEME
393+
added: v10.5.0
394394
-->
395395

396396
* {stream.Readable}
@@ -402,7 +402,7 @@ inside the worker thread. If `stderr: true` was not passed to the
402402

403403
### worker.stdin
404404
<!-- YAML
405-
added: REPLACEME
405+
added: v10.5.0
406406
-->
407407

408408
* {null|stream.Writable}
@@ -413,7 +413,7 @@ the worker thread as [`process.stdin`][].
413413

414414
### worker.stdout
415415
<!-- YAML
416-
added: REPLACEME
416+
added: v10.5.0
417417
-->
418418

419419
* {stream.Readable}
@@ -425,7 +425,7 @@ inside the worker thread. If `stdout: true` was not passed to the
425425

426426
### worker.terminate([callback])
427427
<!-- YAML
428-
added: REPLACEME
428+
added: v10.5.0
429429
-->
430430

431431
* `callback` {Function}
@@ -442,7 +442,7 @@ than what is exposed in the `worker` module.
442442

443443
### worker.threadId
444444
<!-- YAML
445-
added: REPLACEME
445+
added: v10.5.0
446446
-->
447447

448448
* {integer}
@@ -452,7 +452,7 @@ it is available as [`require('worker_threads').threadId`][].
452452

453453
### worker.unref()
454454
<!-- YAML
455-
added: REPLACEME
455+
added: v10.5.0
456456
-->
457457

458458
Calling `unref()` on a worker will allow the thread to exit if this is the only

0 commit comments

Comments
 (0)