v2.0.1 - Jul 21, 2025
Version 2.0.1 is a focused maintenance release that addresses three critical issues identified in version 2.0.0, while maintaining complete backwards compatibility. The most significant fixes were:
- Fixed contentHack when URL_DOMAIN_FIXES was not configured
- Fixed ellipsis handling in brackets and without brackets in characterMap
- Replaced ampersands with turned ampersand character
-
Key Bug Fixes
1.1 ContentHack URL_DOMAIN_FIXES Fix
Problem: The contentHack function had issues when URL_DOMAIN_FIXES was not configured. Solution: Added proper error handling and early-return logic for undefined domain fix patterns. Impact: Prevents script failures when domain fixing is not configured
1.2 Ellipsis Pattern Enhancement
Problem: Inconsistent handling of ellipsis patterns in characterMap. Solution: Split ellipsis processing into two distinct patterns:
• Bracketed ellipsis:…|…|…...→…
• Unbracketed ellipsis:…|…|…...→…Impact: More reliable detection and conversion of various ellipsis formats
1.3 Ampersand Character Update
Problem: Latin small letter OU (ꝸ) isn't supported by some Mastodon clients. Solution: Replaced with turned ampersand (⅋) for better visual distinction. Impact: Improved readability and better Unicode compatibility -
Code Optimisation
2.1 Performance Enhancements
• Streamlined character map processing with cleaner pattern separation
• Reduced regex complexity in ellipsis normalisation
• Minor code cleanup reducing overall file size by 66 characters
2.2 Maintainability Improvements
• Better error handling in contentHack function
• Cleaner separation of ellipsis patterns
• Improved code organisation without functional changes -
Release Summary
Version 2.0.1 represents a polish release that addresses specific technical issues identified in v2.0.0. The three main fixes - contentHack error handling, ellipsis pattern processing, and ampersand character replacement - significantly improve the reliability and visual output quality of the webhook filter without introducing any functional changes or breaking modifications.