-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump Sharing requirement to include 2.0.0 (#3546)
* Bump Sharing requirement to include 2.0.0 * Add migration guide * wip * wip * wip * wip * wip * wip * wip * wip
- Loading branch information
1 parent
42192d4
commit ff1a875
Showing
11 changed files
with
110 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...leArchitecture/Documentation.docc/Articles/MigrationGuides/MigratingTo1.17.1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Migrating to 1.17.1 | ||
|
||
The Sharing library has graduated, with backwards-incompatible changes, to 2.0, and the Composable | ||
Architecture has been updated to extend support to this new version. | ||
|
||
## Overview | ||
|
||
The [Sharing][sharing-gh] package is a general purpose, state-sharing and persistence toolkit that | ||
works on all platforms supported by Swift, including iOS/macOS, Linux, Windows, Wasm, and more. | ||
|
||
A [2.0][2.0-release] has introduced new features and functionality, and the Composable Architecture | ||
1.17.1 includes support for this release. | ||
|
||
While many of Sharing 2.0's APIs are backwards-compatible with 1.0, if you have defined any of your | ||
own custom persistence strategies via the `SharedKey` or `SharedReaderKey` protocols, you will need | ||
to migrate them in order to support the brand new error handling and async functionality. | ||
|
||
If you are not ready to migrate, then you can add an explicit dependency on the library to pin to | ||
any version less than 2.0: | ||
|
||
```swift | ||
.package(url: "https://github.com/pointfreeco/swift-sharing", from: "0.1.0"), | ||
``` | ||
|
||
If you are ready to upgrade to 2.0, then you can follow the [2.0 migration guide][2.0-migration] | ||
from that package. | ||
|
||
[sharing-gh]: https://github.com/pointfreeco/swift-sharing | ||
[1.0-migration]: https://swiftpackageindex.com/pointfreeco/swift-sharing/main/documentation/sharing/migratingto2.0 | ||
[2.0-release]: https://github.com/pointfreeco/swift-sharing/releases/2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters