Skip to content

Commit

Permalink
Document 0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
gdebrauwer committed Oct 26, 2023
1 parent 8a3b224 commit e2f3f72
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## 0.4.0 - 2023-10-26

- 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)

## 0.3.6 - 2023-10-26

- Prevent calling livewire component from both the source and target group after item is dragged (https://github.com/nextapps-be/livewire-sortablejs/pull/40)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The `livewire-sortable` package uses Shopify's sortable package. We noticed some
### CDN

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

> If you use Livewire v2, you need to use v0.2.
Expand Down
5 changes: 5 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Upgrading

## From v0.3 to v0.4

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.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextapps-be/livewire-sortablejs",
"version": "0.3.6",
"version": "0.4.0",
"description": "Laravel Livewire plugin to use Sortable.js",
"main": "dist/livewire-sortable.js",
"author": "Günther Debrauwer",
Expand Down

0 comments on commit e2f3f72

Please sign in to comment.