Closed snyk-bot closed 1 year ago
Merging #26 (2de4a92) into main (2c0a289) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## main #26 +/- ##
=======================================
Coverage 77.77% 77.77%
=======================================
Files 16 16
Lines 135 135
Branches 11 11
=======================================
Hits 105 105
Misses 30 30
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Snyk has created this PR to upgrade react-redux from 8.0.4 to 8.0.5.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: react-redux
This release fixes a few minor TS issues.
What's Changed
Provider
: pass state (S
) generic through toProviderProps
by @ OliverJAsh in #1960equalityFn
type inNoInfer
by @ phryneas in #1965Full Changelog: v8.0.4...v8.0.5
This patch release fixes some minor TS types issues, and updates the rarely-used
areStatesEqual
option forconnect
to now pass throughownProps
for additional use in determining which pieces of state to compare if desired.Changelog
TS Fixes
We've fixed an import of
React
that caused issues with theallowSyntheticDefaultImports
TS compiler flag in user projects.connect
already accepted a custom context instance asprops.context
, and had runtime checks in case users were passing through a real value with app data asprops.context
instead. However, the TS types did not handle that case, and this would fail to compile. If your own component expectsprops.context
with 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
areStatesEqual
option toconnect
now receivesownProps
as well, in case you need to make a more specific comparison with certain sections of state.The new signature is:
What's Changed
ComponentProps
from older@ types/react
by @ Andarist in #1956Full Changelog: v8.0.2...v8.0.4
Commit messages
Package name: react-redux
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs