31 Commits (master)

Author SHA1 Message Date
Sven Slootweg e3574888c2 breaking: Treat returned nulls as valid replacement values 2 months ago
Sven Slootweg 2fca34933d Merge pull request 'change flatten to Array#flat (Node 10.x EOL)' (#3) from f0x-validatem/core:master into master
Reviewed-on: #3
1 year ago
f0x 68381f23cf change flatten to Array#flat (Node 10.x EOL) 1 year ago
f0x 950b35d9c3 only run extractFramesGecko when required 1 year ago
Sven Slootweg 1f43580bc5 Replace stacktrace splitting logic to resolve a REDoS vulnerability 2 years ago
Sven Slootweg 061123e1b4 Add testValue API 2 years ago
Sven Slootweg 1ca1fe1110 Revert "Ensure that validateOptions produces an object by default"
This reverts commit b1b22c0a63.
4 years ago
Sven Slootweg b1b22c0a63 Ensure that validateOptions produces an object by default 4 years ago
Sven Slootweg 2941aef6c8 Don't skip subsequent validators when an earlier validator changed the value from null to non-null 4 years ago
Sven Slootweg 679bd40563 Don't insert an isPlainObject rule in validateOptions; this is redundant and interferes with object-or-wrapped-literal usecases 4 years ago
Sven Slootweg a0231a7fc3 No longer expect a ValidationError to be an Error instance 4 years ago
Sven Slootweg d13a4a8235 Let users return Error objects from validators 4 years ago
Sven Slootweg 955fec8ab1 Add Gecko support and make failed stacktrace parsing more robust 4 years ago
Sven Slootweg 783f67a03e Add FIXME comment 4 years ago
Sven Slootweg fb82fb820a Actually detect endings in stack frame regex, and not a literal $ 4 years ago
Sven Slootweg 1a97d4ee09 Handle anonymous stack frames correctly 4 years ago
Sven Slootweg bae1f0e9fc Don't attempt to generate function description when the location of a stacktrace frame could not be determined 4 years ago
Sven Slootweg d610cad10b Add a global "no heuristics" flag for validator debugging 4 years ago
Sven Slootweg 2d26d92d17 Refactor colors, heuristically detect the source of a validation failure 4 years ago
Sven Slootweg 9a31868883 Improve error processing with syncpipe 4 years ago
Sven Slootweg eba89ed9c5 Improve subError rendering 4 years ago
Sven Slootweg be5fd46005 Add support for rest operator in arguments 4 years ago
Sven Slootweg b82a7d359d Support object syntax for validateArguments as well 4 years ago
Sven Slootweg 558b9ead9c Improve multi-level subError rendering (eg. nested 'either') 4 years ago
Sven Slootweg 27beee88f0 Omit '(root)' specifier entirely 4 years ago
Sven Slootweg 1cc19bff3e Also render subErrors as a tree for root-level errors 4 years ago
Sven Slootweg 8214fb3bc5 Improve error rendering, add support for subErrors 4 years ago
Sven Slootweg 50b49dc9a8 Add support for callIfNull 4 years ago
Sven Slootweg 8ed6ad0abe Add TODO markers for error aggregration 4 years ago
Sven Slootweg a1fd0b7adf Replace flatten implementation to reduce bundle size 4 years ago
Sven Slootweg aa644fa3f5 Rewrite to modular design 4 years ago