Releases: gcanti/io-ts
Releases · gcanti/io-ts
Release list
0.3.0
0.2.3
0.2.2
- New Feature
- add
partialcombinator (makes optional props possible) - add
readonlycombinator (values are not frozen in production) - add
readonlyArraycombinator (values are not frozen in production) - add
nevertype
- add
- Breaking Changes
- remove
maybecombinator, can be defined in userland asexport function maybe<RT extends t.Any>(type: RT, name?: string): t.UnionType<[RT, typeof t.null], t.TypeOf<RT> | null> { return t.union([type, t.null], name) }
- remove
- Polish
- export
pathReporterFailurefunction from default reporters
- export
- Bug Fix
- revert pruning excess properties (see #27 for context)
- revert
intersectioncombinator accepting onlyInterfaceTypes
- Experimental
- Pattern matching / catamorphism for unions
0.1.1
- New Feature
- add support for jsnext
- add
Integertype
- Breaking Changes
t.Objecttype. Renamed tot.Dictionary, now accepts arrays so is fully equivalent to{ [key: string]: any }.t.instanceOfcombinator. Removed.t.objectcombinator. Renamed tot.interface.ObjectTypetoInterfaceType. Excess properties are now pruned.mappingcombinator. Renamed todictionary.MappingTypetoDictionaryType.intersectioncombinator. Due to the new excess property pruning int.interfacenow only acceptInterfaceTypes.- API
isSuccessremoved, useeither.isRightinstead - API
isFailureremoved, useeither.isLeftinstead - API
fromValidationremoved