diff --git a/angular/package.json b/angular/package.json index ab9cb60b..073449b1 100644 --- a/angular/package.json +++ b/angular/package.json @@ -18,7 +18,7 @@ "@angular/platform-browser": "^14", "@angular/platform-browser-dynamic": "^14", "@angular/router": "^14", - "gridstack": "^12.2.0", + "gridstack": "^12.2.1", "rxjs": "~7.5.0", "tslib": "^2.3.0", "zone.js": "~0.11.4" diff --git a/angular/projects/lib/src/lib/base-widget.ts b/angular/projects/lib/src/lib/base-widget.ts index 310fb49d..7847abf5 100644 --- a/angular/projects/lib/src/lib/base-widget.ts +++ b/angular/projects/lib/src/lib/base-widget.ts @@ -1,5 +1,5 @@ /** - * gridstack-item.component.ts 12.2.0 + * gridstack-item.component.ts 12.2.1 * Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license */ diff --git a/angular/projects/lib/src/lib/gridstack-item.component.ts b/angular/projects/lib/src/lib/gridstack-item.component.ts index 0e87b57a..39278bb6 100644 --- a/angular/projects/lib/src/lib/gridstack-item.component.ts +++ b/angular/projects/lib/src/lib/gridstack-item.component.ts @@ -1,5 +1,5 @@ /** - * gridstack-item.component.ts 12.2.0 + * gridstack-item.component.ts 12.2.1 * Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license */ diff --git a/angular/projects/lib/src/lib/gridstack.component.ts b/angular/projects/lib/src/lib/gridstack.component.ts index 798ce959..9be73d2e 100644 --- a/angular/projects/lib/src/lib/gridstack.component.ts +++ b/angular/projects/lib/src/lib/gridstack.component.ts @@ -1,5 +1,5 @@ /** - * gridstack.component.ts 12.2.0 + * gridstack.component.ts 12.2.1 * Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license */ diff --git a/angular/projects/lib/src/lib/gridstack.module.ts b/angular/projects/lib/src/lib/gridstack.module.ts index 149c6148..4e1e8bcb 100644 --- a/angular/projects/lib/src/lib/gridstack.module.ts +++ b/angular/projects/lib/src/lib/gridstack.module.ts @@ -1,5 +1,5 @@ /** - * gridstack.component.ts 12.2.0 + * gridstack.component.ts 12.2.1 * Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license */ diff --git a/angular/projects/lib/src/lib/types.ts b/angular/projects/lib/src/lib/types.ts index 257f31fc..634de4cb 100644 --- a/angular/projects/lib/src/lib/types.ts +++ b/angular/projects/lib/src/lib/types.ts @@ -1,5 +1,5 @@ /** - * gridstack-item.component.ts 12.2.0 + * gridstack-item.component.ts 12.2.1 * Copyright (c) 2025 Alain Dumesny - see GridStack root license */ diff --git a/angular/yarn.lock b/angular/yarn.lock index 5fb9d616..53b0d63a 100644 --- a/angular/yarn.lock +++ b/angular/yarn.lock @@ -3752,10 +3752,10 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== -gridstack@^12.2.0: - version "12.2.0" - resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-12.2.0.tgz#5c3f8ef35374daffe6d863ce198c77c8067977f3" - integrity sha512-xvOGd8guyRO5A2LKFRYy4DALNVd20TlrN/88Ad0q6zJOyE9EJt1htB1LWpWMgWmOJPf1YDIR0PPCbV3PqHCTgg== +gridstack@^12.2.1: + version "12.2.1" + resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-12.2.1.tgz#0e82e3d9d11e5229388d73bd57f8ef1a0e7059c4" + integrity sha512-xU69tThmmVxgMHTuM/z3rIKiiGm0zW4tcB6yRcuwiOUUBiwb3tslzFOrUjWz+PwaxoAW+JChT4fqOLl+oKAxZA== handle-thing@^2.0.0: version "2.0.1" diff --git a/doc/CHANGES.md b/doc/CHANGES.md index c3e445dd..5024cb33 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -5,6 +5,7 @@ Change log **Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)* +- [12.2.1 (2025-05-28)](#1221-2025-05-28) - [12.2.0 (2025-05-27)](#1220-2025-05-27) - [12.1.2 (2024-05-07)](#1212-2024-05-07) - [12.1.1 (2024-04-28)](#1211-2024-04-28) @@ -128,6 +129,9 @@ Change log +## 12.2.1 (2025-05-28) +* fix: [#3064](https://github.com/gridstack/gridstack.js/pull/3064) fix `GridStack.updateCB(w)` crash + ## 12.2.0 (2025-05-27) * feat: [#3061](https://github.com/gridstack/gridstack.js/pull/3061) added `GridStack.updateCB(w)` that gets called after a widget has been updated (eg: load() after initial layout) instead of created diff --git a/package.json b/package.json index c6afa6e4..7e18eb3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gridstack", - "version": "12.2.0", + "version": "12.2.1", "license": "MIT", "author": "Alain Dumesny (https://github.com/adumesny)", "contributors": [ diff --git a/react/package.json b/react/package.json index 8a08b324..77cb8c3e 100644 --- a/react/package.json +++ b/react/package.json @@ -11,7 +11,7 @@ "preview": "vite preview" }, "dependencies": { - "gridstack": "^12.2.0", + "gridstack": "^12.2.1", "react": "^18.3.1", "react-dom": "^18.3.1", "react-fast-compare": "^3.2.2" diff --git a/react/yarn.lock b/react/yarn.lock index 00f4062f..65fa8a50 100644 --- a/react/yarn.lock +++ b/react/yarn.lock @@ -832,10 +832,10 @@ graphemer@^1.4.0: resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== -gridstack@^12.2.0: - version "12.2.0" - resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-12.2.0.tgz#5c3f8ef35374daffe6d863ce198c77c8067977f3" - integrity sha512-xvOGd8guyRO5A2LKFRYy4DALNVd20TlrN/88Ad0q6zJOyE9EJt1htB1LWpWMgWmOJPf1YDIR0PPCbV3PqHCTgg== +gridstack@^12.2.1: + version "12.2.1" + resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-12.2.1.tgz#0e82e3d9d11e5229388d73bd57f8ef1a0e7059c4" + integrity sha512-xU69tThmmVxgMHTuM/z3rIKiiGm0zW4tcB6yRcuwiOUUBiwb3tslzFOrUjWz+PwaxoAW+JChT4fqOLl+oKAxZA== has-flag@^4.0.0: version "4.0.0" diff --git a/src/dd-base-impl.ts b/src/dd-base-impl.ts index 491a5fa1..f417de9f 100644 --- a/src/dd-base-impl.ts +++ b/src/dd-base-impl.ts @@ -1,5 +1,5 @@ /** - * dd-base-impl.ts 12.2.0 + * dd-base-impl.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-draggable.ts b/src/dd-draggable.ts index 26ba8089..ad3606c4 100644 --- a/src/dd-draggable.ts +++ b/src/dd-draggable.ts @@ -1,5 +1,5 @@ /** - * dd-draggable.ts 12.2.0 + * dd-draggable.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-droppable.ts b/src/dd-droppable.ts index 6818dc7d..f29835c9 100644 --- a/src/dd-droppable.ts +++ b/src/dd-droppable.ts @@ -1,5 +1,5 @@ /** - * dd-droppable.ts 12.2.0 + * dd-droppable.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-element.ts b/src/dd-element.ts index f45ba046..c6b9f83b 100644 --- a/src/dd-element.ts +++ b/src/dd-element.ts @@ -1,5 +1,5 @@ /** - * dd-elements.ts 12.2.0 + * dd-elements.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-gridstack.ts b/src/dd-gridstack.ts index 0985452e..67347fa2 100644 --- a/src/dd-gridstack.ts +++ b/src/dd-gridstack.ts @@ -1,5 +1,5 @@ /** - * dd-gridstack.ts 12.2.0 + * dd-gridstack.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-manager.ts b/src/dd-manager.ts index bf9c7a58..6f13f40c 100644 --- a/src/dd-manager.ts +++ b/src/dd-manager.ts @@ -1,5 +1,5 @@ /** - * dd-manager.ts 12.2.0 + * dd-manager.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-resizable-handle.ts b/src/dd-resizable-handle.ts index b1978b06..4e3ae9ec 100644 --- a/src/dd-resizable-handle.ts +++ b/src/dd-resizable-handle.ts @@ -1,5 +1,5 @@ /** - * dd-resizable-handle.ts 12.2.0 + * dd-resizable-handle.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-resizable.ts b/src/dd-resizable.ts index 1faa322f..d99b0df1 100644 --- a/src/dd-resizable.ts +++ b/src/dd-resizable.ts @@ -1,5 +1,5 @@ /** - * dd-resizable.ts 12.2.0 + * dd-resizable.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/dd-touch.ts b/src/dd-touch.ts index 80f37571..9e1fb71b 100644 --- a/src/dd-touch.ts +++ b/src/dd-touch.ts @@ -1,5 +1,5 @@ /** - * touch.ts 12.2.0 + * touch.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack-engine.ts b/src/gridstack-engine.ts index 6ab13cae..02a7bf2f 100644 --- a/src/gridstack-engine.ts +++ b/src/gridstack-engine.ts @@ -1,5 +1,5 @@ /** - * gridstack-engine.ts 12.2.0 + * gridstack-engine.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack.scss b/src/gridstack.scss index f947e413..6700d747 100644 --- a/src/gridstack.scss +++ b/src/gridstack.scss @@ -1,5 +1,5 @@ /** - * gridstack SASS styles 12.2.0 + * gridstack SASS styles 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/gridstack.ts b/src/gridstack.ts index 9ee2b49d..39096f5d 100644 --- a/src/gridstack.ts +++ b/src/gridstack.ts @@ -1,5 +1,5 @@ /*! - * GridStack 12.2.0 + * GridStack 12.2.1 * https://gridstackjs.com/ * * Copyright (c) 2021-2024 Alain Dumesny @@ -1386,7 +1386,7 @@ export class GridStack { if (ddChanged) { this.prepareDragDrop(n.el); } - GridStack.updateCB(n); // call user callback so they know widget got updated + if (GridStack.updateCB) GridStack.updateCB(n); // call user callback so they know widget got updated }); return this; @@ -1893,7 +1893,7 @@ export class GridStack { return this; } - static GDRev = '12.2.0'; + static GDRev = '12.2.1'; /* =========================================================================================== * drag&drop methods that used to be stubbed out and implemented in dd-gridstack.ts diff --git a/src/types.ts b/src/types.ts index c119b367..b59735e5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,5 @@ /** - * types.ts 12.2.0 + * types.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */ diff --git a/src/utils.ts b/src/utils.ts index fa81b94d..4014a189 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ /** - * utils.ts 12.2.0 + * utils.ts 12.2.1 * Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license */