All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- 37ed4d7 [Minor] Add draft as an export from passable (#204) (ealush)
- aff8c86 [Minor] Create a Passable singleton | future hook support (#213) (ealush)
- c0a9aec [MINOR] Add return value for test. (#197) (Evyatar Alush)
- 7ec4daf Use anyone/any instead of any (#198) (Evyatar Alush)
- d0e88e8 [MINOR] Allow Failing With Rejection Message On Async Tests (Micha Sherman)
- [PATCH] Lookup Proxy on global namespace
- [Docs] Improved Enforce documentation
- [Patch] Use n4s npm package
- [Minor] Add isEven rule.
- [Minor] Add isOdd rule.
- [Patch] Make result callback functions non-enumerable
- [Patch] Add type definitions for cancel callback.
- [Minor] Added an option to directly import
test
from passable; - [Minor]
any
utility for assertions withOR
||
relationships.
- [Major] Lowercased library name when imported on global object.
- [Major] Renamed
validationErrors
andvalidationWarnings
output properties toerrors
andwarnings
. - [Patch] Guarantee that
.done()
callbacks only run once.
- [Minor]
.after()
callback that can run after a specific field finished execution. - [Minor] New size rules (
lessThan
,greaterThan
,lessThanOrEquals
,greaterThanOrEquals
,numberEquals
,numberNotEquals
). - [Minor] New size rules (
longerThan
,shorterThan
,longerThanOrEquals
,shorterThanOrEquals
,lengthEquals
,lengthNotEquals
). - [Minor] New content rules (
equals
,notEquals
). - [Minor] Support returning promise from test callback for async tests.
- [Minor] Add cancel callback.
- [Major] Removed output properties:
hasValidationErrors
,hasValidationWarnings
. - [Major] Removed compound rules (
anyOf
,allOf
,noneOf
). - [Major] Removed general size rules (
smallerThan
,largerThan
,smallerThanOrEquals
,largerThanOrEquals
,sizeEquals
,sizeNotEquals
).
- [Patch] Reduce bundle size
- [Patch] Fix documentation typo (#107)
- [Patch] Add type hints to passable (#106 + #107)
- [Minor] access intermediate validation result via draft (#103)
- [Patch] Publish next tag separately from feature branch (#104)
- [Minor] add hasErrors and hasWarnings functions (#105)
- [Minor] mark field as async
- [PATCH] run done callback in sync mode
- [Minor] Async test support + done callback chaining (#100)
- [Patch] Update github configuration
- [Major] Extract Enforce as standalone API
- [Patch] Create
Specific
Object - [Patch] Auto deploy next branch
- [Minor] Add isNumeric check
- [Minor] Initialize proxy with all keys. Add support for proxy-polyfill
- [Minor] Negative rules support
- [Patch] Use proxy polyfill when proxy is not supported
- [Minor] Add isTruthy and isFalsy enforce rules
- [Major]
specific
field filter: Introduceonly
andnot
- [Major] Refactor rules to follow convention (Size compares against number only)
- [Major] Pass - move to be the last argument
- [Patch] Rename
pass
totest
- [Major] Move specific to last argument, make optional
- [Major] Make validate leaner by removing
message
arg
- [Patch] Type-checking errors ignores
- [Minor] Validate function
- [PATCH] Commonjs require support for enforce
- [Minor] Add default expect=true to rules
- [Minor] export enforce as a standalone module
- [Minor] Allow chaining rules directly under enforce