Releases: pointfreeco/swift-dependencies
1.9.2
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
What's Changed
- Fixed: Resolve issue with
@DependencyEndpoint
not reporting errors when a custom closure is provided (thanks @gpambrozio, #355).
New Contributors
- @gpambrozio made their first contribution in #355
Full Changelog: 1.9.0...1.9.1
1.9.0
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 withpackage
(thanks @gsl-sebastienpecoul, #350). - Fixed: Undeprecate preview traits (#353). We have discovered a workaround for the bug causing their initial deprecation.
New Contributors
- @gsl-sebastienpecoul made their first contribution in #350
Full Changelog: 1.8.1...1.9.0
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