This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
[Depsy] Upgrade dependency react-redux to 4.0.0 #84
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
A new version was just released of
react-redux
, so Depsyhas upgraded your project's dependency ranges.
Make sure that it doesn't break anything, and happy merging!
Upgraded react-redux to 4.0.0
Changelog:
Version 4.0.0
Breaking Changes
React 0.14 is now required and a peer dependency
If you need 0.13 support, keep using 3.x. In addition, React has now been promoted to be a peer dependency because you’ll use the same
react
package for web and native.react-redux/native
entry point has been removedTrack this React Native issue and wait until RN works on top of React 0.14. Then React Redux 4.x should “just work” in React Native. Until then, you need to keep using 3.x with React Native.
<Provider>
no longer accepts a function childThis resolves a ton of router-related issues and also helps beginners understand what's going on.
Before
After
Refs are now opt-in
connect()
no longer provides a ref to the wrapped component by default. You need to specifywithRef: true
in theoptions
as the fourth argument toconnect()
to get the old behavior.getWrappedInstance()
will throw unless you do that.This fixes reduxjs/react-redux#141.
Before
After
Version 3.1.0
Object.defineProperty
for IE8 support in the CommonJS build. We won't pledge to support IE8 forever but this was a low-hanging fruit. Note that UMD build still may have problems with IE8 because it usesscrew_ie8
option—if you really care, use CommonJS build and choose Uglify options yourself. (ie8 Support by alternative method for adding static properties reduxjs/react-redux#135, use of Object.defineProperty breaks ie8 reduxjs/react-redux#133)