Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Release 3.0.0

Compare
Choose a tag to compare
@nartc nartc released this 27 Aug 17:18
· 23 commits to main since this release

3.0.0 (2021-08-27)

⚠ BREAKING CHANGES

  • entity: Dictionary no longer has undefined defined
// before
state.entities[id]; // returns entity or undefined

// after
state.entities[id]; // returns entity 

You should make sure that it is IMPOSSIBLE to access the entity at some given id if the entity is undefined. Eg: via UI, undefined entity shouldn't be rendered.

  • noopReducer usage has been simplified. The type parameters (ActionProps and SliceState) have been switched
// before
noopReducer<TodoState, { filter: Filter }>();
noopReducer<TodoState>();

// after
noopReducer<{filter: Filter}>();
noopReducer();

Bug Fixes

  • adjust noopReducer implementation (34d65c3)
  • entity: remove undefined from Dictionary type (fa538eb)