From 4b94d756e1e00efa8f0d66fe8d9be07a4f0b66fa Mon Sep 17 00:00:00 2001 From: Kar Rui Lau Date: Mon, 22 Jun 2020 10:56:36 +0800 Subject: [PATCH 1/2] fix: update the way SortableJS is imported into the library This is due to a breaking change in SortableJS: https://github.com/SortableJS/Sortable/issues/1728, which causes angular-legacy-sortable to imports SortableJS incorrectly after versions 1.10.0, which leads to it not finding Sortablejs.create. --- angular-legacy-sortable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/angular-legacy-sortable.js b/angular-legacy-sortable.js index ba8f868..22c4425 100644 --- a/angular-legacy-sortable.js +++ b/angular-legacy-sortable.js @@ -20,6 +20,8 @@ })(function (angular, Sortable) { 'use strict'; + // Use default import if available + Sortable = Sortable.default || Sortable; /** * @typedef {Object} ngSortEvent From 5be48c036a059ccf5a1da414dd242593026a3dd2 Mon Sep 17 00:00:00 2001 From: Kar Rui Lau Date: Mon, 22 Jun 2020 10:58:21 +0800 Subject: [PATCH 2/2] chore: bump package.json to 1.0.0 Big bump since this fixes a breaking change --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cb35899..6bd15e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-legacy-sortablejs-maintained", - "version": "0.6.2", + "version": "1.0.0", "description": "Angular (legacy) directive for SortableJS.", "main": "angular-legacy-sortable.js", "scripts": { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy