Skip to content

Releases: typeofweb-org/schema

v0.4.2

16 Jan 19:44
d5bb6c9
Compare
Choose a tag to compare

0.4.2 (2021-01-16)

Features

  • documentation: Readability improvements & pipe docs (#24) (7542cde)
  • validator: Add unknown() validator (#26) (c044a7a)

Bug Fixes

  • validator: Make sure undefined fields are also optional (#25) (8b8f825)

v0.4.1

15 Jan 18:47
3ae603f
Compare
Choose a tag to compare

v0.4.0...v0.4.1

v0.4.0

15 Jan 18:18
7876bb3
Compare
Choose a tag to compare

0.4.0 (2021-01-15)

⚠ BREAKING CHANGES

  • errors: New structure of ValidationError.

Features

  • errors: Add more descriptive error messages. (#22) (be8b391)
  • Add pipe and λ functions to easily compose validators (#21) (1037d00)
  • documentation: Quick fixes to documentation (#19) (0a0847f)

v0.3.1

14 Jan 08:42
73ff534
Compare
Choose a tag to compare

0.3.1 (2021-01-14)

Improvements

  • performance: Remove sorting object keys and replace Object.fromEntries (#15) (2815436)

v0.3.0

13 Jan 22:40
9b462dd
Compare
Choose a tag to compare

0.3.0 (2021-01-13)

⚠ BREAKING CHANGES

  • parser: The new parsing behaviour changes how date, number and string validators work.

Features

  • parser: Add parsing in validate function & Tests & Documentation (#10) (f9ecbd9)

v0.2.0

13 Jan 18:48
226e0f5
Compare
Choose a tag to compare

0.2.0 (2021-01-13)

⚠ BREAKING CHANGES

  • validator: Tuple type might be incompatible with arrays used previously.

  • feat(validator): Allow passing validators and values to oneOf

Features

  • modifier: Added nonEmpty and minLength modifiers (#9) (51e19a0)
  • validator: Allow passing validators and values to oneOf (#11) (0aeb24d)

v0.1.0

13 Jan 11:51
ed1f664
Compare
Choose a tag to compare

0.1.0 (2021-01-13)

⚠ BREAKING CHANGES

  • validator: Removed old array syntax: array([string()]) is no longer valid. Use array(string()) instead.

Features

  • validator: Array shorthand syntax (#7) (0b03c58)
  • Add Invalid Date validation (405d800)

v0.0.4

13 Jan 01:16
500f245
Compare
Choose a tag to compare
  • chore: Split test files e7ec035
  • chore: Lower node.js version requirement to 12 5930066

v0.0.3...v0.0.4

v0.0.3

13 Jan 00:58
42d3195
Compare
Choose a tag to compare
  • fix: Remove yarn.lock from npm 8d178e8
  • docs: Add all-contributors 0e7bfed
  • Create simple documentation for @typeofweb/schema library (#1) 57dc802

v0.0.2...v0.0.3

v0.0.2

12 Jan 19:11
1b3ac7e
Compare
Choose a tag to compare
  • docs: Add package.json keywords c8fa847

v0.0.1...v0.0.2