Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Aug 27, 2022
1 parent 4434a47 commit 515d159
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<a name="1.14.0"></a>

# 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)

<a name="1.13.0"></a>

# 1.13.0 (2022-08-15)
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 515d159

Please sign in to comment.