What's Changed
- Added: An overload of
Reducer.onChange(of:)
that takes a configurableremoveDuplicates
closure for the equality check (thanks @ohitsdaniel, #2338). - Added:
Effect.debounce
andEffect.throttle
, for debouncing and throttling effects on a scheduler (#2372, #2368). This functionality existed in past releases but was removed from 1.0 alongside other deprecated Combine code. Because there is no modern replacement forEffect.throttle
we have brought this functionality back to 1.1. - Fixed: XCTest failures emitted when test stores initialize state (e.g. if
Reducer.State.init
accesses a dependency that hasn't been overridden) are now shown in the test that creates the store rather than hidden in application code (#2352). - Fixed: Suppressed a warning that previously emitted when instantiating a test store state with
.init()
instead ofFeature.State()
(#2347). - Fixed: Child features presented by grandparent features are now properly dismissed when the child calls
@Dependency(\.dismiss)
(#2373). - Infrastructure: Documentation updates and fixes (#2336; thanks @jayrhynas, #2342; thanks @atimca, #2350; #2353; thanks @hmhv, #2355; thanks @Ryu0118, #2358, #2367; thanks @yimajo, #2357; thanks @ValseLee, #2369, #2370).
New Contributors
- @jayrhynas made their first contribution in #2342
- @atimca made their first contribution in #2350
- @ValseLee made their first contribution in #2369
Full Changelog: 1.0.0...1.1.0