Skip to content

Releases: rzane/validate

v0.4.1

Choose a tag to compare

@rzane rzane released this 20 May 16:02
0b59fa0

The input value for the each operator should be an array. When upgrading, you might need to assert that the value is an array before piping to each: assert(Array.isArray).then(each(...))

v0.4.0

Choose a tag to compare

@rzane rzane released this 25 Feb 17:57
  • The schema operator now returns a SchemaValidator instead of a Validator
  • A SchemaValidator can be extended with new fields.
  • Adds a pass operator that allows validation to be skipped.

v0.3.0-beta.0

Choose a tag to compare

@rzane rzane released this 12 Sep 17:51

The Schema<Output> type has become Schema<Input, Output>.

v0.3.0

Choose a tag to compare

@rzane rzane released this 01 Oct 20:08

See v0.3.0-beta.0

v0.2.0

Choose a tag to compare

@rzane rzane released this 23 May 20:00
b47dc66

Added

  • defaultTo can be used to set a default value
  • when can be used to conditionally execute a validator
  • InferType can be used to extract type information

Fixed

  • Hardcoded unknown for each and schema

v0.1.1

Choose a tag to compare

@rzane rzane released this 23 May 07:59
Update README

v0.1.0

Choose a tag to compare

@rzane rzane released this 23 May 06:22
Add bundle size badge