Skip to content

Releases: pointfreeco/swift-dependencies

1.9.2

22 Apr 17:58
4c90d6b
Compare
Choose a tag to compare

What's Changed

  • [Fixed] Allow dependencies test trait to throw. #359
  • [Infrastructure] Remove no longer relevant warning in Designing dependencies documentation page by @gsl-sebastienpecoul in #357

Full Changelog: 1.9.1...1.9.2

1.9.1

07 Apr 19:23
fee6aa2
Compare
Choose a tag to compare

What's Changed

  • Fixed: Resolve issue with @DependencyEndpoint not reporting errors when a custom closure is provided (thanks @gpambrozio, #355).

New Contributors

Full Changelog: 1.9.0...1.9.1

1.9.0

31 Mar 23:50
4e6b6a8
Compare
Choose a tag to compare

What's Changed

  • Added: shouldReportUnimplemented, for detecting if a test value should report an issue upon access (#352).
  • Fixed: Use proper access control when @DependencyEndpoint macro generates method with package (thanks @gsl-sebastienpecoul, #350).
  • Fixed: Undeprecate preview traits (#353). We have discovered a workaround for the bug causing their initial deprecation.

New Contributors

Full Changelog: 1.8.1...1.9.0

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