Skip to content

v2.0.0

Choose a tag to compare

@patrickhulce patrickhulce released this 10 Feb 06:29
· 531 commits to master since this release
9a67e1e

2.0.0 (2018-02-10)

Bug Fixes

  • validator: do not fail for empty coerce functions (9f762fd)
  • support node8 (#38) (68000ca)
  • assertion-error: support typeof array (64ed874)
  • assertions: set path on error, not name (078246c)
  • model: allow dates in min/max (d08289c)
  • model: improve formats error handling (8029bbf)
  • model: update coerce signature (af57bbb)
  • model: update optional to set spec.required (5503d10)
  • model-context: camelcase type builders (09ef429)
  • validation-result: always finish non-conforming result (52beced)
  • validation-result: ensure coalesce maintains invariants (497aa03)
  • validation-result: fromValue should set rootValue (4678649)
  • validator: do not set path when value is root (5b4f30b)
  • validator: handle models with no type (cab33af)
  • validator: remove coerce-format phase (15c5a57)
  • validator: set default value before asserting non-null (602dea5)
  • validator: support deep enum types (0109730)
  • validator-options: de-dupe types (58b79ae)
  • validator-options: validate coerce properly (17c411a)

Features

  • assertion-error: add base assertion error class (e7c47c0)
  • assertions: add match assertion (6c5a396)
  • core: add validation for object strict (a673377)
  • enum: add support for applies function (e2eeaa0)
  • extensions: add date extension (cee92d6)
  • extensions: add default type-coerce (9ed86db)
  • extensions: add number support (448d69d)
  • extensions: add string formats (68c7a4f)
  • model: add children/pick/omit (575c611)
  • model: add coerce (ae48bec)
  • model: add default (adad436)
  • model: add format (080335a)
  • model: add merge (d5a5588)
  • model: add options (44946aa)
  • model: add required/optional/nullable/strict (ffe851d)
  • model: add validate method (64cb85d)
  • model: add validations (c06e02c)
  • model: default phase to parse (d174dcd)
  • model: support model options in enum (568a307)
  • model: use defaults from options (bb89510)
  • model-context: add builders (288d060)
  • model-context: add reset method (7167f1f)
  • model-context: create ModelContext (a615dee)
  • strings: better format validation message (388986b)
  • typescript: replace js directory with ts (71ae877)
  • validation-result: add assert method (576bb0e)
  • validation-result: add basic validation (da6ff10)
  • validation-result: add clone method (556e5d3)
  • validation-result: add coalesce (edb1527)
  • add index export (b4fb48d)
  • validation-result: improved coalesce support (aa1c9e2)
  • validator: add base validate functionality (1fd6ded)
  • validator: add children support (869e74b)
  • validator: add enum validation support (8dce8c7)
  • validator-options: add defaults to ValidatorOptions (dcda8bc)
  • validator-options: add methods property (9e3c997)
  • validator-options: add proper clone support (eaa3eed)
  • validator-options: merge more than two options (87ce156)
  • validator-options: sanitize options (594584f)

BREAKING CHANGES