[Depsy] Upgrade dependency react-redux to 4.0.0 #33
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!![:shipit: :shipit:](https://github.githubassets.com/images/icons/emoji/shipit.png)
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)Version 3.0.1
{ pure: false }
to not get updated ([Depsy] Upgrade dependency jsdom to 7.2.1 #118, [Depsy] Upgrade dependency redux-logger to 2.3.0 #122)Version 3.0.0
Breaking Changes Since 3.0.0-alpha
This release is identical to 3.0.0-alpha.
If you’re already using it, you don’t need to change anything.
Breaking Changes Since 2.x
Now the map functions (
mapStateToProps
,mapDispatchToProps
andmergeProps
) are not called until React starts to render theconnect()
ed components. Previously the map functions where called immediately when store changed which could cause weird edge case bugs when theownProps
parameter was a derivative of the state. The state from which it was derivative of was a different version than what was passed as thestate
parameter. In some cases the states can be incompatible with each other and cause very confusing bugs in user code.Unfortunately the state stays consistent only when store dispatches are called in batches ie. from DOM handlers or manually from
ReactDOM.unstable_batchedUpdates(fn)
. Luckilyredux-batched-updates
middleware can be used to force batching for all dispatches.If you're interested in the details, feel free to check out:
Version 3.0.0-alpha
Breaking Change
Now the map functions (
mapStateToProps
,mapDispatchToProps
andmergeProps
) are not called until React starts to render theconnect()
ed components. Previously the map functions where called immediately when store changed which could cause weird edge case bugs when theownProps
parameter was a derivative of the state. The state from which it was derivative of was a different version than what was passed as thestate
parameter. In some cases the states can be incompatible with each other and cause very confusing bugs in user code.Unfortunately the states stay consistent only when store dispatches are called in batches ie. from DOM handlers or manually from
ReactDOM.unstable_batchedUpdates(fn)
. Luckilyredux-batched-updates
middleware can be used to force batching for all dispatches.If you're interested in the details, feel free to check out: