This project adheres to semantic versioning.
Update getInternallyTaggedCodec
to preserve tag when decoding.
Add getAdjacentlyTaggedCodec
, getExternallyTaggedCodec
, getInternallyTaggedCodec
, and getUntaggedCodec
codec constructors for working with object encodings. Add nullaryFrom
and nullaryFromEmpty
to support said object encodings with optional member values.
Update getCodecFromMappedNullaryTag
to support generic input type.
Support @unsplash/sum-types
^0.4.0.
Provide access to getCodecFromPrimitiveMappedNullaryTag
mappings via a MappedType
subclass.
Replace getCodecFromStringlyMappedNullaryTag
with the more flexible getCodecFromPrimitiveMappedNullaryTag
.
Support @unsplash/sum-types
^0.3.0.
Respect differing A
and O
types in codecs.
Add getCodecFromNullaryTag
, getCodecFromStringlyMappedNullaryTag
, and getCodecFromMappedNullaryTag
codec constructors.
Add ESM support.
Support @unsplash/sum-types
^0.2.1.
The initial release of @unsplash/sum-types-io-ts
, providing getSerializedCodec
, getCodecFromSerialized
, and getCodec
.