Releases: bodinsamuel/altheia
Releases · bodinsamuel/altheia
v5.0.15
v5.0.14
v5.0.13
v5.0.12
v5.0.11
v5.0.11
v5.0.1
vv5.0.1
v3.0.0
Features
- New plugin: Function
- New plugin: Any
- Object.oneOf(): documentation
- Object.allOf(): documentation
Updates
Object.schema({ schema, returnErrors })
signature is nowObject.schema(schema, { returnErrors })
(old syntax is still accepted)
Breaking Changes
- All tests (and .custom()) must return either a boolean or a valid object { isValid, error }.
This allow returning custom error and argument to change the error message and be more strict about what is a succesful test.
If yourcustom()
call is returning something else (string, number ...) an error will be thrown.
v2.1.0
v2.0.1
- String: add noEmpty()
v2.0.0
- Add Internet plugin to default payload
- Number: add in()
- Number: add not()
- Number: add cast()