sheaivey / react-axios

Axios Components for React with child function callback
MIT License
180 stars 20 forks source link

Bump version to 1.0.0 to be able to take advantage of semver #6

Closed binki closed 7 years ago

binki commented 7 years ago

caret ranges basically prevents semver from working to your advantage for versions less than 1.0.0.

With a version of 0.0.x, you cannot release a bugfix to this package which will match a caret range. Since npm install -S uses caret ranges by default, you should always start your project with 1.0.0. Otherwise, if you try to release a bugfix (patch), nobody will see the update.

I.e., if someone used npm install -S to install react-axios, they’ll get ^0.0.9 in their package.json. This means that npm will require the user to manually intervene to get an update when you release 0.0.10. This is exactly the same as if your next release was 1.0.0. If your current version were 1.0.0, then people who have installed it via npm install -S would get ^1.0.0 and can receive semver-style updates if you ever need to make bugfix releases in the future.

sheaivey commented 7 years ago

I have updated the version to v1.0.0. Thanks for the tip.