Skip to content

v2.2.1

Choose a tag to compare

@hdaklue hdaklue released this 30 Aug 14:46
· 5 commits to master since this release

feat: Add comprehensive file extension preservation and strategy validation

  • ✨ File extension preservation across all sanitization strategies
  • 🛡️ Automatic validation of custom sanitization strategies
  • 🔧 Enhanced SnakeStrategy and TimestampStrategy with extension support
  • 📁 New ExtensionHelper utility for robust extension handling
  • ⚡ Improved error handling with InvalidSanitizationStrategyException
  • 🧪 Comprehensive test coverage with 63 tests covering all functionality
  • 📚 Updated documentation with extension preservation examples and validation

FIX: Sanitization strategies now preserve file extensions by default.
TimestampStrategy output format changed from 'filename.ext_timestamp' to 'filename_timestamp.ext'
Full Changelog: v2.2.0...v2.2.1