Skip to content

v1.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Oct 14:07
· 9 commits to main since this release

Correctness and density release: PackedFormat packs enums and nullable elements more tightly, malformed and non-canonical input is rejected consistently, and several roundtrip and decoding edge cases are fixed.

Breaking changes

  • Encoded outputs differ from v1.3.0 for classes with nullable fields, enums, or Boolean/enum lists, and for BaseRadix with alphabets larger than 256 characters. Base62, Base36, Base64 and Base85 output is unchanged. Old strings may fail to decode or decode to different values, so encode stored strings again.
  • Decoding rejects non-canonical input: padding bits, varints, null markers, UTF-8, Base64/Base85 groups, radix digits and CompactZeros prefixes.
  • Custom Base64/Base85 alphabets must have the right length, no duplicates, no characters at or above U+0100, and no = in Base64.
  • The checksum builder property appends to the current transform instead of replacing it.
  • Encoding a value whose @EncodeDefault(NEVER) element is skipped throws SerializationException.
  • Encoding a String with an unpaired surrogate throws IllegalArgumentException instead of writing ?.
  • Requires Kotlin 2.3 or newer; the JVM target is lowered to Java 17.

Changes

  • feat: enable snapshot releases to Sonatype snapshots repo #11
  • chore: update kbuild to 1.3.6 (now from GitHub releases), Kotlin to 2.4, Gradle to 9.7.1 and CI to JDK 25, provision toolchains with foojay, standardize GitHub workflows, and publish snapshots on every push to main #9, #10, #12, #13, #14, #15, #16, #17, #18, #19, #20, #21, #22, #23, #24, #25, #40, #41
  • fix: preserve packed serialization boundaries #26
  • fix: reject malformed base64 and base85 input #27
  • fix: roundtrip empty compact zero payloads #28
  • fix: preserve large alphabet block lengths #29
  • feat: improve packed serialization density #30
  • fix: track nullable generic and tuple elements in the class bitmask #31
  • fix: reject malformed and non-canonical packed input #32
  • fix: validate codec configuration and reject non-canonical text #33
  • refactor: reduce duplication across packed codec and byte encodings #34
  • fix: bound collection decoding by the remaining input #35
  • fix: reject elements skipped by EncodeDefault NEVER #36
  • fix: reject non-canonical packed bits, markers and UTF-8 #37
  • fix: reject non-canonical CompactZeros prefixes and radix digits #38
  • fix: bound zero-width collections and roundtrip map entries and polymorphic primitives #42
  • docs: tighten comments, KDoc and README, and state the wire format compatibility contract #39, #42, #43

Full changelog: v1.3.0...v1.4.0