Skip to content

Releases: orchetect/swift-prefs

1.1.1

Choose a tag to compare

@orchetect orchetect released this 16 Dec 01:20

Changed

  • JSON coding for Codable types is now offered in Data or String encoding flavors

    JSONCodable protocol implementations were previously constrained the underlying encoding to be Data.

    All JSONCodable types have been disambiguated as JSONDataCodable and a new set of corresponding types for JSONStringCodable have been added to allow using String as the underlying encoding.

  • CodablePrefsCodable: Moved encoder/decoder requirements to extension to allow more flexible implementations

Maintenance

  • Updated README
  • Internal cleanup

1.1.0

Choose a tag to compare

@orchetect orchetect released this 15 Dec 21:10

New

  • PrefsSchema: Added new @Storage and @StorageMode attributes for storage and storageMode properties
    (See README for example)
  • PrefsStorage: Added convenient static constructors for included storage classes
    • .userDefaults, .userDefaults(suite:) in place of UserDefaultsPrefsStorage()
    • .dictionary, .dictionary(root:) in place of DictionaryPrefsStorage()

Changed

  • Renamed PrefsSchemaMode to PrefsStorageMode

Fixed

  • Fixed issue where @Pref macro would prevent adding access level attributes

1.0.0

Choose a tag to compare

@orchetect orchetect released this 14 Dec 11:24

Initial release.