Releases: jo3-l/obscenity
v0.4.1
v0.4.0
Bug Fixes
- regexp-matcher: advance index correctly in whitelist matcher (ebf95ad), closes #49
- regexp-matcher: correctly remap to original indices in all cases (3a49579), closes #71
- regexp-matcher: reject empty whitelist terms (9a46113)
BREAKING CHANGES
- regexp-matcher: Passing an empty whitelisted term to the RegExpMatcher will result in a runtime error.
This was unsupported previously and likely did not work correctly. Make it a real error.
v0.3.1
v0.3.1 removes a file containing sensitive credentials accidentally published in v0.3.0; see below for details. The release contains no changes in functionality.
As part of v0.3.0, I inadvertently published a file .envrc
containing a personal GitHub token with write access to this repository used for release automation to npm. I immediately revoked the token on discovering its publication, at which point it had been public for ~2h. After a manual review (given the limited scope of the token), I am confident the leaked token was not been used maliciously in the window of time it was public and that my account is not compromised.
v0.3.0
v0.2.2
v0.2.1
v0.2.0
Bug Fixes
- english-preset: don't include skip-non-alphabetic transformer (620c721), closes #23 #46
- english-preset: remove extraneous patterns for n-word (e135be5), closes #48
- pkg: ensure types resolve in ESM (718da8a), closes #44
Code Refactoring
- matchers: remove NfaMatcher (b69c21d)
Features
BREAKING CHANGES
- english-preset: Using the default English preset, Obscenity will no longer strip non-alphabetic characters from the input text before matching.
This addresses a class of egregious false negatives in previous versions (see #23), but introduces a regression where cases such as 'f u c k' (with the space) will no longer be detected by default. We expect to provide a more comprehensive fix in the next minor release.
If desired, it remains possible to revert to the previous behavior by providing a custom set of transformers to the matcher.
- matchers: The NfaMatcher class has been removed. Use the RegExpMatcher instead.