-
Notifications
You must be signed in to change notification settings - Fork 96
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
Comments
https://github.com/jsdom/whatwg-url seems to be the most active |
That's what universal-url uses, and also provides universal-url-lite for file size control. |
Making the @stevenvachon Thanks for pointing out universal-url project to me, it looks like I can make do with this for now. |
thanks for your reply
On 09/13/2017 16:02, Roger Qiu wrote: 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.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/defunctzombie/node-url","title":"defunctzombie/node-url","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/defunctzombie/node-url"}},"updates":{"snippets":[{"icon":"PERSON","message":"@CMCDragonkai in #33: 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."}],"action":{"name":"View Issue","url":"#33 (comment)"}}}
|
Is it worth depending on url-polyfill and re-exporting It seems to be a small polyfill although it doesn't claim to have 100% support of the API. |
|
Does node's |
Looks like the |
I remember it being added in v7, then back-ported to v6. I'm not sure if v6 has |
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
The text was updated successfully, but these errors were encountered: