Skip to content

v5.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Sep 13:19

Changelog: v5.2.0...v5.3.0

  • doubter/plugin/object-essentials now adds minKeyCount, maxKeyCount and nonEmpty to ObjectShape.

  • DSL now includes d.url(), d.int(), d.uint() and d.exactObject({ … }) helpers.

  • DSL functions now return cached shapes if no options were provided.

  • Branding can now be applied to input and output separately:

shape.brand<OutputBrand>()

shape.brand<InputBrand, OutputBrand>()
  • Boolean coercion was expanded:
    • null, undefined, '0', 0, and case-insensitive string 'false' are converted to false;
    • '1', 1, and case-insensitive string 'true' are converted to true.