Skip to content

Releases: chhsiao1981/use-thunk

9.0.5

25 Oct 11:43
2b4d4d4

Choose a tag to compare

What's Changed

Full Changelog: 9.0.4...9.0.5

9.0.4

23 Oct 18:23
f14bd1d

Choose a tag to compare

What's Changed

Full Changelog: 9.0.3...9.0.4

9.0.3

17 Oct 12:32
ed31cfe

Choose a tag to compare

What's Changed

Full Changelog: 9.0.2...9.0.3

9.0.2

16 Oct 08:07
fdb845d

Choose a tag to compare

What's Changed

Full Changelog: 9.0.1...9.0.2

9.0.1

16 Oct 07:49
90f6092

Choose a tag to compare

What's Changed

Full Changelog: 9.0.0...9.0.1

9.0.0

11 Oct 17:09
0360668

Choose a tag to compare

Breaking Change

The npm package is changed as @chhsiao1981/use-thunk

What's Changed

Full Changelog: 8.0.0...9.0.0

8.0.0

11 Oct 15:22
5a4ff20

Choose a tag to compare

Breaking Change

Based on #105,
the whole naming is revised.

  1. useReducer => useThunk
  2. ModuleToFunc => ThunkModuleToFunc
  3. no StateType for now (as only the StateType.LOCAL for now).
  4. getRoot => getState
  5. getRootNode => getNode
  6. no more customized createReducer. Only the DEFAULT_REDUCE_MAP.

What's Changed

Full Changelog: 7.1.0...8.0.0

7.1.0

27 Aug 10:17
547f623

Choose a tag to compare

What's Changed

Full Changelog: 7.0.0...7.1.0

7.0.0

20 Aug 04:51
785da1b

Choose a tag to compare

What's Changed

  • able to use shared state for same reducer class by @chhsiao1981 in #98
    1. store shared state in thunkReducer.NODE_STATE_MAP_BY_CLASS.
    2. store shared dispatch-map in useReducer.DISPATCH_MAP_BY_CLASS.
    3. pass test: module-no-default-shared.
    4. pass test: module-no-default-pure-shared.
    5. pass test: module-no-default-having-child.
    6. clean code.
    7. git submodule third-party/react-hook-thunk-reducer.

Full Changelog: 6.0.0...7.0.0

6.0.0

19 Aug 16:56
a77dc20

Choose a tag to compare

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:

  1. reducer.default is optional.
  2. requiring explicit type definition in useReducer.

Full Changelog: 5.2.2...6.0.0