Skip to content

Bump blaspsoft/blasp from 3.1.9 to 4.0.1 - #573

Open
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/composer/blaspsoft/blasp-4.0.1
Open

Bump blaspsoft/blasp from 3.1.9 to 4.0.1#573
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/composer/blaspsoft/blasp-4.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 8, 2026

Copy link
Copy Markdown
Contributor

Bumps blaspsoft/blasp from 3.1.9 to 4.0.1.

Release notes

Sourced from blaspsoft/blasp's releases.

v4.0.1

Bug Fixes

  • Invisible Unicode bypass: Strip \p{Cf} format characters (zero-width spaces, invisible separators) from input before processing, so profanity like f⁣uck (with U+2063) is correctly detected
  • Asterisk censoring bypass: Add * as a universal letter substitution so censored profanity like f*g, s**t, f**k is detected
  • Internal masking: Use \x01 instead of * for internal masking during detection loop to prevent re-matching masked text
  • Null safety: Guard against preg_replace returning null on malformed UTF-8 input

v4.0.0

Blasp v4.0.0

A ground-up rewrite with a driver-based architecture, severity scoring, and deep Laravel integration.

New Features

  • Driver-based architectureregex (obfuscation/substitution detection), pattern (fast exact matching), phonetic (sound-alike evasion via metaphone + Levenshtein), and pipeline (chain multiple drivers together). Extend with custom drivers.
  • Severity scoring — Profanities categorised as mild/moderate/high/extreme with per-word weights and a 0–100 composite score. Filter by minimum severity threshold.
  • Multi-language support — English, Spanish, German, French with language-specific normalizers and severity maps. Check one, many, or all at once via fluent API.
  • Masking strategies — Character mask (*, #), grawlix (!@#$%), or a custom callback.
  • Eloquent integrationBlaspable trait auto-sanitizes or rejects profanity on model save, with withoutBlaspChecking() for bypassing.
  • MiddlewareCheckProfanity middleware to reject or sanitize profane request fields with configurable severity and field filtering.
  • Validation ruleblasp_check rule with language support.
  • Blade directive@clean($text) for output sanitization.
  • Str/Stringable macrosStr::isProfane(), Str::cleanProfanity(), and Stringable equivalents.
  • Result caching — Configurable cache driver, TTL, and key eviction.
  • EventsProfanityDetected, ContentBlocked, ModelProfanityDetected.
  • Testing utilitiesBlasp::fake() for test doubles with assertions.

Breaking Changes

  • Namespace flattenedBlaspsoft\Blasp\Laravel\ merged into Blaspsoft\Blasp\. Update any direct class references.
  • Service provider renamedServiceProviderBlaspServiceProvider (auto-discovery handles this).
  • Config file renamedconfig/config.phpconfig/blasp.php. Re-publish with php artisan vendor:publish --tag="blasp-config".
  • API changescheck() now returns a Result object with isOffensive(), clean(), score(), severity(), count(), words(), uniqueWords(). Previous methods like hasProfanity(), getCleanString(), getProfanitiesCount() are removed.

Compatibility

  • PHP 8.2+
  • Laravel 8.0 – 13.x

Full Changelog

Blaspsoft/blasp@v3.1.9...v4.0.0

Commits
  • e0a2ea5 Merge pull request #49 from Blaspsoft/fix/unicode-and-wildcard-bypasses
  • ea1de49 fix: guard against preg_replace returning null on malformed UTF-8
  • bcc0d89 fix: move invisible char stripping to Analyzer to prevent pipeline position d...
  • 32d6399 fix: detect profanity with invisible unicode chars and asterisk censoring
  • a6758c9 Merge pull request #48 from Blaspsoft/feature/v4-refactor
  • d94740b fix: harden pipeline self-reference guard with case normalization and type va...
  • a03f977 fix: address remaining CodeRabbit review findings on PR #48
  • 2728501 fix: address CodeRabbit review findings on PR #48
  • 4e25fdf merge: resolve composer.json conflict with main (Laravel 13 compat)
  • f24d341 Merge pull request #46 from laravel-shift/l13-compatibility
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [blaspsoft/blasp](https://github.com/Blaspsoft/blasp) from 3.1.9 to 4.0.1.
- [Release notes](https://github.com/Blaspsoft/blasp/releases)
- [Changelog](https://github.com/Blaspsoft/blasp/blob/main/CHANGELOG.md)
- [Commits](Blaspsoft/blasp@v3.1.9...v4.0.1)

---
updated-dependencies:
- dependency-name: blaspsoft/blasp
  dependency-version: 4.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jun 8, 2026
@crimsonstrife

Copy link
Copy Markdown
Owner

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@deepsource-io

deepsource-io Bot commented Jun 8, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 1f2bcc4...2c4c6fa on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
PHP Jun 8, 2026 12:53a.m. Review ↗
JavaScript Jun 8, 2026 12:53a.m. Review ↗
Python Jun 8, 2026 12:53a.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant