Skip to content

Releases: pointfreeco/swift-dependencies

1.6.3

27 Dec 01:21
85f89f5
Compare
Choose a tag to compare

What's Changed

  • Fixed: Support throwing dependency traits by (#320).
  • Fixed: Avoid caching app entry point dependencies in previews (#321).
  • Infrastructure: Improve app entry point documentation (thanks @acosmicflamingo, #316).

New Contributors

Full Changelog: 1.6.2...1.6.3

1.6.2

03 Dec 16:20
5526c8a
Compare
Choose a tag to compare

What's Changed

  • Fixed: prepareDependencies when using TestDependencyKey. #315

Full Changelog: 1.6.1...1.6.2

1.6.1

25 Nov 17:38
7d2eb4a
Compare
Choose a tag to compare

What's Changed

  • Fixed: Ensure dependency test trait is uniquely instantiated so that stateful dependencies do not bleed across tests (#314).

Full Changelog: 1.6.0...1.6.1

1.6.0

18 Nov 21:57
e2b0609
Compare
Choose a tag to compare

What's Changed

  • Added: .dependency(Value.self) to test and preview traits (#313).

Full Changelog: 1.5.2...1.6.0

1.5.2

14 Nov 17:50
96eecd4
Compare
Choose a tag to compare

What's Changed

  • Fixed: Address compile failure on non-Apple platforms (thanks @finestructure, #304).
  • Infrastructure: Update GitHub Actions CI (#307).

Full Changelog: 1.5.1...1.5.2

1.5.1

12 Nov 17:47
28f8271
Compare
Choose a tag to compare

What's Changed

  • Fixed: A regression introduced in 1.5.0 that could cause previews with a dependency trait to crash has been fixed (#306).

Full Changelog: 1.5.0...1.5.1

1.5.0

11 Nov 18:38
a24a0f1
Compare
Choose a tag to compare

What's Changed

  • Added: prepareDependencies (#288). This API allows you to prepare dependencies globally at the entry point of your application. For Example:
    @main
    struct MyApp: App {
      init() {
        prepareDependencies {
          $0.analytics = AnalyticsClient(accessToken: mySecretToken)
        }
      }
      // ...
    }
  • Fixed: Restore Library Evolution support for Xcode 16 (thanks @gemmakbarlow, #279).
  • Fixed: Android support for Swift 6 (thanks @hyp, #282).
  • Fixed: Update Package@swift-6.0.swift to silence warning (thanks @finestructure, #291).
  • Fixed: Dependencies accessed in withDependencies update closure are now cached eagerly (#287).
  • Fixed: Relax preview trait sendability requirement (#299).
  • Infrastructure: Add Macro Compatibility Check to CI workflow (thanks @Matejkob, #285).

New Contributors

Full Changelog: 1.4.1...1.5.0

1.4.1

20 Sep 17:19
Compare
Choose a tag to compare

What's Changed

  • Fixed: Explicitly link to IssueReportingTestSupport in DependenciesTestSupport to ensure a @Test or @Suite using the .dependency trait is applying the given dependency in an Xcode app target's @Tests (#278).
  • Infrastructure: Update test example in README (thanks @mltbnz, #275).
  • Infrastructure: Remove unneeded experimental feature in Package.swift (thanks @shimastripe, #276).
  • Infrastructure: Update Xcode CI to 16 (#277).

New Contributors

Full Changelog: 1.4.0...1.4.1

1.4.0

12 Sep 16:56
Compare
Choose a tag to compare

What's Changed

  • Added: #Preview and @Test traits for overriding dependencies (#274).
  • Fixed: Prevent dependencies cache from bleeding across Swift Testing tests (#269).
  • Infrastructure: Enable Swift 6 mode (#272).

Full Changelog: 1.3.9...1.4.0

1.3.9

26 Aug 16:03
Compare
Choose a tag to compare

What's Changed

  • Fixed: Address an Xcode 16 beta 6 error (#265).

Full Changelog: 1.3.8...1.3.9