@mirasen/chessboard 1.5.1 → 1.5.3

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @mirasen/chessboard
2
2
 
3
+ ## 1.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 48354b1: dependabot: dependency updates for PR #148
8
+
9
+ ## 1.5.2
10
+
11
+ ### Patch Changes
12
+
13
+ - bb9e1af: Fix extension event listener cleanup by unmounting extensions before destroying the input adapter.
14
+ - fa5f9d7: dependabot: dependency updates for PR #139
15
+ - 68eee00: dependabot: dependency updates for PR #141
16
+ - 530f01c: dependabot: dependency updates for PR #144
17
+ - 6e8859c: dependabot: dependency updates for PR #145
18
+
3
19
  ## 1.5.1
4
20
 
5
21
  ### Patch Changes
@@ -32,13 +32,13 @@ export function runtimeMount(state, container) {
32
32
  export function runtimeUnmount(state) {
33
33
  runtimeValidateIsMounted(state);
34
34
  assert(state.inputAdapter !== null, 'Input adapter should be initialized when mounted');
35
- state.inputAdapter.destroy();
36
- state.inputAdapter = null;
37
35
  if (state.resizeObserver) {
38
36
  state.resizeObserver.disconnect();
39
37
  state.resizeObserver = null;
40
38
  }
41
39
  state.renderSystem.unmount();
40
+ state.inputAdapter.destroy();
41
+ state.inputAdapter = null;
42
42
  state.extensionSystem.onUnmount();
43
43
  }
44
44
  export function runtimeDestroy(state) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirasen/chessboard",
3
3
  "description": "Production-grade framework-agnostic TypeScript chessboard platform with real chess interaction built in.",
4
- "version": "1.5.1",
4
+ "version": "1.5.3",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Mirasen"
@@ -85,27 +85,27 @@
85
85
  "@changesets/cli": "^3.0.3",
86
86
  "@eslint/compat": "^2.1.1",
87
87
  "@eslint/js": "^10.0.1",
88
- "@types/node": "^26.6.2",
89
- "@vitest/coverage-v8": "^5.0.1",
88
+ "@types/node": "^26.6.5",
89
+ "@vitest/coverage-v8": "^5.0.5",
90
90
  "chess.js": "^1.4.0",
91
- "eslint": "^10.11.0",
91
+ "eslint": "^10.13.0",
92
92
  "eslint-config-prettier": "^10.1.8",
93
- "globals": "^17.12.0",
94
- "jsdom": "^30.1.0",
95
- "prettier": "^3.9.8",
96
- "publint": "^0.3.24",
93
+ "globals": "^17.13.0",
94
+ "jsdom": "^30.1.3",
95
+ "prettier": "^3.9.10",
96
+ "publint": "^0.3.25",
97
97
  "rimraf": "^6.1.3",
98
98
  "serve": "^14.2.6",
99
99
  "typescript": "^6.0.3",
100
- "typescript-eslint": "^8.70.1",
101
- "vitest": "^5.0.0"
100
+ "typescript-eslint": "^8.72.1",
101
+ "vitest": "^5.0.5"
102
102
  },
103
103
  "engines": {
104
104
  "node": ">=22"
105
105
  },
106
106
  "dependencies": {
107
- "@ktarmyshov/assert": "^0.1.14",
108
- "es-toolkit": "^1.52.0",
107
+ "@ktarmyshov/assert": "^0.1.15",
108
+ "es-toolkit": "^1.53.0",
109
109
  "type-fest": "^5.10.0"
110
110
  },
111
111
  "peerDependencies": {
@@ -115,5 +115,8 @@
115
115
  "chess.js": {
116
116
  "optional": true
117
117
  }
118
+ },
119
+ "allowScripts": {
120
+ "fsevents": true
118
121
  }
119
122
  }