question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Chore] Update deprecated url methods (`url.parse()`, `url.format()`)

See original GitHub issue

These have been deprecated since node v11.0.0. The recommendation is to “Use the WHATWG URL API” instead.

Parsing can generally be done through the new URL() constructor pattern.

format() still exists, although the signature has changed, and it may no longer be needed in many places.

(via https://github.com/opensearch-project/OpenSearch-Dashboards/pull/1553#discussion_r866428514)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joshuarrrrcommented, Nov 23, 2022

Thanks @wanglam! We’ll schedule it for review. With the holiday week it may realistically be next week that we can pick it up.

1reaction
joshuarrrrcommented, Nov 18, 2022

My personal opinion here is to only replace the instances where a drop in replacement does not affect expected functionality and leave comments referencing this issue for the ones that we cannot.

+1. We should definitely first focus on the obvious/easy low-hanging fruit. If we could remove like 90% of the deprecated usage that would be great.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Hey can you help me out . my 'url.parse' is deprecated
Here is the solution that worked for me. const {URL} = require('url'); const getProfile = (req,res) => { const fullurl = req.protocol + ......
Read more >
URL | Node.js v19.3.0 Documentation
The node:url module provides utilities for URL resolution and parsing. ... vary somewhat from what the url.parse() and url.format() methods would produce.
Read more >
parse_url - Manual - PHP
This function parses a URL and returns an associative array containing any of the various components of the URL that are present.
Read more >
Node.js url.parse(urlString, parseQueryString ...
The url.parse() method takes a URL string, parses it, and it will return a URL object with each part of the address as...
Read more >
Release Notes — Airflow Documentation
Redirect to home view when there are no valid tags in the URL (#25715) ... Update templates doc to mention extras and format...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found