Skip to content

Releases: jantinnerezo/livewire-alert

v4.0.5

21 Apr 10:55
Compare
Choose a tag to compare
  • Added html function
LivewireAlert::title('New html function!')
 ->html("<p><strong>You should try it out!</strong></p>")
 ->show();

Full Changelog: v4.0.4...4.0.5

v4.0.4

20 Mar 10:41
c1f3477
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.0.3...v4.0.4

v4.0.3

07 Mar 14:03
d087c27
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.2...v4.0.3

v4.0.2

04 Mar 07:38
Compare
Choose a tag to compare
  • Fixed eval option typo

Full Changelog: v4.0.1...v4.0.2

v4.0.1

04 Mar 04:13
Compare
Choose a tag to compare

Evaluate SweeAlert2 callback options.

Full Changelog: v4.0.0...v4.0.1

v4.0.0

04 Mar 03:31
e50e946
Compare
Choose a tag to compare

v4.0.0 Release

Overview

After the successful support for Livewire 3 in v3.0.3, I am excited to unveil Livewire Alert v4.0.0—a major refactor of the package! This release introduces a modern, fluent API, enhanced flexibility, and broader Laravel compatibility (10.x to 12.x). Designed to seamlessly integrate with Livewire 3 and SweetAlert2, v4.0.0 brings a fresh approach to user-friendly alerts in your Laravel Livewire projects.

What's added?

  • Fluent Facade Interface: Replaced the v3 trait-based $this->alert() with a chainable LivewireAlert Facade (e.g., LivewireAlert::title('Success')->success()->show()).
  • Dependency Injection: Inject LivewireAlert into Livewire methods for contextual alert handling (e.g., public function save(LivewireAlert $alert)).
  • Button customization methods: withConfirmButton(), withCancelButton(), withDenyButton() with optional text and event handling via onConfirm(), onDeny(), onDismiss() and more.
  • Confirmation Dialog Shortcut: Added asConfirm() to quickly set up a question-style alert with confirm and deny buttons.
  • Position method: Introduced position() with support for Position enum or string values (e.g., top-end, center).

This is just a highlight of the new features! Check out the README.md.

Whats's Changed?

  • Major refactoring: Refactored the codebase, moving away from the v3 LivewireAlert trait to a more modular, Facade-driven architecture.
  • Laravel Compatibility: Extended support to Laravel 10.x, 11.x, and 12.x, dropping older versions for modern PHP (8.1+).
  • Event Handling: Replaced v3’s onConfirmed, onDismissed, onDenied emit syntax with Fluent onConfirm(), onDeny(), and onDismiss() methods, passing data directly to component methods.
  • Configuration: Simplified setup with a single livewire-alert.php config file.

What’s Removed?

  • Required JavaScript Assets: Eliminated the need for bundled or package-specific JavaScript files from v3. Now, you only need to include SweetAlert2 (e.g., via CDN: <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>), or your preferred package manager, making the package lighter and more flexible.

Full Changelog: v3.0.3...v4.0.0

v3.0.3

26 Feb 13:45
7466b71
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.2...v3.0.3

v3.0.2

12 Mar 15:25
2428163
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.1...v3.0.2

v3.0.1 Release

14 Oct 14:41
Compare
Choose a tag to compare

Release Update: Livewire Alert Package v3.0.1

I recently released the Livewire Alert v3.0 to support the v3.0 version of Livewire. Upon review, many of you discovered an oversight in the release: the package dependencies were not correctly updated to reflect the compatibility with Livewire 3.0.

I apologize for any inconvenience this may have caused. To address this:

I've updated the dependencies to ensure compatibility with Livewire 3.0.
A new release with the corrected dependencies has been published. I recommend updating to this latest version to avoid any potential issues.

v3.0 Release

13 Oct 17:23
53a4c04
Compare
Choose a tag to compare

Official Support for Livewire 3 stable release

I'm excited to announce that this release introduces support for Livewire 3 stable release!

Installation

composer update jantinnerezo/livewire-alert

What's Changed

New Contributors

Full Changelog: https://github.com/jantinnerezo/livewire-alert/compare/2.2.7...v3.0@beta