Skip to content

Commit

Permalink
2018-04-24, Version 10.0.0 (Current)
Browse files Browse the repository at this point in the history
* Assert
  * Calling `assert.fail()` with more than one argument is deprecated. #70dcacd710
  * Calling `assert.ok()` with no arguments will now throw. #3cd7977a42
  * Calling `assert.ifError()` will now throw with any argument other than `undefined` or `null`. Previously the method would throw with any truthy value. #e65a6e81ef
  * The `assert.rejects()` and `assert.doesNotReject()` methods have been added for working with async functions. #599337f43e
* Async_hooks
  * Older experimental async_hooks APIs have been removed. #1cc6b993b9
* Buffer
  * Uses of `new Buffer()` and `Buffer()` outside of the `node_modules` directory will now emit a runtime deprecation warning. #9d4ab90117
  * `Buffer.isEncoding()` now returns `undefined` for falsy values, including an empty string. #452eed956e
  * `Buffer.fill()` will throw if an attempt is made to fill with an empty `Buffer`. #1e802539b2
* Child Process
  * Undefined properties of env are ignored. #38ee25e2e2, #85739b6c5b
* Console
  * The `console.table()` method has been added. #97ace04492
* Crypto
  * The `crypto.createCipher()` and `crypto.createDecipher()` methods have been deprecated. Please use `crypto.createCipheriv()` and `crypto.createDecipheriv()` instead. #81f88e30dd
  * The `decipher.finaltol()` method has been deprecated. #19f3927d92
  * The `crypto.DEFAULT_ENCODING` property has been deprecated. #6035beea93
  * The `ECDH.convertKey()` method has been added. #f2e02883e7
  * The `crypto.fips` property has been deprecated. #6e7992e8b8
* Dependencies
  * V8 has been updated to 6.6. #9daebb48d6
  * OpenSSL has been updated to 1.1.0h. #66cb29e646
* EventEmitter
  * The `EventEmitter.prototype.off()` method has been added as an alias for `EventEmitter.prototype.removeListener()`. #3bb6f07d52
* File System
  * The `fs.promises` API provides experimental promisified versions of the `fs` functions. #329fc78e49
  * Invalid path errors are now thrown synchronously. #d8f73385e2
  * The `fs.readFile()` method now partitions reads to avoid thread pool exhaustion. #67a4ce1c6e
* HTTP
  * Processing of HTTP Status codes `100`, `102-199` has been improved. #baf8495078
  * Multi-byte characters in URL paths are now forbidden. #b961d9fd83
* N-API
  * The n-api is no longer experimental. #cd7d7b15c1
* Net
  * The `'close'` event will be emitted after `'end'`. #9b7a6914a7
* Perf_hooks
  * The `PerformanceObserver` class is now an `AsyncResource` and can be monitored using `async_hooks`. #009e41826f
  * Trace events are now emitted for performance events. #9e509b622b
  * The `performance` API has been simplified. #2ec6995555
  * Performance milestone marks will be emitted as trace events. #96cb4fb795
* Process
  * Using non-string values for `process.env` is deprecated. #5826fe4e79
  * The `process.assert()` method is deprecated. #703e37cf3f
* REPL
  * REPL now experimentally supports top-level await when using the `--experimental-repl-await` flag. #eeab7bc068
  * The previously deprecated "magic mode" has been removed. #4893f70d12
  * The previously deprecated `NODE_REPL_HISTORY_FILE` environment variable has been removed. #60c9ad7979
  * Proxy objects are shown as Proxy objects when inspected. #90a43906ab
* Streams
  * The `'readable'` event is now always deferred with nextTick. #1e0f3315c7
  * A new `pipeline()` method has been provided for building end-to-data stream pipelines. #a5cf3feaf1
  * Experimental support for async for-await has been added to `stream.Readable`. #61b4d60c5d
* Timers
  * The `enroll()` and `unenroll()` methods have been deprecated. #68783ae0b8
* TLS
  * The `tls.convertNONProtocols()` method has been deprecated. #9204a0db6e
  * Support for NPN (next protocol negotiation) has been dropped. #5bfbe5ceae
  * The `ecdhCurve` default is now `'auto'`. #af78840b19
* Trace Events
  * A new `trace_events` top-level module allows trace event categories to be enabled/disabld at runtime. #da5d818a54
* URL
  * The WHATWG URL API is now a global. #312414662b
* Util
  * `util.types.is[…]` type checks have been added. #b20af8088a
  * Support for bigint formatting has been added to `util.inspect()`. #39dc947409
  • Loading branch information
jasnell committed Apr 23, 2018
1 parent b935e63 commit cf41627
Show file tree
Hide file tree
Showing 31 changed files with 1,149 additions and 214 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ release lines.

Select a Node.js version below to view the changelog history:

* [Node.js 10](doc/changelogs/CHANGELOG_V10.md)
* [Node.js 9](doc/changelogs/CHANGELOG_V9.md)
* [Node.js 8](doc/changelogs/CHANGELOG_V8.md)
* [Node.js 7](doc/changelogs/CHANGELOG_V7.md)
Expand All @@ -24,13 +25,17 @@ release.

<table>
<tr>
<th title="Current"><a href="doc/changelogs/CHANGELOG_V9.md">9</a><sup>Current</sup></th>
<th title="Current"><a href="doc/changelogs/CHANGELOG_V10.md">10</a><sup>Current</sup></th>
<th><a href="doc/changelogs/CHANGELOG_V9.md">9</a></th>
<th title="LTS Until 2019-12"><a href="doc/changelogs/CHANGELOG_V8.md">8</a><sup>LTS</sup></th>
<th title="LTS Until 2019-04"><a href="doc/changelogs/CHANGELOG_V6.md">6</a><sup>LTS</sup></th>
<th title="LTS Until 2018-04"><a href="doc/changelogs/CHANGELOG_V4.md">4</a><sup>LTS</sup></th>
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V10.md#10.0.0">10.0.0</a></b><br/>
</td>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V9.md#9.11.1">9.11.1</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V9.md#9.11.0">9.11.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V9.md#9.10.1">9.10.1</a><br/>
Expand Down
16 changes: 8 additions & 8 deletions doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the

## assert.doesNotReject(block[, error][, message])
<!-- YAML
added: REPLACEME
added: v10.0.0
-->
* `block` {Function|Promise}
* `error` {RegExp|Function}
Expand Down Expand Up @@ -565,7 +565,7 @@ See below for further details.
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18418
description: Calling `assert.fail()` with more than one argument is
deprecated and emits a warning.
Expand Down Expand Up @@ -627,11 +627,11 @@ suppressFrame();
<!-- YAML
added: v0.1.97
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18247
description: Instead of throwing the original error it is now wrapped into
a AssertionError that contains the full stack trace.
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18247
description: Value may now only be `undefined` or `null`. Before any truthy
input was accepted.
Expand Down Expand Up @@ -816,7 +816,7 @@ instance of an [`Error`][] then it will be thrown instead of the
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/17003
description: Used comparison changed from Strict Equality to `Object.is()`
-->
Expand Down Expand Up @@ -850,7 +850,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18319
description: assert.ok() (no arguments) will now use a predefined error msg.
-->
Expand Down Expand Up @@ -920,7 +920,7 @@ assert(0);

## assert.rejects(block[, error][, message])
<!-- YAML
added: REPLACEME
added: v10.0.0
-->
* `block` {Function|Promise}
* `error` {RegExp|Function|Object|Error}
Expand Down Expand Up @@ -980,7 +980,7 @@ argument gets considered.
<!-- YAML
added: v0.1.21
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/17003
description: Used comparison changed from Strict Equality to `Object.is()`
-->
Expand Down
60 changes: 30 additions & 30 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ It can be constructed in a variety of ways.
<!-- YAML
deprecated: v6.0.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/19524
description: Calling this constructor emits a deprecation warning when
run from code outside the `node_modules` directory.
Expand Down Expand Up @@ -330,7 +330,7 @@ const buf = new Buffer([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
added: v3.0.0
deprecated: v6.0.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/19524
description: Calling this constructor emits a deprecation warning when
run from code outside the `node_modules` directory.
Expand Down Expand Up @@ -386,7 +386,7 @@ console.log(buf);
<!-- YAML
deprecated: v6.0.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/19524
description: Calling this constructor emits a deprecation warning when
run from code outside the `node_modules` directory.
Expand Down Expand Up @@ -421,7 +421,7 @@ console.log(buf2.toString());
<!-- YAML
deprecated: v6.0.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/19524
description: Calling this constructor emits a deprecation warning when
run from code outside the `node_modules` directory.
Expand Down Expand Up @@ -462,7 +462,7 @@ console.log(buf);
<!-- YAML
deprecated: v6.0.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/19524
description: Calling this constructor emits a deprecation warning when
run from code outside the `node_modules` directory.
Expand Down Expand Up @@ -499,11 +499,11 @@ console.log(buf1.toString('ascii'));
<!-- YAML
added: v5.10.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18129
description: Attempting to fill a non-zero length buffer with a zero length
buffer triggers a thrown exception.
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/17427
description: Specifying an invalid string for `fill` triggers a thrown
exception.
Expand Down Expand Up @@ -1171,14 +1171,14 @@ console.log(buf1.equals(buf3));
<!-- YAML
added: v0.5.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18790
description: Negative `end` values throw an `ERR_INDEX_OUT_OF_RANGE` error.
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18129
description: Attempting to fill a non-zero length buffer with a zero length
buffer triggers a thrown exception.
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/17427
description: Specifying an invalid string for `value` triggers a thrown
exception.
Expand Down Expand Up @@ -1505,7 +1505,7 @@ The `buf.parent` property is a deprecated alias for `buf.buffer`.
<!-- YAML
added: v0.11.15
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -1535,7 +1535,7 @@ console.log(buf.readDoubleLE(1));
<!-- YAML
added: v0.11.15
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -1564,7 +1564,7 @@ console.log(buf.readFloatLE(1));
<!-- YAML
added: v0.5.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -1594,7 +1594,7 @@ console.log(buf.readInt8(2));
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -1626,7 +1626,7 @@ console.log(buf.readInt16LE(1));
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -1658,7 +1658,7 @@ console.log(buf.readInt32LE(1));
<!-- YAML
added: v0.11.15
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset and
byteLength to uint32 anymore.
Expand Down Expand Up @@ -1691,7 +1691,7 @@ console.log(buf.readIntBE(1, 0).toString(16));
<!-- YAML
added: v0.5.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -1719,7 +1719,7 @@ console.log(buf.readUInt8(2));
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -1753,7 +1753,7 @@ console.log(buf.readUInt16LE(2).toString(16));
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -1783,7 +1783,7 @@ console.log(buf.readUInt32LE(1).toString(16));
<!-- YAML
added: v0.11.15
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset and
byteLength to uint32 anymore.
Expand Down Expand Up @@ -2100,7 +2100,7 @@ console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
<!-- YAML
added: v0.11.15
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -2135,7 +2135,7 @@ console.log(buf);
<!-- YAML
added: v0.11.15
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -2169,7 +2169,7 @@ console.log(buf);
<!-- YAML
added: v0.5.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -2201,7 +2201,7 @@ console.log(buf);
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -2234,7 +2234,7 @@ console.log(buf);
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -2267,7 +2267,7 @@ console.log(buf);
<!-- YAML
added: v0.11.15
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset and
byteLength to uint32 anymore.
Expand Down Expand Up @@ -2302,7 +2302,7 @@ console.log(buf);
<!-- YAML
added: v0.5.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -2334,7 +2334,7 @@ console.log(buf);
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -2371,7 +2371,7 @@ console.log(buf);
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset to
uint32 anymore.
Expand Down Expand Up @@ -2406,7 +2406,7 @@ console.log(buf);
<!-- YAML
added: v0.5.5
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/18395
description: Removed noAssert and no implicit coercion of the offset and
byteLength to uint32 anymore.
Expand Down
4 changes: 2 additions & 2 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Enable experimental ES module support and caching modules.

### `--experimental-repl-await`
<!-- YAML
added: REPLACEME
added: v10.0.0
-->

Enable experimental top-level `await` keyword support in REPL.
Expand Down Expand Up @@ -397,7 +397,7 @@ added:
- v5.0.0
- v4.2.0
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/19600
description: The `--require` option is now supported when checking a file.
-->
Expand Down
6 changes: 3 additions & 3 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ changes:
- version: v8.0.0
pr-url: https://github.com/nodejs/node/pull/9744
description: The `ignoreErrors` option was introduced.
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/19372
description: The `Console` constructor now supports an `options` argument,
and the `colorMode` option was introduced.
Expand Down Expand Up @@ -128,7 +128,7 @@ new Console({ stdout: process.stdout, stderr: process.stderr });
<!-- YAML
added: v0.1.101
changes:
- version: REPLACEME
- version: v10.0.0
pr-url: https://github.com/nodejs/node/pull/17706
description: The implementation is now spec compliant and does not throw
anymore.
Expand Down Expand Up @@ -347,7 +347,7 @@ See [`util.format()`][] for more information.

### console.table(tabularData[, properties])
<!-- YAML
added: REPLACEME
added: v10.0.0
-->

* `tabularData` {any}
Expand Down
Loading

0 comments on commit cf41627

Please sign in to comment.