freecodecamp
freecodecamp copied to clipboard
chore(deps): bump reselect from 3.0.1 to 4.1.7 in /client
Bumps reselect from 3.0.1 to 4.1.7.
Release notes
Sourced from reselect's releases.
v4.1.7
This release updates the TS types to work correctly with TS 4.9, which made a change that broke the existing
MergeParameters
type implementation. Happily, the TS team provided a better (and simpler!)MergeParameters
implementation. Since that only works with TS 4.7+, we've reworked the internals to handle providing the old implementation to TS 4.2..4.6, and the new implementation to TS 4.7 and greater.As a user, there should be no visible change - just update to 4.1.7.
What's Changed
- Include 4.6 in the TS test matrix by
@lukeapage
in reduxjs/reselect#576- TS 4.9 compat by
@markerikson
in reduxjs/reselect#587Full Changelog: https://github.com/reduxjs/reselect/compare/v4.1.6...v4.1.7
v4.1.6
This release updates the TS types to better handle cases with default parameters, or
any/unknown
types.What's Changed
- Fix #563 - Make it an error when the typings become incorrect by
@lukeapage
in reduxjs/reselect#572Full Changelog: https://github.com/reduxjs/reselect/compare/v4.1.5...v4.1.6
v4.1.5
This release updates the TS types to correctly infer selector parameters when input selectors have
undefined
ornull
as a parameter type or have optional parameters, and exports theCreateSelectorFunction
type to fix uses ofcreateStructuredSelector
.(The types fixes feel like playing whack-a-mole, but they keep getting better!
What's Changed
- Fix intersection of parameters that are undefined by
@markerikson
in reduxjs/reselect#556- Export CreateSelectorFunction to fix createStructuredSelector usage by
@markerikson
in reduxjs/reselect#557Full Changelog: https://github.com/reduxjs/reselect/compare/v4.1.4...v4.1.5
v4.1.4
This release has (you guessed it) more fixes to the TS types: a change to parameter merging that fixes breakage with selectors and RTK Query's API state, a simplification of the
OutputSelectorFields
type to improve selector variable readability, another update to parameter merging to flag nestednever
fields as compile errors, and a fix tocreateStructuredSelector
parameters to resolve a lib compilation problem.Changelog
More TS Fixes
The parameter merging fixes in 4.1.3 tried to "unwrap/expand" the parameter types to make them more readable, such as showing intersected objects as
{a, b, c}
instead of{a} & {b} & {c}
. This was done with a recursive expansion type. That turned out to break with the complex state types used by RTK Query. We've updated the type expansion to only be a single level instead, which fixes the compilation issue.The
OutputSelectorFields
type previously took two generics: theCombiner
function, and aResult
type. This led to extra values being shown in hover previews for selectors. By inferringResult = ReturnType<Combiner>
, we were able to drop the second generic and cut down on the amount of types shown in previews.A user noted that intersected objects with top-level incompatible fields (like
{a: string} & {a: number}
) resulted in empty objects, but no compile error. We've updated the parameter merging to flag those asnever
and catch the problem at compile time. Deeper nested incompatible fields should already be caught by TS.The previous fix to
createStructuredSelector
missed a step in the spreading process, which has now been fixed.What's Changed
... (truncated)
Commits
32b6638
Release 4.1.7e4c2ace
Merge pull request #587 from reduxjs/feature/ts-4.9-compat11ed107
RewriteMergeParameters
to work with TS 4.95b83d04
Bump TS to 4.8f57ef85
Move TS 4.1 types intosrc/legacyTypes
69a4ff4
Bump Prettier and RTKe5d99b9
Update TS test matrix to 4.9 RCf53eb41
Merge branch 'master' of github.com:reduxjs/reselect9d62d03
Release 4.1.6d49e4e1
Give internal memoize callback functions names for dev readability- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by acemarke, a new releaser for reselect since your current version.
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 rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will 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 version
will 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 dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
The following labels could not be found: dependabot
, platform: client
.