Releases: pointfreeco/swift-dependencies
1.8.1
What's Changed
- Fixed: Strip trailing comments from endpoints. #347
- Infrastructure: responsibly -> responsible in Testing article by @agarrharr. #345
New Contributors
- @agarrharr made their first contribution in #345
Full Changelog: 1.8.0...1.8.1
1.8.0
What's Changed
-
Added: Test trait enhancements (#342, #344).
The
.dependencies
and.dependency
test traits now use Swift 6.1'sTestScoping
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
What's Changed
- Added:
prepareDependencies
now propagates its return value (#332).
Full Changelog: 1.6.4...1.7.0
1.6.4
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
- @Andrewangeta made their first contribution in #326
Full Changelog: 1.6.3...1.6.4
1.6.3
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
- @acosmicflamingo made their first contribution in #316
Full Changelog: 1.6.2...1.6.3
1.6.2
1.6.1
1.6.0
What's Changed
- Added:
.dependency(Value.self)
to test and preview traits (#313).
Full Changelog: 1.5.2...1.6.0
1.5.2
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
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