0.44.0
版本发布时间: 2022-10-24 13:57:56
pointfreeco/swift-composable-architecture最新发布版本:1.15.2(2024-10-23 00:57:58)
What's Changed
-
Added: Support for Swift 5.7's
Clock
protocol as a dependency via swift-clocks (https://github.com/pointfreeco/swift-composable-architecture/pull/1547). -
Fixed: First access of a dependency vended from
DependencyKey
is now cached (thanks @tgrapperon, https://github.com/pointfreeco/swift-composable-architecture/pull/1510). This means that a dependency vended from a computed property, when stateful, is now maintained over time.If you are using the
Dependencies
module outside of the Composable Architecture, make sure your tests fully resetDependencyValues
when 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 Socket
case study (thanks @Jager-yoo, https://github.com/pointfreeco/swift-composable-architecture/pull/1529); updatedXCTUnimplemented
calls tounimplemented
(https://github.com/pointfreeco/swift-composable-architecture/pull/1530); removed unnecessary conformance to Sendable Protocol (thanks @inwoodev; https://github.com/pointfreeco/swift-composable-architecture/pull/1535); add a few missing tests (https://github.com/pointfreeco/swift-composable-architecture/pull/1539); remove redundant error type in ReusableFavoritingTests.swift (thanks @Jager-yoo, https://github.com/pointfreeco/swift-composable-architecture/pull/1538)
New Contributors
- @inwoodev made their first contribution in https://github.com/pointfreeco/swift-composable-architecture/pull/1535
Full Changelog: https://github.com/pointfreeco/swift-composable-architecture/compare/0.43.0...0.44.0