Releases: ReSwift/Recombine
Replay Fixes
Replay Support
API Additions:
- Added
replay
function toBaseStore
. - Added
dispatchEnabled
flag to `BaseStore.
SideEffects
Breaking API Changes:
- Renamed
concat
onMiddleware
toappending
. - Update
ActionLens
to have a calling interface similar toStoreProtocol
types.
API Additions:
- Added SideEffect type that runs after middleware.
5.1.0
Big Overhaul 🏗
Bugfixes:
- Previously
BaseStore
was 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:
Middleware
can now dispatch raw actions, requiring it to be parameterised by three types.ActionStrata
has been leveraged to contain arrays of raw and refined actions, allowing for more complex behaviour in bothThunk
andMiddleware
.
API Additions:
ActionStrata
has been expanded with convenience initialisers for variadic creation.ActionStrata
has been expanded with convenience getters for the underlying values.dispatch
functions that accept raw actions orActionStrata
are now able to be run serially using theserially
parameter, 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 PassthroughSubject
s 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.