Skip to content

Releases: jo3-l/obscenity

v0.4.0

02 Aug 22:50
v0.4.0
2242235
Compare
Choose a tag to compare

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

17 Jul 06:24
v0.3.1
564b7d0
Compare
Choose a tag to compare

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

17 Jul 03:50
v0.3.0
bc6c388
Compare
Choose a tag to compare

Code Refactoring

BREAKING CHANGES

  • The library no longer exports a version constant.

v0.2.2

17 Jul 03:42
v0.2.2
58c622e
Compare
Choose a tag to compare

Bug Fixes

  • english-preset: whitelist 'kung-fu' (d60b4f4), closes #67

Features

  • english-preset: add more blacklisted terms (#50) (4653de5)

v0.2.1

03 Mar 03:37
v0.2.1
824b4a0
Compare
Choose a tag to compare

Features

  • english-preset: add more blacklisted terms (#50) (c189595)

v0.2.0

05 Jan 07:43
v0.2.0
3c58e14
Compare
Choose a tag to compare

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

  • english-preset: blacklist 'shit' by default (b0d90aa), closes #47

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.

v0.1.4

07 Jun 01:30
224aa96
Compare
Choose a tag to compare

Bug Fixes

  • matchers: gracefully handle empty patterns (#31) (79cfa63)

v0.1.1

27 Aug 22:19
710469c
Compare
Choose a tag to compare
chore(release): 0.1.1

v0.1.0

27 Aug 22:13
ef147eb
Compare
Choose a tag to compare

Initial release.