Skip to content

Commit e1c28f4

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 bc20ec0 commit e1c28f4

File tree

6 files changed

+222
-51
lines changed

6 files changed

+222
-51
lines changed

CHANGELOG.md

+2-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2138,7 +2138,7 @@ request.
21382138

21392139
### crypto.scrypt(password, salt, keylen[, options], callback)
21402140
<!-- YAML
2141-
added: REPLACEME
2141+
added: v10.5.0
21422142
-->
21432143
- `password` {string|Buffer|TypedArray}
21442144
- `salt` {string|Buffer|TypedArray}
@@ -2184,7 +2184,7 @@ crypto.scrypt('secret', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
21842184

21852185
### crypto.scryptSync(password, salt, keylen[, options])
21862186
<!-- YAML
2187-
added: REPLACEME
2187+
added: v10.5.0
21882188
-->
21892189
- `password` {string|Buffer|TypedArray}
21902190
- `salt` {string|Buffer|TypedArray}

doc/api/fs.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -1681,8 +1681,8 @@ changes:
16811681
pr-url: https://github.com/nodejs/node/pull/7897
16821682
description: The `callback` parameter is no longer optional. Not passing
16831683
it will emit a deprecation warning with id DEP0013.
1684-
- version: REPLACEME
1685-
pr-url: REPLACEME
1684+
- version: v10.5.0
1685+
pr-url: https://github.com/nodejs/node/pull/20220
16861686
description: Accepts an additional `options` object to specify whether
16871687
the numeric values returned should be bigint.
16881688
-->
@@ -1703,8 +1703,8 @@ except that the file to be stat-ed is specified by the file descriptor `fd`.
17031703
<!-- YAML
17041704
added: v0.1.95
17051705
changes:
1706-
- version: REPLACEME
1707-
pr-url: REPLACEME
1706+
- version: v10.5.0
1707+
pr-url: https://github.com/nodejs/node/pull/20220
17081708
description: Accepts an additional `options` object to specify whether
17091709
the numeric values returned should be bigint.
17101710
-->
@@ -1994,8 +1994,8 @@ changes:
19941994
pr-url: https://github.com/nodejs/node/pull/7897
19951995
description: The `callback` parameter is no longer optional. Not passing
19961996
it will emit a deprecation warning with id DEP0013.
1997-
- version: REPLACEME
1998-
pr-url: REPLACEME
1997+
- version: v10.5.0
1998+
pr-url: https://github.com/nodejs/node/pull/20220
19991999
description: Accepts an additional `options` object to specify whether
20002000
the numeric values returned should be bigint.
20012001
-->
@@ -2021,8 +2021,8 @@ changes:
20212021
pr-url: https://github.com/nodejs/node/pull/10739
20222022
description: The `path` parameter can be a WHATWG `URL` object using `file:`
20232023
protocol. Support is currently still *experimental*.
2024-
- version: REPLACEME
2025-
pr-url: REPLACEME
2024+
- version: v10.5.0
2025+
pr-url: https://github.com/nodejs/node/pull/20220
20262026
description: Accepts an additional `options` object to specify whether
20272027
the numeric values returned should be bigint.
20282028
-->
@@ -2764,8 +2764,8 @@ changes:
27642764
pr-url: https://github.com/nodejs/node/pull/7897
27652765
description: The `callback` parameter is no longer optional. Not passing
27662766
it will emit a deprecation warning with id DEP0013.
2767-
- version: REPLACEME
2768-
pr-url: REPLACEME
2767+
- version: v10.5.0
2768+
pr-url: https://github.com/nodejs/node/pull/20220
27692769
description: Accepts an additional `options` object to specify whether
27702770
the numeric values returned should be bigint.
27712771
-->
@@ -2799,8 +2799,8 @@ changes:
27992799
pr-url: https://github.com/nodejs/node/pull/10739
28002800
description: The `path` parameter can be a WHATWG `URL` object using `file:`
28012801
protocol. Support is currently still *experimental*.
2802-
- version: REPLACEME
2803-
pr-url: REPLACEME
2802+
- version: v10.5.0
2803+
pr-url: https://github.com/nodejs/node/pull/20220
28042804
description: Accepts an additional `options` object to specify whether
28052805
the numeric values returned should be bigint.
28062806
-->
@@ -3589,8 +3589,8 @@ The `FileHandle` has to support reading.
35893589
<!-- YAML
35903590
added: v10.0.0
35913591
changes:
3592-
- version: REPLACEME
3593-
pr-url: REPLACEME
3592+
- version: v10.5.0
3593+
pr-url: https://github.com/nodejs/node/pull/20220
35943594
description: Accepts an additional `options` object to specify whether
35953595
the numeric values returned should be bigint.
35963596
-->
@@ -3925,8 +3925,8 @@ Asynchronous link(2). The `Promise` is resolved with no arguments upon success.
39253925
<!-- YAML
39263926
added: v10.0.0
39273927
changes:
3928-
- version: REPLACEME
3929-
pr-url: REPLACEME
3928+
- version: v10.5.0
3929+
pr-url: https://github.com/nodejs/node/pull/20220
39303930
description: Accepts an additional `options` object to specify whether
39313931
the numeric values returned should be bigint.
39323932
-->
@@ -4119,8 +4119,8 @@ error on POSIX.
41194119
<!-- YAML
41204120
added: v10.0.0
41214121
changes:
4122-
- version: REPLACEME
4123-
pr-url: REPLACEME
4122+
- version: v10.5.0
4123+
pr-url: https://github.com/nodejs/node/pull/20220
41244124
description: Accepts an additional `options` object to specify whether
41254125
the numeric values returned should be bigint.
41264126
-->

doc/api/worker_threads.md

+27-27
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)