github lara-zeus/bolt v4.0.17

latest releases: v5.1.2, v5.1.1, v5.1.0...
one hour ago

What's Changed

v4.1.0 (or v4.0.17)

🔒 Security

  • Prevent XSS in form responses, notes, and HTML content (#457):
    • Plain-text field responses (FieldsContract::getResponse(), Textarea, collection-backed fields) and response notes are now HTML-escaped before rendering.
    • Intentional HTML content (RichEditor responses, Paragraph descriptions, form details, and confirmation-message) is now sanitized via Bolt::sanitizeHtml() using voku/anti-xss.
    • Added the zeus-bolt.html_sanitizer config option (implementing LaraZeus\Bolt\Contracts\HtmlSanitizer) to allow swapping the default sanitizer.
  • Restrict file uploads by file type, MIME type, and size (#458):
    • FileUpload fields now enforce both server-side MIME type and extension validation, blocking executable and active markup files (e.g. php, sh, svg, html, js).
    • Added per-field Accepted File Types (image, video, audio, document) and Max File Size (KB/MB) options in the form builder.
    • Added zeus-bolt.uploadFileTypes and zeus-bolt.uploadMaxSize config options.
    • Restricted CategoryResource logo uploads with ->image().

✨ Features

  • Configure allowed form builder fields via coreFields (#419):
    • Added zeus-bolt.coreFields (default null) to explicitly whitelist which field classes appear in the form builder (sorted by $sort, with the first offered field used as the default).
    • Previously saved fields whose type is later removed from coreFields continue to display their proper label when editing forms.
    • Updated configuration and custom fields documentation.

🐛 Fixes & Maintenance

  • Queued response exports & dependency cleanup (#464):
    • Removed the unused pxlrbt/filament-excel dependency.
    • Fixed ResponseExporter for queued exports by caching the Form lookup once per exporter instance (withoutGlobalScopes()->with('fields')) and making getColumns() null-safe outside Livewire requests.
    • Stopped tracking composer.lock.

⚠️ Upgrade Notes

  • File Uploads: Existing FileUpload fields with no specific types selected now accept all extensions configured in zeus-bolt.uploadFileTypes. If your forms require additional extensions (e.g. heic, rar), add them to config/zeus-bolt.php.
  • Field Cache: After changing zeus-bolt.coreFields outside local, run php artisan cache:forget bolt.fields.

Full Changelog: v4.0.16...v4.0.17

Don't miss a new bolt release

NewReleases is sending notifications on new releases.