Skip to content

Releases: pointfreeco/swift-dependencies

1.2.1

01 Feb 21:56
09e49dd
Compare
Choose a tag to compare

What's Changed

  • Fixed: @DependencyClient no longer fails when using Swift 5.9's package 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

22 Jan 22:58
Compare
Choose a tag to compare

What's Changed

  • Added: DependencyKey and TestDependencyKey now have a Value 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

Full Changelog: 1.1.5...1.2.0

1.1.5

15 Dec 22:19
c31b144
Compare
Choose a tag to compare

What's Changed

  • Fixed: @DependencyClient no longer tries to apply @DependencyEndpoint to let properties (#163).
  • Fixed: @DependencyClient no longer tries to apply @DependencyEndpoint to computed properties with explicit get blocks (#163).
  • Fixed: @DependencyEndpoint now properly forwards willSet and didSet 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

12 Dec 17:24
101ba87
Compare
Choose a tag to compare

What's Changed

  • Fixed: Avoid erroneous missing default diagnosis, a regression introduced in 1.1.3 (#161).
  • Infrastructure: Bumped Swift tools version to 5.7.1 to follow Apple's policy (thanks @x-0o0, #140).

New Contributors

Full Changelog: 1.1.3...1.1.4

1.1.3

11 Dec 21:29
9af8876
Compare
Choose a tag to compare

What's Changed

  • Fixed: Support @autoclosure in @DependencyEndpoints (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

29 Nov 18:32
Compare
Choose a tag to compare

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

Full Changelog: 1.1.1...1.1.2

1.1.1

16 Nov 20:43
63301f4
Compare
Choose a tag to compare

What's Changed

  • Fixed: @DependencyClient and @DependencyEndpoint now emit diagnostics when non-closure literal is assigned, including unimplemented (#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

15 Nov 18:08
3870cfc
Compare
Choose a tag to compare

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

Full Changelog: 1.0.0...1.1.0

1.0.0

30 Jul 18:27
Compare
Choose a tag to compare
  • Added: First "stable" release. Dependencies contains APIs extracted from the Composable Architecture's suite of tools, which is now considered stable. This 1.0 release will introduce a more strict adherence to semantic versioning.

Full Changelog: 0.6.0...1.0.0

0.6.0

17 Jul 19:54
16fd42a
Compare
Choose a tag to compare

What's Changed

  • Added: Extracted concurrency helpers to new ConcurrencyExtras dependency (#105).
  • Infrastructure: Add test/docs around static @Dependency usage (#97); doc fixes (thanks @alexhunsley, #98, #101; @Mika5652, #95); add test for invokeTest behavior (#103); add test for thread safety (#70).

New Contributors

Full Changelog: 0.5.1...0.6.0