Releases: codebyray/livewire-media-uploader
Releases · codebyray/livewire-media-uploader
v0.3.1
Added
- Compatibility with spatie/laravel-medialibrary ^11 (works on Laravel 12).
Changed
- Relaxed dependency:
spatie/laravel-medialibrary→^10.12 || ^11.0.
Impact/Migration
- No breaking changes. Existing users on v10 remain supported.
- On Laravel 12, update with:
composer require codebyray/livewire-media-uploader:^0.3 -W
Thanks
- Community feedback on Laravel 12 support 🙌
v0.3.0
What's Changed
- feat(uploader): deferred uploads on create + grouped
listAllview by @codebyray in #3
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Add bootstrap version by @codebyray in #2
New Contributors
- @codebyray made their first contribution in #2
Full Changelog: v0.1.0...v0.2.0
v0.1.0
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
Versioning policy: Until
1.0.0, minor bumps (e.g.,0.1 → 0.2) may include breaking changes. Patch releases in the same minor (e.g.,0.1.x) are bug fixes only.
Unreleased
Added
- Docs: environment variable examples for presets (
MEDIA_TYPES_*,MEDIA_MIMES_*,MEDIA_MAXKB_*). - Tests: deterministic duplicate-detection test helper (
TestableMediaUploader) and event-based assertions. - Troubleshooting guidance for Testbench/SQLite and Livewire temp upload disk.
Changed
- Test suite favors Pest; PHPUnit example retained only if desired by consumers.
- Assertions updated to reflect Spatie filename sanitization (spaces → dashes on rename).
Fixed
- Intermittent test failures: ensured
mediatable migration loads under Testbench and configured fake disks (public,local,tmp-for-tests).
v0.1.0 — 2025-08-30
Added
- Livewire v3 media uploader component.
- Tailwind-only publishable Blade view with Alpine-powered image preview overlay and delete confirmation modal.
- Spatie Laravel Media Library integration:
- Attach/list/delete media within a configurable collection (e.g.,
images,avatars,photos). - Per-file metadata (caption, description, order).
- Optional thumbnail usage (
getUrl('thumb')) with graceful fallback.
- Attach/list/delete media within a configurable collection (e.g.,
- Drag & drop uploads with progress indicator.
- Validation presets via config (types, mimes, max size) with collection→preset mapping and optional auto-
acceptattribute. - Name-conflict strategies:
rename,replace,skip,allow. - Exact duplicate detection (SHA-256) with
skipExactDuplicates. - Flexible model resolution:
:for="$model"(saved instance),model="user" :id="1"(short name + id),- FQCN, morph map alias, or dotted paths with custom namespaces and local aliases.
- Events for UX integrations:
media-uploaded,media-deleted(withid),media-meta-updated.
- Publishable config (
media-uploader.php) and view (livewire/media-uploader.blade.php). - Test suite (Pest + Testbench) with in-memory SQLite and fake disks.
Deprecations Policy
- Any deprecations will be noted here and kept for at least one subsequent minor (e.g., deprecate in
0.3.x, remove in0.4.0). After1.0.0, deprecations will be removed in the next major release.
Upgrade Notes
- To get thumbnail previews, add a
thumbconversion on your model or adjust the view to your conversion names. - For single-file collections (e.g.,
avatars), declare the collection in your model and call->singleFile(); the component’smultiple=falseonly affects the input, not backend replacement.