Release Notes
🗄️ Archived version
These are the notes for an archived version. See the current release notes for the supported line, which moves the library to Angular 22.
What changed in the v5.0.x line of @angular-redux2/store. For the lines before it see Earlier releases.
v5.0.2
- Fixed: A draft state write nested more than one level deep lost its path. The path of the property being written was read from a misspelled field, so it always came back empty.
v5.0.1
- Fixed: A class reducer method that mutated its state and returned nothing made the reducer return
undefined, whichcombineReducersrejects. It returns the previous state now, which the draft carries the mutation on. - Fixed: A draft state write flagged a change even when the reducer had only read the state, so every action produced a new root object.
- Added:
setacceptssymbolkeys in its path. - Added:
get,set, andshallowCopyare exported from the package root.
v5.0.0
A rewrite of the store around one abstract base shared by the root store and its sub-stores.
- Added: Class reducers:
AbstractReducer, the@Actiondecorator with no argument, and theActionCreatorandReducerActionstypes. - Added: Draft state: reducers may mutate
statein place. - Added: Reducer middleware, passed as the third argument of
configureStore. - Added:
@angular-redux2/store/mocksas the testing entry point, withMockNgReduxandMockNgReduxModule. - Changed:
NgReduxandSubStoreServiceboth extendAbstractStore, so a sub-store offers the sameselect,dispatch,getState, andsubscribe. - Changed:
@Substorereads the path from abasePathfield instead of agetBasePath()method. - Changed: The license is the Mozilla Public License 2.0.
- Removed: The cross-tab sync middleware,
deepCopy,createReducerFromClass, and the/testingentry point. - Migration:
- Redux middleware moves from the third argument of
configureStoreinto an enhancer:configureStore(reducer, state, [], [ applyMiddleware(...middleware) ]). provideStore(store)takes the root reducer first:provideStore(rootReducer, store).- Rewrite
@Action('TYPE')methods on a plain class as a class that extendsAbstractReducer, with bare@Actionmethods that receive the payload, and build it withcreateReducer. - Import mocks from
@angular-redux2/store/mocks.
- Redux middleware moves from the third argument of
Earlier releases
- v4.0.x - the first
@angular-redux2/storeline (archived docs).
