v11.13.0 release proposal by targos · Pull Request #26949 · nodejs/node (original) (raw)

targos

2019-03-28, Version 11.13.0 (Current), @targos

Notable Changes

Commits

@mcollina @targos

This change adds a EventEmitter.once() method that wraps ee.once in a promise.

Co-authored-by: David Mark Clements david.mark.clements@gmail.com

PR-URL: #26078 Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Gus Caplan me@gus.host Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Michaël Zasso targos@protonmail.com Reviewed-By: Anatoli Papirovski apapirovski@mac.com Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com Reviewed-By: Сковорода Никита Андреевич chalkerx@gmail.com

@joyeecheung @targos

Since we should treat the node-inspect as third-party user code.

Backport-PR-URL: #26662 PR-URL: #26466 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

@joyeecheung @targos

Since it depends on environment variables.

Backport-PR-URL: #26662 PR-URL: #26466 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

@joyeecheung @targos

Since this depends on environment variable, and the worker threads do not need to persist the variable value because they cannot switch cwd.

Backport-PR-URL: #26662 PR-URL: #26466 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

@refack @targos

PR-URL: #26662 Reviewed-By: Michaël Zasso targos@protonmail.com

@joyeecheung @targos

So these can be required without requiring the whole util.js.

PR-URL: #26468 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

@joyeecheung @targos

PR-URL: #26468 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

@joyeecheung @targos

This patch splits the implementation of util.debuglog into a separate file and explicitly initialize it during pre-execution since the initialization depends on environment variables. Also delays the call to debuglog in modules that are loaded during bootstrap to make sure we only access the environment variable during pre-execution.

PR-URL: #26468 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

@BridgeAR @targos

This adds a small wrapper around the getColorDepth function to check if the stream supports at least a specific amount of colors. This is convenient as the other API is not as straight forward and most use cases likely only want to know if a specific amount of colors is supported or not.

PR-URL: #26247 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Weijia Wang starkwang@126.com Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Sakthipriyan Vairamani thechargingvolcano@gmail.com

@addaleax @targos

Make sure node::Init() is called once, and execute RunBootstrapping() so that Node’s internals are ready when the cctests run.

PR-URL: #26457 Reviewed-By: Ben Noordhuis info@bnoordhuis.nl Reviewed-By: Joyee Cheung joyeec9h3@gmail.com Reviewed-By: Shelley Vohr codebytere@gmail.com Reviewed-By: James M Snell jasnell@gmail.com

@addaleax @targos

(Re-?)add a public API for creating linked bindings (access to NM_F_LINKED as a constant was previously removed in d6ac8a4), and add a test for the functionality.

PR-URL: #26457 Reviewed-By: Ben Noordhuis info@bnoordhuis.nl Reviewed-By: Joyee Cheung joyeec9h3@gmail.com Reviewed-By: Shelley Vohr codebytere@gmail.com Reviewed-By: James M Snell jasnell@gmail.com

@addaleax @targos

This API was added to fill an use case that is served by async_hooks, since that has Promise support.

Deprecate this, as the underlying Isolate::SetPromiseHook() may be removed in its current form in the future.

Refs: https://docs.google.com/document/d/1g8OrG5lMIUhRn1zbkutgY83MiTSMx-0NHDs8Bf-nXxM/

PR-URL: #26529 Reviewed-By: Matteo Collina matteo.collina@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: James M Snell jasnell@gmail.com

@jasnell @targos

Adds v8.writeHeapSnapshot(filename) with impl adapted from the node-heapdump module.

Also, adds a v8.getHeapSnapshot() alternative that returns a Readable Stream

PR-URL: #26501 Reviewed-By: Richard Lau riclau@uk.ibm.com Reviewed-By: Ben Noordhuis info@bnoordhuis.nl Reviewed-By: Matteo Collina matteo.collina@gmail.com Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Vse Mozhet Byt vsemozhetbyt@gmail.com Reviewed-By: Sam Roberts vieuxtech@gmail.com Reviewed-By: Joyee Cheung joyeec9h3@gmail.com

@richardlau @targos

Be explicit on the modules that are expected to be loaded and add an appropriate assertion failure message to help debug when the list changes.

Fixes: #23884

PR-URL: #26531 Reviewed-By: Refael Ackermann refack@gmail.com Reviewed-By: Sam Roberts vieuxtech@gmail.com

@Trott @targos

Edit the "Technical How-To" section of the Collaborator Guide. Keep wording simple and direct.

PR-URL: #26601 Reviewed-By: Richard Lau riclau@uk.ibm.com Reviewed-By: Beth Griggs Bethany.Griggs@uk.ibm.com

@Trott @targos

TSC voted in Gireesh today. Add him to the TSC list in the README.

Closes: #26186

PR-URL: #26657 Fixes: #26186 Reviewed-By: Richard Lau riclau@uk.ibm.com Reviewed-By: Michaël Zasso targos@protonmail.com Reviewed-By: Beth Griggs Bethany.Griggs@uk.ibm.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Joyee Cheung joyeec9h3@gmail.com Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Gireesh Punathil gpunathi@in.ibm.com Reviewed-By: Michael Dawson michael_dawson@ca.ibm.com Reviewed-By: Vse Mozhet Byt vsemozhetbyt@gmail.com

@Trott @targos

Barring shenanigans like Object.getOwnPropertyDescriptor(), return values from a setter function will always be inaccessible. Remove the return statements as they can be misleading, suggesting that the return value is accessible and perhaps used somewhere.

PR-URL: #26614 Reviewed-By: Richard Lau riclau@uk.ibm.com Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Beth Griggs Bethany.Griggs@uk.ibm.com Reviewed-By: Luigi Pinca luigipinca@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Michael Dawson michael_dawson@ca.ibm.com Reviewed-By: Tobias Nießen tniessen@tnie.de Reviewed-By: James M Snell jasnell@gmail.com

@oyyd @targos

This commit cleans up net module, including: 1. remove assigning handle.readable and handle.writable 2. documents NODE_PENDING_PIPE_INSTANCES enviroment variable 3. use constants for '0.0.0.0' and '::'.

PR-URL: #24128 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Luigi Pinca luigipinca@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

@gengjiawen @targos

PR-URL: #26562 Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Luigi Pinca luigipinca@gmail.com

@gengjiawen @targos

PR-URL: #26562 Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Luigi Pinca luigipinca@gmail.com

@gengjiawen @targos

PR-URL: #26562 Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Luigi Pinca luigipinca@gmail.com

@targos

Refs: v8/v8@06193b0

PR-URL: #26630 Reviewed-By: Joyee Cheung joyeec9h3@gmail.com Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ben Noordhuis info@bnoordhuis.nl Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Tobias Nießen tniessen@tnie.de Reviewed-By: James M Snell jasnell@gmail.com

@richardlau @targos

PR-URL: #26647 Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Joyee Cheung joyeec9h3@gmail.com

@richardlau @targos

PR-URL: #26647 Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Joyee Cheung joyeec9h3@gmail.com

@Trott @targos

In the Troubleshooting portion of the Collaborator Guide, there is a copy/pasted error message. The message is out of date. More recent git contains a more concise and clear message. Update the text to reflect the current git error message.

PR-URL: #26652 Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Vse Mozhet Byt vsemozhetbyt@gmail.com

@Trott @targos

In the Troubleshooting section of the Collaborator Guide, there is one particularly lengthy and difficult-to-understand sentence. Make it shorter and more clear.

PR-URL: #26652 Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Vse Mozhet Byt vsemozhetbyt@gmail.com

@gireeshpunathil @targos

This commit introduces a node::Stop() API.

An identified use case for embedders is their ability to tear down Node while it is still running (event loop contain pending events)

Here the assumptions are that (i) embedders do not wish to resort to JS routines to initiate shutdown (ii) embedders have the Environment handle handy. (iii) embedders stop Node through a second thread.

Fixes: #19365 Refs: nodejs/user-feedback#51

PR-URL: #21283 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Richard Lau riclau@uk.ibm.com Reviewed-By: Michael Dawson Michael_Dawson@ca.ibm.com

@hashseed @targos

PR-URL: #26618 Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Luigi Pinca luigipinca@gmail.com Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Tobias Nießen tniessen@tnie.de Reviewed-By: Richard Lau riclau@uk.ibm.com Reviewed-By: Anto Aravinth anto.aravinth.cse@gmail.com Reviewed-By: Gus Caplan me@gus.host Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: Michael Dawson michael_dawson@ca.ibm.com

@Trott @targos

Remove unused arguments from function invocations in ESLint custom rules.

PR-URL: #26668 Reviewed-By: Richard Lau riclau@uk.ibm.com Reviewed-By: Daijiro Wachi daijiro.wachi@gmail.com Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de

@Trott @targos

lib/internal/console/constructor.js contains setters for console._stdout and console._stderr but these setters are not used in our tests or in Node.js core. (This is confirmed by our nightly coverage reports.)

Add a test to check monkeypatching _stdout and _stderr on a console object.

PR-URL: #26561 Reviewed-By: Colin Ihrig cjihrig@gmail.com

@targos targos removed doc

Issues and PRs related to the documentations.

libuv

Issues and PRs related to the libuv dependency or the uv binding.

meta

Issues and PRs related to the general management of the project.

tools

Issues and PRs related to the tools directory.

labels

Mar 27, 2019

richardlau

@nodejs-github-bot

@targos

mcollina

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

BethGriggs

BridgeAR

Member

@BridgeAR BridgeAR left a comment • Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We mostly added all semver-minor commits to the notable changes: should we do that here as well?

I would at least add:

src: deprecate AddPromiseHook() (Anna Henningsen) #26529

@targos

Notable changes:

PR-URL: #26949

@targos

I added a few more notable changes

@targos

@panva

Deleted my previous comment. Only what's in staging branch is slated for release, am i right?

@targos

Yes, but for the Current release line, anything that is not semver-major could be pulled into the staging branch.

@ronkorving

@targos Just a small "typo" in the release notes:

This API was added to fill an use case

Should read:

This API was added to fill a use case

@targos

@ronkorving do you feel strongly about it? I'd have to force-push and rebuild everything to fix it. I can make the fix in the blog post though.

tniessen

ZYSzys

targos added a commit that referenced this pull request

Mar 28, 2019

@targos

targos added a commit that referenced this pull request

Mar 28, 2019

@targos

Notable changes:

PR-URL: #26949

targos added a commit to nodejs/nodejs.org that referenced this pull request

Mar 28, 2019

@targos

targos added a commit to nodejs/nodejs.org that referenced this pull request

Mar 28, 2019

@targos

@targos targos deleted the v11.13.0-proposal branch

March 28, 2019 19:36

BethGriggs pushed a commit that referenced this pull request

Apr 5, 2019

@targos @BethGriggs

Notable changes:

PR-URL: #26949