Releases: Blaspsoft/blasp
Releases · Blaspsoft/blasp
v2.1.0
v2.1.0 - Simplified Service Configuration
What's Changed
- Simplified the
configure
method inBlaspService
class by removing unnecessary null parameter - Improved code clarity and reduced redundancy in service instantiation
Technical Details
Modified src/BlaspService.php
:
- Removed redundant null parameter from
BlaspService
configuration - Streamlined service instantiation process
Upgrading
This update is fully backwards compatible with v2.0.0. No changes are required in existing implementations.
v2.0.0
Version 2.0.0
Major Changes
- 🚀 Added caching system for improved performance
- ⚡ Added
configure()
method for custom profanity and false positive lists - 🔧 Removed incomplete language support for better maintainability
- ⚙️ Updated configuration structure and options
New Features
Caching System
- Added automatic caching of profanity expressions
- Added
php artisan blasp:clear
command to clear cache - Improved performance for repeated checks
Custom Lists Configuration
You can now specify custom profanity and false positive lists which override the default config:
$blasp = Blasp::configure(
profanities: $your_custom_list ,
falsePositives: $your_custom_false_positives
)->check($text);
Breaking Changes
- Removed language support functionality
- Updated configuration structure
- Changed method signatures for configuration
Configuration Updates
The configuration file now supports:
- Custom profanity lists
- Custom false positive lists
- Cached expressions for better performance
Migration Guide
If you're upgrading from v1.x, you'll need to:
- Remove any language-specific configuration
- Update to the new configuration structure
- Use the new
configure()
method for custom lists
Requirements
- PHP 8.0 or higher
- Laravel 8.0 or higher
v1.2.2
Description
This patch release focuses on resolving bugs and improving regex handling for better profanity detection accuracy.
Fixes
- Resolved an issue where certain profanities (e.g.,
a$$
) were not correctly masked due to special character handling in regex. - Improved boundary checks to ensure proper detection of embedded profanities (e.g.,
afuckb
). - Fixed false negatives and positives caused by specific edge cases in regex pattern matching.
Notes
- All existing tests have been validated and updated to ensure compatibility and correctness.
- This update is fully backward-compatible with
v1.2.x
.