Skip to content

Commit a596e20

Browse files
authored
Merge pull request #3064 from adumesny/master
v12.2.1 fix `GridStack.updateCB(w)` crash
2 parents b269446 + 7dd3819 commit a596e20

25 files changed

+36
-32
lines changed

angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@angular/platform-browser": "^14",
1919
"@angular/platform-browser-dynamic": "^14",
2020
"@angular/router": "^14",
21-
"gridstack": "^12.2.0",
21+
"gridstack": "^12.2.1",
2222
"rxjs": "~7.5.0",
2323
"tslib": "^2.3.0",
2424
"zone.js": "~0.11.4"

angular/projects/lib/src/lib/base-widget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 12.2.0
2+
* gridstack-item.component.ts 12.2.1
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack-item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 12.2.0
2+
* gridstack-item.component.ts 12.2.1
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.component.ts 12.2.0
2+
* gridstack.component.ts 12.2.1
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/gridstack.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.component.ts 12.2.0
2+
* gridstack.component.ts 12.2.1
33
* Copyright (c) 2022-2024 Alain Dumesny - see GridStack root license
44
*/
55

angular/projects/lib/src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-item.component.ts 12.2.0
2+
* gridstack-item.component.ts 12.2.1
33
* Copyright (c) 2025 Alain Dumesny - see GridStack root license
44
*/
55

angular/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3752,10 +3752,10 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4,
37523752
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
37533753
integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
37543754

3755-
gridstack@^12.2.0:
3756-
version "12.2.0"
3757-
resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-12.2.0.tgz#5c3f8ef35374daffe6d863ce198c77c8067977f3"
3758-
integrity sha512-xvOGd8guyRO5A2LKFRYy4DALNVd20TlrN/88Ad0q6zJOyE9EJt1htB1LWpWMgWmOJPf1YDIR0PPCbV3PqHCTgg==
3755+
gridstack@^12.2.1:
3756+
version "12.2.1"
3757+
resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-12.2.1.tgz#0e82e3d9d11e5229388d73bd57f8ef1a0e7059c4"
3758+
integrity sha512-xU69tThmmVxgMHTuM/z3rIKiiGm0zW4tcB6yRcuwiOUUBiwb3tslzFOrUjWz+PwaxoAW+JChT4fqOLl+oKAxZA==
37593759

37603760
handle-thing@^2.0.0:
37613761
version "2.0.1"

doc/CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8+
- [12.2.1 (2025-05-28)](#1221-2025-05-28)
89
- [12.2.0 (2025-05-27)](#1220-2025-05-27)
910
- [12.1.2 (2024-05-07)](#1212-2024-05-07)
1011
- [12.1.1 (2024-04-28)](#1211-2024-04-28)
@@ -128,6 +129,9 @@ Change log
128129

129130
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
130131

132+
## 12.2.1 (2025-05-28)
133+
* fix: [#3064](https://github.com/gridstack/gridstack.js/pull/3064) fix `GridStack.updateCB(w)` crash
134+
131135
## 12.2.0 (2025-05-27)
132136
* 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
133137

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack",
3-
"version": "12.2.0",
3+
"version": "12.2.1",
44
"license": "MIT",
55
"author": "Alain Dumesny <[email protected]> (https://github.com/adumesny)",
66
"contributors": [

react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"preview": "vite preview"
1212
},
1313
"dependencies": {
14-
"gridstack": "^12.2.0",
14+
"gridstack": "^12.2.1",
1515
"react": "^18.3.1",
1616
"react-dom": "^18.3.1",
1717
"react-fast-compare": "^3.2.2"

react/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -832,10 +832,10 @@ graphemer@^1.4.0:
832832
resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"
833833
integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==
834834

835-
gridstack@^12.2.0:
836-
version "12.2.0"
837-
resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-12.2.0.tgz#5c3f8ef35374daffe6d863ce198c77c8067977f3"
838-
integrity sha512-xvOGd8guyRO5A2LKFRYy4DALNVd20TlrN/88Ad0q6zJOyE9EJt1htB1LWpWMgWmOJPf1YDIR0PPCbV3PqHCTgg==
835+
gridstack@^12.2.1:
836+
version "12.2.1"
837+
resolved "https://registry.yarnpkg.com/gridstack/-/gridstack-12.2.1.tgz#0e82e3d9d11e5229388d73bd57f8ef1a0e7059c4"
838+
integrity sha512-xU69tThmmVxgMHTuM/z3rIKiiGm0zW4tcB6yRcuwiOUUBiwb3tslzFOrUjWz+PwaxoAW+JChT4fqOLl+oKAxZA==
839839

840840
has-flag@^4.0.0:
841841
version "4.0.0"

src/dd-base-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-base-impl.ts 12.2.0
2+
* dd-base-impl.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-draggable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-draggable.ts 12.2.0
2+
* dd-draggable.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-droppable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-droppable.ts 12.2.0
2+
* dd-droppable.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-elements.ts 12.2.0
2+
* dd-elements.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-gridstack.ts 12.2.0
2+
* dd-gridstack.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-manager.ts 12.2.0
2+
* dd-manager.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-resizable-handle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-resizable-handle.ts 12.2.0
2+
* dd-resizable-handle.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-resizable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* dd-resizable.ts 12.2.0
2+
* dd-resizable.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/dd-touch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* touch.ts 12.2.0
2+
* touch.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/gridstack-engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack-engine.ts 12.2.0
2+
* gridstack-engine.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/gridstack.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack SASS styles 12.2.0
2+
* gridstack SASS styles 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/gridstack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* GridStack 12.2.0
2+
* GridStack 12.2.1
33
* https://gridstackjs.com/
44
*
55
* Copyright (c) 2021-2024 Alain Dumesny
@@ -1386,7 +1386,7 @@ export class GridStack {
13861386
if (ddChanged) {
13871387
this.prepareDragDrop(n.el);
13881388
}
1389-
GridStack.updateCB(n); // call user callback so they know widget got updated
1389+
if (GridStack.updateCB) GridStack.updateCB(n); // call user callback so they know widget got updated
13901390
});
13911391

13921392
return this;
@@ -1893,7 +1893,7 @@ export class GridStack {
18931893
return this;
18941894
}
18951895

1896-
static GDRev = '12.2.0';
1896+
static GDRev = '12.2.1';
18971897

18981898
/* ===========================================================================================
18991899
* drag&drop methods that used to be stubbed out and implemented in dd-gridstack.ts

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* types.ts 12.2.0
2+
* types.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* utils.ts 12.2.0
2+
* utils.ts 12.2.1
33
* Copyright (c) 2021-2024 Alain Dumesny - see GridStack root license
44
*/
55

0 commit comments

Comments
 (0)