Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@tomas-light tomas-light released this 20 Dec 18:09
· 13 commits to main since this release

🚧 Breaking changes

  • @watch decorator was splat into two decorators @controller and @reducer
  • ControllerBase generic now accepts two parameters, and State moved to the second one
  • createReducer function renamed to createStoreSliceReducer
  • updated Action type related to updates in redux
  • changed order of next call in middleware - now it calls firstly, and action will be processed after it
  • change action type

🚀 Features:

  • ControllerBase now has updateStoreSlice protected method to reduce boilerplate code in you inherited classes
  • added storeSlice decorator, that you can use instead of creating static properties in your store slice class
  • added updateStoreSlice function to create action for store slice updating
  • added getReducersFromStoreSlices function to get reducers from new store slices syntax
  • added ability to wait till store will be updated by await this.updateStoreSlice(...) in controller
  • added createReducer function to create one-action reducer (functional style)
  • updated redux to 5.0.0
  • updated typescript to 5.3.3
  • updated cheap-di to 4.0.1