-
Notifications
You must be signed in to change notification settings - Fork 492
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
Update semver.js #120
Update semver.js #120
Conversation
Fix error that is at least occurring in webpack compilation. References webpack/webpack/#828.
Please also update the amd test, and give it a proper commit message. |
@isaacs Ok will do, I wanted to first vet this change generally. I will follow up with a test and such given it seems to be ok. Thanks. |
Seems fine to me. I would also be ok with just removing the amd stuff entirely from this module. It's a bit odd, and most libs don't include it directly, so there's gotta be some kind of general purpose "amdify this commonjs module" thing, right? |
Honestly I can't say, I've never used AMD in my life, which I guess adds credence to your point but I'm just not sure about the "auto-amd" tooling out there. @jhnns You probably know better. Ramifications of removing hard-coded AMD support? |
Sorry, I don't use AMD too. I'd remove it entirely but there are probably some AMD folks which will be mad then 😁. If we don't want to remove AMD, we probably should use UMD instead of the current approach. |
👍 to at least the patch, if not removing AMD entirely |
This issue is super low priority for me right now sorry. I'm more than happy to pass the baton to someone else. Takers? |
What all needs to be done, is this a thing that needs a test? It feels more along the lines of fixing a syntax error than a feature change. |
@tgriesser yes, every change needs a test. And a change that breaks a test is sadly something we can't accept. (This change breaks a test.) Again, I'd really like to just remove AMD entirely from this module. It's something that belongs in the builder, not this module, imo. The next major version release will remove it entirely. |
+1, having this error as well. So I guess there is nothing to do, but wait for the next major version? |
@mistadikay can you clarify what you mean by "this error"? What are you trying to do, and how is it failing? |
@isaacs oops, am I in a wrong thread? Sorry about that. I'm trying to use node-semver in webpack build and I have exactly the same error as in webpack/webpack#828 that dissapears when I remove |
Great, the world become slightly simpler. |
It's a nice job to keep the module as clean as possible. But, when I install [email protected], AMD/Browser/minified bits are still there...Is there something wrong? |
Haha didn't make clean before this change. I'll release 5.0.1 tomorrow without those artifacts. Sorry about that. |
Fix error that is at least occurring in webpack compilation. References webpack/webpack#828.
Tasks prior to merge: