github pointfreeco/swift-dependencies 1.11.0

9 hours ago

What's Changed

  • Added: @Dependency(_:as:) test helper for force-casting an existential dependency to a concrete type (thanks @maatheusgois-dd, #413).

    @Suite(.dependency(\.continuousClock, TestClock())
    struct MySuite {
      @Dependency(\.continuousClock, as: TestClock<Duration>.self) var testClock
      // ...
    }
  • Infrastructure: Docs fixes (thanks @bradhowes, #414).

New Contributors

Full Changelog: 1.10.1...1.11.0

Don't miss a new swift-dependencies release

NewReleases is sending notifications on new releases.