Skip to content

Removing use of deprecated url.parse api in node 24#639

Open
1000TurquoisePogs wants to merge 2 commits intov3.x/stagingfrom
feature/v3/node-24
Open

Removing use of deprecated url.parse api in node 24#639
1000TurquoisePogs wants to merge 2 commits intov3.x/stagingfrom
feature/v3/node-24

Conversation

@1000TurquoisePogs
Copy link
Copy Markdown
Member

node is deprecating url.parse(). i dont think they're removing it any time soon, but they say to use new URL() instead.
so, i found that in 2 places:

  1. the GET /plugins call, (as seen when login to desktop), was using it to check for headers. req.headers already exists in expressjs so i dont know why we did that. i made that change.

  2. RBAC used url parsing to get part of the path. new URL() can do the same. So, you'll need to run an RBAC test to be sure of that change.

Signed-off-by: 1000TurquoisePogs <sgrady@rocketsoftware.com>
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Ready for Review

Development

Successfully merging this pull request may close these issues.

2 participants