Skip to content

Commit

Permalink
2021-08-17, Version 16.7.0 (Current)
Browse files Browse the repository at this point in the history
Notable changes:

* fs:
  * add recursive cp method (Benjamin Coe) #39372
  • Loading branch information
danielleadams committed Aug 16, 2021
1 parent dcab88a commit eb1a14c
Show file tree
Hide file tree
Showing 14 changed files with 171 additions and 40 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V16.md#16.6.2">16.6.2</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V16.md#16.7.0">16.7.0</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V16.md#16.6.2">16.6.2</a><br/>
<a href="doc/changelogs/CHANGELOG_V16.md#16.6.1">16.6.1</a><br/>
<a href="doc/changelogs/CHANGELOG_V16.md#16.6.0">16.6.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V16.md#16.5.0">16.5.0</a><br/>
Expand Down
6 changes: 3 additions & 3 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ multiple worker threads.
<!-- YAML
added: v15.7.0
changes:
- version: REPLACEME
- version: v16.7.0
pr-url: https://github.com/nodejs/node/pull/39708
description: Added the standard `endings` option to replace line-endings,
and removed the non-standard `encoding` option.
Expand Down Expand Up @@ -517,7 +517,7 @@ data. The original `Blob` is not altered.

### `blob.stream()`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->

* Returns: {ReadableStream}
Expand Down Expand Up @@ -4958,7 +4958,7 @@ An alias for [`buffer.constants.MAX_STRING_LENGTH`][].

### `buffer.resolveObjectURL(id)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->

> Stability: 1 - Experimental
Expand Down
2 changes: 1 addition & 1 deletion doc/api/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The following methods from the `dns` module are available:
<!-- YAML
added: v8.3.0
changes:
- version: REPLACEME
- version: v16.7.0
pr-url: https://github.com/nodejs/node/pull/39610
description: The `options` object now accepts a `tries` option.
- version: v12.18.3
Expand Down
16 changes: 8 additions & 8 deletions doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ to the current platform which is running Node.js is used.
<a id="ERR_FS_CP_DIR_TO_NON_DIR"></a>
### `ERR_FS_CP_DIR_TO_NON_DIR`
<!--
added: REPLACEME
added: v16.7.0
-->

An attempt was made to copy a directory to a non-directory (file, symlink,
Expand All @@ -1119,7 +1119,7 @@ etc.) using [`fs.cp()`][].
<a id="ERR_FS_CP_EEXIST"></a>
### `ERR_FS_CP_EEXIST`
<!--
added: REPLACEME
added: v16.7.0
-->

An attempt was made to copy over a file that already existed with
Expand All @@ -1128,23 +1128,23 @@ An attempt was made to copy over a file that already existed with
<a id="ERR_FS_CP_EINVAL"></a>
### `ERR_FS_CP_EINVAL`
<!--
added: REPLACEME
added: v16.7.0
-->

When using [`fs.cp()`][], `src` or `dest` pointed to an invalid path.

<a id="ERR_FS_CP_FIFO_PIPE"></a>
### `ERR_FS_CP_FIFO_PIPE`
<!--
added: REPLACEME
added: v16.7.0
-->

An attempt was made to copy a named pipe with [`fs.cp()`][].

<a id="ERR_FS_CP_NON_DIR_TO_DIR"></a>
### `ERR_FS_CP_NON_DIR_TO_DIR`
<!--
added: REPLACEME
added: v16.7.0
-->

An attempt was made to copy a non-directory (file, symlink, etc.) to a directory
Expand All @@ -1153,15 +1153,15 @@ using [`fs.cp()`][].
<a id="ERR_FS_CP_SOCKET"></a>
### `ERR_FS_CP_SOCKET`
<!--
added: REPLACEME
added: v16.7.0
-->

An attempt was made to copy to a socket with [`fs.cp()`][].

<a id="ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY"></a>
### `ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY`
<!--
added: REPLACEME
added: v16.7.0
-->

When using [`fs.cp()`][], a symlink in `dest` pointed to a subdirectory
Expand All @@ -1170,7 +1170,7 @@ of `src`.
<a id="ERR_FS_CP_UNKNOWN"></a>
### `ERR_FS_CP_UNKNOWN`
<!--
added: REPLACEME
added: v16.7.0
-->

An attempt was made to copy to an unknown file type with [`fs.cp()`][].
Expand Down
6 changes: 3 additions & 3 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ try {
### `fsPromises.cp(src, dest[, options])`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
> Stability: 1 - Experimental
Expand Down Expand Up @@ -1836,7 +1836,7 @@ copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback);
### `fs.cp(src, dest[, options], callback)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
> Stability: 1 - Experimental
Expand Down Expand Up @@ -4337,7 +4337,7 @@ copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL);
### `fs.cpSync(src, dest[, options])`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
> Stability: 1 - Experimental
Expand Down
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,7 @@ This can be overridden for servers and client requests by passing the
<!-- YAML
added: v0.3.6
changes:
- version: REPLACEME
- version: v16.7.0
pr-url: https://github.com/nodejs/node/pull/39310
description: When using a `URL` object parsed username and
password will now be properly URI decoded.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/https.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Global instance of [`https.Agent`][] for all HTTPS client requests.
<!-- YAML
added: v0.3.6
changes:
- version: REPLACEME
- version: v16.7.0
pr-url: https://github.com/nodejs/node/pull/39310
description: When using a `URL` object parsed username
and password will now be properly URI decoded.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/perf_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ Disconnects the `PerformanceObserver` instance from all notifications.
<!-- YAML
added: v8.5.0
changes:
- version: REPLACEME
- version: v16.7.0
pr-url: https://github.com/nodejs/node/pull/39297
description: Updated to conform to Performance Timeline Level 2. The
buffered option has been added back.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ the stream has not been destroyed or emitted `'error'` or `'end'`.

##### `readable.readableDidRead`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->

* {boolean}
Expand Down
4 changes: 2 additions & 2 deletions doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ console.log(JSON.stringify(myURLs));

#### `URL.createObjectURL(blob)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->

> Stability: 1 - Experimental
Expand Down Expand Up @@ -645,7 +645,7 @@ to other workers or the main thread.

#### `URL.revokeObjectURL(id)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->

> Stability: 1 - Experimental
Expand Down
2 changes: 1 addition & 1 deletion doc/api/webcrypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ An error will be thrown if the given `typedArray` is larger than 65,536 bytes.

### `crypto.randomUUID()`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->

* Returns: {string}
Expand Down
28 changes: 14 additions & 14 deletions doc/api/webstreams.md
Original file line number Diff line number Diff line change
Expand Up @@ -1221,58 +1221,58 @@ added: v16.6.0
### Class: `CompressionStream`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
#### `new CompressionStream(format)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* `format` {string} One of either `'deflate'` or `'gzip'`.
#### `compressionStream.readable`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* Type: {ReadableStream}
#### `compressionStream.writable`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* Type: {WritableStream}
### Class: `DecompressionStream`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
#### `new DecompressionStream(format)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* `format` {string} One of either `'deflate'` or `'gzip'`.
#### `decompressionStream.readable`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* Type: {ReadableStream}
#### `deccompressionStream.writable`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* Type: {WritableStream}
### Utility Consumers
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
The utility consumer functions provide common options for consuming
Expand Down Expand Up @@ -1300,7 +1300,7 @@ const {
#### `streamConsumers.arrayBuffer(stream)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* `stream` {ReadableStream|stream.Readable|AsyncIterator}
Expand All @@ -1309,7 +1309,7 @@ added: REPLACEME
#### `streamConsumers.blob(stream)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* `stream` {ReadableStream|stream.Readable|AsyncIterator}
Expand All @@ -1318,7 +1318,7 @@ added: REPLACEME
#### `streamConsumers.buffer(stream)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* `stream` {ReadableStream|stream.Readable|AsyncIterator}
Expand All @@ -1327,7 +1327,7 @@ added: REPLACEME
#### `streamConsumers.json(stream)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* `stream` {ReadableStream|stream.Readable|AsyncIterator}
Expand All @@ -1336,7 +1336,7 @@ added: REPLACEME
#### `streamConsumers.text(stream)`
<!-- YAML
added: REPLACEME
added: v16.7.0
-->
* `stream` {ReadableStream|stream.Readable|AsyncIterator}
Expand Down
Loading

0 comments on commit eb1a14c

Please sign in to comment.