Skip to content

Commit

Permalink
v2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fiznool committed May 11, 2021
1 parent cee6710 commit 9cc5240
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [2.1.0] - 2021-05-11

### Added

- New `config` options:
- `onSanitize` callback: this will be called after the request's value was sanitized, with two named parameters: the `key` that was sanitized, and the raw `req` object.
- `dryRun` boolean: if set, sanitization will not take place. Useful when combined with `onSanitize` to report on the keys which _would have_ been sanitized.
- TypeScript types
- Official support for node v16.

## [2.0.2] - 2021-01-07

### Fixed
Expand Down Expand Up @@ -71,6 +81,7 @@ Note that if you weren't previously expecting headers to be sanitized, this is c

Initial Release.

[2.1.0]: https://github.com/fiznool/express-mongo-sanitize/compare/v2.0.2...v2.1.0
[2.0.2]: https://github.com/fiznool/express-mongo-sanitize/compare/v2.0.1...v2.0.2
[2.0.1]: https://github.com/fiznool/express-mongo-sanitize/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/fiznool/express-mongo-sanitize/compare/v1.3.2...v2.0.0
Expand Down

0 comments on commit 9cc5240

Please sign in to comment.