Karthick47v2 / mock-buddy

Mock-Buddy is an AI assisted web application which help people to overcome the stage fear and improve public speaking and presentation skills.
https://karthick47v2.github.io/mock-buddy/
MIT License
5 stars 1 forks source link

[Snyk] Upgrade react-redux from 8.0.4 to 8.0.5 #26

Closed snyk-bot closed 1 year ago

snyk-bot commented 1 year ago

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
  • 8.0.5 - 2022-11-04

    This release fixes a few minor TS issues.

    What's Changed

    Full Changelog: v8.0.4...v8.0.5

  • 8.0.4 - 2022-09-23

    This patch release fixes some minor TS types issues, and updates the rarely-used areStatesEqual option for connect to now pass through ownProps for 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 React that caused issues with the allowSyntheticDefaultImports TS compiler flag in user projects.

    connect already accepted a custom context instance as props.context, and had runtime checks in case users were passing through a real value with app data as props.context instead. However, the TS types did not handle that case, and this would fail to compile. If your own component expects props.context with actual data, connect's types now use that type instead.

    The ConnectedProps<T> type had a mismatch with React's built-in React.ComponentProps<Component> type, and that should now work correctly.

    Other Changes

    The areStatesEqual option to connect now receives ownProps as 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 @ apepper in #1924
    • Fixed type issue with ComponentProps from older @ types/react by @ Andarist in #1956
    • connect: pass ownProps to areStatesEqual by @ jspurlin in #1951
    • Omit built-in context prop if user component props include context by @ markerikson in #1958

    Full Changelog: v8.0.2...v8.0.4

from react-redux GitHub release notes
Commit messages
Package name: react-redux
  • 32e40e4 Merge pull request #1928 from marconi1992/fix/1927
  • ff7d96b fix: type when passing nullish mapDispathToProps
  • 5082af7 Merge pull request #1965 from reduxjs/draft/amazing-rosalind
  • bafe55e Add typetests
  • fc3954a Update test matrix to Node 16 and TS 4.9
  • 401250e also update TypedUseSelectorHook
  • 3b06061 wrap type in
  • ad40b97 Merge pull request #1960 from OliverJAsh/patch-1
  • 8cf538c Merge pull request #1966 from ethen001/chores/custom-equality-fn-docs
  • 54d8096 chore(docs): added custom equalityFn example
  • 9e09869 `any` -> `unknown`
  • e7017ed Add type test
  • b50f392 `Provider`: pass state (`S`) generic through to `ProviderProps`
  • 70a167e Release 8.0.4
Compare

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

codecov[bot] commented 1 year ago

Codecov Report

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