Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

url parse() method is deprecated in node #126

Open
gndelia opened this issue Jul 13, 2021 · 0 comments
Open

url parse() method is deprecated in node #126

gndelia opened this issue Jul 13, 2021 · 0 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@gndelia
Copy link
Contributor

gndelia commented Jul 13, 2021

As of node v11, require('url').parse is deprecated (it works, but it is not recommended to use). See https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost.

The recommendation is to use the plain object new Url() but I think it works a bit different; plus this method is exposed through metro as a global utility, so perhaps some testing should be done

here is the piece of code

@gndelia gndelia added the dependencies Pull requests that update a dependency file label Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant