diff options
author | Beth Griggs <bgriggs@redhat.com> | 2022-03-08 04:39:47 +0300 |
---|---|---|
committer | Beth Griggs <bgriggs@redhat.com> | 2022-04-19 18:27:11 +0300 |
commit | 77373aa5d69a64f4bd9842163043dce260c30c49 (patch) | |
tree | dd753c804bd8010133a239a70d9f5f06d4a63a59 /doc/api | |
parent | bde889bd4ed68d33163897b4175557fbc669b66f (diff) |
2022-04-19, Version 18.0.0 (Current)
Notable Changes:
Deprecations and Removals:
- (SEMVER-MAJOR) fs: runtime deprecate string coercion in `fs.write`,
`fs.writeFileSync`
(Livia Medeiros) (https://github.com/nodejs/node/pull/42607)
- (SEMVER-MAJOR) dns: remove `dns.lookup` and `dnsPromises.lookup`
options type coercion
(Antoine du Hamel) (https://github.com/nodejs/node/pull/41431)
- (SEMVER-MAJOR) process: runtime deprecate multipleResolves
(Benjamin Gruenbaum) (https://github.com/nodejs/node/pull/41896)
- (SEMVER-MAJOR) stream: remove thenable support (Robert Nagy)
(https://github.com/nodejs/node/pull/40773)
- (SEMVER-MAJOR) tls: move tls.parseCertString to end-of-life
(Tobias Nießen) (https://github.com/nodejs/node/pull/41479)
fetch (experimental):
An experimental fetch API is available on the global scope by default.
The implementation is based upon https://undici.nodejs.org/#/,
an HTTP/1.1 client written for Node.js by contributors to the project.
Through this addition, the following globals are made available: `fetch`
, `FormData`, `Headers`, `Request`, `Response`.
Disable this API with the `--no-experimental-fetch` command-line flag.
Contributed by Michaël Zasso in https://github.com/nodejs/node/pull/41811.
HTTP Timeouts:
`server.headersTimeout`, which limits the amount of time the parser will
wait to receive the complete HTTP headers, is now set to `60000` (60
seconds) by default.
`server.requestTimeout`, which sets the timeout value in milliseconds
for receiving the entire request from the client, is now set to `300000`
(5 minutes) by default.
If these timeouts expire, the server responds with status 408 without
forwarding the request to the request listener and then closes the
connection.
Both timeouts must be set to a non-zero value to protect against
potential Denial-of-Service attacks in case the server is deployed
without a reverse proxy in front.
Contributed by Paolo Insogna in https://github.com/nodejs/node/pull/41263.
Test Runner module (experimental):
The `node:test` module facilitates the creation of JavaScript tests that
report results in TAP format. This module is only available under the
`node:` scheme.
Contributed by Colin Ihrig in https://github.com/nodejs/node/pull/42325.
Toolchain and Compiler Upgrades:
- Prebuilt binaries for Linux are now built on Red Hat Enterprise Linux
(RHEL) 8 and are compatible with Linux distributions based on glibc
2.28 or later, for example, Debian 10, RHEL 8, Ubuntu 20.04.
- Prebuilt binaries for macOS now require macOS 10.15 or later.
- For AIX the minimum supported architecture has been raised from Power
7 to Power 8.
Prebuilt binaries for 32-bit Windows will initially not be available due
to issues building the V8 dependency in Node.js. We hope to restore
32-bit Windows binaries for Node.js 18 with a future V8 update.
Node.js does not support running on operating systems that are no longer
supported by their vendor. For operating systems where their vendor has
planned to end support earlier than April 2025, such as Windows 8.1
(January 2023) and Windows Server 2012 R2 (October 2023), support for
Node.js 18 will end at the earlier date.
Full details about the supported toolchains and compilers are documented
in the Node.js `BUILDING.md` file.
Contributed by Richard Lau in https://github.com/nodejs/node/pull/42292,
https://github.com/nodejs/node/pull/42604 and https://github.com/nodejs/node/pull/42659
, and Michaël Zasso in https://github.com/nodejs/node/pull/42105 and
https://github.com/nodejs/node/pull/42666.
V8 10.1:
The V8 engine is updated to version 10.1, which is part of Chromium 101.
Compared to the version included in Node.js 17.9.0, the following new
features are included:
- The `findLast` and `findLastIndex` array methods.
- Improvements to the `Intl.Locale` API.
- The `Intl.supportedValuesOf` function.
- Improved performance of class fields and private class methods (the
initialization of them is now as fast as ordinary property stores).
The data format returned by the serialization API (`v8.serialize(value)`)
has changed, and cannot be deserialized by earlier versions of Node.js.
On the other hand, it is still possible to deserialize the previous
format, as the API is backwards-compatible.
Contributed by Michaël Zasso in https://github.com/nodejs/node/pull/42657.
Web Streams API (experimental):
Node.js now exposes the experimental implementation of the Web Streams
API on the global scope. This means the following APIs are now globally
available:
- `ReadableStream`, `ReadableStreamDefaultReader`,
`ReadableStreamBYOBReader`, `ReadableStreamBYOBRequest`,
`ReadableByteStreamController`, `ReadableStreamDefaultController`,
`TransformStream`, `TransformStreamDefaultController`, `WritableStream`,
`WritableStreamDefaultWriter`, `WritableStreamDefaultController`,
`ByteLengthQueuingStrategy`, `CountQueuingStrategy`, `TextEncoderStream`,
`TextDecoderStream`, `CompressionStream`, `DecompressionStream`.
Contributed James Snell in https://github.com/nodejs/node/pull/39062,
and Antoine du Hamel in https://github.com/nodejs/node/pull/42225.
Other Notable Changes:
- (SEMVER-MAJOR) buffer: expose Blob as a global
(James M Snell) (https://github.com/nodejs/node/pull/41270)
- (SEMVER-MAJOR) child\_process: improve argument validation
(Rich Trott) (https://github.com/nodejs/node/pull/41305)
- doc: add RafaelGSS to collaborators
(RafaelGSS) (https://github.com/nodejs/node/pull/42718)
- (SEMVER-MAJOR) http: make TCP noDelay enabled by default
(Paolo Insogna) (https://github.com/nodejs/node/pull/42163)
- (SEMVER-MAJOR) net: make `server.address()` return an integer for
`family`
(Antoine du Hamel) (https://github.com/nodejs/node/pull/41431)
- (SEMVER-MAJOR) worker: expose BroadcastChannel as a global
(James M Snell) (https://github.com/nodejs/node/pull/41271)
- (SEMVER-MAJOR) worker: graduate BroadcastChannel to supported
(James M Snell) (https://github.com/nodejs/node/pull/41271)
Semver-Major Commits:
- (SEMVER-MAJOR) assert,util: compare RegExp.lastIndex while using deep
equal checks
(Ruben Bridgewater) (https://github.com/nodejs/node/pull/41020)
- (SEMVER-MAJOR) buffer: refactor `byteLength` to remove outdated
optimizations
(Rongjian Zhang) (https://github.com/nodejs/node/pull/38545)
- (SEMVER-MAJOR) buffer: expose Blob as a global
(James M Snell) (https://github.com/nodejs/node/pull/41270)
- (SEMVER-MAJOR) buffer: graduate Blob from experimental
(James M Snell) (https://github.com/nodejs/node/pull/41270)
- (SEMVER-MAJOR) build: make x86 Windows support temporarily
experimental
(Michaël Zasso) (https://github.com/nodejs/node/pull/42666)
- (SEMVER-MAJOR) build: bump macOS deployment target to 10.15
(Richard Lau) (https://github.com/nodejs/node/pull/42292)
- (SEMVER-MAJOR) build: downgrade Windows 8.1 and server 2012 R2 to
experimental
(Michaël Zasso) (https://github.com/nodejs/node/pull/42105)
- (SEMVER-MAJOR) child\_process: improve argument validation
(Rich Trott) (https://github.com/nodejs/node/pull/41305)
- (SEMVER-MAJOR) cluster: make `kill` to be just `process.kill`
(Bar Admoni) (https://github.com/nodejs/node/pull/34312)
- (SEMVER-MAJOR) crypto: cleanup validation
(Mohammed Keyvanzadeh) (https://github.com/nodejs/node/pull/39841)
- (SEMVER-MAJOR) crypto: prettify othername in PrintGeneralName
(Tobias Nießen) (https://github.com/nodejs/node/pull/42123)
- (SEMVER-MAJOR) crypto: fix X509Certificate toLegacyObject
(Tobias Nießen) (https://github.com/nodejs/node/pull/42124)
- (SEMVER-MAJOR) crypto: use RFC2253 format in PrintGeneralName
(Tobias Nießen) (https://github.com/nodejs/node/pull/42002)
- (SEMVER-MAJOR) crypto: change default check(Host|Email) behavior
(Tobias Nießen) (https://github.com/nodejs/node/pull/41600)
- (SEMVER-MAJOR) deps: V8: cherry-pick semver-major commits from 10.2
(Michaël Zasso) (https://github.com/nodejs/node/pull/42657)
- (SEMVER-MAJOR) deps: update V8 to 10.1.124.6
(Michaël Zasso) (https://github.com/nodejs/node/pull/42657)
- (SEMVER-MAJOR) deps: update V8 to 9.8.177.9
(Michaël Zasso) (https://github.com/nodejs/node/pull/41610)
- (SEMVER-MAJOR) deps: update V8 to 9.7.106.18
(Michaël Zasso) (https://github.com/nodejs/node/pull/40907)
- (SEMVER-MAJOR) dns: remove `dns.lookup` and `dnsPromises.lookup`
options type coercion
(Antoine du Hamel) (https://github.com/nodejs/node/pull/41431)
- (SEMVER-MAJOR) doc: update minimum glibc requirements for Linux
(Richard Lau) (https://github.com/nodejs/node/pull/42659)
- (SEMVER-MAJOR) doc: update AIX minimum supported arch
(Richard Lau) (https://github.com/nodejs/node/pull/42604)
- (SEMVER-MAJOR) fs: runtime deprecate string coercion in `fs.write`,
`fs.writeFileSync`
(Livia Medeiros) (https://github.com/nodejs/node/pull/42607)
- (SEMVER-MAJOR) http: refactor headersTimeout and requestTimeout logic
(Paolo Insogna) (https://github.com/nodejs/node/pull/41263)
- (SEMVER-MAJOR) http: make TCP noDelay enabled by default
(Paolo Insogna) (https://github.com/nodejs/node/pull/42163)
- (SEMVER-MAJOR) lib: enable fetch by default
(Michaël Zasso) (https://github.com/nodejs/node/pull/41811)
- (SEMVER-MAJOR) lib: replace validator and error
(Mohammed Keyvanzadeh) (https://github.com/nodejs/node/pull/41678)
- (SEMVER-MAJOR) module,repl: support 'node:'-only core modules
(Colin Ihrig) (https://github.com/nodejs/node/pull/42325)
- (SEMVER-MAJOR) net: make `server.address()` return an integer for
`family`
(Antoine du Hamel) (https://github.com/nodejs/node/pull/41431)
- (SEMVER-MAJOR) process: disallow some uses of Object.defineProperty()
on process.env
(Himself65) (https://github.com/nodejs/node/pull/28006)
- (SEMVER-MAJOR) process: runtime deprecate multipleResolves
(Benjamin Gruenbaum) (https://github.com/nodejs/node/pull/41896)
- (SEMVER-MAJOR) readline: fix question still called after closed
(Xuguang Mei) (https://github.com/nodejs/node/pull/42464)
- (SEMVER-MAJOR) stream: remove thenable support
(Robert Nagy) (https://github.com/nodejs/node/pull/40773)
- (SEMVER-MAJOR) stream: expose web streams globals, remove runtime
experimental warning
(Antoine du Hamel) (https://github.com/nodejs/node/pull/42225)
- (SEMVER-MAJOR) stream: need to cleanup event listeners if last stream
is readable
(Xuguang Mei) (https://github.com/nodejs/node/pull/41954)
- (SEMVER-MAJOR) stream: revert revert `map` spec compliance
(Benjamin Gruenbaum) (https://github.com/nodejs/node/pull/41933)
- (SEMVER-MAJOR) stream: throw invalid arg type from End Of Stream
(Jithil P Ponnan) (https://github.com/nodejs/node/pull/41766)
- (SEMVER-MAJOR) stream: don't emit finish after destroy
(Robert Nagy) (https://github.com/nodejs/node/pull/40852)
- (SEMVER-MAJOR) stream: add errored and closed props
(Robert Nagy) (https://github.com/nodejs/node/pull/40696)
- (SEMVER-MAJOR) test: add initial test module
(Colin Ihrig) (https://github.com/nodejs/node/pull/42325)
- (SEMVER-MAJOR) timers: refactor internal classes to ES2015 syntax
(Rabbit) (https://github.com/nodejs/node/pull/37408)
- (SEMVER-MAJOR) tls: represent registeredID numerically always
(Tobias Nießen) (https://github.com/nodejs/node/pull/41561)
- (SEMVER-MAJOR) tls: move tls.parseCertString to end-of-life
(Tobias Nießen) (https://github.com/nodejs/node/pull/41479)
- (SEMVER-MAJOR) url: throw on NULL in IPv6 hostname
(Rich Trott) (https://github.com/nodejs/node/pull/42313)
- (SEMVER-MAJOR) v8: make v8.writeHeapSnapshot() error codes consistent
(Darshan Sen) (https://github.com/nodejs/node/pull/42577)
- (SEMVER-MAJOR) v8: make writeHeapSnapshot throw if fopen fails
(Antonio Román) (https://github.com/nodejs/node/pull/41373)
- (SEMVER-MAJOR) worker: expose BroadcastChannel as a global
(James M Snell) (https://github.com/nodejs/node/pull/41271)
- (SEMVER-MAJOR) worker: graduate BroadcastChannel to supported
(James M Snell) (https://github.com/nodejs/node/pull/41271)
PR-URL: https://github.com/nodejs/node/pull/42262
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/assert.md | 4 | ||||
-rw-r--r-- | doc/api/buffer.md | 2 | ||||
-rw-r--r-- | doc/api/cli.md | 4 | ||||
-rw-r--r-- | doc/api/crypto.md | 28 | ||||
-rw-r--r-- | doc/api/deprecations.md | 12 | ||||
-rw-r--r-- | doc/api/dns.md | 30 | ||||
-rw-r--r-- | doc/api/fs.md | 84 | ||||
-rw-r--r-- | doc/api/globals.md | 38 | ||||
-rw-r--r-- | doc/api/http.md | 6 | ||||
-rw-r--r-- | doc/api/http2.md | 18 | ||||
-rw-r--r-- | doc/api/inspector.md | 2 | ||||
-rw-r--r-- | doc/api/net.md | 2 | ||||
-rw-r--r-- | doc/api/perf_hooks.md | 2 | ||||
-rw-r--r-- | doc/api/process.md | 2 | ||||
-rw-r--r-- | doc/api/readline.md | 8 | ||||
-rw-r--r-- | doc/api/stream.md | 12 | ||||
-rw-r--r-- | doc/api/test.md | 16 | ||||
-rw-r--r-- | doc/api/timers.md | 6 | ||||
-rw-r--r-- | doc/api/tls.md | 2 | ||||
-rw-r--r-- | doc/api/url.md | 2 | ||||
-rw-r--r-- | doc/api/v8.md | 4 | ||||
-rw-r--r-- | doc/api/webstreams.md | 32 | ||||
-rw-r--r-- | doc/api/worker_threads.md | 2 |
23 files changed, 159 insertions, 159 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md index 1987402958f..991275969c4 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -463,7 +463,7 @@ An alias of [`assert.ok()`][]. <!-- YAML added: v0.1.21 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41020 description: Regular expressions lastIndex property is now compared as well. - version: @@ -644,7 +644,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the <!-- YAML added: v1.2.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41020 description: Regular expressions lastIndex property is now compared as well. - version: v9.0.0 diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 3044e98c761..27201823f57 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -457,7 +457,7 @@ added: - v15.7.0 - v14.18.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41270 description: No longer experimental. --> diff --git a/doc/api/cli.md b/doc/api/cli.md index 2e3ef59d3d2..047ed24697a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -328,7 +328,7 @@ Use the specified file as a security policy. ### `--no-experimental-fetch` <!-- YAML -added: REPLACEME +added: v18.0.0 --> Disable experimental support for the [Fetch API][]. @@ -1065,7 +1065,7 @@ on [running tests from the command line][] for more details. ### `--test-only` <!-- YAML -added: REPLACEME +added: v18.0.0 --> Configures the test runner to only execute top level tests that have the `only` diff --git a/doc/api/crypto.md b/doc/api/crypto.md index d88be8da3d0..b51a1abee0b 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2493,7 +2493,7 @@ added: v15.6.0 <!-- YAML added: v15.6.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41600 description: The subject option now defaults to `'default'`. - version: @@ -2533,7 +2533,7 @@ considered, even if the certificate contains no subject alternative names. <!-- YAML added: v15.6.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41600 description: The subject option now defaults to `'default'`. - version: v17.5.0 @@ -2911,7 +2911,7 @@ This property is deprecated. Please use `crypto.setFips()` and <!-- YAML added: v15.8.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3612,7 +3612,7 @@ Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` <!-- YAML added: v15.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3662,7 +3662,7 @@ generateKey('hmac', { length: 64 }, (err, key) => { <!-- YAML added: v10.12.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3928,7 +3928,7 @@ console.log(key.export().toString('hex')); // e89..........41e <!-- YAML added: v15.8.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4202,7 +4202,7 @@ web-compatible code use [`crypto.webcrypto.getRandomValues()`][] instead. <!-- YAML added: v15.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4310,7 +4310,7 @@ console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' <!-- YAML added: v0.5.5 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4696,7 +4696,7 @@ be passed instead of a public key. <!-- YAML added: v0.5.8 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4881,7 +4881,7 @@ added: - v7.10.0 - v6.13.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -5023,7 +5023,7 @@ added: - v14.10.0 - v12.19.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -5131,7 +5131,7 @@ cryptographic pseudorandom number generator. <!-- YAML added: v10.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -5359,7 +5359,7 @@ Throws an error if FIPS mode is not available. <!-- YAML added: v12.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -5460,7 +5460,7 @@ not introduce timing vulnerabilities. <!-- YAML added: v12.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index f0711531809..f223577f84f 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1595,7 +1595,7 @@ Type: End-of-Life <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41479 description: End-of-Life. - version: v9.0.0 @@ -2943,7 +2943,7 @@ deprecated and should no longer be used. <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41431 description: End-of-Life. - version: v17.0.0 @@ -3023,7 +3023,7 @@ it was an aborted or graceful destroy. <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/40773 description: End-of-life. - version: @@ -3072,7 +3072,7 @@ Use [`buffer.subarray`][] which does the same thing instead. <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: End-of-Life. --> @@ -3086,7 +3086,7 @@ the errors used for value type validation. <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41896 description: Runtime deprecation. - version: v17.6.0 @@ -3121,7 +3121,7 @@ resources and not the actual references. <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42607 description: Runtime deprecation. - version: v17.8.0 diff --git a/doc/api/dns.md b/doc/api/dns.md index e5a1b5e3ff8..86f92205c38 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -179,7 +179,7 @@ section if a custom port is used. <!-- YAML added: v0.1.90 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -288,7 +288,7 @@ The following flags can be passed as hints to [`dns.lookup()`][]. <!-- YAML added: v0.11.14 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -327,7 +327,7 @@ If this method is invoked as its [`util.promisify()`][]ed version, it returns a <!-- YAML added: v0.1.27 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -368,7 +368,7 @@ On error, `err` is an [`Error`][] object, where `err.code` is one of the <!-- YAML added: v0.1.16 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -399,7 +399,7 @@ will contain an array of IPv4 addresses (e.g. <!-- YAML added: v0.1.16 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -428,7 +428,7 @@ will contain an array of IPv6 addresses. <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -488,7 +488,7 @@ queries. It may be better to call individual methods like [`dns.resolve4()`][], <!-- YAML added: v0.3.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -512,7 +512,7 @@ added: - v15.0.0 - v14.17.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -535,7 +535,7 @@ available for the `hostname` (e.g. `[{critical: 0, iodef: <!-- YAML added: v0.1.27 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -557,7 +557,7 @@ property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`). <!-- YAML added: v0.9.12 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -598,7 +598,7 @@ function will contain an array of objects with the following properties: <!-- YAML added: v0.1.90 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -620,7 +620,7 @@ contain an array of name server records available for `hostname` <!-- YAML added: v6.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -641,7 +641,7 @@ be an array of strings containing the reply records. <!-- YAML added: v0.11.10 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -684,7 +684,7 @@ be an object with the following properties: <!-- YAML added: v0.1.27 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -721,7 +721,7 @@ be an array of objects with the following properties: <!-- YAML added: v0.1.27 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/fs.md b/doc/api/fs.md index c32c624f48b..8050cd97b8c 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1591,7 +1591,7 @@ concurrent modifications on the same file or data corruption may occur. <!-- YAML added: v0.11.15 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1781,7 +1781,7 @@ the user from reading or writing to it. <!-- YAML added: v0.6.7 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1867,7 +1867,7 @@ open('message.txt', 'a', (err, fd) => { <!-- YAML added: v0.1.30 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1960,7 +1960,7 @@ implemented. <!-- YAML added: v0.1.97 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1995,7 +1995,7 @@ See the POSIX chown(2) documentation for more detail. <!-- YAML added: v0.0.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2032,7 +2032,7 @@ See the POSIX close(2) documentation for more detail. <!-- YAML added: v8.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2088,7 +2088,7 @@ copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback); <!-- YAML added: v16.7.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2343,7 +2343,7 @@ If `options` is a string, then it specifies the encoding. added: v0.0.2 deprecated: v1.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2493,7 +2493,7 @@ process. <!-- YAML added: v0.4.7 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2523,7 +2523,7 @@ See the POSIX fchmod(2) documentation for more detail. <!-- YAML added: v0.4.7 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2554,7 +2554,7 @@ See the POSIX fchown(2) documentation for more detail. <!-- YAML added: v0.1.96 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2583,7 +2583,7 @@ exception are given to the completion callback. <!-- YAML added: v0.1.95 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2619,7 +2619,7 @@ See the POSIX fstat(2) documentation for more detail. <!-- YAML added: v0.1.96 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2648,7 +2648,7 @@ than a possible exception are given to the completion callback. <!-- YAML added: v0.8.6 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2713,7 +2713,7 @@ If `len` is negative then `0` will be used. <!-- YAML added: v0.4.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2746,7 +2746,7 @@ descriptor. See [`fs.utimes()`][]. <!-- YAML deprecated: v0.4.7 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2781,7 +2781,7 @@ See the POSIX lchmod(2) documentation for more detail. <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2819,7 +2819,7 @@ added: - v14.5.0 - v12.19.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2845,7 +2845,7 @@ callback. <!-- YAML added: v0.1.31 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2879,7 +2879,7 @@ exception are given to the completion callback. <!-- YAML added: v0.1.30 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2922,7 +2922,7 @@ See the POSIX lstat(2) documentation for more details. <!-- YAML added: v0.1.8 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2998,7 +2998,7 @@ See the POSIX mkdir(2) documentation for more details. <!-- YAML added: v5.10.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3090,7 +3090,7 @@ mkdtemp(`${tmpDir}${sep}`, (err, directory) => { <!-- YAML added: v0.0.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3136,7 +3136,7 @@ Functions based on `fs.open()` exhibit this behavior as well: <!-- YAML added: v12.12.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3172,7 +3172,7 @@ directory and subsequent read operations. <!-- YAML added: v0.0.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3248,7 +3248,7 @@ above values. <!-- YAML added: v0.1.8 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3300,7 +3300,7 @@ If `options.withFileTypes` is set to `true`, the `files` array will contain <!-- YAML added: v0.1.29 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3446,7 +3446,7 @@ different Node.js versions. <!-- YAML added: v0.1.31 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3489,7 +3489,7 @@ added: - v13.13.0 - v12.17.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3522,7 +3522,7 @@ a promise for an `Object` with `bytesRead` and `buffers` properties. <!-- YAML added: v0.1.31 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3589,7 +3589,7 @@ dependent name for that object. <!-- YAML added: v9.2.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3623,7 +3623,7 @@ this restriction. <!-- YAML added: v0.0.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3670,7 +3670,7 @@ rename('oldFile.txt', 'newFile.txt', (err) => { <!-- YAML added: v0.0.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3783,7 +3783,7 @@ completion callback. <!-- YAML added: v0.0.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3902,7 +3902,7 @@ Stats { <!-- YAML added: v0.1.31 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3959,7 +3959,7 @@ $ tree . <!-- YAML added: v0.8.6 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4015,7 +4015,7 @@ See the POSIX truncate(2) documentation for more details. <!-- YAML added: v0.0.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4081,7 +4081,7 @@ and `fs.unwatchFile()` when possible. <!-- YAML added: v0.4.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4328,7 +4328,7 @@ This happens when: <!-- YAML added: v0.0.2 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4463,7 +4463,7 @@ details. <!-- YAML added: v0.1.29 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -4614,7 +4614,7 @@ to contain only `', World'`. <!-- YAML added: v12.9.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -5856,7 +5856,7 @@ closed. <!-- YAML added: v12.12.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/globals.md b/doc/api/globals.md index 7274ff3d801..58f95e8af99 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -210,7 +210,7 @@ If `abortSignal.aborted` is `true`, throws `abortSignal.reason`. ## Class: `Blob` <!-- YAML -added: REPLACEME +added: v18.0.0 --> <!-- type=global --> @@ -232,7 +232,7 @@ Used to handle binary data. See the [buffer section][]. ## Class: `ByteLengthQueuingStrategy` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -260,7 +260,7 @@ Global alias for [`buffer.atob()`][]. ## `BroadcastChannel` <!-- YAML -added: REPLACEME +added: v18.0.0 --> See {BroadcastChannel}. @@ -308,7 +308,7 @@ added: v0.0.1 ## Class: `CompressionStream` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -330,7 +330,7 @@ Used to print to stdout and stderr. See the [`console`][] section. ## Class: `CountQueuingStrategy` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -377,7 +377,7 @@ only if the Node.js binary was compiled with including support for the ## Class: `DecompressionStream` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -559,7 +559,7 @@ DataHandler.prototype.load = async function load(key) { ## Class: `ReadableByteStreamController` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -569,7 +569,7 @@ A browser-compatible implementation of [`ReadableByteStreamController`][]. ## Class: `ReadableStream` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -579,7 +579,7 @@ A browser-compatible implementation of [`ReadableStream`][]. ## Class: `ReadableStreamBYOBReader` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -589,7 +589,7 @@ A browser-compatible implementation of [`ReadableStreamBYOBReader`][]. ## Class: `ReadableStreamBYOBRequest` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -599,7 +599,7 @@ A browser-compatible implementation of [`ReadableStreamBYOBRequest`][]. ## Class: `ReadableStreamDefaultController` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -609,7 +609,7 @@ A browser-compatible implementation of [`ReadableStreamDefaultController`][]. ## Class: `ReadableStreamDefaultReader` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -718,7 +718,7 @@ The WHATWG `TextDecoder` class. See the [`TextDecoder`][] section. ## Class: `TextDecoderStream` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -738,7 +738,7 @@ The WHATWG `TextEncoder` class. See the [`TextEncoder`][] section. ## Class: `TextEncoderStream` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -748,7 +748,7 @@ A browser-compatible implementation of [`TextEncoderStream`][]. ## Class: `TransformStream` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -758,7 +758,7 @@ A browser-compatible implementation of [`TransformStream`][]. ## Class: `TransformStreamDefaultController` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -802,7 +802,7 @@ The object that acts as the namespace for all W3C ## Class: `WritableStream` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -812,7 +812,7 @@ A browser-compatible implementation of [`WritableStream`][]. ## Class: `WritableStreamDefaultController` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. @@ -822,7 +822,7 @@ A browser-compatible implementation of [`WritableStreamDefaultController`][]. ## Class: `WritableStreamDefaultWriter` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental. diff --git a/doc/api/http.md b/doc/api/http.md index 56c8a89d42f..81c8f90a1c8 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1501,7 +1501,7 @@ Limits maximum incoming headers count. If set to 0, no limit will be applied. <!-- YAML added: v14.11.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41263 description: The default request timeout changed from no timeout to 300s (5 minutes). @@ -2941,11 +2941,11 @@ Found'`. <!-- YAML added: v0.1.13 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41263 description: The `requestTimeout`, `headersTimeout`, `keepAliveTimeout` and `connectionsCheckingInterval` are supported now. - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42163 description: The `noDelay` option now defaults to `true`. - version: v17.7.0 diff --git a/doc/api/http2.md b/doc/api/http2.md index cd588df5cf9..09f37f36f73 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -532,7 +532,7 @@ frames have been acknowledged. <!-- YAML added: v8.9.3 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -623,7 +623,7 @@ server.on('connect', (session) => { <!-- YAML added: v8.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -692,7 +692,7 @@ An object describing the current status of this `Http2Session`. <!-- YAML added: v8.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1225,7 +1225,7 @@ See [`net.Socket.bufferSize`][] for details. <!-- YAML added: v8.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1376,7 +1376,7 @@ value will be `undefined` after the `Http2Stream` instance is destroyed. <!-- YAML added: v8.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1577,7 +1577,7 @@ accepts push streams, `false` otherwise. Settings are the same for every <!-- YAML added: v8.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2061,7 +2061,7 @@ closed, although the server has already stopped allowing new sessions. See <!-- YAML added: v8.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -2287,7 +2287,7 @@ closed, although the server has already stopped allowing new sessions. See <!-- YAML added: v8.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -3588,7 +3588,7 @@ See [`response.socket`][]. <!-- YAML added: v8.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/inspector.md b/doc/api/inspector.md index ea31db782d0..fad9e0603fa 100644 --- a/doc/api/inspector.md +++ b/doc/api/inspector.md @@ -170,7 +170,7 @@ enabled agents or configured breakpoints. <!-- YAML added: v8.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/net.md b/doc/api/net.md index e57fe6077aa..0489c13a7a5 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1153,7 +1153,7 @@ algorithm. <!-- YAML added: v0.1.90 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 857da3d13d5..b30111c1d56 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -660,7 +660,7 @@ initialized. <!-- YAML added: v8.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/process.md b/doc/api/process.md index d2416e1f31b..0ae3256a531 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2359,7 +2359,7 @@ console.log(memoryUsage.rss()); <!-- YAML added: v0.1.26 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/readline.md b/doc/api/readline.md index d3a01755fa0..b378cba20bc 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -891,7 +891,7 @@ setTimeout(() => ac.abort(), 10000); <!-- YAML added: v0.7.7 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -919,7 +919,7 @@ in a specified direction identified by `dir`. <!-- YAML added: v0.7.7 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1073,7 +1073,7 @@ function completer(linePartial, callback) { <!-- YAML added: v0.7.7 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -1099,7 +1099,7 @@ given [TTY][] `stream`. <!-- YAML added: v0.7.7 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/stream.md b/doc/api/stream.md index 398b553f466..a3bca6da604 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -459,7 +459,7 @@ but instead implement [`writable._destroy()`][writable-_destroy]. ##### `writable.closed` <!-- YAML -added: REPLACEME +added: v18.0.0 --> * {boolean} @@ -599,7 +599,7 @@ the stream has not been destroyed, errored or ended. ##### `writable.writableAborted` <!-- YAML -added: REPLACEME +added: v18.0.0 --> > Stability: 1 - Experimental @@ -637,7 +637,7 @@ called in order to fully uncork the stream. <!-- YAML added: - REPLACEME + v18.0.0 --> * {Error} @@ -1120,7 +1120,7 @@ Is `true` after `'close'` has been emitted. ##### `readable.destroyed` <!-- YAML -added: REPLACEME +added: v18.0.0 --> * {boolean} @@ -1387,7 +1387,7 @@ Becomes `true` when [`'end'`][] event is emitted. <!-- YAML added: - REPLACEME + v18.0.0 --> * {Error} @@ -2417,7 +2417,7 @@ const cleanup = finished(rs, (err) => { <!-- YAML added: v10.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/test.md b/doc/api/test.md index 38e74aaa01d..7513dc24e26 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -1,6 +1,6 @@ # Test runner -<!--introduced_in=REPLACEME--> +<!--introduced_in=v18.0.0--> > Stability: 1 - Experimental @@ -283,7 +283,7 @@ internally. ## `test([name][, options][, fn])` <!-- YAML -added: REPLACEME +added: v18.0.0 --> * `name` {string} The name of the test, which is displayed when reporting test @@ -338,7 +338,7 @@ test('top level test', async (t) => { ## Class: `TestContext` <!-- YAML -added: REPLACEME +added: v18.0.0 --> An instance of `TestContext` is passed to each test function in order to @@ -348,7 +348,7 @@ exposed as part of the API. ### `context.diagnostic(message)` <!-- YAML -added: REPLACEME +added: v18.0.0 --> * `message` {string} Message to be displayed as a TAP diagnostic. @@ -360,7 +360,7 @@ not return a value. ### `context.runOnly(shouldRunOnlyTests)` <!-- YAML -added: REPLACEME +added: v18.0.0 --> * `shouldRunOnlyTests` {boolean} Whether or not to run `only` tests. @@ -373,7 +373,7 @@ no-op. ### `context.skip([message])` <!-- YAML -added: REPLACEME +added: v18.0.0 --> * `message` {string} Optional skip message to be displayed in TAP output. @@ -386,7 +386,7 @@ value. ### `context.todo([message])` <!-- YAML -added: REPLACEME +added: v18.0.0 --> * `message` {string} Optional `TODO` message to be displayed in TAP output. @@ -398,7 +398,7 @@ execution of the test function. This function does not return a value. ### `context.test([name][, options][, fn])` <!-- YAML -added: REPLACEME +added: v18.0.0 --> * `name` {string} The name of the subtest, which is displayed when reporting diff --git a/doc/api/timers.md b/doc/api/timers.md index 86c70a09a21..4cddecd24f1 100644 --- a/doc/api/timers.md +++ b/doc/api/timers.md @@ -169,7 +169,7 @@ event loop is doing. <!-- YAML added: v0.9.1 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -200,7 +200,7 @@ This method has a custom variant for promises that is available using <!-- YAML added: v0.0.1 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of @@ -228,7 +228,7 @@ This method has a custom variant for promises that is available using <!-- YAML added: v0.0.1 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/tls.md b/doc/api/tls.md index 6a719f15bc2..df77ff80892 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1442,7 +1442,7 @@ Returns the numeric representation of the remote port. For example, `443`. <!-- YAML added: v0.11.8 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `callback` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/url.md b/doc/api/url.md index 27bb6ade090..453ff10a2bb 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -854,7 +854,7 @@ Alias for [`urlSearchParams[@@iterator]()`][`urlSearchParams@@iterator()`]. <!-- YAML changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41678 description: Passing an invalid callback to the `fn` argument now throws `ERR_INVALID_ARG_TYPE` instead of diff --git a/doc/api/v8.md b/doc/api/v8.md index ca38d2ff703..2689b6813fe 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -275,10 +275,10 @@ disk unless [`v8.stopCoverage()`][] is invoked before the process exits. <!-- YAML added: v11.13.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41373 description: An exception will now be thrown if the file could not be written. - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42577 description: Make the returned error codes consistent across all platforms. --> diff --git a/doc/api/webstreams.md b/doc/api/webstreams.md index 2e81806d85e..f902a10934d 100644 --- a/doc/api/webstreams.md +++ b/doc/api/webstreams.md @@ -5,7 +5,7 @@ <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: Use of this API no longer emit a runtime warning. --> @@ -94,7 +94,7 @@ const stream = new ReadableStream({ <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -384,7 +384,7 @@ port2.postMessage(stream, [stream]); <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -455,7 +455,7 @@ Releases this reader's lock on the underlying {ReadableStream}. <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -706,7 +706,7 @@ Signals an error that causes the {ReadableStream} to error and close. <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -756,7 +756,7 @@ added: v16.5.0 <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -876,7 +876,7 @@ port2.postMessage(stream, [stream]); <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -967,7 +967,7 @@ Appends a new chunk of data to the {WritableStream}'s queue. <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -1001,7 +1001,7 @@ with currently pending writes canceled. <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -1107,7 +1107,7 @@ port2.postMessage(stream, [stream]); <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -1161,7 +1161,7 @@ to be abruptly closed with an error. <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -1198,7 +1198,7 @@ added: v16.5.0 <!-- YAML added: v16.5.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -1235,7 +1235,7 @@ added: v16.5.0 <!-- YAML added: v16.6.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -1279,7 +1279,7 @@ added: v16.6.0 <!-- YAML added: v16.6.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -1354,7 +1354,7 @@ added: v16.6.0 <!-- YAML added: v17.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> @@ -1388,7 +1388,7 @@ added: v17.0.0 <!-- YAML added: v17.0.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/42225 description: This class is now exposed on the global object. --> diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 3e8158470d4..58e9003ccfe 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -352,7 +352,7 @@ if (isMainThread) { <!-- YAML added: v15.4.0 changes: - - version: REPLACEME + - version: v18.0.0 pr-url: https://github.com/nodejs/node/pull/41271 description: No longer experimental. --> |