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

Update semver.js #120

Closed
wants to merge 1 commit into from
Closed

Update semver.js #120

wants to merge 1 commit into from

Conversation

jasonkuhrt
Copy link

Fix error that is at least occurring in webpack compilation. References webpack/webpack#828.

Tasks prior to merge:

  • Update AMD test.
  • Answer question regarding whether AMD support should be outright removed.

Fix error that is at least occurring in webpack compilation. References webpack/webpack/#828.
@isaacs
Copy link
Contributor

isaacs commented Feb 27, 2015

Please also update the amd test, and give it a proper commit message.

@jasonkuhrt
Copy link
Author

@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.

@isaacs
Copy link
Contributor

isaacs commented Feb 27, 2015

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?

@jasonkuhrt
Copy link
Author

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?

@jhnns
Copy link

jhnns commented Feb 27, 2015

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.

@tgriesser
Copy link

👍 to at least the patch, if not removing AMD entirely

@jasonkuhrt
Copy link
Author

This issue is super low priority for me right now sorry. I'm more than happy to pass the baton to someone else. Takers?

@tgriesser
Copy link

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.

@isaacs
Copy link
Contributor

isaacs commented May 29, 2015

@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.

@mistadikay
Copy link

+1, having this error as well. So I guess there is nothing to do, but wait for the next major version?

@isaacs
Copy link
Contributor

isaacs commented Jul 11, 2015

@mistadikay can you clarify what you mean by "this error"? What are you trying to do, and how is it failing?

@mistadikay
Copy link

@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 import semver from 'semver' statement

@isaacs isaacs closed this in 41b56fa Jul 11, 2015
@jasonkuhrt jasonkuhrt deleted the patch-1 branch July 11, 2015 18:50
@jasonkuhrt
Copy link
Author

Great, the world become slightly simpler.

@dracupid
Copy link

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?

@isaacs
Copy link
Contributor

isaacs commented Jul 13, 2015

Haha didn't make clean before this change. I'll release 5.0.1 tomorrow without those artifacts. Sorry about that.

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

Successfully merging this pull request may close these issues.

6 participants