Skip to content

Commit

Permalink
feat: 14.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h7lin committed Oct 18, 2020
1 parent 3b29417 commit c2f884b
Show file tree
Hide file tree
Showing 159 changed files with 690 additions and 444 deletions.
16 changes: 11 additions & 5 deletions assert/assert_deepequal_actual_expected_message.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,23 @@ changes:
minor comparison adjustments to make the check less surprising.
- version: v9.0.0
pr-url: https://github.com/nodejs/node/pull/15001
description: The `Error` names and messages are now properly compared
description: The `Error` names and messages are now properly compared.
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/12142
description: The `Set` and `Map` content is also compared
- version: v6.4.0, v4.7.1
description: The `Set` and `Map` content is also compared.
- version:
- v6.4.0
- v4.7.1
pr-url: https://github.com/nodejs/node/pull/8002
description: Typed array slices are handled correctly now.
- version: v6.1.0, v4.5.0
- version:
- v6.1.0
- v4.5.0
pr-url: https://github.com/nodejs/node/pull/6432
description: Objects with circular references can be used as inputs now.
- version: v5.10.1, v4.4.3
- version:
- v5.10.1
- v4.4.3
pr-url: https://github.com/nodejs/node/pull/5910
description: Handle non-`Uint8Array` typed arrays correctly.
-->
Expand Down
13 changes: 9 additions & 4 deletions assert/assert_deepstrictequal_actual_expected_message.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,25 @@ changes:
comparison.
- version: v8.5.0
pr-url: https://github.com/nodejs/node/pull/15001
description: The `Error` names and messages are now properly compared
description: The `Error` names and messages are now properly compared.
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/12142
description: The `Set` and `Map` content is also compared
- version: v6.4.0, v4.7.1
description: The `Set` and `Map` content is also compared.
- version:
- v6.4.0
- v4.7.1
pr-url: https://github.com/nodejs/node/pull/8002
description: Typed array slices are handled correctly now.
- version: v6.1.0
pr-url: https://github.com/nodejs/node/pull/6432
description: Objects with circular references can be used as inputs now.
- version: v5.10.1, v4.4.3
- version:
- v5.10.1
- v4.4.3
pr-url: https://github.com/nodejs/node/pull/5910
description: Handle non-`Uint8Array` typed arrays correctly.
-->

* `actual` {any}
* `expected` {any}
* `message` {string|Error}
Expand Down
4 changes: 3 additions & 1 deletion assert/assert_doesnotthrow_fn_error_message.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!-- YAML
added: v0.1.21
changes:
- version: v5.11.0, v4.4.5
- version:
- v5.11.0
- v4.4.5
pr-url: https://github.com/nodejs/node/pull/2407
description: The `message` parameter is respected now.
- version: v4.2.0
Expand Down
16 changes: 11 additions & 5 deletions assert/assert_notdeepequal_actual_expected_message.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ changes:
NaN.
- version: v9.0.0
pr-url: https://github.com/nodejs/node/pull/15001
description: The `Error` names and messages are now properly compared
description: The `Error` names and messages are now properly compared.
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/12142
description: The `Set` and `Map` content is also compared
- version: v6.4.0, v4.7.1
description: The `Set` and `Map` content is also compared.
- version:
- v6.4.0
- v4.7.1
pr-url: https://github.com/nodejs/node/pull/8002
description: Typed array slices are handled correctly now.
- version: v6.1.0, v4.5.0
- version:
- v6.1.0
- v4.5.0
pr-url: https://github.com/nodejs/node/pull/6432
description: Objects with circular references can be used as inputs now.
- version: v5.10.1, v4.4.3
- version:
- v5.10.1
- v4.4.3
pr-url: https://github.com/nodejs/node/pull/5910
description: Handle non-`Uint8Array` typed arrays correctly.
-->
Expand Down
13 changes: 9 additions & 4 deletions assert/assert_notdeepstrictequal_actual_expected_message.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,25 @@ changes:
comparison.
- version: v9.0.0
pr-url: https://github.com/nodejs/node/pull/15001
description: The `Error` names and messages are now properly compared
description: The `Error` names and messages are now properly compared.
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/12142
description: The `Set` and `Map` content is also compared
- version: v6.4.0, v4.7.1
description: The `Set` and `Map` content is also compared.
- version:
- v6.4.0
- v4.7.1
pr-url: https://github.com/nodejs/node/pull/8002
description: Typed array slices are handled correctly now.
- version: v6.1.0
pr-url: https://github.com/nodejs/node/pull/6432
description: Objects with circular references can be used as inputs now.
- version: v5.10.1, v4.4.3
- version:
- v5.10.1
- v4.4.3
pr-url: https://github.com/nodejs/node/pull/5910
description: Handle non-`Uint8Array` typed arrays correctly.
-->

* `actual` {any}
* `expected` {any}
* `message` {string|Error}
Expand Down
3 changes: 2 additions & 1 deletion assert/assert_notstrictequal_actual_expected_message.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ added: v0.1.21
changes:
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/17003
description: Used comparison changed from Strict Equality to `Object.is()`
description: Used comparison changed from Strict Equality to `Object.is()`.
-->

* `actual` {any}
* `expected` {any}
* `message` {string|Error}
Expand Down
3 changes: 2 additions & 1 deletion assert/assert_strictequal_actual_expected_message.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ added: v0.1.21
changes:
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/17003
description: Used comparison changed from Strict Equality to `Object.is()`
description: Used comparison changed from Strict Equality to `Object.is()`.
-->

* `actual` {any}
* `expected` {any}
* `message` {string|Error}
Expand Down
1 change: 1 addition & 0 deletions assert/strict_assertion_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ changes:
- version:
- v13.9.0
- v12.16.2
pr-url: https://github.com/nodejs/node/pull/31635
description: 将“严格模式”更改为“严格的断言模式”,将“传统模式”更改为“传统的断言模式”,以避免与更常见的“严格模式”的含义混淆。
- version: v9.9.0
pr-url: https://github.com/nodejs/node/pull/17615
Expand Down
2 changes: 1 addition & 1 deletion async_hooks/async_hooks_executionasyncid.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ added: v8.1.0
changes:
- version: v8.2.0
pr-url: https://github.com/nodejs/node/pull/13490
description: Renamed from `currentId`
description: Renamed from `currentId`.
-->

* Returns: {number} The `asyncId` of the current execution context. Useful to
Expand Down
4 changes: 0 additions & 4 deletions buffer/buf_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<!-- YAML
type: property
name: [index]
-->

* `index` {integer}

Expand Down
4 changes: 3 additions & 1 deletion buffer/buf_indexof_value_byteoffset_encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ changes:
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/10236
description: The `value` can now be a `Uint8Array`.
- version: v5.7.0, v4.4.0
- version:
- v5.7.0
- v4.4.0
pr-url: https://github.com/nodejs/node/pull/4803
description: When `encoding` is being passed, the `byteOffset` parameter
is no longer required.
Expand Down
4 changes: 3 additions & 1 deletion buffer/buf_readbiguint64le_offset.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ added:
- v12.0.0
- v10.20.0
changes:
- version: v14.10.0
- version:
- v14.10.0
- v12.19.0
pr-url: https://github.com/nodejs/node/pull/34960
description: This function is also available as `buf.readBigUint64LE()`.
-->
Expand Down
4 changes: 3 additions & 1 deletion buffer/buf_slice_start_end.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!-- YAML
added: v0.3.0
changes:
- version: v7.1.0, v6.9.2
- version:
- v7.1.0
- v6.9.2
pr-url: https://github.com/nodejs/node/pull/9341
description: Coercing the offsets to integers now handles values outside
the 32-bit integer range properly.
Expand Down
4 changes: 3 additions & 1 deletion buffer/buf_writeuint16le_value_offset.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!-- YAML
added: v0.5.5
changes:
- version: v14.9.0
- version:
- v14.9.0
- v12.19.0
pr-url: https://github.com/nodejs/node/pull/34729
description: This function is also available as `buf.writeUint16LE()`.
- version: v10.0.0
Expand Down
2 changes: 1 addition & 1 deletion buffer/static_method_buffer_allocunsafe_size.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ console.log(buf);

如果 `size` 不是一个数字,则抛出 `TypeError`

`Buffer` 模块会预分配一个内部的大小为 [`Buffer.poolSize`] `Buffer` 实例,作为快速分配的内存池,用于使用 [`Buffer.allocUnsafe()`] 创建新的 `Buffer` 实例、或 [`Buffer.from(array)`]、或弃用的 `new Buffer(size)` 构造器但仅当 `size` 小于或等于 `Buffer.poolSize >> 1`[`Buffer.poolSize`] 除以二再向下取整)。
`Buffer` 模块会预分配一个内部的大小为 [`Buffer.poolSize`] `Buffer` 实例,作为快速分配的内存池,用于使用 [`Buffer.allocUnsafe()`] 创建新的 `Buffer` 实例、或 [`Buffer.from(array)`] [`Buffer.concat()`]或弃用的 `new Buffer(size)` 构造器但仅当 `size` 小于或等于 `Buffer.poolSize >> 1`[`Buffer.poolSize`] 除以二再向下取整)。

对这个预分配的内部内存池的使用是调用 `Buffer.alloc(size, fill)` `Buffer.allocUnsafe(size).fill(fill)` 两者之间的关键区别。
具体来说,`Buffer.alloc(size, fill)` 永远不会使用内部的 `Buffer` 池,而 `Buffer.allocUnsafe(size).fill(fill)` `size` 小于或等于 [`Buffer.poolSize`] 的一半时将会使用内部的 `Buffer`池。
Expand Down
2 changes: 2 additions & 0 deletions buffer/static_method_buffer_concat_list_totallength.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ console.log(bufA.length);
// 打印: 42
```

`Buffer.concat()` may also use the internal `Buffer` pool like
[`Buffer.allocUnsafe()`][] does.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ changes:
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/10653
description: 选项 `input` 可以是 `Uint8Array`
- version: v6.2.1, v4.5.0
- version:
- v6.2.1
- v4.5.0
pr-url: https://github.com/nodejs/node/pull/6939
description: The `encoding` option can now explicitly be set to `buffer`.
-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ changes:
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/10653
description: 选项 `input` 可以是 `Uint8Array`
- version: v6.2.1, v4.5.0
- version:
- v6.2.1
- v4.5.0
pr-url: https://github.com/nodejs/node/pull/6939
description: The `encoding` option can now explicitly be set to `buffer`.
- version: v5.7.0
Expand Down
2 changes: 1 addition & 1 deletion cli/experimental_wasi_unstable_preview1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ changes:
- version: v13.6.0
pr-url: https://github.com/nodejs/node/pull/30980
description: changed from `--experimental-wasi-unstable-preview0` to
`--experimental-wasi-unstable-preview1`
`--experimental-wasi-unstable-preview1`.
-->

Enable experimental WebAssembly System Interface (WASI) support.
Expand Down
2 changes: 1 addition & 1 deletion cli/report_dir_directory_report_directory_directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ changes:
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/27312
description: Changed from `--diagnostic-report-directory` to
`--report-directory`
`--report-directory`.
-->

Location at which the report will be generated.
Expand Down
2 changes: 1 addition & 1 deletion cli/report_filename_filename.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ changes:
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/27312
description: changed from `--diagnostic-report-filename` to
`--report-filename`
`--report-filename`.
-->

Name of the file to which the report will be written.
Expand Down
2 changes: 1 addition & 1 deletion cli/report_on_fatalerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ changes:
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/27312
description: changed from `--diagnostic-report-on-fatalerror` to
`--report-on-fatalerror`
`--report-on-fatalerror`.
-->

Enables the report to be triggered on fatal errors (internal errors within
Expand Down
2 changes: 1 addition & 1 deletion cli/report_on_signal.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ changes:
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/27312
description: changed from `--diagnostic-report-on-signal` to
`--report-on-signal`
`--report-on-signal`.
-->

Enables report to be generated upon receiving the specified (or predefined)
Expand Down
2 changes: 1 addition & 1 deletion cli/report_signal_signal.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ changes:
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/27312
description: changed from `--diagnostic-report-signal` to
`--report-signal`
`--report-signal`.
-->

Sets or resets the signal for report generation (not supported on Windows).
Expand Down
2 changes: 1 addition & 1 deletion cli/report_uncaught_exception.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ changes:
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/27312
description: changed from `--diagnostic-report-uncaught-exception` to
`--report-uncaught-exception`
`--report-uncaught-exception`.
-->

Enables report to be generated on uncaught exceptions. Useful when inspecting
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!-- YAML
added: v0.11.14
changes:
- version: v6.0.0
pr-url: https://github.com/nodejs/node/pull/5522
description: The default `inputEncoding` changed from `binary` to `utf8`
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/16849
description: Changed error format to better support invalid public key
error
error.
- version: v6.0.0
pr-url: https://github.com/nodejs/node/pull/5522
description: The default `inputEncoding` changed from `binary` to `utf8`.
-->

* `otherPublicKey` {string | Buffer | TypedArray | DataView}
Expand Down
4 changes: 2 additions & 2 deletions crypto/keyobject_asymmetrickeytype.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ changes:
description: Added support for `'dh'`.
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/26960
description: Added support for `'rsa-pss'`
description: Added support for `'rsa-pss'`.
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/26786
description: This property now returns `undefined` for KeyObject
instances of unrecognized type instead of aborting.
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/26774
description: Added support for `'x25519'` and `'x448'`
description: Added support for `'x25519'` and `'x448'`.
- version: v12.0.0
pr-url: https://github.com/nodejs/node/pull/26319
description: Added support for `'ed25519'` and `'ed448'`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ changes:
pr-url: https://github.com/nodejs/node/pull/31164
description: End-of-Life.
- version:
- v4.8.6
- v6.12.0
- v4.8.6
pr-url: https://github.com/nodejs/node/pull/10116
description: A deprecation code has been assigned.
- version: v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions deprecations/dep0003_writablestate_buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
changes:
- version: v14.0.0
pr-url: https://github.com/nodejs/node/pull/31165
description: End-of-Life
description: End-of-Life.
- version:
- v4.8.6
- v6.12.0
- v4.8.6
pr-url: https://github.com/nodejs/node/pull/10116
description: A deprecation code has been assigned.
- version: v0.11.15
Expand Down
4 changes: 2 additions & 2 deletions deprecations/dep0004_cryptostream_prototype_readystate.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ changes:
pr-url: https://github.com/nodejs/node/pull/17882
description: End-of-Life.
- version:
- v4.8.6
- v6.12.0
- v4.8.6
pr-url: https://github.com/nodejs/node/pull/10116
description: A deprecation code has been assigned.
- version: 0.4.0
- version: v0.4.0
commit: 9c7f89bf56abd37a796fea621ad2e47dd33d2b82
description: Documentation-only deprecation.
-->
Expand Down
Loading

0 comments on commit c2f884b

Please sign in to comment.