-
Notifications
You must be signed in to change notification settings - Fork 274
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 and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: replace Q
with native promises
#905
refactor: replace Q
with native promises
#905
Conversation
…t make use of Q as deprecated for now
The team decided to continue supporting both Q promises and native promises until the release of v5. I marked the methods that make use of the Q library as deprecated for now. |
node/mock-toolrunner.ts
Outdated
// Deprecated, use execAsync instead | ||
// Exec - use for long running tools where you need to stream live output as it runs | ||
// returns a promise with return code. | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the @deprecated
JSDoc tag. Otherwise this will not be shown to users in the IDE. See https://jsdoc.app/tags-deprecated.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Co-authored-by: Jamie Magee <[email protected]>
/azp run |
No commit pushedDate could be found for PR 905 in repo microsoft/azure-pipelines-task-lib |
/azp run |
Commenter does not have sufficient privileges for PR 905 in repo microsoft/azure-pipelines-task-lib |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
* refactor: replace `Q` with native promises * Changed how promises were deferred to fix failing tests * Bumped version to 5.0.0 * Switched to using promise constructors instead of custom Deferred class * Continue support of Q until the release of v5. Marked the methods that make use of Q as deprecated for now * Added JSDoc deprecation annotation * Updated version and changelog * Updated changelog message * Apply review suggestion Co-authored-by: Jamie Magee <[email protected]> * Tests for execAsync --------- Co-authored-by: Aleksandr Levochkin <[email protected]> Co-authored-by: Aleksandr Levochkin <[email protected]> Co-authored-by: Aleksandr Levockin (Akvelon INC) <[email protected]>
This only handles the
node
directory. There are still uses ofQ
under thepowershell
directory.