Skip to content

Commit 9cc5240

Browse files
committed
v2.0.2
1 parent cee6710 commit 9cc5240

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [2.1.0] - 2021-05-11
7+
8+
### Added
9+
10+
- New `config` options:
11+
- `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.
12+
- `dryRun` boolean: if set, sanitization will not take place. Useful when combined with `onSanitize` to report on the keys which _would have_ been sanitized.
13+
- TypeScript types
14+
- Official support for node v16.
15+
616
## [2.0.2] - 2021-01-07
717

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

7282
Initial Release.
7383

84+
[2.1.0]: https://github.com/fiznool/express-mongo-sanitize/compare/v2.0.2...v2.1.0
7485
[2.0.2]: https://github.com/fiznool/express-mongo-sanitize/compare/v2.0.1...v2.0.2
7586
[2.0.1]: https://github.com/fiznool/express-mongo-sanitize/compare/v2.0.0...v2.0.1
7687
[2.0.0]: https://github.com/fiznool/express-mongo-sanitize/compare/v1.3.2...v2.0.0

0 commit comments

Comments
 (0)