github gcanti/io-ts 1.8.1

latest releases: 2.2.20, 2.2.19, 2.2.18...
5 years ago
  • New Feature
    • add brand combinator (@gcanti, @lostintime)
    • add Int codec (@gcanti)
    • exact strips additional properties while decoding / encoding (@gcanti)
    • un-deprecate strict combinator, is now an alias of exact(type(...)) (@gcanti)
  • Bug Fix
    • fix wrong context keys for tagged unions (@gcanti)
  • Deprecation
    • deprecate refinement combinator in favour of brand (@gcanti)
    • deprecate Integer codec in favour of Int (@gcanti)
    • deprecate StrictType class (@gcanti)
    • deprecate StrictC interface (@gcanti)
  • Polish
    • modify the implementation of intersection in order to support combinators that strip additional properties (@gcanti)
    • do not validate the codomain of a key of a record if its domain in invalid (@gcanti)
    • normalize missing message field in ValidationError (@gcanti)
    • fix name of recursive codec definitions (@gcanti)
    • remove unexpected validation path from partial type, closes #195 (@gcanti)
    • do not leak taggedUnion implementation when tag validation fails (@gcanti)
    • add actual value to all context entries (@gcanti)
    • exact now bails out when the value is not an UnknownRecord (@gcanti)
    • tuple should not leak the implementation (never usage) (@gcanti)
    • exact should not leak the implementation (never usage) (@gcanti)
    • use Number.isInteger in Integer implementation (@gcanti)
    • use the Flow convention to name exact codecs (@gcanti)

Don't miss a new io-ts release

NewReleases is sending notifications on new releases.