Skip to content

Releases: pointfreeco/swift-dependencies

1.14.1

17 Jun 22:51
8dc1fbf

Choose a tag to compare

What's Changed

Full Changelog: 1.14.0...1.14.1

1.14.0

17 Jun 18:00
008b012

Choose a tag to compare

What's Changed

  • Added: Support public @DependencyEntry with live value defined in separate module (#447).
  • Added: Generate _modify accessor for @DependencyEntry (#449).
  • Fixed: Address Xcode preview regression introduced by #412 (#448).

Full Changelog: 1.13.1...1.14.0

1.13.1

10 Jun 19:07
16f7dd1

Choose a tag to compare

What's Changed

  • Fix: Force generated key to be nonisolated. #444

Full Changelog: 1.13.0...1.13.1

1.13.0

03 Jun 20:15
f805528

Choose a tag to compare

What's Changed

  • Added: @DependencyEntry (#443). A new macro for defining dependency values in a way similar to SwiftUI's @Entry macro.
  • Added: Clocks, CombineSchedulers, and Foundation package traits (thanks @danthorpe, #431; #433). These traits are enabled by default for backwards compatibility, but you may now opt out of certain functionality by explicitly disabling them.
  • Fixed: WASI & Android compatibility (thanks @diederich, #406; thanks @mansbernhardt, #438).
  • Infrastructure: Linux CI (#439).
  • Infrastructure: Enable upcoming features (#441).
  • Infrastructure: Update stale documentation links (thanks @davdroman, #442).

New Contributors

Full Changelog: 1.12.0...1.13.0

1.12.0

26 Mar 21:00
706feb7

Choose a tag to compare

What's Changed

  • Added: SwiftUI Environment support (#420). It is now possible to override an @Dependency through the SwiftUI environment.
  • Added: SwiftSyntax 605 support (thanks @abdoughnut, #416).

New Contributors

Full Changelog: 1.11.0...1.11.1

1.11.0

03 Feb 19:58
c79f72b

Choose a tag to compare

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

1.10.1

14 Jan 23:58
4112970

Choose a tag to compare

What's Changed

  • Fixed: Address UUID ambiguity on Windows (thanks @0xpablo, #399).
  • Fixed: Make UUID.init(_:) work with larger integers (#403).
  • Fixed: '.assert' dependency no longer crashes in Swift Testing (#411).
  • Fixed: Improve #Preview app entry point detection (#412).
  • Infrastructure: Document the Swift 6 version of APIs (#393).
  • Infrastructure: Fix documentation typos (thanks @heiberg, #402).
  • Infrastructure: Update package versioning (#401).
  • Infrastructure: Add max line length setting to .editorconfig (thanks @pyrtsa, #400).

New Contributors

Full Changelog: 1.10.0...1.10.1

1.10.0

17 Sep 18:48
a10f9fe

Choose a tag to compare

What's Changed

  • Added: NotificationCenter dependency, for better Swift Testing support (#385).
  • Added: Test traits are now async-friendly (#384).
  • Fixed: Support SwiftSyntax 602 (#389).

Full Changelog: 1.9.4...1.10.0

1.9.4

19 Aug 20:06
a501eeb

Choose a tag to compare

What's Changed

  • Fixed: Apply #if compiler instead of #if swift where appropriate (thanks @jflan-dd, #377).

New Contributors

Full Changelog: 1.9.3...1.9.4

1.9.3

30 Jul 21:02

Choose a tag to compare

What's Changed

  • Deprecated: Preview traits have been deprecated as they are not reliable (#368). Prefer prepareDependencies.
  • Fixed: Pass correct source location column to issue reporters (thanks @omochi, #363).
  • Fixed: Remove outdated warning (#374).
  • Fixed: Importing Musl if Glibc isn't available (thanks @slice, #376).
  • Fixed: Wasm support (thanks @zp-dzordz, #372).
  • Fixed: Suppress unnecessary warnings in previews (#378).

New Contributors

Full Changelog: 1.9.2...1.9.3