Socket
Socket
Sign inDemoInstall

io-ts

Package Overview
Dependencies
1
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
46
12Next

1.8.5

Diff

Changelog

Source

1.8.5

  • Bug Fix
    • change how types and output types are retrieved in IntersectionC and TupleC, fix #315 (@gcanti)
gcanti
published 1.8.4 •

Changelog

Source

1.8.4

  • Polish
    • autobind decode method (@gcanti)
gcanti
published 1.8.3 •

Changelog

Source

1.8.3

  • Polish
    • add stripInternal flag to tsconfig.json (@gcanti)
    • handle NaN in PathReporter (@gcanti)
    • throw if union encoding doesn't find a usable codec (@leemhenson)
  • Deprecation
    • deprecate NeverType (@gcanti)
    • deprecate FunctionType (@gcanti)
gcanti
published 1.8.2 •

Changelog

Source

1.8.2

  • Bug Fix
    • align the runtime behavior of Exact.is with the type system, fix #288 (@gcanti)
gcanti
published 1.8.1 •

Changelog

Source

1.8.1

  • 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)
gcanti
published 1.8.0 •

gcanti
published 1.7.1 •

Changelog

Source

1.7.1

  • Deprecation
    • deprecate any (@gcanti)
    • deprecate object (@gcanti)
    • deprecate Dictionary in favour of UnknownRecord (@gcanti)
    • deprecate Array in favour of UnknownArray (@gcanti)
    • deprecate dictionary in favour of record (@gcanti)
gcanti
published 1.7.0 •

Changelog

Source

1.7.0

  • New Feature
    • better support for custom messages, closes #148 (@gcanti)
      • add optional message field to ValidationError
      • add message argument to failure
      • PathReporter should account for the new field
    • add actual optional field to ContextEntry, closes #194 (@gcanti)
  • Deprecation
    • deprecate getValidationError (@gcanti)
    • deprecate getDefaultContext (@gcanti)
gcanti
published 1.6.4 •

Changelog

Source

1.6.4

  • Bug Fix
    • getIndexRecord: getIndexRecord: handle conflicting tags in different positions, ref #263 (@gcanti)
  • Experimental
    • added a warning to the console if a tagged union cannot be created (@gcanti)
    • revert union optimization, needs more work to make it happen (@gcanti)
gcanti
published 1.6.3 •

Changelog

Source

1.6.3

  • Bug Fix
    • prevent maximum call stack size exceeded when indexing recursive codecs, closes #259 (@gcanti)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc