Skip to content

Conversation

@Flarna
Copy link
Contributor

@Flarna Flarna commented Jul 31, 2017

Added async_hooks.executionAsyncId() and triggerAsyncId(). Deprecated currentId() and triggerId()

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

If changing an existing definition:

- currentId() => executionAsyncId()
- triggerId() => triggerAsyncId()

see nodejs/node#13490
@dt-bot
Copy link
Member

dt-bot commented Jul 31, 2017

types/node/index.d.ts

to authors (@DefinitelyTyped/DefinitelyTyped @parambirs @robdesideri @tellnes @WilcoBakker @octo-sniffle @smac89 @mwiktorczyk @wwwy3y3 @Tyriar @DeividasBakanas Microsoft TypeScript (account can't be detected)). Could you review this PR?
👍 or 👎?

Checklist

  • pass the Travis CI test?

@wwwy3y3
Copy link
Contributor

wwwy3y3 commented Aug 1, 2017

I'm thinking maybe we should just remove deprecated API?

@Flarna
Copy link
Contributor Author

Flarna commented Aug 1, 2017

I have considered this but as the API was already there for a while it's maybe already in use. My plan was to remove it later to give users a chance to adapt first.

@wwwy3y3
Copy link
Contributor

wwwy3y3 commented Aug 1, 2017

Considering async_hooks API is rather new. I suppose we could leave deprecated API for a while.

@wwwy3y3
Copy link
Contributor

wwwy3y3 commented Aug 1, 2017

👍

@typescript-bot
Copy link
Contributor

Approved by a listed owner. PR appears ready to merge pending express review by a maintainer.

@sheetalkamat sheetalkamat merged commit 34d4afe into DefinitelyTyped:master Aug 1, 2017
@Flarna Flarna deleted the node_update_async_hooks branch August 4, 2017 21:18
milosdanilov pushed a commit to milosdanilov/DefinitelyTyped that referenced this pull request Aug 5, 2017
…telyTyped#18530)

- currentId() => executionAsyncId()
- triggerId() => triggerAsyncId()

see nodejs/node#13490
KSXGitHub pushed a commit to KSXGitHub/DefinitelyTyped that referenced this pull request May 12, 2018
…telyTyped#18530)

- currentId() => executionAsyncId()
- triggerId() => triggerAsyncId()

see nodejs/node#13490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants