Skip to content

Latest commit

 

History

History
544 lines (488 loc) · 78.6 KB

CHANGELOG_V17.md

File metadata and controls

544 lines (488 loc) · 78.6 KB

Node.js 17 ChangeLog

Current
17.2.0
17.1.0
17.0.1
17.0.0

2021-11-30, Version 17.2.0 (Current), @targos

Notable Changes

  • [06916490af] - (SEMVER-MINOR) async_hooks: expose async_wrap providers (Rafael Gonzaga) #40760
  • [371ee64c92] - (SEMVER-MINOR) deps: update V8 to 9.6.180.14 (Michaël Zasso) #40488
  • [675c210b04] - (SEMVER-MINOR) lib: add reason to AbortSignal (James M Snell) #40807
  • [0de2850680] - (SEMVER-MINOR) src: add x509.fingerprint512 to crypto module (3nprob) #39809
  • [fa9b5c35d2] - stream: deprecate thenable support (Antoine du Hamel) #40860
  • [534409d4e7] - stream: fix finished regression when working with legacy Stream (Matteo Collina) #40858

Commits

2021-11-09, Version 17.1.0 (Current), @targos

Notable Changes

  • [89b34ecffb] - doc: add VoltrexMaster to collaborators (voltrexmaster) #40566
  • [95e4d29eb4] - (SEMVER-MINOR) esm: add support for JSON import assertion (Antoine du Hamel) #40250
  • [1ddbae2d76] - (SEMVER-MINOR) lib: add unsubscribe method to non-active DC channels (simon-id) #40433
  • [aa61551b49] - (SEMVER-MINOR) lib: add return value for DC channel.unsubscribe (simon-id) #40433
  • [fbeb895ca6] - (SEMVER-MINOR) v8: multi-tenant promise hook api (Stephen Belanger) #39283

Commits

  • [8a00dc5add] - build: skip long-running Actions for README-only modifications (Rich Trott) #40571
  • [9f46fca124] - build: disable v8 pointer compression on 32bit archs (Cheng Zhao) #40418
  • [5bef74395d] - deps: patch V8 to 9.5.172.25 (Michaël Zasso) #40604
  • [3805b806ee] - deps: upgrade npm to 8.1.2 (npm team) #40643
  • [c003ba131b] - deps: update c-ares to 1.18.1 (Richard Lau) #40660
  • [841f35cc52] - deps: upgrade npm to 8.1.1 (npm team) #40554
  • [8d16f0d2d3] - deps: V8: cherry-pick 422dc378a1da (Ray Wang) #40450
  • [cdf5c44d62] - deps: add riscv64 config into openssl gypi (Lu Yahan) #40473
  • [2b9fcdfe26] - deps: attempt to suppress macro-redefined warning (Daniel Bevenius) #40518
  • [d2839bfaa9] - deps: regenerate OpenSSL arch files (Daniel Bevenius) #40518
  • [5df8ce5cbe] - deps,build,tools: fix openssl-is-fips for ninja builds (Daniel Bevenius) #40518
  • [79bf429405] - dgram: fix send with out of bounds offset + length (Nitzan Uziely) #40568
  • [c29658fda7] - doc: update cjs-module-lexer repo link (Guy Bedford) #40707
  • [e374f3ddd9] - doc: fix lint re-enabling comment in README.md (Rich Trott) #40647
  • [ecccf48106] - doc: format v8.md in preparation for stricter linting (Rich Trott) #40647
  • [95a7117037] - doc: final round of markdown format changes (Rich Trott) #40645
  • [c104f5a9ab] - doc: remove --experimental-modules documentation (FrankQiu) #38974
  • [ac81f89bbf] - doc: update tracking issues of startup performance (Joyee Cheung) #40629
  • [65effa11fc] - doc: fix markdown syntax and HTML tag misses (ryan) #40608
  • [c78d708a16] - doc: use 'GitHub Actions workflow' instead (Mestery) #40586
  • [71bac70bf2] - doc: ref OpenSSL legacy provider from crypto docs (Tobias Nießen) #40593
  • [8f410229ac] - doc: add node: url scheme (Daniel Nalborczyk) #40573
  • [35dbed21f2] - doc: call cwd function (Daniel Nalborczyk) #40573
  • [4870a23ccc] - doc: remove unused imports (Daniel Nalborczyk) #40573
  • [5951ccc12e] - doc: simplify CHANGELOG.md (Rich Trott) #40475
  • [6ae134ecb7] - doc: correct esm spec scope lookup definition (Guy Bedford) #40592
  • [09239216f6] - doc: update CHANGELOG.md for Node.js 16.13.0 (Richard Lau) #40617
  • [46ec5ac4df] - doc: add info on project's usage of coverity (Michael Dawson) #40506
  • [7eb1a44410] - doc: fix typo in changelogs (Luigi Pinca) #40585
  • [132f6cba05] - doc: update onboarding task (Rich Trott) #40570
  • [5e2d0ed61e] - doc: simplify ccache instructions (Rich Trott) #40550
  • [c1c1738bfc] - doc: fix macOS environment variables for ccache (Rich Trott) #40550
  • [6e3e50f2ab] - doc: improve async_context introduction (Michaël Zasso) #40560
  • [1587fe62d4] - doc: use GFM footnotes in webcrypto.md (Rich Trott) #40477
  • [305c022db4] - doc: describe buffer limit of v8.serialize (Ray Wang) #40243
  • [6e39e0e10a] - doc: run license-builder (Rich Trott) #40540
  • [556e49ccb5] - doc: use GFM footnotes in maintaining-V8.md (#40476) (Rich Trott) #40476
  • [9c6a9fd5b1] - doc: use GFM footnotes in BUILDING.md (Rich Trott) #40474
  • [fd946215cc] - doc: fix fs.symlink code example (Juan José Arboleda) #40414
  • [404730ac1b] - doc: update for changed --dns-result-order default (Richard Lau) #40538
  • [acc22c7c4a] - doc: add missing entry in globals.md (Antoine du Hamel) #40531
  • [0375d958ef] - doc: explain backport labels (Stephen Belanger) #40520
  • [4993d87c49] - doc: fix entry for Slack channel in onboarding.md (Rich Trott) #40563
  • [89b34ecffb] - doc: add VoltrexMaster to collaborators (voltrexmaster) #40566
  • [6357ef15d0] - doc: document considerations for inclusion in core (Rich Trott) #40338
  • [ed04827373] - doc: update link in onboarding doc (Rich Trott) #40539
  • [34e244b8e9] - doc: clarify behavior of napi_extended_error_info (Michael Dawson) #40458
  • [5a588ff047] - doc: add updating expected assets to release guide (Richard Lau) #40470
  • [95e4d29eb4] - (SEMVER-MINOR) esm: add support for JSON import assertion (Antoine du Hamel) #40250
  • [825a683423] - http: response should always emit 'close' (Robert Nagy) #40543
  • [81cd7f3751] - lib: fix regular expression to detect `/` and `\` (Francesco Trotta) #40325
  • [1ddbae2d76] - (SEMVER-MINOR) lib: add unsubscribe method to non-active DC channels (simon-id) #40433
  • [aa61551b49] - (SEMVER-MINOR) lib: add return value for DC channel.unsubscribe (simon-id) #40433
  • [d97872dd98] - meta: use form schema for flaky test template (Michaël Zasso) #40737
  • [c2fabdbce8] - meta: update AUTHORS (Node.js GitHub Bot) #40668
  • [aa98c6bdce] - meta: consolidate AUTHORS entries for brettkiefer (Rich Trott) #40599
  • [18296c3d8e] - meta: consolidate AUTHORS entries for alexzherdev (Rich Trott) #40620
  • [88d812793d] - meta: consolidate AUTHORS entries for Azard (Rich Trott) #40619
  • [d81b65ca0e] - meta: move Fishrock123 to emeritus (Jeremiah Senkpiel) #40596
  • [ec02e7b68a] - meta: consolidate AUTHORS entries for clakech (Rich Trott) #40589
  • [08e7a2ff24] - meta: consolidate AUTHORS entries for darai0512 (Rich Trott) #40569
  • [488ee51f90] - meta: update AUTHORS (Node.js GitHub Bot) #40580
  • [ba9a6c5d06] - meta: consolidate AUTHORS entries for dfabulich (Rich Trott) #40527
  • [bd06e9945e] - meta: move one or more collaborators to emeritus (Node.js GitHub Bot) #40464
  • [7cee125dcf] - meta: add Richard Lau to TSC list in README.md (Rich Trott) #40523
  • [6a771f8bcb] - meta: consolidate AUTHORS entries for dguo (Rich Trott) #40517
  • [e4c740646d] - meta: consolidate AUTHORS entries for cxreg (Rich Trott) #40490
  • [075cfbf941] - module: resolver & spec hardening /w refactoring (Guy Bedford) #40510
  • [b320387c83] - policy: fix message for invalid manifest specifier (Rich Trott) #40574
  • [ea968d54c5] - process: refactor execution (Voltrex) #40664
  • [fb7c437b0b] - src: make LoadEnvironment with string work with builtin modules path (Michaël Zasso) #40607
  • [e9388c87bf] - src: remove usage of AllocatedBuffer from node_http2 (Darshan Sen) #40584
  • [7a22f913b0] - src: fix #endif description in crypto_keygen.h (Tobias Nießen) #40639
  • [396342e26d] - src: throw error instead of assertion (Ray Wang) #40243
  • [accab383a1] - src: register external references in os bindings (Joyee Cheung) #40239
  • [a11f9ea4f0] - src: register external references in crypto bindings (Joyee Cheung) #40239
  • [ef1ace7e88] - src,crypto: use std::variant in DH params (Darshan Sen) #40457
  • [4433852f62] - src,crypto: remove AllocatedBuffer from crypto_cipher.cc (Darshan Sen) #40400
  • [814126c3ed] - src,fs: remove ToLocalChecked() call from fs::AfterMkdirp() (Darshan Sen) #40386
  • [d4b45cc249] - src,stream: remove *Check*() calls from non-Initialize() functions (Darshan Sen) #40425
  • [bac7fe0797] - stream: remove no longer necessary ComposeDuplex (Robert Nagy) #40545
  • [e58cce49fd] - test: disable warnings to fix flaky test (Antoine du Hamel) #40739
  • [8c103ab2ff] - test: skip macos sandbox test with builtin modules path (Michaël Zasso) #40607
  • [ac3bc6eed0] - test: add semicolon after chunk size (Luigi Pinca) #40487
  • [95fe9bb922] - test: deflake http2-cancel-while-client-reading (Luigi Pinca) #40659
  • [dfd0215266] - test: avoid deep comparisons with literals (Tobias Nießen) #40634
  • [5020f634b8] - test: mark test-policy-integrity flaky on Windows (Rich Trott) #40684
  • [8fa1c61e40] - test: fix test-datetime-change-notify after daylight change (Piotr Rybak) #40684
  • [179a5c5436] - test: test crypto.setEngine() using an actual engine (Darshan Sen) #40481
  • [cf6ded4db5] - test: use conventional argument order in assertion (Tobias Nießen) #40591
  • [aefb097d6a] - test: fix test description (Luigi Pinca) #40486
  • [126e669b84] - test,doc: correct documentation for runBenchmark() (Rich Trott) #40683
  • [1844463ce2] - test,tools: increase pummel/benchmark test timeout from 4x to 6x (Rich Trott) #40684
  • [f731f5ffb5] - test,tools: increase timeout for benchmark tests (Rich Trott) #40684
  • [bbc10f1849] - tools: simplify and fix commit queue (Michaël Zasso) #40742
  • [a3df50d810] - tools: ensure the PR was not pushed before merging (Antoine du Hamel) #40747
  • [306d953c15] - tools: update ESLint to 8.2.0 (Luigi Pinca) #40734
  • [b7e736843c] - tools: use GitHub Squash and Merge feature when using CQ (Antoine du Hamel) #40666
  • [50d102ec08] - tools: fix bug in prefer-primordials ESLint rule (Antoine du Hamel) #40628
  • [ec2cadef85] - tools: add script to update c-ares (Richard Lau) #40660
  • [5daa313215] - tools: notify user if format-md needs to be run (Rich Trott) #40647
  • [0787c781ce] - tools: abort CQ session when landing several commits (Antoine du Hamel) #40577
  • [ddc44ddfd9] - tools: fix commit-lint workflow (Antoine du Hamel) #40673
  • [47eddd7076] - tools: avoid unnecessary escaping in markdown formatter (Rich Trott) #40645
  • [c700de3705] - tools: avoid fetch extra commits when validating commit messages (Antoine du Hamel) #39128
  • [716963484b] - tools: update ESLint to 8.1.0 (Luigi Pinca) #40582
  • [9cb2116608] - tools: fix formatting of warning message in update-authors.js (Rich Trott) #40600
  • [507f1dbc8d] - tools: udpate doc tools to accommodate GFM footnotes (Rich Trott) #40477
  • [c2265a92c3] - tools: update license-builder.sh for OpenSSL (Rich Trott) #40540
  • [16624b404c] - tools,meta: remove exclusions from AUTHORS (Rich Trott) #40648
  • [a95e344fe5] - tty: support more CI services in getColorDepth (Richie Bendall) #40385
  • [b4194ff349] - typings: add more bindings typings (Mestery) #40415
  • [da859b56cb] - typings: add JSDoc typings for inspector (Voltrex) #38390
  • [90aa96dc44] - typings: improve internal bindings typings (Mestery) #40411
  • [1e9f3cc522] - typings: separate internalBinding typings (Mestery) #40409
  • [fbeb895ca6] - (SEMVER-MINOR) v8: multi-tenant promise hook api (Stephen Belanger) #39283

2021-10-20, Version 17.0.1 (Current), @targos

Notable Changes

Fixed distribution for native addon builds

This release fixes an issue introduced in Node.js v17.0.0, where some V8 headers were missing from the distributed tarball, making it impossible to build native addons. These headers are now included. #40526

Fixed stream issues

  • Fixed a regression in stream.promises.pipeline, which was introduced in version 16.10.0, is fixed. It is now possible again to pass an array of streams to the function. #40193
  • Fixed a bug in stream.Duplex.from, which didn't work properly when an async generator function was passed to it. #40499

Commits

2021-10-19, Version 17.0.0 (Current), @BethGriggs

Notable Changes

Deprecations and Removals

  • [f182b9b29f] - (SEMVER-MAJOR) dns: runtime deprecate type coercion of dns.lookup options (Antoine du Hamel) #39793
  • [4b030d0573] - doc: deprecate (doc-only) http abort related (dr-js) #36670
  • [36e2ffe6dc] - (SEMVER-MAJOR) module: subpath folder mappings EOL (Guy Bedford) #40121
  • [64287e4d45] - (SEMVER-MAJOR) module: runtime deprecate trailing slash patterns (Guy Bedford) #40117

OpenSSL 3.0

Node.js now includes OpenSSL 3.0, specifically quictls/openssl which provides QUIC support. With OpenSSL 3.0 FIPS support is again available using the new FIPS module. For details about how to build Node.js with FIPS support please see BUILDING.md.

While OpenSSL 3.0 APIs should be mostly compatible with those provided by OpenSSL 1.1.1, we do anticipate some ecosystem impact due to tightened restrictions on the allowed algorithms and key sizes.

If you hit an ERR_OSSL_EVP_UNSUPPORTED error in your application with Node.js 17, it’s likely that your application or a module you’re using is attempting to use an algorithm or key size which is no longer allowed by default with OpenSSL 3.0. A command-line option, --openssl-legacy-provider, has been added to revert to the legacy provider as a temporary workaround for these tightened restrictions.

For details about all the features in OpenSSL 3.0 please see the OpenSSL 3.0 release blog.

Contributed in nodejs#38512, nodejs#40478

V8 9.5

The V8 JavaScript engine is updated to V8 9.5. This release comes with additional supported types for the Intl.DisplayNames API and Extended timeZoneName options in the Intl.DateTimeFormat API.

You can read more details in the V8 9.5 release post - https://v8.dev/blog/v8-release-95.

Contributed by Michaël Zasso - nodejs#40178

Readline Promise API

The readline module provides an interface for reading data from a Readable stream (such as process.stdin) one line at a time.

The following simple example illustrates the basic use of the readline module:

import * as readline from 'node:readline/promises';
import { stdin as input, stdout as output } from 'process';

const rl = readline.createInterface({ input, output });

const answer = await rl.question('What do you think of Node.js? ');

console.log(`Thank you for your valuable feedback: ${answer}`);

rl.close();

Contributed by Antoine du Hamel - nodejs#37947

Other Notable Changes

  • [1b2749ecbe] - (SEMVER-MAJOR) dns: default to verbatim=true in dns.lookup() (treysis) #39987
  • [59d3d542d6] - (SEMVER-MAJOR) errors: print Node.js version on fatal exceptions that cause exit (Divlo) #38332
  • [a35b7e0427] - deps: upgrade npm to 8.1.0 (npm team) #40463
  • [6cd12be347] - (SEMVER-MINOR) fs: add FileHandle.prototype.readableWebStream() (James M Snell) #39331
  • [d0a898681f] - (SEMVER-MAJOR) lib: add structuredClone() global (Ethan Arrowood) #39759
  • [e4b1fb5e64] - (SEMVER-MAJOR) lib: expose DOMException as global (Khaidi Chu) #39176
  • [0738a2b7bd] - (SEMVER-MAJOR) stream: finished should error on errored stream (Robert Nagy) #39235

Semver-Major Commits

  • [9dfa30bdd5] - (SEMVER-MAJOR) build: compile with C++17 (MSVC) (Richard Lau) #38807
  • [9f0bc602e4] - (SEMVER-MAJOR) build: compile with --gnu++17 (Richard Lau) #38807
  • [62719c5fd2] - (SEMVER-MAJOR) deps: update V8 to 9.5.172.19 (Michaël Zasso) #40178
  • [66da32c045] - (SEMVER-MAJOR) deps,test,src,doc,tools: update to OpenSSL 3.0 (Daniel Bevenius) #38512
  • [40c6e838df] - (SEMVER-MAJOR) dgram: tighten address validation in socket.send (Voltrex) #39190
  • [f182b9b29f] - (SEMVER-MAJOR) dns: runtime deprecate type coercion of dns.lookup options (Antoine du Hamel) #39793
  • [1b2749ecbe] - (SEMVER-MAJOR) dns: default to verbatim=true in dns.lookup() (treysis) #39987
  • [ae876d420c] - (SEMVER-MAJOR) doc: update minimum supported FreeBSD to 12.2 (Michaël Zasso) #40179
  • [59d3d542d6] - (SEMVER-MAJOR) errors: print Node.js version on fatal exceptions that cause exit (Divlo) #38332
  • [f9447b71a6] - (SEMVER-MAJOR) fs: fix rmsync error swallowing (Nitzan Uziely) #38684
  • [f27b7cf95c] - (SEMVER-MAJOR) fs: aggregate errors in fsPromises to avoid error swallowing (Nitzan Uziely) #38259
  • [d0a898681f] - (SEMVER-MAJOR) lib: add structuredClone() global (Ethan Arrowood) #39759
  • [e4b1fb5e64] - (SEMVER-MAJOR) lib: expose DOMException as global (Khaidi Chu) #39176
  • [36e2ffe6dc] - (SEMVER-MAJOR) module: subpath folder mappings EOL (Guy Bedford) #40121
  • [64287e4d45] - (SEMVER-MAJOR) module: runtime deprecate trailing slash patterns (Guy Bedford) #40117
  • [707dd77d86] - (SEMVER-MAJOR) readline: validate AbortSignals and remove unused event listeners (Antoine du Hamel) #37947
  • [8122d243ae] - (SEMVER-MAJOR) readline: introduce promise-based API (Antoine du Hamel) #37947
  • [592d1c3d44] - (SEMVER-MAJOR) readline: refactor Interface to ES2015 class (Antoine du Hamel) #37947
  • [3f619407fe] - (SEMVER-MAJOR) src: allow CAP_NET_BIND_SERVICE in SafeGetenv (Daniel Bevenius) #37727
  • [0a7f850123] - (SEMVER-MAJOR) src: return Maybe from a couple of functions (Darshan Sen) #39603
  • [bdaf51bae7] - (SEMVER-MAJOR) src: allow custom PageAllocator in NodePlatform (Shelley Vohr) #38362
  • [0c6f345cda] - (SEMVER-MAJOR) stream: fix highwatermark threshold and add the missing error (Rongjian Zhang) #38700
  • [0e841b45c2] - (SEMVER-MAJOR) stream: don't emit 'data' after 'error' or 'close' (Robert Nagy) #39639
  • [ef992f6de9] - (SEMVER-MAJOR) stream: do not emit end on readable error (Szymon Marczak) #39607
  • [efd40eadab] - (SEMVER-MAJOR) stream: forward errored to callback (Robert Nagy) #39364
  • [09d8c0c8d2] - (SEMVER-MAJOR) stream: destroy readable on read error (Robert Nagy) #39342
  • [a5dec3a470] - (SEMVER-MAJOR) stream: validate abort signal (Robert Nagy) #39346
  • [bb275ef2a4] - (SEMVER-MAJOR) stream: unify stream utils (Robert Nagy) #39294
  • [b2ae12d422] - (SEMVER-MAJOR) stream: throw on premature close in Readable[AsyncIterator] (Darshan Sen) #39117
  • [0738a2b7bd] - (SEMVER-MAJOR) stream: finished should error on errored stream (Robert Nagy) #39235
  • [954217adda] - (SEMVER-MAJOR) stream: error Duplex write/read if not writable/readable (Robert Nagy) #34385
  • [f4609bdf3f] - (SEMVER-MAJOR) stream: bypass legacy destroy for pipeline and async iteration (Robert Nagy) #38505
  • [e1e669b109] - (SEMVER-MAJOR) url: throw invalid this on detached accessors (James M Snell) #39752
  • [70157b9cb7] - (SEMVER-MAJOR) url: forbid certain confusable changes from being introduced by toASCII (Timothy Gu) #38631

Semver-Minor Commits

  • [6cd12be347] - (SEMVER-MINOR) fs: add FileHandle.prototype.readableWebStream() (James M Snell) #39331
  • [341312d78a] - (SEMVER-MINOR) readline: add autoCommit option (Antoine du Hamel) #37947
  • [1d2f37d970] - (SEMVER-MINOR) src: add --openssl-legacy-provider option (Daniel Bevenius) #40478
  • [3b72788afb] - (SEMVER-MINOR) src: add flags for controlling process behavior (Cheng Zhao) #40339
  • [8306051001] - (SEMVER-MINOR) stream: add readableDidRead (Robert Nagy) #36820
  • [08ffbd115e] - (SEMVER-MINOR) vm: add support for import assertions in dynamic imports (Antoine du Hamel) #40249

Semver-Patch Commits