Releases: ReSwift/Recombine
Replay Fixes
Replay Support
API Additions:
- Added
replayfunction toBaseStore. - Added
dispatchEnabledflag to `BaseStore.
SideEffects
Breaking API Changes:
- Renamed
concatonMiddlewaretoappending. - Update
ActionLensto have a calling interface similar toStoreProtocoltypes.
API Additions:
- Added SideEffect type that runs after middleware.
5.1.0
Big Overhaul 🏗
Bugfixes:
- Previously
BaseStorewas able to have actions dispatched to it before subscriptions were ready to accept them (notably when using a static property to house it). This has been fixed.
Breaking API Changes:
Middlewarecan now dispatch raw actions, requiring it to be parameterised by three types.ActionStratahas been leveraged to contain arrays of raw and refined actions, allowing for more complex behaviour in bothThunkandMiddleware.
API Additions:
ActionStratahas been expanded with convenience initialisers for variadic creation.ActionStratahas been expanded with convenience getters for the underlying values.dispatchfunctions that accept raw actions orActionStrataare now able to be run serially using theseriallyparameter, allowing for deterministic behaviour in certain circumstances.
4.0.0: StoreBinding fixes
StoreBinding is now a dynamic property, so that changes to the underlying store's state trigger view refreshes.
StoreBinding now has more convenience initialisers.
All PassthroughSubjects on store types have been made private and replaced with AnyPublisher vars for public use, to ensure that only the provided functions are used in case of future API changes.
3.0.0
Renames the next tuple variable in actionsPairedWithState to current.
Adds a dispatch function that can be invoked within Middleware to send an action around again, allowing for retriggering Middleware.
Adds an initialiser to Middleware that takes multiple other Middleware as its arguments and concats them in order.
Splits refinedActions into preMiddlewareRefinedActions and postMiddlewareRefinedActions.
Adds an injectBypassingMiddleware function to BaseStore that allows you to send actions without triggering Middleware (useful for replaying).
2.0.1
2.0!
Renames Middleware to Thunk.
Thunk can now return raw or refined actions.
Adds a new Middleware that synchronously allows you to add or remove actions.
Adds a new property wrapped called StoreBinding.
Adds a new ActionLens type.
The State parameter of BaseStore is now required to be Equatable.
Adds readOnly and writeOnly accessors to StoreProtocol.
Bindings ahoy 🏴☠️
API Changes:
- State lensing is now achieved through functions, allowing for more complex (and potentially unsafe) lensing.
API Additions:
- Added binding functions with and without lensing, to allow text field and view state binding directly into the store.