wire-desktop
wire-desktop copied to clipboard
build(deps): bump redux-thunk from 2.3.0 to 2.4.1
Bumps redux-thunk from 2.3.0 to 2.4.1.
Release notes
Sourced from redux-thunk's releases.
v2.4.1
This release adds an explicit plain
actionoverload to theThunkDispatchTS type to better handle inference of the return value in some cases.What's Changed
- Improve action return value resolution by
@markeriksonin reduxjs/redux-thunk#327Full Changelog: https://github.com/reduxjs/redux-thunk/compare/v2.4.0...v2.4.1
v2.4.0
This very overdue release makes several major improvements to the TypeScript types, and converts the actual source to TypeScript. Sorry for the delay!
Changelog
TypeScript Improvements
This release fixes several outstanding issues that had been reported with the types. An extra overload has been added to let TS correctly understand some generically-typed values being passed to
dispatch, and the overloads have been reworked for additional compatibility.There's also a new
ThunkActionDispatchtype that can be used to represent howbindActionCreatorsturns bound thunks into(arg) => thunkReturnValue.Additionally, all of the generic args have been giving meaningful names instead of one-letter abbreviations (
S->State,E->ExtraArgument, etc), and we've added descriptive comments in the type definitions for clarity.Optional Global
DispatchType ExtensionMost Redux apps have the thunk middleware enabled, but the default
DispatchandbindActionCreatortypes only know about the standard behavior of a basic Redux store without any middleware. The thunk middleware types add to that type behavior, so thatDispatchknows dispatching a thunk can actually return a value such as a Promise.We generally recommend inferring the type of
dispatchand using that to create reusable types, including creating pre-typed hooks. However, some users may prefer to globally augment theDispatchtype to always use the additional thunk behavior.You can now
import 'redux-thunk/extend-redux'to globally augment theDispatchtype as an opt-in change in behavior.Codebase Converted to TypeScript
We've gone ahead and converted the actual source to TS. Since the source was only 15-ish lines to begin with, most of the "conversion" time was just trying to convince TS that assigning
thunk.extraArgument = createThunkMiddlewarewas a legal operation :)We also updated the build tooling:
- Babel updates
- Rollup for the UMDs instead of Webpack
- Github Actions for CI instead of Travis
Finally, the README has been updated with newer instructions and usage information.
What's Changed
- Change misleading parameter name for overload of ThunkDispatch by
@jmrogin reduxjs/redux-thunk#216- --save no longer needed by
@JoeCortopassiin reduxjs/redux-thunk#217
... (truncated)
Commits
876c8932.4.15631c2dMerge pull request #327 from reduxjs/feature/return-action-resolution931b5bbAdd TS 4.5 to the matrixba38cc9README cleanupeb9ba09Re-add explicit overload for a plain actionce764642.4.0d40a51fUpdate README1ca950bRemove some T's35595adThis already defaults to any014936eMove up the type assertion- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by acemarke, a new releaser for redux-thunk 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 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)