All notable changes to this project from 3.x.x onward will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
3.2.3 - 2019-09-12
- Downgrade @google-cloud/dlp to avoid memory leak in recent versions
3.2.2 - 2019-08-12
- Fix bug in Google DLP Redactor with tokens overlapping and repeating
- Update dependencies to get security fixes
3.2.1 - 2019-06-20
- Tweak the built-in US SSN regex to work better on large input by removing the optional delimters (the digits regex will already cover this situation)
3.2.0 - 2019-05-21
- Add enhancement to automatically split Google DLP input that is too large into smaller batches. This can be disabled with the
disableAutoBatchWhenContentSizeExceedsLimit
option.
3.1.0 - 2019-05-04
- BREAKING: rename
replacementValue
param of built-in redaction config toreplaceWith
for consistency
- fix parameter typo in docs (
enable
->enabled
) - fix
TypeError
when attempting to disable built-in redactors
3.0.1 - 2019-04-29
- Fix
Cannot find module './well-known-names.json'
error by making sure the file gets properly packaged
3.0.0 - 2019-04-21
- This version is an almost complete rewrite from prior versions and breaks the prior API contract. In summary the changes are:
- Library is now written in TypeScript
- Introduces seperate API for sync and async redaction via seperate
SyncRedactor
andAsyncRedactor
classes and seperate.redact
and.redactAsync
methods. - Important Breaking Change: The
redact
andredactSync
methods now always expect astring
. Passing anything else causes undefined behaviour and may cause an exception. Prior versions of the library used to simply return the original value "untouched" if it wasn't astring
. - Google Cloud DLP redaction is now a seperate redaction class that has to be explicitly imported and instantiated (
new GoogleDLPRedactor()
) in order to use it. - Google Cloud DLP redaction does not have an implicit, hard-coded 5000ms timeout anymore. If you want to set a timeout for DLP calls you have to implement it yourself. In case you're using
bluebird
as promise library consider using.timeout
.