Releases: pointfreeco/swift-dependencies
Releases · pointfreeco/swift-dependencies
1.3.0
What's Changed
- Added:
assert
andprecondition
dependencies, for making Swift assertions testable (#213). - Fixed:
@DependencyClient
now ignores static properties (thanks @rhysm94, #196). - Fixed: Improve runtime warning when no
liveValue
is defined (#206). - Fixed: Address some strict concurrency sendable warnings (#207).
- Fixed: Improve
@DependencyEndpoint
failure messages by incorporating the type name (#208). - Fixed:
@DependencyClient
support for thepackage
access modifier (thanks @ivanlisovyi, #209). - Fixed:
@DependencyClient
will now automatically ignore@Dependency
properties via the new@DependencyEndpointIgnored
marker macro (thanks @freak4pc, #212). - Infrastructure: Fix documentation (thanks @gibachan, #198).
New Contributors
- @rhysm94 made their first contribution in #196
- @gibachan made their first contribution in #198
- @ivanlisovyi made their first contribution in #209
- @freak4pc made their first contribution in #212
Full Changelog: 1.2.2...1.3.0
1.2.2
What's Changed
- Fixed: Support swift-syntax 510.0 (#190).
- Infrastructure: Document Swift compiler bug in
@DependencyClient
(#189).
Full Changelog: 1.2.1...1.2.2
1.2.1
What's Changed
- Fixed:
@DependencyClient
no longer fails when using Swift 5.9'spackage
modifier (thanks @nhenri, #180). - Fixed: Sendability warnings have been addressed (#174).
- Infrastructure: Update documentation for dependency key shorthand (#176).
New Contributors
Full Changelog: 1.2.0...1.2.1
1.2.0
What's Changed
- Added:
DependencyKey
andTestDependencyKey
now have aValue
primary associated type (#173). - Added:
@Dependency(MyDependency.self)
, for specifying a dependency by a type name instead of a key path (#172). - Fixed: Test values are now cached when accessed in a live context (thanks @oronbz, #78). This ensures a dependency isn't recreated every single time it is accessed in an application.
- Fixed:
XCTest
is now dynamically linked on non-Apple platforms, like Linux and Windows (thanks @compnerd, #169). - Infrastructure: Improved macro warning message (thanks @ZevEisenberg, #167).
- Infrastructure: Updated installation snippet (thanks @x-0o0, #168).
- Infrastructure: Simplify WASI handling in tests (thanks @compnerd, #170).
New Contributors
- @ZevEisenberg made their first contribution in #167
- @compnerd made their first contribution in #170
Full Changelog: 1.1.5...1.2.0
1.1.5
What's Changed
- Fixed:
@DependencyClient
no longer tries to apply@DependencyEndpoint
tolet
properties (#163). - Fixed:
@DependencyClient
no longer tries to apply@DependencyEndpoint
to computed properties with explicitget
blocks (#163). - Fixed:
@DependencyEndpoint
now properly forwardswillSet
anddidSet
accessors to the underlying storage (#163). - Infrastructure: Document default value requirement for
@DependencyClient
endpoints (#164).
Full Changelog: 1.1.4...1.1.5
1.1.4
1.1.3
What's Changed
- Fixed: Support
@autoclosure
in@DependencyEndpoint
s (thanks @xiii111, #160). - Fixed: Support (but warn against)
fatalError
default (#158). - Infrastructure: Add community library link to README (thanks @arasan01, #151).
- Infrastructure: Clarify documentation (#152).
New Contributors
Full Changelog: 1.1.2...1.1.3
1.1.2
What's Changed
- Fixed:
@DependencyClient
and@DependencyEndpoint
now properly support closures with inout parameters (thanks @Alex293, #149). - Infrastructure: Update docs links to SPI (#143).
- Infrastructure: Update the demo repo link in the Examples section of the README to point to the SyncUps repo (thanks @kuglee, #144).
- Infrastructure: Update README.md (thanks @kgrigsby59, #145)
- Infrastructure: Add missing shortcuts to sections in README (thanks @Mika5652, #142).
New Contributors
- @kuglee made their first contribution in #144
- @kgrigsby59 made their first contribution in #145
- @Alex293 made their first contribution in #149
Full Changelog: 1.1.1...1.1.2
1.1.1
What's Changed
- Fixed:
@DependencyClient
and@DependencyEndpoint
now emit diagnostics when non-closure literal is assigned, includingunimplemented
(#137). - Fixed:
@DependencyClient
and@DependencyEndpoint
no longer fail on multiline closure literal defaults (#137).
Full Changelog: 1.1.0...1.1.1
1.1.0
What's Changed
- Added: A
DependenciesMacros
module, which includes a new@DependencyClient
macro (#132). - Fixed: Avoid a watchOS test crash (#122).
- Infrastructure: Bumped README version to 1.0.0 (thanks @Jager-yoo, #106)
- Infrastructure: CI fixes (#109)
- Infrastructure: Document SWIFT_DEPENDENCIES_CONTEXT (#115).
- Infrastructure: Document test leakage (#130).
New Contributors
- @Jager-yoo made their first contribution in #106
Full Changelog: 1.0.0...1.1.0