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.

@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

@JamieMagee JamieMagee Jun 15, 2023

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

@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
@JamieMagee JamieMagee deleted the users/jamagee/native-promises branch August 29, 2023 16:42
fullstackinfo pushed a commit to fullstackinfo/azure-pipelines-task-lib that referenced this pull request Aug 17, 2024
* 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]>
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.

4 participants