From e2f3f72734bed4c4bc1f751b82aa37b71e5a1564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=CC=88nther=20Debrauwer?= Date: Thu, 26 Oct 2023 14:30:28 +0200 Subject: [PATCH] Document 0.4.0 release --- CHANGELOG.md | 4 ++++ README.md | 2 +- UPGRADING.md | 5 +++++ package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 UPGRADING.md diff --git a/CHANGELOG.md b/CHANGELOG.md index a56166e..e657571 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 6882332..5a7825c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The `livewire-sortable` package uses Shopify's sortable package. We noticed some ### CDN ```html - + ``` > If you use Livewire v2, you need to use v0.2. diff --git a/UPGRADING.md b/UPGRADING.md new file mode 100644 index 0000000..51aa873 --- /dev/null +++ b/UPGRADING.md @@ -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. diff --git a/package-lock.json b/package-lock.json index 41f85ec..e3316f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nextapps-be/livewire-sortablejs", - "version": "0.3.6", + "version": "0.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@nextapps-be/livewire-sortablejs", - "version": "0.3.6", + "version": "0.4.0", "license": "MIT", "dependencies": { "sortablejs": "^1.14.0" diff --git a/package.json b/package.json index 83d4f85..36b57e1 100644 --- a/package.json +++ b/package.json @@ -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",