Skip to content

1.2.0

Choose a tag to compare

@orchetect orchetect released this 02 Jan 07:49
· 133 commits to main since this release

New

  • Added new built-in coding strategies (#3)
    • Bool stored as Int (1/0)
    • Bool stored as String (true/false, yes/no, or custom strings)
    • Data: stored as Base-64 String
    • Data compression
    • Date stored as ISO-8601 String
    • BinaryInteger stored as Int
    • FixedWidthInteger stored as String
    • URL stored as absolute URL string
  • Pref declarations using a RawRepresentable type can now access .rawRepresentablePrefsCoding static property as an alternative to using @RawRepresentablePref. This allows chaining additional strategies.
    @Pref(coding: MyType.rawRepresentablePrefsCoding) var foo: MyType?
  • Pref declarations using a Codable type can now access .jsonDataPrefsCoding or .jsonStringPrefsCoding static properties as an alternative to using @JSONDataCodablePref or @JSONStringCodablePref. This allows chaining additional strategies.
    @Pref(coding: MyType.jsonDataPrefsCoding) var foo: MyType?
  • Coding strategies can now be composed by chaining two or more strategies (#5)
    @Pref(coding: MyType
        .jsonDataPrefsCoding
        .base64DataString()
    ) var foo: MyType?

Maintenance

  • Updated README documentation