Skip to content

v2.0.1 - Jul 21, 2025

Choose a tag to compare

@DanielSnor DanielSnor released this 21 Jul 20:25
· 99 commits to main since this release
261f530

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

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

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