Skip to content

Releases: nvie/decoders

v1.8.1

06 Jun 07:09
Compare
Choose a tag to compare
  • Fix: revert accidentally emitting $ReadOnlyArray types in array decoders

v1.8.0

05 Jun 11:19
Compare
Choose a tag to compare
  • Drop support for Node 7
  • Declare inputted arrays will not be modified (treated as read-only)

v1.7.0

28 May 11:09
Compare
Choose a tag to compare

v1.7.0-rc2

28 May 11:09
Compare
Choose a tag to compare
v1.7.0-rc2 Pre-release
Pre-release
  • Fix type issues caused by too strict use of mixeds

v1.7.0-rc1

28 May 08:55
Compare
Choose a tag to compare
v1.7.0-rc1 Pre-release
Pre-release

v1.6.1

26 May 10:36
Compare
Choose a tag to compare
  • Upgraded debrief dependency
  • Behave better in projects that have Flow's experimental.const_params
    setting turned on

v1.6.0

02 May 09:48
Compare
Choose a tag to compare
  • New decoders!
    • exact() is like object(), but will fail if the inputted object contains
      superfluous keys (keys that aren't in the object definition).

v1.5.0

05 Apr 09:09
Compare
Choose a tag to compare
  • Collect and report all nested errors in an object() at once (rather than error on the first error).

Breaking:

  • Remove deprecated message argument to object()

v1.4.0

01 Feb 10:20
Compare
Choose a tag to compare
  • New decoders!
    • email validator based on the almost perfect email regex
    • url validator for validating HTTPS URLs (most common use case)
    • anyUrl validator for validating any URL scheme

v1.3.0

22 Jan 16:14
Compare
Choose a tag to compare
  • Much improved error messages! They were redesigned to look great in terminals and to summarize only the relevant bits of the error message, striking a balance between all the details and the high level summary.