- Add possibility to create empty subsets via
.only()
and.except()
(commit)
- Breaking: Remove
Promise
shim. You need to provide that now (commit). - Breaking: Renamed readable- and writable-methods (commit).
- Breaking: Change error message casing of default validators from camelCased to dash-cased (commit).
- Breaking: Rename
validation.failedFields
tovalidation.errors
(commit). - Breaking: Do not reject promises when the validation has failed (commit).
- Breaking: Rename
schema.keys
toschema.fields
(commit). - Add
minLength
,maxLength
,hasLength
validators (pr). - Add
matches
validator (commit). - Add
Schema.prototype.strip()
method for removing extranous properties (commit). - The synchronous validation result can now be retrieved synchronously (commit).