@mirasen/chessboard 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/runtime/factory/events.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @mirasen/chessboard
|
|
2
2
|
|
|
3
|
+
## 1.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6adedbe: dependabot: directory '/', update @sveltejs/kit
|
|
8
|
+
- 6adedbe: dependabot: directory '/', update @types/node
|
|
9
|
+
- 6adedbe: dependabot: directory '/', update svelte
|
|
10
|
+
- 8b28f59: fix: graceful teardown in events extension unsubscribe during board.destroy()
|
|
11
|
+
|
|
12
|
+
`unsubscribeEvent` no longer asserts that the input adapter is alive — if it's already destroyed, unsubscription is a no-op since subscriptions are gone with the adapter.
|
|
13
|
+
|
|
3
14
|
## 1.2.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -9,7 +9,8 @@ export function createExtensionRuntimeSurfaceEvents(getInternalState) {
|
|
|
9
9
|
},
|
|
10
10
|
unsubscribeEvent(type) {
|
|
11
11
|
const internalState = getInternalState();
|
|
12
|
-
|
|
12
|
+
if (!internalState.inputAdapter)
|
|
13
|
+
return;
|
|
13
14
|
if (!NEED_EVENT_TYPES.has(type)) {
|
|
14
15
|
internalState.inputAdapter.unsubscribeEvent(type);
|
|
15
16
|
}
|
package/package.json
CHANGED