microsoft / microsoft/azure-devops-node-api

`url.parse()` deprecated

Open
#676 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area: NodeApi triage
Dominant language
TypeScript
Stars
502
Forks
244
Avg merge
2h 24m
Merged PRs (30d)
2

Description

url.parse() is deprecated, but is used in this library which can result in a similar error in many Azure Devops pipelines tasks.

(node:2582) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `node --trace-deprecation ...` to show where the warning was created)

See https://github.com/microsoft/azure-pipelines-tasks/issues/21565 for possible candidates.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the TypeScript source for url.parse() usages and inspect the possible candidates described in the linked Azure Pipelines issue. Determine which usage causes the warning, then verify that the affected scenarios no longer use the deprecated API and that the relevant existing checks still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.