Skip to content

Commit e2f3f72

Browse files
committed
Document 0.4.0 release
1 parent 8a3b224 commit e2f3f72

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `livewire-sortablejs` will be documented in this file.
44

5+
## 0.4.0 - 2023-10-26
6+
7+
- Always call master element's livewire component when dragging items between groups (as group can be a nested livewire component) (https://github.com/nextapps-be/livewire-sortablejs/pull/44)
8+
59
## 0.3.6 - 2023-10-26
610

711
- Prevent calling livewire component from both the source and target group after item is dragged (https://github.com/nextapps-be/livewire-sortablejs/pull/40)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `livewire-sortable` package uses Shopify's sortable package. We noticed some
1919
### CDN
2020

2121
```html
22-
<script src="https://unpkg.com/@nextapps-be/livewire-sortablejs@0.3.6/dist/livewire-sortable.js"></script>
22+
<script src="https://unpkg.com/@nextapps-be/livewire-sortablejs@0.4.0/dist/livewire-sortable.js"></script>
2323
```
2424

2525
> If you use Livewire v2, you need to use v0.2.

UPGRADING.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Upgrading
2+
3+
## From v0.3 to v0.4
4+
5+
In v0.3, when your groups (= elements with the `wire:sortable-group.item-group` attribute) were in nested Livewire components while the element with the `wire:sortable-group` attribute was located in a parent Livewire component, then the update-method was called on the nested Livewire components after dragging an item. In v0.4, the package now calls the update-method on the parent Livewire component that contains the element with the `wire:sortable-group` attribute.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextapps-be/livewire-sortablejs",
3-
"version": "0.3.6",
3+
"version": "0.4.0",
44
"description": "Laravel Livewire plugin to use Sortable.js",
55
"main": "dist/livewire-sortable.js",
66
"author": "Günther Debrauwer",

0 commit comments

Comments
 (0)