Bump react-redux from 8.0.2 to 8.0.5
Bumps react-redux from 8.0.2 to 8.0.5.
Release notes
Sourced from react-redux's releases.
v8.0.5
This release fixes a few minor TS issues.
What's Changed
Provider: pass state (S) generic through toProviderPropsby@OliverJAshin reduxjs/react-redux#1960- wrap
equalityFntype inNoInferby@phryneasin reduxjs/react-redux#1965- Fix wrapped component prop types when passing nullish mapDispatchToProps by
@marconi1992in reduxjs/react-redux#1928Full Changelog: https://github.com/reduxjs/react-redux/compare/v8.0.4...v8.0.5
v8.0.4
This patch release fixes some minor TS types issues, and updates the rarely-used
areStatesEqualoption forconnectto now pass throughownPropsfor additional use in determining which pieces of state to compare if desired.Note: 8.0.3 was accidentally published without one of these fixes. Use 8.0.4 instead.
Changelog
TS Fixes
We've fixed an import of
Reactthat caused issues with theallowSyntheticDefaultImportsTS compiler flag in user projects.
connectalready accepted a custom context instance asprops.context, and had runtime checks in case users were passing through a real value with app data asprops.contextinstead. However, the TS types did not handle that case, and this would fail to compile. If your own component expectsprops.contextwith actual data,connect's types now use that type instead.The
ConnectedProps<T>type had a mismatch with React's built-inReact.ComponentProps<Component>type, and that should now work correctly.Other Changes
The
areStatesEqualoption toconnectnow receivesownPropsas well, in case you need to make a more specific comparison with certain sections of state.The new signature is:
{ areStatesEqual?: ( nextState: State, prevState: State, nextOwnProps: TOwnProps, prevOwnProps: TOwnProps ) => boolean }What's Changed
- Don't require allowSyntheticDefaultImports: true by
@apepperin reduxjs/react-redux#1924- Fixed type issue with
ComponentPropsfrom older@types/reactby@Andaristin reduxjs/react-redux#1956- connect: pass ownProps to areStatesEqual by
@jspurlinin reduxjs/react-redux#1951- Omit built-in context prop if user component props include context by
@markeriksonin reduxjs/react-redux#1958
... (truncated)
Commits
8d03182Release 8.0.532e40e4Merge pull request #1928 from marconi1992/fix/1927ff7d96bfix: type when passing nullish mapDispathToProps5082af7Merge pull request #1965 from reduxjs/draft/amazing-rosalindbafe55eAdd typetestsfc3954aUpdate test matrix to Node 16 and TS 4.9401250ealso update TypedUseSelectorHook3b06061wrap type inad40b97Merge pull request #1960 from OliverJAsh/patch-18cf538cMerge pull request #1966 from ethen001/chores/custom-equality-fn-docs- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)