Skip to content

Latest commit

 

History

History
43 lines (22 loc) · 2.37 KB

CHANGELOG.md

File metadata and controls

43 lines (22 loc) · 2.37 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.2.0 (2024-01-05)

⚠ 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.

Features

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

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

  • matchers: remove NfaMatcher (b69c21d)

0.1.4 (2023-06-06)

Bug Fixes

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

0.1.1, 0.1.2, 0.1.3

Versions skipped due to temporary issue with release workflow.

0.1.0 (2021-08-27)

Initial release.