What's Changed
- Added:
TestStore.useMainSerialExecutor
, a configurable option to make testing code using Swift concurrency more reliable (#2301 ). This feature uses a newly-extracted library, Concurrency Extras. - Added:
Store.send
can now be configured with an animation or transaction (thanks @HarshilShah, #2241). - Added:
TestStoreOf
type alias for specifying a test store of a reducer (thanks @brzzdev, #2277). - Changed:
ViewStoreTask.cancel
is now synchronous (#2282). - Changed: Closure arguments for various APIs have been given names, improving documentation and Xcode completion (#2295).
- Fixed: Effect cancellation IDs should no longer nest into deep
AnyHashable
s, fixing potential bugs (#2283). - Fixed:
navigationDestination(store:)
dismissal should now work more reliably (thanks @tplaymeow, #2210; #2284). - Fixed: Added a workaround for a SwiftUI bug involving nested stack and tree navigation (thanks @benlings, #2289).
- Deprecated:
TestStore
scoping has been deprecated (#2292). - Infrastructure: Added case study for tree-based navigation to multiple destinations using enum state (thanks @tiagopigatto, #2231)
New Contributors
- @HarshilShah made their first contribution in #2241
- @benlings made their first contribution in #2289
- @tplaymeow made their first contribution in #2210
- @brzzdev made their first contribution in #2277
- @tiagopigatto made their first contribution in #2231
Full Changelog: 0.55.1...0.56.0