This changelog follows the keep a changelog format to maintain a human readable changelog.
This is the final release of the library, if you lack some functionality please use class-transformer and class-validator instead.
- sanitization won't skip properties with empty string values anymore (
''
)
1.0.0 - 2020-07-31 [BREAKING CHANGE]
- passing
{ each: true }
into decorators don't crashes the library anymore - fixed security warning due to out-of-date dev dependencies
- added support for
@SanitizeNested()
operator - added unit-test for the whole project
- inheritance now works as expected, base properties will be sanitized on the descendant class
- renamed
SanitizerInterface
toCustomSanitizer
[BREAKING] - removed deprecated entry-point for the project [BREAKING]
- updated validator.js to latest
- improved metadata lookup speed via storing them in
Map
instead of an array - updated project tooling (Typescript, Eslint, Prettier, Jest, GH Actions)
- greatly improved the readability of the code
- restructured project to match the structure of our other projects
0.0.5 - 2017-03-06
- published version contains all the files instead of just
package.json
andREADME.md
files
0.0.4 - 2017-03-03
- when the correct type is passed to a decorator it will be returned immediately instead of passing it to validator.js and breaking it
0.0.3 - 2017-01-15
- added
index.ts
entrypoint to allow importing from package-root - fixed inheritance support, decorators are now respected from the base-class
Initial version.