Releases: chhsiao1981/use-thunk
Releases · chhsiao1981/use-thunk
9.0.5
What's Changed
- update the type of data in setData as
Partial<S>by @chhsiao1981 in #123
Full Changelog: 9.0.4...9.0.5
9.0.4
What's Changed
- Bump vite from 6.3.6 to 6.4.1 by @dependabot[bot] in #119
- rename params in useThunk and useThunkReducer. by @chhsiao1981 in #120
- add pnpm-workspace.yaml by @chhsiao1981 in #121
Full Changelog: 9.0.3...9.0.4
9.0.3
What's Changed
- rename params to more accurately reflect the params. by @chhsiao1981 in #117
Full Changelog: 9.0.2...9.0.3
9.0.2
9.0.1
What's Changed
- add UseThunk by @chhsiao1981 in #113
- Bump happy-dom from 20.0.0 to 20.0.2 by @dependabot[bot] in #112
Full Changelog: 9.0.0...9.0.1
9.0.0
Breaking Change
The npm package is changed as @chhsiao1981/use-thunk
What's Changed
- update npm package as
@chhsiao1981/use-thunkby @chhsiao1981 in #110 - update version to 9.0.0 by @chhsiao1981 in #111
Full Changelog: 8.0.0...9.0.0
8.0.0
Breaking Change
Based on #105,
the whole naming is revised.
useReducer=>useThunkModuleToFunc=>ThunkModuleToFunc- no
StateTypefor now (as only theStateType.LOCALfor now). getRoot=>getStategetRootNode=>getNode- no more customized
createReducer. Only theDEFAULT_REDUCE_MAP.
What's Changed
- Bump vite from 6.3.5 to 6.3.6 by @dependabot[bot] in #104
- Bump happy-dom from 18.0.1 to 20.0.0 by @dependabot[bot] in #107
- Totally renamed as useThunk. by @chhsiao1981 in #108
Full Changelog: 7.1.0...8.0.0
7.1.0
What's Changed
- remove StateType.SHARED for now. by @chhsiao1981 in #102
Full Changelog: 7.0.0...7.1.0
7.0.0
What's Changed
- able to use shared state for same reducer class by @chhsiao1981 in #98
- store shared state in thunkReducer.NODE_STATE_MAP_BY_CLASS.
- store shared dispatch-map in useReducer.DISPATCH_MAP_BY_CLASS.
- pass test: module-no-default-shared.
- pass test: module-no-default-pure-shared.
- pass test: module-no-default-having-child.
- clean code.
- git submodule third-party/react-hook-thunk-reducer.
Full Changelog: 6.0.0...7.0.0
6.0.0
What's Changed
- default as optional by @chhsiao1981 in #96
- reducer.default as optional.
- with default dispatch functions (
DefaultDispatchFuncMap). - with
VoidReturnType. - more clear types for type-hint for editors.
Breaking Changes
Starting from 6.0.0:
- reducer.default is optional.
- requiring explicit type definition in
useReducer.
Full Changelog: 5.2.2...6.0.0