cm-chessboard 7.3.11 → 7.3.12

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/README.md CHANGED
@@ -41,7 +41,7 @@ The core of cm-chessboard is small, fast and reduced to the essentials. You can
41
41
 
42
42
  **Option 2:** Download the code from [GitHub](https://github.com/shaack/cm-chessboard).
43
43
 
44
- **Option 3:** Use it via CDN https://cdn.jsdelivr.net/npm/cm-chessboard@4/src/cm-chessboard/Chessboard.js
44
+ **Option 3:** Use it via CDN https://cdn.jsdelivr.net/npm/cm-chessboard@7/src/cm-chessboard/Chessboard.js
45
45
 
46
46
  After installation, copy the sprite in `cm-chessboard/assets/images/` to your projects `assets/images/`
47
47
  folder. If you put the sprite somewhere else you have to configure the location
@@ -7,7 +7,6 @@
7
7
  <link rel="stylesheet" href="styles/examples.css"/>
8
8
  <link rel="stylesheet" href="../assets/chessboard.css"/>
9
9
  <link rel="stylesheet" href="../assets/extensions/markers/markers.css"/>
10
- <script src="https://cdnjs.cloudflare.com/ajax/libs/chess.js/0.10.2/chess.js"></script>
11
10
  </head>
12
11
  <body>
13
12
  <h1><a href="../">cm-chessboard</a></h1>
@@ -16,12 +15,13 @@
16
15
  with random moves.</p>
17
16
  <div class="board board-large" id="board"></div>
18
17
  <div id="output"></div>
19
- <!--suppress JSUnresolvedFunction -->
18
+
20
19
  <script type="module">
21
20
  import {INPUT_EVENT_TYPE, COLOR, Chessboard, BORDER_TYPE} from "../src/cm-chessboard/Chessboard.js"
22
21
  import {MARKER_TYPE, Markers} from "../src/cm-chessboard/extensions/markers/Markers.js"
23
22
  import {PromotionDialog} from "../src/cm-chessboard/extensions/promotion-dialog/PromotionDialog.js"
24
23
  import {Accessibility} from "../src/cm-chessboard/extensions/accessibility/Accessibility.js"
24
+ import {Chess} from "https://cdn.jsdelivr.net/npm/chess.mjs@1/src/chess.mjs/Chess.js"
25
25
 
26
26
  const chess = new Chess()
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "7.3.11",
3
+ "version": "7.3.12",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -31,5 +31,7 @@
31
31
  "devDependencies": {
32
32
  "teevi": "^2.2.2"
33
33
  },
34
- "dependencies": {}
34
+ "dependencies": {
35
+ "cm-chess": "^2.5.0"
36
+ }
35
37
  }