-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Changed peer dependency in 1.0.9 #45
Comments
In fact it was even in patch version which is assumed only for bugfixes. |
I am not sure how semantic version works for that case. I wasn't able to google an answer. Please post a link if you can find. The thing is - public API of |
Real life projects often use Returning to peer dependency. It also can be treated as public API since it defines compatibility range. BTW you should define it as wide as possible to avoid issues with other libs that also defines same peer. I don't think that 1.0.9 introduced somth that couldn't work with react less 15.4.0. Semver maybe not cover exactly this question since it just general common sense rules. But I hope I have argued enough. Still will try find some links later. |
Thre is a note about updating dependency on semver FAQ:
http://semver.org/#what-should-i-do-if-i-update-my-own-dependencies-without-changing-the-public-api It's not exactly same situation, but at least it suggests to have minor increment. I would still suggest to publish patch version increment (1.0.10) with extended range of react. I am pretty sure that there is nothing that avoids using |
@Guria I can't extend the range of react versions. You can see change here: d4837af#diff-1f10719214e0d5e2a72f54b98f667499 |
Ouch. Have you read release blogpost?
Anyway it was mistake to release this breaking change in patch version. Semver suggests a fix for such situations:
But in your case it means we need 1.0.10 which will be the same as 1.0.8 with range of react >15.0.0 <15.4.0. And then release 1.1.0 or even 2.0.0 with ~15.4.0 range. And for future safety you have to find a way not to depend on React internals. |
I published
Unfortunately, I don't know any possible implementations without using React internals. Please reopen if I missed something. |
Hi!
Few hours ago new version of react-konva were published in npm and it requeirs now react 15.4.0 as peer dependency instead of 15.1.0.
It could be assumed as breaking change, so I wanna ask why you did such changes under same minor version of the library?
The text was updated successfully, but these errors were encountered: