canon_codec 0.1.4 copy "canon_codec: ^0.1.4" to clipboard
canon_codec: ^0.1.4 copied to clipboard

Strict, const, bidirectional value<->string codecs — the shared id/segment codec for the canon ecosystem.

0.1.4 #

  • Add Codec.composite / CompositeCodec — 2–16 parts, one token, record value.
  • Add the | codec-union operator (UnionCodec) — first-match-wins alternation.

0.1.3 #

  • Add Codec.literal (fixed-segment) and Codec.regex codecs.

0.1.2 #

  • Add Codec.email — lenient local@domain.tld validation.

0.1.1 #

  • Record2Codec/Record3Codec/CsvCodec are now public, const-constructible classes (the Codec.recordN/Codec.csv statics still return them), so a record/csv codec can be an enum-constant id.

0.1.0 #

  • Initial release: strict const Codec<T> (value <-> string) with built-ins (string, integer, number, uuid, username, date, enumValues, csv, raw), record2/record3 combinators, NameableCodec name override, and the repeated-key list carrier. Lifted from canon_link as the shared codec leaf.
1
likes
150
points
543
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Strict, const, bidirectional value<->string codecs — the shared id/segment codec for the canon ecosystem.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

More

Packages that depend on canon_codec