Skip to content

adjusting semver #6

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

Merged
merged 2 commits into from
Jun 2, 2017
Merged

adjusting semver #6

merged 2 commits into from
Jun 2, 2017

Conversation

sbussetti
Copy link
Contributor

No description provided.

@ghost
Copy link

ghost commented Apr 19, 2017

I also get blocked from using this loader because of the peer dependency requirement.

@sbussetti I think >=0.25.0 <0.30.0 is not appropriate. There's no guarantee that 0.29 - 0.30 will be compatible with this plugin (given that 0.28 is current latest version). Unless you know the development plans of css-loader.

@smithad15 I think you can just use >=0.25.0 if you would not like to keep updating whenever a new version of css-loader is released, although there's no guarantee that the loader will always work with the latest version of css-loader. But since this loader is quite simple, it's much less likely that it no longer works than a new version of css-loader is released.

@sbussetti
Copy link
Contributor Author

sbussetti commented Apr 19, 2017 via email

@ghost
Copy link

ghost commented Apr 20, 2017

That's only true after major version 1.

Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.

quoted from http://semver.org/

@ghost
Copy link

ghost commented Apr 20, 2017

And that's why Caret Ranges are defined as:

Allows changes that do not modify the left-most non-zero digit in the [major, minor, patch] tuple.

@smithad15
Copy link
Owner

Thanks for this. As I've had to deal with some peerDependency version issues before, and since semver works a bit differently when dealing with 0.x.x packages, @sbussetti could you please update the PR to an even more permissive range of >=0.25.0 <1.0.0 and remove the package version bump as I will do that during my release cycle? I have a fairly high confidence that the toString method of css-loader won't be changing significantly any time soon and if it does, I will deal with any upstream API changes at that time.

For more semver references, check out https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004 for some more details of how the caret operator changes once you are <1.0.0, if either of you are interested.

@ghost
Copy link

ghost commented Apr 30, 2017

@sbussetti Are you able to change according to smithad15's suggestion recently?

@sbussetti
Copy link
Contributor Author

@mchencb @smithad15 done and done. Also @mchencb thanks for the semver clarification. I was not aware of the exception for 0.x.x !

@smithad15 smithad15 merged commit 7910d0d into smithad15:master Jun 2, 2017
@smithad15
Copy link
Owner

@sbussetti Thank you for this. Apologies for the delay but I'll push out 0.1.3 shortly.

@sbussetti
Copy link
Contributor Author

No sweat 👌

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.

2 participants