-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This new version updates to React 0.14. While I was at it, I adjusted the changelog to be more accurate.
- Loading branch information
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f4dd669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a good idea to bump dependencies in a
patch
commit. This just break my code as we're still using[email protected]
. I would rather suggest:1.0.4
from npm so it doesn't accidentally breaks any projects.2.0.0
for this change.Thanks for the great project! 👍
f4dd669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah interesting. I apologize for breaking your code, that was not my intention. I was following this advice from semver.org:
I would have expected npm to prevent you from upgrading this package or show you a warning if the
peerDependencies
weren't properly met, but perhaps I am misunderstanding how that works. Can you help me understand what steps you took that led to the code breakage?f4dd669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This broke my project as well.
On my local machine I was already using
[email protected]
so everything was working fine. But when my project was deployed to a test server, the project broke because a freshnpm install
was performed.If you are curious, the errors are the following:
I personally feel that an upgrade from React
0.13.x
to0.14.x
should be at least a minor bump. However this may still not be enough because if one installs an npm package with the save flag, the package version is prefixed with a^
symbol by default, which means that a minor bump will still break many projects that depend on[email protected]
.f4dd669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@remarkablemark Indeed--depending on how people have specified the version in their package.json files, no amount of version bumping will necessarily be "safe". Is there any reason you are not using
npm shrinkwrap
or checking in your dependencies? This would allow you to navigate the error messages you mentioned in development.https://nodejs.org/en/blog/npm/managing-node-js-dependencies-with-shrinkwrap/
f4dd669
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have been using the
~
instead of the^
so I get the patch updates for my project but you are right about usingnpm shrinkwrap
for production. Thanks for the reply.