0.44.0
What's Changed
-
Added: Support for Swift 5.7's
Clockprotocol as a dependency via swift-clocks (#1547). -
Fixed: First access of a dependency vended from
DependencyKeyis now cached (thanks @tgrapperon, #1510). This means that a dependency vended from a computed property, when stateful, is now maintained over time.If you are using the
Dependenciesmodule outside of the Composable Architecture, make sure your tests fully resetDependencyValueswhen you first control them. For example:func testMyFeature() async throws { try await DependencyValues.withValues { values in values = DependencyValues() // reset "values" values.context = .test // default "values" for testing // further mutate "values" for this test } operation: { // make assertions } }
-
Infrastructure: Improve the layout of
Web Socketcase study (thanks @Jager-yoo, #1529); updatedXCTUnimplementedcalls tounimplemented(#1530); removed unnecessary conformance to Sendable Protocol (thanks @inwoodev; #1535); add a few missing tests (#1539); remove redundant error type in ReusableFavoritingTests.swift (thanks @Jager-yoo, #1538)
New Contributors
Full Changelog: 0.43.0...0.44.0