feat: 更新依赖项,提升 TypeScript 和 Playwright 测试库版本,支持 Node.js 18+

This commit is contained in:
catlog22
2026-02-05 14:45:57 +08:00
parent 23f752b975
commit e555355a71
5 changed files with 86 additions and 52 deletions

View File

@@ -30,7 +30,7 @@
"@docusaurus/tsconfig": "^3.5.2",
"@docusaurus/types": "^3.5.2",
"@types/react": "^18.3.12",
"typescript": "~5.5.4"
"typescript": "^5.9.3"
},
"browserslist": {
"production": [

View File

@@ -54,11 +54,11 @@
"sonner": "^2.0.7",
"tailwind-merge": "^2.5.0",
"web-vitals": "^5.1.0",
"zod": "^3.23.8",
"zod": "^4.1.13",
"zustand": "^5.0.0"
},
"devDependencies": {
"@playwright/test": "^1.40.0",
"@playwright/test": "^1.57.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.0.0",
@@ -75,7 +75,7 @@
"tailwindcss": "^3.4.0",
"tailwindcss-animate": "^1.0.7",
"tsx": "^4.19.0",
"typescript": "^5.6.0",
"typescript": "^5.9.3",
"vite": "^6.0.0",
"vitest": "^2.0.0"
}

View File

@@ -6,27 +6,21 @@
"author": "CCW Team",
"license": "MIT",
"type": "module",
"workspaces": [
"frontend",
"docs-site"
],
"scripts": {
"dev": "npm run dev --workspace=frontend",
"dev:docs": "npm run start --workspace=docs-site",
"dev": "cd frontend && npm run dev",
"dev:docs": "cd docs-site && npm run start",
"dev:all": "concurrently \"npm run dev\" \"npm run dev:docs\" --names \"FRONTEND,DOCS\" --prefix-colors \"blue,green\"",
"build": "npm run build --workspace=docs-site && npm run build --workspace=frontend",
"build:frontend": "npm run build --workspace=frontend",
"build:docs": "npm run build --workspace=docs-site",
"clean": "npm run clean --workspace=frontend && npm run clean --workspace=docs-site",
"clean:node_modules": "npm exec --workspaces -- rm -rf node_modules",
"lint": "npm run lint --workspace=frontend",
"lint:fix": "npm run lint:fix --workspace=frontend",
"test": "npm run test --workspace=frontend",
"test:coverage": "npm run test:coverage --workspace=frontend",
"test:e2e": "npm run test:e2e --workspace=frontend",
"validate": "npm run validate:i18n --workspace=frontend",
"serve": "npm run serve --workspace=docs-site",
"preview": "npm run preview --workspace=frontend"
"build": "cd docs-site && npm run build && cd ../frontend && npm run build",
"build:frontend": "cd frontend && npm run build",
"build:docs": "cd docs-site && npm run build",
"lint": "cd frontend && npm run lint",
"lint:fix": "cd frontend && npm run lint:fix",
"test": "cd frontend && npm run test",
"test:coverage": "cd frontend && npm run test:coverage",
"test:e2e": "cd frontend && npm run test:e2e",
"validate": "cd frontend && npm run validate:i18n",
"serve": "cd docs-site && npm run serve",
"preview": "cd frontend && npm run preview"
},
"devDependencies": {
"concurrently": "^9.1.2"

96
package-lock.json generated
View File

@@ -45,7 +45,7 @@
"typescript": "^5.9.3"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
}
},
"ccw/docs-site": {
@@ -67,26 +67,12 @@
"@docusaurus/tsconfig": "^3.5.2",
"@docusaurus/types": "^3.5.2",
"@types/react": "^18.3.12",
"typescript": "~5.5.4"
"typescript": "^5.9.3"
},
"engines": {
"node": ">=18.0"
}
},
"ccw/docs-site/node_modules/typescript": {
"version": "5.5.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz",
"integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"ccw/frontend": {
"name": "ccw-frontend",
"version": "0.1.0",
@@ -108,8 +94,10 @@
"@radix-ui/react-tooltip": "^1.1.0",
"@tanstack/react-query": "^5.60.0",
"@xyflow/react": "^12.10.0",
"allotment": "^1.20.5",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"date-fns": "^4.1.0",
"highlight.js": "^11.11.1",
"lucide-react": "^0.460.0",
"react": "^18.3.1",
@@ -124,11 +112,11 @@
"sonner": "^2.0.7",
"tailwind-merge": "^2.5.0",
"web-vitals": "^5.1.0",
"zod": "^3.23.8",
"zod": "^4.1.13",
"zustand": "^5.0.0"
},
"devDependencies": {
"@playwright/test": "^1.40.0",
"@playwright/test": "^1.57.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.0.0",
@@ -145,20 +133,11 @@
"tailwindcss": "^3.4.0",
"tailwindcss-animate": "^1.0.7",
"tsx": "^4.19.0",
"typescript": "^5.6.0",
"typescript": "^5.9.3",
"vite": "^6.0.0",
"vitest": "^2.0.0"
}
},
"ccw/frontend/node_modules/zod": {
"version": "3.25.76",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
},
"node_modules/@adobe/css-tools": {
"version": "4.4.4",
"resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.4.tgz",
@@ -9767,6 +9746,30 @@
"algoliasearch": ">= 3.1 < 6"
}
},
"node_modules/allotment": {
"version": "1.20.5",
"resolved": "https://registry.npmjs.org/allotment/-/allotment-1.20.5.tgz",
"integrity": "sha512-7i4NT7ieXEyAd5lBrXmE7WHz/e7hRuo97+j+TwrPE85ha6kyFURoc76nom0dWSZ1pTKVEAMJy/+f3/Isfu/41A==",
"license": "MIT",
"dependencies": {
"classnames": "^2.3.0",
"eventemitter3": "^5.0.0",
"fast-deep-equal": "^3.1.3",
"lodash.clamp": "^4.0.0",
"lodash.debounce": "^4.0.0",
"usehooks-ts": "^3.1.1"
},
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
"node_modules/allotment/node_modules/eventemitter3": {
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
"integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",
"license": "MIT"
},
"node_modules/ansi-align": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz",
@@ -10840,6 +10843,12 @@
"integrity": "sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==",
"license": "MIT"
},
"node_modules/classnames": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz",
"integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==",
"license": "MIT"
},
"node_modules/clean-css": {
"version": "5.3.3",
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.3.tgz",
@@ -12575,6 +12584,16 @@
"node": ">=18"
}
},
"node_modules/date-fns": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.1.0.tgz",
"integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/kossnocorp"
}
},
"node_modules/dayjs": {
"version": "1.11.19",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz",
@@ -16925,6 +16944,12 @@
"integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==",
"license": "MIT"
},
"node_modules/lodash.clamp": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/lodash.clamp/-/lodash.clamp-4.0.3.tgz",
"integrity": "sha512-HvzRFWjtcguTW7yd8NJBshuNaCa8aqNFtnswdT7f/cMd/1YKy5Zzoq4W/Oxvnx9l7aeY258uSdDfM793+eLsVg==",
"license": "MIT"
},
"node_modules/lodash.debounce": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
@@ -26387,6 +26412,21 @@
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
"node_modules/usehooks-ts": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/usehooks-ts/-/usehooks-ts-3.1.1.tgz",
"integrity": "sha512-I4diPp9Cq6ieSUH2wu+fDAVQO43xwtulo+fKEidHUwZPnYImbtkTjzIJYcDcJqxgmX31GVqNFURodvcgHcW0pA==",
"license": "MIT",
"dependencies": {
"lodash.debounce": "^4.0.8"
},
"engines": {
"node": ">=16.15.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18 || ^19 || ^19.0.0-rc"
}
},
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",

View File

@@ -40,7 +40,7 @@
"author": "dyw",
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.4",