Update react-redux to the latest version π
The dependency react-redux was updated from 5.1.1 to 6.0.0.
This version is not covered by your current version range.
If you donβt accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for v6.0.0
As such, we now require React 16.4 or higher. Make sure to update your version when updating to this release.
This work has been mostly lead by @cellog and @markerikson, with special guest appearances by yours truly and a whole cast of helpful reviewers.
Breaking Changes
-
The
withRefoption toconnecthas been replaced withforwardRef. If{forwardRef : true}has been passed toconnect, adding a ref to the connected wrapper component will actually return the instance of the wrapped component. (Known issue: Redux Form currently relies onwithRef.) -
Passing
storeas a prop to a connected component is no longer supported. Instead, you may pass a customcontext={MyContext}prop to both<Provider>and<ConnectedComponent>. You may also pass{context : MyContext}as an option toconnect.
Behavior Changes
Any library that attempts to access the store instance out of legacy context will break, because we now put the store state into a <Context.Provider> instead. Examples of this include connected-react-router and react-redux-subspace. (The current implementation does also put the store itself into that same context. While accessing the store in context is not part of our public API, we will still try to make it possible for other libraries to access it, with the understanding that this could break at any time.)
Also, there is a behavior change around dispatching actions in constructors / componentWillMount. Previously, dispatching in a parent component's constructor would cause its children to immediately use the updated state as they mounted, because each component read from the store individually. In version 6, all components read the same current store state value from context, which means the tree will be consistent and not have "tearing". This is an improvement overall, but there may be applications that relied on the existing behavior.
Changes
- Use React.createContext() (#1000 by @cellog)
- Use Prettier (#1071 by @NMinhNguyen)
- Only run isValidElementType in development builds (#1069 by @alexreardon)
- Treat
nullas a valid plain object prototype inisPlainObject()(#1075 by @rgrove) - Ensure connectAdvanced only re-renders if derived props change (#1079 by @epeli and @markerikson)
Commits
The new version differs by 17 commits ahead by 17, behind by 3.
581ece46.0.09062722Upgrade a bunch of deps.7564f73Fix bad URL generationcf11a25Add new "Why use React-Redux?" page (#1097)ce17d0cUpdate Docusaurus and docs URLs (#1096)f0840f16.0.0-beta.36a2e878Forgot to rebuild the lockfile.dba598bAdd connectAdvanced() tests (#1079)1dc56caRe-enable "should throw if not in context" test8987de0Treatnullas a valid plain object prototype inisPlainObject()(#1075)59aaba5Relax React peer dep back to 16.47496b916.0.0-beta.11a92b56npm audit fix0c048f0Use Prettier (#1071)85fb553Use React.createContext() by @cellog (#1000)
There are 17 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot :palm_tree:
- The
dependencyreact-redux was updated from5.1.1to6.0.1.
Update to this version instead π
Release Notes for v6.0.1
This is a minor release with support for react-hot-loader and a few small bug fixes for edge cases.
While you're here, please stop by #1177 to see our roadmap for the next versions of React Redux. We are aware that performance is not so hot in 6.0. Short version: We put too much traffic on React's context API, which isn't really designed for high levels of reads and writes. We're looking to reduce that load and get performance back on track in a minor release, so there won't be backwards compatibility concerns. We have a new extensive benchmark suite to keep us on track and ensure we're not regressing on speed in the future.
And yes, we know about Hooks. Check out #1179.
Changes
- Fix for circular component object structures, such as Emotion styled components. (#1122 by @Andarist)
- Minor optimization: remove conditional (#1131 by @ericanderson)
- Ensure that component
contextprop really contains a React context (#1134 by @casdevs) - react-hot-loader compatibility (#1168/#1137 by @theKashey)
- Upgrade to react-is v16.7.0 (#1174 by @nobezawa)
Commits
The new version differs by 35 commits.
162b81a6.0.1d8a7ab5Update build deps. Add React 16.8 tests.6ad2b55Remove --save option as it isn't required anymore (#1193)fac9ad1Update Provider.md and quick-start.md (#1182)9bf2375Update Provider.mdfcd5ed8Update Provider.mdc198249Update react-router usage example (#1180)ab77450Upgrade to react-is v16.7.0 (#1174)0bf4e1fRemove duplicate line in connect api documents (#1173)6e0a106Updated: Support React-Hot-Loader compatibility (#1168)63af52fUpdate accessing-store.md (#1163)5199d9dEnsure that component prop 'context' really contains a React context β¦ (#1134)e7661b3Fix spacing issues (#1153)75b90f9Add / change docs about v6 (#1148)5088345Addconnect()API doc (#1140)
There are 35 commits in total.
See the full diff
- The
dependencyreact-redux was updated from5.1.1to7.0.0.
Update to this version instead π
Commits
The new version differs by 9 commits.
608c9c57.0.0fa58572Use Hooks internally (aka 7.0) (#1209)eae14ccEnable versioned docs (#1106)28adb54Touch up deps and Travis config8e20a05Update the codecov config to be more forgiving.72ed6dbnpm install lockfile flapping π4f3c2e2Replace double whitespaces with single once in the custom store warning message (#1199)471cb2cChange CommonJS Broken Docs Link (#1198)5bf647dAdd first SSR integration-tests (#1197)
See the full diff