Skip to content

Glin-Profanity v2.1.0

Choose a tag to compare

@thegdsks thegdsks released this 18 May 23:10

🚀 Release Notes: Glin-Profanity v2.1.0

We’re excited to roll out v2.1.0, a focused follow-up to our major v2.0.0 launch. This release brings refinements, UI enhancements, and improved configurability across the board — all while maintaining blazing-fast profanity detection.


✨ What’s New in v2.1.0

🔁 Auto Replace Profanity (New!)

  • Automatically replaces detected words with a user-defined string like ***, 🧼, or #@%!.
  • Controlled via the new autoReplace and replaceWith config options in both Filter and useProfanityChecker.

🎚 Minimum Severity Filtering

  • Introduced minSeverity option to allow filtering based on severity level.
  • Example: Only act on Fuzzy and above by setting minSeverity: SeverityLevel.Fuzzy.

🧠 Context Logging + Match Info

  • Internally logs detected words and shows improved match context.
  • Optional customActions callback allows hooking into logs from React UI or backend usage.

💡 Improved React Testing UI

  • All new UI for live testing in React:
    • Supports autoReplace, customWords, replaceWith selector
    • Real-time result viewer
    • Match log panel and severity display

🧼 Internal Enhancements

  • Fixed a few inconsistent auto-replace edge cases.
  • Better support for live configuration changes without remounting the hook.
  • Ensured processedText always respects replaceWith.

📌 Reminder

v2.0+ requires Node.js v14+
For v1.x users, please refer to the legacy docs or upgrade accordingly.


📥 Installation

npm install glin-profanity

or

yarn add glin-profanity

🛠 Minor Fixes & Cleanup

  • 🧪 Added test coverage for checkProfanityWithMinSeverity
  • 🐛 Fixed severity-level filter not updating under certain configs
  • 📄 Polished MDX documentation and added interactive badges
  • 🔍 Improved match detection for highly obfuscated inputs

✅ Summary

Feature Status
Auto Replace Support
Minimum Severity Filtering
Match Context Logging
React Demo Enhancements
Improved Config/Hook Structure

Thank you for using Glin-Profanity 🙌
Your feedback helps shape the future of safe and respectful content tools.
Explore the full project on GitHub →

What's Changed

  • v2.1.0 – New Features, Fixes & Docs Update by @thegdsks in #51

Full Changelog: v2.0.0...v2.1.0