Skip to content

Releases: pointfreeco/swift-dependencies

1.8.1

06 Mar 18:05
ec2862d
Compare
Choose a tag to compare

What's Changed

  • Fixed: Strip trailing comments from endpoints. #347
  • Infrastructure: responsibly -> responsible in Testing article by @agarrharr. #345

New Contributors

Full Changelog: 1.8.0...1.8.1

1.8.0

25 Feb 19:54
121a428
Compare
Choose a tag to compare

What's Changed

  • Added: Test trait enhancements (#342, #344).

    The .dependencies and .dependency test traits now use Swift 6.1's TestScoping when available, leading to more reliable dependency injection.

    The .dependencies trait can also now be used in a "bare" fashion on a base test suite to ensure all tests are given a unique set of dependencies by default:

    @Suite(.dependencies) struct BaseTests {}
  • Fixed: Avoid test data race in dependency cache (#303).

  • Infrastructure: Update .spi.yml (thanks @finestructure, #336).

  • Infrastructure: Add Swift 6.0 to Linux test matrix (thanks @finestructure, #303).

  • Infrastructure: Added tests for prepareDependencies and updated docs (#337)

Full Changelog: 1.7.0...1.8.0

1.7.0

29 Jan 22:28
52b5e1a
Compare
Choose a tag to compare

What's Changed

  • Added: prepareDependencies now propagates its return value (#332).

Full Changelog: 1.6.4...1.7.0

1.6.4

27 Jan 20:22
565a7be
Compare
Choose a tag to compare

What's Changed

  • Deprecated: Preview traits have been deprecated in favor of prepareDependencies due to a quirk of Xcode previews that allows dependencies to bleed across previews when multiple are contained in the same file (#323).
  • Fixed: Bump swift-syntax from prerelease (thanks @Andrewangeta, #326).
  • Fixed: Allow prepareDependencies to override the full dependency context (#327). This can be useful for running an Xcode preview using live dependencies:
    #Preview {
      let _ = prepareDependencies { $0.context = .live }
      ContentView()
    }
  • Infrastructure: Fix unit tests on Xcode 16 (thanks @pyrtsa, #330).

New Contributors

Full Changelog: 1.6.3...1.6.4

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