Skip to content

Remove dependency on Q in favor of native Promises #900

Open
@JamieMagee

Description

@JamieMagee

Environment

azure-pipelines-task-lib version: 3.4.0

Issue Description

azure-pipelines-task-lib currently has a hard dependency on q, a Promise library for JavaScript. This was necessary in the early days of JavaScript, but since ES6/ES2015 the JavaScript standard has had native support for Promises. q hasn't published a new release in over 5 years, and has a note on the GitHub repo

Please consider using JavaScript promises instead of Q. Native promises are faster, have better tooling support and are the future.

Support for native Promises in Node has been available since Node v4.

Expected behaviour

No dependency on q

Actual behaviour

A dependency on q

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions