Releases: ReSwift/Recombine
Releases · ReSwift/Recombine
Recombine 1.0 🎉
After months of using Recombine on a real application, I was able to glean insights that went into the design of this new version, removing pain points and improving interactions with SwiftUI.
Breaking API Changes:
Storeis now namedBaseStore.StoreTransformis now namedLensedStore, with now lenses actions as well as state, reflected in a new type parameter.- There are now three lensing functions, one for state, one for actions, and one for both.
API Additions:
- Added an
AnyStoretype erasing wrapper.
0.7.0
Breaking API Changes:
Middleware's code surface has been greatly reduced. It can only be created as an empty passthrough, created with a closure that returns a publisher of its refined type, or be concatenated onto anotherMiddleware.ActionStratais now a subtype ofStore.
0.6.0
Breaking API Changes:
Middlewarenow consumes aPublisherofStateand produces publishers.StoreandStoreTransformare parameterised by the "raw" action type they support (the type that will be sent through theMiddleware) and their "refined" action type (the type that is produced by theMiddleware).dispatch(_ actions:)is nowdispatch(raw:)anddispatch(refined:).
0.5.2
Breaking API Changes:
Reduceris now a protocol with two interoperable default implementations:PureReducerandMutatingReducer.Storenow requires aSchedulerfor its events.
API Changes:
- Changed
stateto@Published. - Added the
StoreTransformwrapper type. - Added the
lensing(_:)function to allowStoreto be windowed via the newStoreTransformwrapper type.