Skip to content
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

Support for earlier versions of node by downgrading dependency on punycode #27

Open
ethanherbertson opened this issue Apr 13, 2018 · 5 comments

Comments

@ethanherbertson
Copy link

The punycode module has a branch (1.4) which supports many more versions of node than the 2.x branch does.

While this module does not claim to support any particular versions of node, it would help the community if this module could downgrade to the 1.4 branch so that projects that depend on this module could continue to (safely) support node 4.

I'm not a punycoder, so I can't say for sure how much of a bother this would be, or whether you are using features that punycode v1.4 does not support.

Failing that, it would be nice if your module declared that it does not support node 4 and below in your package.json file.

@garycourt
Copy link
Owner

Interesting. Do you happen to know what particular feature in punycode is causing the issue? Does the ES5 version in dist/es5/uri.all.js not work in Node 4?

@ethanherbertson
Copy link
Author

ethanherbertson commented Apr 13, 2018 via email

@garycourt
Copy link
Owner

That sounds like an issue with punycode then. I would open an issue with them inquiring about their environment dependency.

@ethanherbertson
Copy link
Author

I can try filing an issue there, but they seem pretty intentional about dropping Node 4 support in their version 2 branch. Their README says:

The current version supports recent versions of Node.js only. It provides a CommonJS module and an ES6 module. For the old version that offers the same functionality with broader support, including Rhino, Ringo, Narwhal, and web browsers, see v1.4.1.

Based on that, I don't think they're going to budge. So if you want uri-js to support Node 4 (and maybe you don't—It is rapidly approaching official end-of-life status) you should downgrade your dependency. If you'd rather not support Node 4, I'd recommend at least explicitly saying what versions you do support by adding an "engines" key to your package.json.

Thanks for your quick responses to this ticket! Responsive maintainers are my favorite people.

@garycourt
Copy link
Owner

garycourt commented Apr 20, 2018

I see. It appears that v2 is only to drop support for older Node versions. Alright, I'll look into this.

@garycourt garycourt reopened this Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants