From 515d15934a594dc7153393bac6b138785cc60a2f Mon Sep 17 00:00:00 2001 From: Icebob Date: Sat, 27 Aug 2022 18:48:29 +0200 Subject: [PATCH] changelog --- CHANGELOG.md | 8 ++++++++ README.md | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e44a5db..fafef13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ + + +# 1.14.0 (2022-08-27) + +## Changes +- fix: Multi-schema nullable validators not working as expected. [#303](https://github.com/icebob/fastest-validator/issues/303) +- add new `haltOnFirstError` option (https://github.com/icebob/fastest-validator#halting). [#304](https://github.com/icebob/fastest-validator/pull/304) + # 1.13.0 (2022-08-15) diff --git a/README.md b/README.md index cf5b088..186fd90 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,11 @@ console.log("Second:", check({ id: 2, name: "Adam" })); ``` [Try it on Repl.it](https://repl.it/@icebob/fastest-validator-fast) -If you want to halt immediately after the first error use: `haltOnFirstError` +### Halting + +If you want to halt immediately after the first error: ```js -const v = new Validator({haltOnFirstError: true}); +const v = new Validator({ haltOnFirstError: true }); ``` ## Browser usage