Skip to content

Releases: pointfreeco/swift-sharing

2.3.3

25 Feb 20:06
2c840cf

Choose a tag to compare

What's Changed

  • Fixed: Use single shared key when both SharedKey.Default and the base key are used independently (#122).
  • Fixed: Remove invalid conformances from State.Shared{,Reader} (#123).

Full Changelog: 2.3.2...2.3.3

2.3.2

24 Feb 17:25
6060619

Choose a tag to compare

What's Changed

  • Fixed: Don't send value to subject during assertions (thanks @OguzYuuksel, #120).

Full Changelog: 2.3.1...2.3.2

2.3.1

17 Feb 22:11
c9fd8da

Choose a tag to compare

What's Changed

  • Fixed: Optional URLs crash. #115
  • Infrastructure: Add dependency client for remote config. #112
  • Infrastructure: SharingGRDB Updates. #114

Full Changelog: 2.3.0...2.3.1

2.3.0

13 Feb 20:13
10ba53d

Choose a tag to compare

What's Changed

  • Added: SharedReader.init(value:) as a replacement for SharedReader.constant that can be used with @SharedReader property wrapper syntax (#104).
  • Added: @SwiftUI.State.Shared and @SwiftUI.State.SharedReader, for wrapping a shared property in @State ergonomically (#110).
  • Fixed: Retain Shared reference in publisher (#102). Addresses a regression introduced in 2.2.0 could cause publishers to complete when the associated shared property was deinitialized.
  • Infrastructure: Documentation fixes (thanks @hanneskaeufler, #103; thanks @kamcma, #105).

New Contributors

Full Changelog: 2.2.0...2.3.0

2.2.0

30 Jan 22:12
e4e2399

Choose a tag to compare

What's Changed

  • Added: SharedKey.Default.initialValue, for retrieving a key's initial value (#89).
  • Fixed: Fix app storage test value on iOS <17 (#97).
  • Fixed: Work around existential crash in iOS <16 (#98).
  • Fixed: Avoid optional promotion bug in inMemoryKey (thanks @OguzYuuksel, #90).
  • Fixed: Properly snapshot optional references for TCA testing (#100).
  • Infrastructure: Get unit tests passing on iOS 13 (thanks @OguzYuuksel, #91).
  • Infrastructure: Change documentation to use withDependencies where needed (thanks @brzzdev, #96).

New Contributors

Full Changelog: 2.1.2...2.2.0

2.1.2

28 Jan 00:17
d590ed6

Choose a tag to compare

What's Changed

  • Fixed: Ambiguous initializer in SharedReader with optionals. #86

Full Changelog: 2.1.1...2.1.2

2.1.1

27 Jan 21:15
37b180e

Choose a tag to compare

What's Changed

  • Fixed: $shared.load() errors are now correctly rethrown (#70).
  • Fixed: Do not prematurely nil out load/save errors when reloading/resaving (#72).
  • Fixed: Depend directly (not transitively) on ConcurrencyExtras (#78; thanks @jflan-dd, #85).
  • Fixed: Git-ignore .swiftpm directory and remove schemes (thanks @kamcma, #79).
  • Fixed: Expose public initializers on shared key continuation types (thanks @arnauddorgans, #81).
  • Fixed: Keep publishers alive when swapping out shared keys (#82).
  • Infrastructure: Clean up shared initializers and overloads (#69).
  • Infrastructure: Improve GRDB demo (#73).
  • Infrastructure: Update live file storage examples in documentation (thanks @heiberg, #74).

New Contributors

Full Changelog: 2.1.0...2.1.1

2.1.0

08 Jan 17:44
641edfa

Choose a tag to compare

What's Changed

  • Added: $shared.load(key) (#68), for replacing a shared reference's key and tie async/errors to the original shared value.

Full Changelog: 2.0.2...2.1.0

2.0.2

07 Jan 17:15
c5ea46f

Choose a tag to compare

What's Changed

  • Added Sharing2 version marker module to allow downstream modules to know what version of Sharing they're building against (#67).

Full Changelog: 2.0.1...2.0.2

2.0.1

07 Jan 00:02
7e4ac14

Choose a tag to compare

What's Changed

  • Fixed: Swift 5.9 support has been restored (with continuous integration) (#65).

Full Changelog: 2.0.0...2.0.1