Glin-Profanity v2.1.0
🚀 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
autoReplaceandreplaceWithconfig options in bothFilteranduseProfanityChecker.
🎚 Minimum Severity Filtering
- Introduced
minSeverityoption to allow filtering based on severity level. - Example: Only act on
Fuzzyand above by settingminSeverity: SeverityLevel.Fuzzy.
🧠 Context Logging + Match Info
- Internally logs detected words and shows improved match context.
- Optional
customActionscallback 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,replaceWithselector - Real-time result viewer
- Match log panel and severity display
- Supports
🧼 Internal Enhancements
- Fixed a few inconsistent auto-replace edge cases.
- Better support for live configuration changes without remounting the hook.
- Ensured
processedTextalways respectsreplaceWith.
📌 Reminder
v2.0+ requires Node.js v14+
For v1.x users, please refer to the legacy docs or upgrade accordingly.
📥 Installation
npm install glin-profanityor
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
Full Changelog: v2.0.0...v2.1.0