New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WHATWG URL support #33

Open
stevenvachon opened this Issue Mar 10, 2017 · 6 comments

Comments

Projects
None yet
5 participants
@stevenvachon
Copy link

stevenvachon commented Mar 10, 2017

was added as an experimental feature in Node 7.0, which will become official in 8.x

I'm working on these to help: hasurl, isurl, universal-url

@felixfbecker

This comment has been minimized.

Copy link

felixfbecker commented Apr 30, 2017

https://github.com/jsdom/whatwg-url seems to be the most active

@stevenvachon

This comment has been minimized.

Copy link

stevenvachon commented Apr 30, 2017

That's what universal-url uses, and also provides universal-url-lite for file size control.

@CMCDragonkai

This comment has been minimized.

Copy link

CMCDragonkai commented Sep 13, 2017

Making the url name on npm use the latest node style URL or whatwg-url would make it much easier to do polyfills, since you can always just write import { URL } from 'url';, and if it is node that will use the builtin version, while if it is in non-node environment, that will use the polyfill. I was hoping to be able to do this, but this current url package does not expose the URL constructor in accordance to whatwg url and the browser's window.URL.

@stevenvachon Thanks for pointing out universal-url project to me, it looks like I can make do with this for now.

@gwiron

This comment has been minimized.

Copy link

gwiron commented Sep 14, 2017

@sheepsteak

This comment has been minimized.

Copy link

sheepsteak commented Mar 3, 2018

Is it worth depending on url-polyfill and re-exporting URL and URLSearchParams?

It seems to be a small polyfill although it doesn't claim to have 100% support of the API.

@stevenvachon

This comment has been minimized.

Copy link

stevenvachon commented Nov 28, 2018

http in Node.js v11 uses URL under the hood by default.

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