io-ts-types

A collection of codecs and combinators for use with io-ts

MIT License

Downloads
1.4M
Stars
311
Committers
16
io-ts-types - 0.5.19 Latest Release

Published by gcanti about 2 years ago

  • New Feature
    • add mapFromEntries, readonlyMapFromEntries codecs, #172 (@mlegenhausen)
io-ts-types - 0.5.18

Published by gcanti about 2 years ago

  • Polish
    • add output indexed types to option and either #171 (@mlegenhausen)
io-ts-types - 0.5.17

Published by gcanti about 2 years ago

  • Polish
    • nonEmptyArray: change output type from Array to NonEmptyArray, #170 (@OliverJAsh)
    • readonlyNonEmptyArray: change output type from ReadonlyArray to ReadonlyNonEmptyArray, #170 (@OliverJAsh)
io-ts-types - 0.5.16

Published by gcanti over 3 years ago

  • Bug Fix
    • fix DateFromUnixTime.encode returning a floating point number, #160 (@saevarb)
io-ts-types - 0.5.15

Published by gcanti over 3 years ago

  • Polish
    • export Json, JsonRecord, JsonArray codecs from JsonFromString module, closes #156 (@gcanti)
io-ts-types - 0.5.14

Published by gcanti over 3 years ago

  • New Feature
    • add JsonFromString, closes #153 (@gcanti)
io-ts-types - 0.5.13

Published by gcanti over 3 years ago

  • New Feature
    • add BooleanFromNumber, #152 (@EricCrosson)
io-ts-types - 0.5.12

Published by gcanti almost 4 years ago

  • New Feature
    • add withEncode combinator, #146 (@EricCrosson)
io-ts-types - 0.5.11

Published by gcanti about 4 years ago

  • New Feature
    • add BigIntFromString codec, #141 (@EricCrosson)
io-ts-types - 0.5.10

Published by gcanti about 4 years ago

  • Polish
    • expose modules without lib/es6 prefix, #137 (@osdiab)
io-ts-types - 0.5.9

Published by gcanti about 4 years ago

  • Polish
    • pass context to withMessage callback #136 (@johngeorgewright)
io-ts-types - 0.5.8

Published by gcanti over 4 years ago

  • New Feature
    • export each module's exports from the library entrypoint, closes #129 (@waynevanson)
io-ts-types - 0.5.7

Published by gcanti over 4 years ago

  • New Feature
    • add readonlyNonEmptyArray (@gcanti)
    • add readonlySetFromArray (@gcanti)
io-ts-types - 0.5.6

Published by gcanti over 4 years ago

  • Polish
    • fromNewtype
      • add support for branded types, #123 (@mlegenhausen)
  • Internal
io-ts-types - 0.5.5

Published by gcanti almost 5 years ago

  • Bug Fix
    • add sideEffects field to package.json (@gcanti)
io-ts-types - 0.5.4

Published by gcanti almost 5 years ago

  • Bug Fix
    • rewrite es6 imports (@gcanti)
io-ts-types - 0.5.3

Published by gcanti almost 5 years ago

  • New Feature
    • Provide version with ES modules (@OliverJAsh)
io-ts-types - 0.5.2

Published by gcanti almost 5 years ago

  • New Feature
    • add fromNewtype, closes #111 (@mlegenhausen)
io-ts-types - 0.5.1

Published by gcanti about 5 years ago

  • Bug Fix
    • remove source maps, fix #106 (@gcanti)
io-ts-types - 0.5.0

Published by gcanti over 5 years ago

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 and [email protected] (@gcanti)
    • move fp-ts@2, monocle-ts@2 and [email protected] to peerDependencies (@gcanti)
    • remove boolean folder (@gcanti)
      • move BooleanFromString to top level
    • remove date folder (@gcanti)
      • move date to top level
      • move DateFromISOString to top level
      • move DateFromNumber to top level
      • move DateFromUnixTime to top level
    • remove fp-ts folder (@gcanti)
      • move createEitherFromJSON to top level and rename to either
      • move createNonEmptyArrayFromArray to top level and rename to nonEmptyArray
      • move createOptionFromJSON to top level and rename to option
      • remove createStrMapFromDictionary
      • move createOptionFromNullable to top level and rename to optionFromNullable
      • move createSetFromArray to top level and rename to setFromArray
    • remove JSON folder (@gcanti)
    • remove monocle-ts (@gcanti)
      • move lensesFromInterface to top level and renamed to getLenses (@gcanti)
      • remove TypePrismIso module (@gcanti)
    • remove newtype-ts folder (@gcanti)
    • remove number folder (@gcanti)
      • move NumberFromString to top level
      • move IntegerFromString to top level and rename to IntFromString
    • rename eitherFromJSON to either (@gcanti)
    • rename optionFromJSON to option (@gcanti)
    • uncurry fromNullable (@gcanti)
    • uncurry fallback and rename to withFallback (@gcanti)