Repository navigation
Changelog: v5.2.0...v5.3.0
-
doubter/plugin/object-essentialsnow addsminKeyCount,maxKeyCountandnonEmptytoObjectShape. -
DSL now includes
d.url(),d.int(),d.uint()andd.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 tofalse;'1', 1, and case-insensitive string'true'are converted totrue.