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
2345
12Next

2.2.21

Diff

Changelog

Source

2.2.21

  • Bug Fix
    • Handle record keys outside domain, #705 (@tgfisher4)
gcanti
published 2.2.20 •

Changelog

Source

2.2.20

  • undeprecate FunctionType, FunctionC, Function
  • undeprecate NeverType, NeverC, never
  • undeprecate AnyType, AnyC, any
  • undeprecate RefinementC, refinement, Integer
  • add refinement overload to allow custom branding, closes #373
gcanti
published 2.2.19 •

Changelog

Source

2.2.19

  • Bug Fix
    • allow Error to be decoded with UnknownRecord, #664 (@mlegenhausen)
gcanti
published 2.2.18 •

Changelog

Source

2.2.18

  • Bug Fix
    • fix typescript@4.8 errors, closes #656, closes #647 (@gcanti)
gcanti
published 2.2.17 •

Changelog

Source

2.2.17

  • Bug Fix
    • Don't throw a TypeError when trying to decode a sum value that contains a dangerous string, #650 (@thewilkybarkid)
gcanti
published 2.2.16 •

Changelog

Source

2.2.16

Experimental modules require fp-ts@^2.5.0.

  • Experimental
    • Codec
      • add readonly combinator (@gcanti)
    • Encoder
      • add readonly combinator (@gcanti)
gcanti
published 2.2.15 •

Changelog

Source

2.2.15

  • Experimental
    • Schemable
      • (*) add readonly combinator (@gcanti)
      • (*) add struct combinator (@gcanti)
    • deprecate type in favour of struct (@gcanti)
    • deprecate fromType in favour of fromStruct (@gcanti)

(*) breaking change

gcanti
published 2.2.14 •

Changelog

Source

2.2.14

  • Experimental
    • Guard
      • relax UnknownRecord check, closes #559 (@waynevanson)
gcanti
published 2.2.13 •

Changelog

Source

2.2.13

  • Bug Fix
    • improve internal mergeAll function, closes #532 (@gcanti)
gcanti
published 2.2.12 •

Changelog

Source

2.2.12

  • Experimental
    • (*) make sum safer, closes #523 (@gcanti)

(*) breaking change

In case of non-string tag values, the respective key must be enclosed in brackets

export const MySum: D.Decoder<
  unknown,
  | {
      type: 1 // non-`string` tag value
      a: string
    }
  | {
      type: 2 // non-`string` tag value
      b: number
    }
> = D.sum('type')({
  [1]: D.type({ type: D.literal(1), a: D.string }),
  [2]: D.type({ type: D.literal(2), b: D.number })
})
2345
12Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc