build(deps): bump reselect from 4.1.7 to 5.1.0 in /superset-frontend
Bumps reselect from 4.1.7 to 5.1.0.
Release notes
Sourced from reselect's releases.
v5.1.0
This minor release:
- Adds a new
createSelector.withTypes<RootState>()andcreateStructuredSelector.withTypes<RootState>()API- Deprecates the
TypedStructuredSelectorCreatortype introduced in 5.0- Aims to reduce false positives in
identityFunctionCheckby only running if the output selector is passed one argument- Fixes a bug with
weakMapMemoize'sresultEqualityCheckwhen used with a primitive result.
withTypesMost commonly, selectors will accept the root state of a Redux store as their first argument.
withTypesallows you to specify what that first argument will be ahead of creating the selector, meaning it doesn't have to be specified.// previously export const selectPostById = createSelector( [ (state: RootState) => state.posts.entities, (state: RootState, id: number) => id, ], (entities, id) => entities[id], ); // now export const createAppSelector = createSelector.withTypes<RootState>();export const selectPostById = createAppSelector( [(state) => state.posts.entities, (state, id: number) => id], (entities, id) => entities[id], );
Known limitations
Due to a Typescript issue, inference of the output selector's parameters only works with
withTypeswhen using an array of input selectors.If using the variadic version, you can either wrap your input selectors in an array instance (as above), or annotate the parameters manually.
export const createAppSelector = createSelector.withTypes<RootState>();export const selectPostById = createAppSelector( (state) => state.posts.entities, (state, id: number) => id, // parameters cannot be inferred, so need annotating (entities: Record<number, Post>, id: number) => entities[id], );
What's Changed
- Reduce
identityFunctionCheckfalse positives by@Methuselah96in reduxjs/reselect#660- Fix cut content inside TOC of docs by
@aryaemami59in reduxjs/reselect#664- Remove redundant Svg requires from components in docs by
@aryaemami59in reduxjs/reselect#665- Fix
_lastResult.derefis not a function (it is undefined) in React Native and Expo applications by@aryaemami59in reduxjs/reselect#671- Update getting-started.mdx by
@cchaoniein reduxjs/reselect#672- Update createSelectorCreator.mdx with correct defaults by
@lukeapagein reduxjs/reselect#674
... (truncated)
Commits
f7e5b73Release 5.1.0d67d01aadd version plugin978ef3cMerge pull request #668 from aryaemami59/bump-vitesta39fe9eMerge pull request #678 from aryaemami59/createStructuredSelector-withTypes1368970Change version to 5.0.2 to workaround CI issue025c1a4RemoveTypedStructuredSelectorCreatorfrom docs140f38fRemovecreateStructuredAppSelector.tsfrom examples73e45f7RemoveTypedStructuredSelectorCreatorfromREADME9b4b7acAdd todo comments to remove certain test blocks7f1588cModify JSDocs forTypedStructuredSelectorCreator- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by eskimojo, a new releaser for reselect since your current version.
You can trigger a rebase of this PR 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 show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@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)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
@dependabot rebase