Skip to content

Releases: cheesetan/SwiftPersistence

Release 1.1.2

17 Nov 04:01
8b13dfb
Compare
Choose a tag to compare

Lowered swift-tools-version from 5.8 to 5.6, now accessible from Xcode 13.3 onwards

Release 1.1.1

10 Sep 14:54
Compare
Choose a tag to compare

This release contains no breaking changes from the previous release, and instead implements some code optimisations. The most major change are:

  • Writes are now handled on a different thread
  • Read operations, if no cached value is available, will try to read from the storage every time read is called, using the provided default value as a fallback, until a value is found or a write operation is performed. In the previous version, it would only load from storage on init and if the value was unavailable then, the value would not be able to use the stored value. In this release, that has been changed.

Release 1.1.0

08 Sep 04:54
063c3fe
Compare
Choose a tag to compare

Release 1.1.0

Changes, additions, and updates:

  • Added store parameter @Persistent
  • @Persistent can now store its encoded JSON String in either @AppStorage or FileManager
  • Added documentation for store methods
  • Made syntax resemble @AppStorage's
  • Default value is now provided at the end of the declaration, like any other variable

Release 1.0.0

07 Sep 18:13
733bd1d
Compare
Choose a tag to compare

Release 1.0.0

This is the first release of SwiftPersistence! Should you encounter any issues, please leave a new issue on this repo. Any contributions and PRs to this repo are welcomed! :)

Changes, additions, and updates:

  • Added @Persistent
  • @Persistent works with any Codable types
  • Added documentation to @Persistent