Releases: pointfreeco/swift-sharing
Releases · pointfreeco/swift-sharing
2.3.3
What's Changed
- Fixed: Use single shared key when both
SharedKey.Defaultand 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
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
2.3.0
What's Changed
- Added:
SharedReader.init(value:)as a replacement forSharedReader.constantthat can be used with@SharedReaderproperty wrapper syntax (#104). - Added:
@SwiftUI.State.Sharedand@SwiftUI.State.SharedReader, for wrapping a shared property in@Stateergonomically (#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
- @hanneskaeufler made their first contribution in #103
Full Changelog: 2.2.0...2.3.0
2.2.0
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
withDependencieswhere needed (thanks @brzzdev, #96).
New Contributors
- @OguzYuuksel made their first contribution in #91
- @brzzdev made their first contribution in #96
Full Changelog: 2.1.2...2.2.0
2.1.2
2.1.1
What's Changed
- Fixed:
$shared.load()errors are now correctly rethrown (#70). - Fixed: Do not prematurely
nilout 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
- @heiberg made their first contribution in #74
- @kamcma made their first contribution in #79
- @arnauddorgans made their first contribution in #81
- @jflan-dd made their first contribution in #85
Full Changelog: 2.1.0...2.1.1
2.1.0
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
What's Changed
- Added
Sharing2version 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
What's Changed
- Fixed: Swift 5.9 support has been restored (with continuous integration) (#65).
Full Changelog: 2.0.0...2.0.1