Skip to content
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

Merged

Conversation

JamieMagee
Copy link
Member

This only handles the node directory. There are still uses of Q under the powershell directory.

node/toolrunner.ts Outdated Show resolved Hide resolved
@aleksandrlevochkin
Copy link
Contributor

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.

Comment on lines 266 to 269
// 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.
//
Copy link
Member Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Done

node/task.ts Outdated Show resolved Hide resolved
@JamieMagee
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 905 in repo microsoft/azure-pipelines-task-lib

@JamieMagee
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 905 in repo microsoft/azure-pipelines-task-lib

@aleksandrlevochkin
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@aleksandrlevochkin
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@aleksandrlevochkin
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@aleksandrlevochkin aleksandrlevochkin merged commit bff4def into microsoft:master Aug 29, 2023
5 checks passed
@JamieMagee JamieMagee deleted the users/jamagee/native-promises branch August 29, 2023 16:42
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.

None yet

4 participants