Added
- feat:
null as a rule to validate that a value is null, take note this can be used in tandem with conditional groups, for example:
const v = new Validator({a: '(string_ne)(null)'});
v.check({a: null}); /* true */
v.check({a: false}); /* false */
v.check({a: "Hello world"}); /* true */
- feat:
blob as a rule to validate that a value is an instance of Blob
- feat:
file as a rule to validate that a value is an instance of File
- deps: typescript-eslint (dev dep)
Improved
- feat:
less_than and lt now support Blob and File to verify their size is below a certain number of bytes
- feat:
less_than_or_equal and lte now support Blob and File to verify their size is below or equal to a certain number of bytes
- feat:
greater_than and lt now support Blob and File to verify their size is above a certain number of bytes
- feat:
greater_than_or_equal and lte now support Blob and File to verify their size is above or equal to a certain number of bytes
- feat:
between now support Blob and File to verify their size is between a minimum and maximum number of bytes
- feat:
between_inc now support Blob and File to verify their size is between or inclusive to a minimum and maximum number of bytes
- deps: Upgrade @valkyriestudios/utils to 12.24.0
- deps: Upgrade eslint to 9.11.1
- deps: Upgrade nyc to 17.1.0
- deps: Upgrade typescript to 5.6.2
- deps: Upgrade @types/node to 20.16.10
Removed
- deps: @typescript-eslint/eslint-plugin
- deps: @typescript-eslint/parser