Skip to content

v2.0.0

Compare
Choose a tag to compare
@deemonic deemonic released this 27 Feb 13:00
· 3 commits to main since this release
a4ad887

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:

  1. Remove any language-specific configuration
  2. Update to the new configuration structure
  3. Use the new configure() method for custom lists

Requirements

  • PHP 8.0 or higher
  • Laravel 8.0 or higher