Skip to content

Commit

Permalink
2020-12-09, Version 15.4.0 (Current)
Browse files Browse the repository at this point in the history
PR-URL: #36435

Notable changes:

* child_processes:
  * add AbortSignal support (Benjamin Gruenbaum) (#36308)
* deps:
  * update ICU to 68.1 (Michaël Zasso) (#36187)
* events:
  * support signal in EventTarget (Benjamin Gruenbaum) (#36258)
  * graduate Event, EventTarget, AbortController (James M Snell) (#35949)
* http:
  * enable call chaining with setHeader() (pooja d.p) (#35924)
* module:
  * add isPreloading indicator (James M Snell) (#36263)
* stream:
  * support abort signal (Benjamin Gruenbaum) (#36061)
  * add FileHandle support to Read/WriteStream (Momtchil Momtchev) (#35922)
* worker:
  * add experimental BroadcastChannel (James M Snell) (#36271)
  • Loading branch information
danielleadams committed Dec 9, 2020
1 parent 8611b8f commit 5e5927e
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 22 deletions.
2 changes: 1 addition & 1 deletion doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ lsExample();
<!-- YAML
added: v0.1.91
changes:
- version: REPLACEME
- version: v15.4.0
pr-url: https://github.com/nodejs/node/pull/36308
description: AbortSignal support was added.
- version: v8.8.0
Expand Down
4 changes: 2 additions & 2 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ process.nextTick(() => ac.abort());

## `events.setMaxListeners(n[, ...eventTargets])`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

* `n` {number} A non-negative number. The maximum number of listeners per
Expand All @@ -1137,7 +1137,7 @@ setMaxListeners(5, target, emitter);
<!-- YAML
added: v14.5.0
changes:
- version: REPLACEME
- version: v15.4.0
pr-url: https://github.com/nodejs/node/pull/35949
description: No longer experimental.
- version: v15.0.0
Expand Down
6 changes: 3 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ fs.copyFileSync('source.txt', 'destination.txt', COPYFILE_EXCL);
added: v0.1.31
changes:
- version:
- REPLACEME
- v15.4.0
pr-url: https://github.com/nodejs/node/pull/35922
description: The `fd` option accepts FileHandle arguments.
- version:
Expand Down Expand Up @@ -1863,7 +1863,7 @@ If `options` is a string, then it specifies the encoding.
added: v0.1.31
changes:
- version:
- REPLACEME
- v15.4.0
pr-url: https://github.com/nodejs/node/pull/35922
description: The `fd` option accepts FileHandle arguments.
- version:
Expand Down Expand Up @@ -4707,7 +4707,7 @@ rejected.

#### Event: `'close'`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

The `'close'` event is emitted when the `FileHandle` and any of its underlying
Expand Down
6 changes: 3 additions & 3 deletions doc/api/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ accessible.
<!--YAML
added: v15.0.0
changes:
- version: REPLACEME
- version: v15.4.0
pr-url: https://github.com/nodejs/node/pull/35949
description: No longer experimental.
-->
Expand Down Expand Up @@ -175,7 +175,7 @@ Used to print to stdout and stderr. See the [`console`][] section.
<!-- YAML
added: v15.0.0
changes:
- version: REPLACEME
- version: v15.4.0
pr-url: https://github.com/nodejs/node/pull/35949
description: No longer experimental.
-->
Expand All @@ -189,7 +189,7 @@ A browser-compatible implementation of the `Event` class. See
<!-- YAML
added: v15.0.0
changes:
- version: REPLACEME
- version: v15.4.0
pr-url: https://github.com/nodejs/node/pull/35949
description: No longer experimental.
-->
Expand Down
2 changes: 1 addition & 1 deletion doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ requireUtil('./some-tool');
### `module.isPreloading`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->
* Type: {boolean} `true` if the module is running during the Node.js preload
Expand Down
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ for performance reasons.

### `stream.addAbortSignal(signal, stream)`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->
* `signal` {AbortSignal} A signal representing possible cancellation
* `stream` {Stream} a stream to attach a signal to
Expand Down
16 changes: 8 additions & 8 deletions doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ if (isMainThread) {

## Class: `BroadcastChannel extends EventTarget`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -311,45 +311,45 @@ if (isMainThread) {

### `new BroadcastChannel(name)`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

* `name` {any} The name of the channel to connect to. Any JavaScript value
that can be converted to a string using ``${name}`` is permitted.

### `broadcastChannel.close()`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

Closes the `BroadcastChannel` connection.

### `broadcastChannel.onmessage`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

* Type: {Function} Invoked with a single `MessageEvent` argument
when a message is received.

### `broadcastChannel.onmessageerror`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

* Type: {Function} Invoked with a received message cannot be
deserialized.

### `broadcastChannel.postMessage(message)`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

* `message` {any} Any cloneable JavaScript value.

### `broadcastChannel.ref()`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed
Expand All @@ -359,7 +359,7 @@ will have no effect.

### `broadcastChannel.unref()`
<!-- YAML
added: REPLACEME
added: v15.4.0
-->

Calling `unref()` on a BroadcastChannel will allow the thread to exit if this
Expand Down
120 changes: 120 additions & 0 deletions doc/changelogs/CHANGELOG_V15.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/node_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
#define SRC_NODE_VERSION_H_

#define NODE_MAJOR_VERSION 15
#define NODE_MINOR_VERSION 3
#define NODE_PATCH_VERSION 1
#define NODE_MINOR_VERSION 4
#define NODE_PATCH_VERSION 0

#define NODE_VERSION_IS_LTS 0
#define NODE_VERSION_LTS_CODENAME ""

#define NODE_VERSION_IS_RELEASE 0
#define NODE_VERSION_IS_RELEASE 1

#ifndef NODE_STRINGIFY
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
Expand Down

0 comments on commit 5e5927e

Please sign in to comment.