Tags:
- [New Feature]
- [Bug Fix]
- [Breaking Change]
- [Documentation]
- [Internal]
- [Polish]
- [Experimental]
Note: Gaps between patch versions are faulty/broken releases. Note: A feature tagged as Experimental is in a high state of flux, you're at risk of it changing without notice.
- New Feature
- add
mapFromEntries
,readonlyMapFromEntries
codecs, #172 (@mlegenhausen)
- add
- Polish
- add output indexed types to option and either, #171 (@mlegenhausen)
- Polish
nonEmptyArray
: change output type fromArray
toNonEmptyArray
, #170 (@OliverJAsh)readonlyNonEmptyArray
: change output type fromReadonlyArray
toReadonlyNonEmptyArray
, #170 (@OliverJAsh)
- Bug Fix
- fix
DateFromUnixTime.encode
returning a floating point number, #160 (@saevarb)
- fix
- Polish
- export
Json
,JsonRecord
,JsonArray
codecs fromJsonFromString
module, closes #156 (@gcanti)
- export
- New Feature
- add
JsonFromString
, closes #153 (@gcanti)
- add
- New Feature
- add
BooleanFromNumber
, #152 (@EricCrosson)
- add
- New Feature
- add
withEncode
combinator, #146 (@EricCrosson)
- add
- New Feature
- add
BigIntFromString
codec, #141 (@EricCrosson)
- add
- Polish
- expose modules without lib/es6 prefix, #137 (@osdiab)
- Polish
- pass context to withMessage callback #136 (@johngeorgewright)
- New Feature
- export each module's exports from the library entrypoint, closes #129 (@waynevanson)
- New Feature
- add
readonlyNonEmptyArray
(@gcanti) - add
readonlySetFromArray
(@gcanti)
- add
- Polish
fromNewtype
- add support for branded types, #123 (@mlegenhausen)
- Internal
- upgrade to
typescript@3.8
(@gcanti)
- upgrade to
- Bug Fix
- add sideEffects field to package.json (@gcanti)
- Bug Fix
- rewrite es6 imports (@gcanti)
- New Feature
- Provide version with ES modules (@OliverJAsh)
- New Feature
- add
fromNewtype
, closes #111 (@mlegenhausen)
- add
- Bug Fix
- remove source maps, fix #106 (@gcanti)
Note. io-ts-types
depends on
starting from 0.5.0
you must install fp-ts
, io-ts
and monocle-ts
manually (fp-ts
, io-ts
and monocle-ts
are listed in peerDependencies
)
- Breaking Change
- upgrade to
fp-ts@2
,monocle-ts@2
andio-ts@2.0.0
(@gcanti) - move
fp-ts@2
,monocle-ts@2
andio-ts@2.0.0
topeerDependencies
(@gcanti) - remove
boolean
folder (@gcanti)- move
BooleanFromString
to top level
- move
- remove
date
folder (@gcanti)- move
date
to top level - move
DateFromISOString
to top level - move
DateFromNumber
to top level - move
DateFromUnixTime
to top level
- move
- remove
fp-ts
folder (@gcanti)- move
createEitherFromJSON
to top level and rename toeither
- move
createNonEmptyArrayFromArray
to top level and rename tononEmptyArray
- move
createOptionFromJSON
to top level and rename tooption
- remove
createStrMapFromDictionary
- move
createOptionFromNullable
to top level and rename tooptionFromNullable
- move
createSetFromArray
to top level and rename tosetFromArray
- move
- remove
JSON
folder (@gcanti) - remove
monocle-ts
(@gcanti)- move
lensesFromInterface
to top level and renamed togetLenses
(@gcanti) - remove
TypePrismIso
module (@gcanti)
- move
- remove
newtype-ts
folder (@gcanti) - remove
number
folder (@gcanti)- move
NumberFromString
to top level - move
IntegerFromString
to top level and rename toIntFromString
- move
- rename
eitherFromJSON
toeither
(@gcanti) - rename
optionFromJSON
tooption
(@gcanti) - uncurry
fromNullable
(@gcanti) - uncurry
fallback
and rename towithFallback
(@gcanti)
- upgrade to
- Bug Fix
- bind
decode
to the providedvalidate
inwithValidate
, fix #95 (@gcanti)
- bind
- New Feature
- add
UUID
codec (@mlegenhausen)
- add
- New Feature
- add
NonEmptyString
codec (@gcanti)
- add
- New Feature
- add
optionFromJSON
combinator (@gcanti) - add
eitherFromJSON
combinator (@gcanti) - add
IntFromString
codec (@gcanti) - add
fromRefinement
combinator (@gcanti) - add
regexp
codec (@StefanoMagrassi)
- add
- Deprecation
- deprecate
number/IntegerFromString
in favour ofIntFromString
(@gcanti) - deprecate
fp-ts/createOptionFromJSON
in favour ofoptionFromJSON
(@gcanti) - deprecate
fp-ts/createEitherFromJSON
in favour ofeitherFromJSON
(@gcanti)
- deprecate
- New Feature
- add
clone
(@gcanti) - add
withValidate
(@gcanti) - add
withMessage
(@gcanti)
- add
- Polish
- export all interfaces, fix #77 (@sledorze)
- Polish
- apply
io-ts@1.6.x
interface pattern (@gcanti)
- apply
- Bug fix
- switch to
io-ts
pattern, fix #67 (PR #71) (@gcanti)
- switch to
Note. This fix should not be a breaking change for most users. However since some signatures are changed, namely their type parameters, this release is published with a minor bump as a precaution.
- New Feature
- add
Date/date
(@mlegenhausen)
- add
- New Feature
- Export Codec class Types alongside their combinator, #63 (@sledorze)
- Internal
- fix broken build with
typescript@3.1-rc
, closes #61 (@sledorze)
- fix broken build with
- New Feature
- add
boolean/BooleanFromString
, fixes #55 (@sledorze)
- add
- New Feature
- add
fallback
, fixes #49 (@sledorze) - add
fromNullable
, closes #51 (@sledorze)
- add
- New Feature
- add
string/UUID
(@mlegenhausen)
- add
- New Feature
- add
newtype-ts/fromRefinement
(@gcanti) - add
newtype-ts/fromNewtypeCurried
, closes #44 (@gcanti)
- add
- Bug Fix
- fix
NumberFromString
validation, closes #40 (@sledorze)
- fix
- Internal
- simplify
lensesFromInterface
typings, closes #37 (@gcanti)
- simplify
- New Feature
- add
createStrMapFromDictionary
(@mlegenhausen)
- add
- New Feature
- add tagged custom types for (@gcanti, @sledorze)
- createOptionFromNullable
- createOptionFromJSON
- createNonEmptyArrayFromArray
- createEitherFromJSON
- DateFromISOString
- DateFromNumber
- DateFromUnixTime
- NumberFromString
- JSONFromString
- add createSetFromArray, closes #24 (@sledorze)
- add tagged custom types for (@gcanti, @sledorze)
- New Feature
- add
mapOutput
, closes #21 (@gcanti)
- add
- New Feature
- add
createNonEmptyArrayFromArray
(@sledorze)
- add
- Bug Fix
- createOptionFromNullable: handle output type (@gcanti)
- Breaking Change
- upgrade to
fp-ts@1.0.0
,io-ts@1.0.0
,monocle-ts@1.0.0
,newtype-ts@0.2.0
(@gcanti)
- upgrade to
- Bug Fix
- createEitherFromJSON and createOptionFromJSON now do serialize correctly their underlying type, fix #15 (@sledorze)
- New Feature
- add
MixedStringPrism
(@gcanti) - upgrade to latest
io-ts
(0.9.5) (@gcanti)
- add
- New Feature
- add
Date/DateFromUnixTime
(@gcanti) - add
monocle-ts/MillisecondSecondIso
(@gcanti)
- add
- Internal
- upgrade to latest
io-ts@0.9.1
(@gcanti)
- upgrade to latest
- New Feature
- add
newtype-ts/fromNewtype
, fix #11 (@sledorze)
- add
- New Feature
- add
JSON/JSONTypeRT
(@gcanti) - add
monocle-ts/lensesFromProps
(@gcanti)
- add
- Breaking Change
- upgrade to
io-ts
0.9 (@gcanti) - change signature of
monocle-ts/TypePrismIso
(@gcanti) - remove
monocle-ts/composeTypeWithPrism
(@gcanti) - remove
monocle-ts/prismsFromUnion
(@gcanti) - remove
monocle-ts/lensesFromTuple
(@gcanti) - remove
fp-ts/createOption
(@gcanti) - remove
fp-ts/createEither
(@gcanti)
- upgrade to
- Breaking Change
- upgrade to fp-ts 0.6, io-ts 0.8, monocle.ts 0.5 (@gcanti)
- change name from
JSON
toJSONType
and add export, fix #8 (@gcanti)
- New Feature
- add
lensesFromInterface
(@leemhenson) - add
lensesFromTuple
(@gcanti) - add
prismsFromUnion
(@gcanti)
- add
Initial release