From 8660580b3bd6f1ffd52befcb5489b5934f070b73 Mon Sep 17 00:00:00 2001 From: Francisco Salgueiro Date: Mon, 12 Feb 2024 16:35:40 +0000 Subject: [PATCH] remove chess.js --- package.json | 1 - pnpm-lock.yaml | 41 +++++++---------------------- src/utils/tests/treeReducer.test.ts | 2 -- 3 files changed, 9 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index ed492f19..59171a6b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "@tiptap/react": "2.1.13", "@tiptap/starter-kit": "2.1.13", "@vitejs/plugin-react-swc": "^3.5.0", - "chess.js": "1.0.0-beta.6", "chessground": "^8.3.10", "chessops": "^0.12.8", "clsx": "^2.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 698cb1a7..d3e6718b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -71,9 +71,6 @@ dependencies: '@vitejs/plugin-react-swc': specifier: ^3.5.0 version: 3.5.0(vite@5.0.4) - chess.js: - specifier: 1.0.0-beta.6 - version: 1.0.0-beta.6 chessground: specifier: ^8.3.10 version: 8.3.10 @@ -1243,11 +1240,6 @@ packages: engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true - /@eslint-community/regexpp@4.5.1: - resolution: {integrity: sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - dev: true - /@eslint/eslintrc@2.0.3: resolution: {integrity: sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1256,7 +1248,7 @@ packages: debug: 4.3.4 espree: 9.5.2 globals: 13.20.0 - ignore: 5.2.4 + ignore: 5.3.0 import-fresh: 3.3.0 js-yaml: 4.1.0 minimatch: 3.1.2 @@ -2615,12 +2607,12 @@ packages: pretty-format: 29.7.0 dev: true - /acorn-jsx@5.3.2(acorn@8.9.0): + /acorn-jsx@5.3.2(acorn@8.11.2): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.9.0 + acorn: 8.11.2 dev: true /acorn-walk@8.3.0: @@ -2640,12 +2632,6 @@ packages: hasBin: true dev: true - /acorn@8.9.0: - resolution: {integrity: sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==} - engines: {node: '>=0.4.0'} - hasBin: true - dev: true - /ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} dependencies: @@ -2792,10 +2778,6 @@ packages: get-func-name: 2.0.2 dev: true - /chess.js@1.0.0-beta.6: - resolution: {integrity: sha512-sqBfX1VL3csSyqVM5ogbKA+aRlZyWDh276ruWXphwI0lDUMs7iYjZs29BOi49f7mXeunJE7cdfnIZhihsyLnsA==} - dev: false - /chessground@8.3.10: resolution: {integrity: sha512-tYJ9IKR3N+2EP2DCYX3AMcPTCa2ZfOf988tYFHCaPFQ6i/9CQstDteLtrWtOWQjPV3qHXVmsbeCtyhUP0eqS3Q==} dev: false @@ -3210,7 +3192,7 @@ packages: hasBin: true dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.43.0) - '@eslint-community/regexpp': 4.5.1 + '@eslint-community/regexpp': 4.10.0 '@eslint/eslintrc': 2.0.3 '@eslint/js': 8.43.0 '@humanwhocodes/config-array': 0.11.10 @@ -3223,7 +3205,7 @@ packages: doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.0 - eslint-visitor-keys: 3.4.1 + eslint-visitor-keys: 3.4.3 espree: 9.5.2 esquery: 1.5.0 esutils: 2.0.3 @@ -3233,7 +3215,7 @@ packages: glob-parent: 6.0.2 globals: 13.20.0 graphemer: 1.4.0 - ignore: 5.2.4 + ignore: 5.3.0 import-fresh: 3.3.0 imurmurhash: 0.1.4 is-glob: 4.0.3 @@ -3256,9 +3238,9 @@ packages: resolution: {integrity: sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.9.0 - acorn-jsx: 5.3.2(acorn@8.9.0) - eslint-visitor-keys: 3.4.1 + acorn: 8.11.2 + acorn-jsx: 5.3.2(acorn@8.11.2) + eslint-visitor-keys: 3.4.3 dev: true /esquery@1.5.0: @@ -3477,11 +3459,6 @@ packages: react-is: 16.13.1 dev: false - /ignore@5.2.4: - resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==} - engines: {node: '>= 4'} - dev: true - /ignore@5.3.0: resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==} engines: {node: '>= 4'} diff --git a/src/utils/tests/treeReducer.test.ts b/src/utils/tests/treeReducer.test.ts index 538b9b25..8e346473 100644 --- a/src/utils/tests/treeReducer.test.ts +++ b/src/utils/tests/treeReducer.test.ts @@ -1,9 +1,7 @@ -import { Chess } from "chess.js"; import { parseUci } from "chessops"; import { expect, test } from "vitest"; import treeReducer, { TreeState, defaultTree } from "../treeReducer"; -const chess = new Chess(); const e4 = parseUci("e2e4")!; const d5 = parseUci("d7d5")!; const treeE4D5: () => TreeState = () => ({