Skip to content

v1.1.0

Compare
Choose a tag to compare
@jrothwell jrothwell released this 19 Feb 16:37
· 7 commits to main since this release
6957e82

What's New

  • Adds support for different paths to the version field. You achieve this by creating a Codable type that adopts VersionPathSpec, and specifying this on your VersionedCodable type.
    • The default behaviour is unchanged and is available as VersionKeyAtRootVersionPathSpec. This is automatically chosen for you if you do not specify a VersionSpec in your VersionedCodable.
  • Removes support for throwing VersionedEncodingError.typeHasClashingVersionField encode time if the type has a version key. This was an expensive operation which wouldn't work anyway with different key paths to the version field. In an ideal world it would be possible to test this at compile time, but I don't currently see how this is possible without a compiler plugin.
  • Improves documentation. Documentation is now deployed with links to the source code.

Full Changelog: 1.0.2...v1.1.0