src: deprecate AddPromiseHook() by addaleax · Pull Request #26529 · nodejs/node (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation6 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

addaleax

@addaleax

@addaleax addaleax added semver-minor

PRs that contain new features and should be released in the next minor version.

lib / src

Issues and PRs related to general changes in the lib or src directory.

labels

Mar 8, 2019

@nodejs-github-bot

@nodejs-github-bot nodejs-github-bot added the c++

Issues and PRs that require attention from people who are familiar with C++.

label

Mar 8, 2019

mcollina

Choose a reason for hiding this comment

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

LGTM

Should this go into doc/api/deprecations.md?

@addaleax

@mcollina I don’t think we’ve done that for C++ deprecations before, and I don’t really think we need to, given how different and more directly dev-focused C++ deprecations are from JS deprecations

BridgeAR

@BridgeAR

@BridgeAR BridgeAR added the author ready

PRs that have at least one approval, no pending requests for changes, and a CI started.

label

Mar 8, 2019

@addaleax

jasnell

@addaleax

@addaleax addaleax deleted the deprecate-add-promise-hook branch

March 10, 2019 21:41

addaleax added a commit that referenced this pull request

Mar 10, 2019

@addaleax

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

addaleax added a commit to addaleax/node that referenced this pull request

Mar 21, 2019

@addaleax

addaleax added a commit that referenced this pull request

Mar 21, 2019

@addaleax

Remove this, as the underlying Isolate::SetPromiseHook() may be removed as well in its current form in the future, and async_hooks also serves this use case.

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

PR-URL: #26574 Reviewed-By: Ben Noordhuis info@bnoordhuis.nl Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com Reviewed-By: Gus Caplan me@gus.host Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Ali Ijaz Sheikh ofrobots@google.com

targos pushed a commit to targos/node that referenced this pull request

Mar 27, 2019

@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: nodejs#26529 Reviewed-By: Matteo Collina matteo.collina@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: James M Snell jasnell@gmail.com

targos added a commit that referenced this pull request

Mar 28, 2019

@targos

Notable changes:

PR-URL: #26949

targos added a commit that referenced this pull request

Mar 28, 2019

@targos

Notable changes:

PR-URL: #26949

BethGriggs pushed a commit that referenced this pull request

Apr 5, 2019

@targos @BethGriggs

Notable changes:

PR-URL: #26949

BethGriggs pushed a commit that referenced this pull request

Apr 16, 2019

@addaleax @BethGriggs

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

This was referenced

May 29, 2019

Labels

author ready

PRs that have at least one approval, no pending requests for changes, and a CI started.

c++

Issues and PRs that require attention from people who are familiar with C++.

lib / src

Issues and PRs related to general changes in the lib or src directory.

semver-minor

PRs that contain new features and should be released in the next minor version.