Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 83 additions & 83 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nutui/nutui-react",
"version": "3.1.0-beta.2",
"version": "3.1.0",
"style": "dist/style.css",
"main": "dist/nutui.react.umd.js",
"module": "dist/es/packages/nutui.react.build.js",
Expand Down Expand Up @@ -106,131 +106,131 @@
"verify-scale:mirror": "node .cursor/skills/nutui-build-local-verify/scripts/verify-scale-generation.mjs --mirror"
},
"dependencies": {
"@babel/runtime": "^7.23.9",
"@nutui/icons-react": "^3.0.2-beta.5",
"@nutui/icons-react-taro": "^3.0.2-beta.3",
"@babel/runtime": "^7.29.7",
"@nutui/icons-react": "^3.0.2",
"@nutui/icons-react-taro": "3.0.2-cpp.3.beta.10",
"@nutui/jdesign-icons-react-taro": "1.0.6-beta.2",
"@nutui/touch-emulator": "^1.0.0",
"@nutui/lottie-miniprogram": "^1.0.2",
"@nutui/touch-emulator": "^1.0.0",
"@react-spring/web": "~9.6.1",
"@swc/helpers": "^0.5.7",
"@swc/helpers": "^0.5.23",
"@use-gesture/react": "10.2.20",
"async-validator": "^4.2.5",
"classnames": "^2.5.1",
"codesandbox": "^2.2.3",
"lodash.kebabcase": "^4.1.1",
"lottie-react": "^2.4.0",
"lottie-react": "^2.4.1",
"react-fast-compare": "^3.2.2",
"react-transition-group": "^4.4.5",
"rehype-highlight": "^7.0.2"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@commitlint/cli": "^20.5.2",
"@commitlint/config-conventional": "^20.5.0",
"@inquirer/prompts": "^7.2.3",
"@loadable/component": "^5.16.3",
"@mdx-js/mdx": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@mdx-js/rollup": "^3.0.1",
"@commitlint/cli": "^20.5.3",
"@commitlint/config-conventional": "^20.5.3",
"@inquirer/prompts": "^7.10.1",
"@loadable/component": "^5.16.7",
"@mdx-js/mdx": "^3.1.1",
"@mdx-js/react": "^3.1.1",
"@mdx-js/rollup": "^3.1.1",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^26.0.3",
"@rollup/plugin-node-resolve": "16.0.0",
"@rollup/plugin-typescript": "^11.1.6",
"@shikijs/markdown-it": "^3.0.0",
"@swc/core": "^1.4.8",
"@shikijs/markdown-it": "^3.23.0",
"@swc/core": "^1.15.47",
"@tarojs/components": "4.0.12",
"@tarojs/plugin-platform-alipay": "4.0.12",
"@tarojs/plugin-platform-jd": "4.0.12",
"@tarojs/plugin-platform-weapp": "4.0.12",
"@tarojs/react": "4.0.12",
"@tarojs/taro": "4.0.12",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^16.0.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/fs-extra": "^11.0.4",
"@types/loadable__component": "^5.13.8",
"@types/loadable__component": "^5.13.10",
"@types/lodash.kebabcase": "^4.1.9",
"@types/node": "^20.11.19",
"@types/node": "^20.19.43",
"@types/postcss-import": "^14.0.3",
"@types/react": "^18.2.57",
"@types/react-dom": "^18.2.19",
"@types/react-syntax-highlighter": "^15.5.11",
"@types/react-test-renderer": "^19.0.0",
"@types/react-transition-group": "^4.4.10",
"@types/react": "^18.3.31",
"@types/react-dom": "^18.3.7",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/react-test-renderer": "^19.1.0",
"@types/react-transition-group": "^4.4.12",
"@types/testing-library__jest-dom": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^3.0.7",
"@vitest/ui": "^2.0.4",
"autoprefixer": "^10.4.17",
"axios": "^1.6.7",
"cypress": "^13.15.0",
"del": "^8.0.0",
"eslint": "^8.56.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
Comment on lines +162 to +163

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

What TypeScript versions are officially supported by @typescript-eslint/parser7.18.0 and@typescript-eslint/eslint-plugin 7.18.0?

💡 Result:

@typescript-eslint/parser 7.18.0 and @typescript-eslint/eslint-plugin 7.18.0 are officially supported for TypeScript versions >=4.7.4 and <5.7.0 (i.e., any TS 4.7+ version up to, but not including, 5.7.0). [1] This range is what typescript-eslint reports as the “Supported TypeScript versions” when you run it with an unsupported TypeScript version. [1]

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'package.json relevant dependency lines:\n'
python3 - <<'PY'
import json
with open('package.json', 'r', encoding='utf-8') as f:
    pkg = json.load(f)
for section in ['dependencies','devDependencies','peerDependencies','optionalDependencies']:
    deps = pkg.get(section)
    if not deps:
        continue
    for name in ['typescript','`@typescript-eslint/parser`','`@typescript-eslint/eslint-plugin`']:
        if name in deps:
            print(f'{section}.{name}={deps[name]}')
PY

printf '\nLockfiles mentioning typescript-eslint packages:\n'
for f in package-lock.json pnpm-lock.yaml yarn.lock bun.lockb; do
  if [ -f "$f" ]; then
    printf '\n== $f ==\n'
    grep -n '`@typescript-eslint/parser`\|`@typescript-eslint/eslint-plugin`' "$f" | head -80 || true
  fi
done

Repository: jdf2e/nutui-react

Length of output: 8600


typescript-eslint 升级到支持 TypeScript 5.9.3 的版本。

@typescript-eslint/parser@typescript-eslint/eslint-plugin 7.18.0 仅支持 TypeScript <5.7.0;当前 TypeScript 已升级至 5.9.3,需同时升级 parser 和 plugin,或保持使用受支持的 TypeScript 版本。

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` around lines 162 - 163, 将 package.json 中的
`@typescript-eslint/parser` 和 `@typescript-eslint/eslint-plugin` 从 7.18.0 升级到支持
TypeScript 5.9.3 的兼容版本,并同步更新锁文件;确保两个包使用匹配的版本,避免继续使用仅支持 TypeScript 5.7 以下的版本。

"@vitejs/plugin-react": "^4.7.0",
"@vitest/coverage-v8": "^3.2.7",
"@vitest/ui": "^2.1.9",
Comment on lines +165 to +166

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

jq -r '
  .devDependencies
  | {
      vitest,
      "`@vitest/ui`",
      "`@vitest/coverage-v8`"
    }
  | to_entries[]
  | "\(.key)=\(.value)"
' package.json

rg -n -C 4 '`@vitest/ui`|`@vitest/coverage-v8`|vitest@' pnpm-lock.yaml

Repository: jdf2e/nutui-react

Length of output: 14635


🌐 Web query:

vitest 3 UI documentation version compatibility @vitest/ui vitest peerDependencies

💡 Result:

For @vitest/ui, you must use the exact same version as your vitest installation [1][2]. Vitest explicitly requires that the core vitest package and its internal companion packages (like @vitest/ui) match versions to ensure compatibility [1][2]. Running mixed versions is not supported and will trigger a warning in the console, as well as potential bugs [1]. Technical details: - Peer Dependencies: The @vitest/ui package defines a strict peer dependency on the corresponding version of vitest [3][4][5]. For example, if you are using vitest 4.1.6, your @vitest/ui must also be 4.1.6 [4]. - Verification: Vitest's internal code checks the version of the loaded vitest context against the version of @vitest/ui at runtime [1]. If a mismatch is detected, it will log a warning stating that running mixed versions is not supported [1]. - Best Practice: To avoid version conflicts, ensure your package.json dependencies are kept in sync. If you upgrade vitest, you should upgrade @vitest/ui to the same version [1][2]. As of August 2026, Vitest is at version 4.x/5.x (with 4.1.x series being widely used) [6][5], and the requirement to match versions remains a fundamental part of the library's architecture [1][2].

Citations:


🌐 Web query:

Vitest 3.x @vitest/ui 3.2.7 npm registry peerDependencies

💡 Result:

As of August 9, 2026, Vitest 3.2.7 is a released version in the Vitest 3.x series [1][2]. Regarding the peer dependencies for @vitest/ui version 3.2.7, it requires the main vitest package to be installed [3]. Specifically, @vitest/ui typically declares a peer dependency on the corresponding version of vitest (i.e., ^3.2.7) to ensure compatibility between the test runner and the UI interface [3][4]. You can verify the exact peer dependency requirements for your project by checking the package.json file of the installed version in your node_modules/@vitest/ui/package.json or by viewing the package metadata via the npm registry [3][5]. In the Vitest monorepo, internal packages like @vitest/ui are strictly versioned alongside the main vitest package [4].

Citations:


🌐 Web query:

npm package @vitest/ui@3.2.7 peerDependencies vitest

💡 Result:

The npm package @vitest/ui version 3.2.7 has a peer dependency on vitest [1][2]. While specific range constraints can vary by exact package metadata, official vitest packages typically require the peer dependency to match the package's own version exactly to ensure compatibility [3]. In practice, this means that if you are using @vitest/ui version 3.2.7, it expects vitest version 3.2.7 to be installed in your project [3][4]. Using mismatched versions—such as having @vitest/ui at 3.2.7 while vitest is at an earlier or later version—often triggers unmet peer dependency warnings during installation [3]. Because @vitest/ui is an interactive runner for vitest, it is tightly coupled to the core vitest package's internal API and releases [1][3][4].

Citations:


@vitest/ui 升级到与 vitest 相同的版本。

当前项目使用 vitest@vitest/coverage-v8 的 3.2.7 版本,但 @vitest/ui 仍停留在 2.1.9。Vitest 要求 UI 包与 vitest 保持同版本;当前 pnpm 锁文件已出现 3.2.7 与 2.1.9 混合加载的条目,会导致 UI 模式报告不兼容问题。

建议修改
-    "`@vitest/ui`": "^2.1.9",
+    "`@vitest/ui`": "^3.2.7",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@vitest/coverage-v8": "^3.2.7",
"@vitest/ui": "^2.1.9",
"`@vitest/coverage-v8`": "^3.2.7",
"`@vitest/ui`": "^3.2.7",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` around lines 165 - 166, Update the `@vitest/ui` dependency in
package.json from 2.1.9 to 3.2.7 so it matches vitest and `@vitest/coverage-v8`,
then refresh the pnpm lockfile to reflect the unified version.

"autoprefixer": "^10.5.4",
"axios": "^1.19.0",
"cypress": "^13.17.0",
"del": "^8.0.1",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-markdown": "^5.0.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^4.0.0",
"fs-extra": "^11.2.0",
"glob": "^11.0.0",
"gulp": "^5.0.0",
"eslint-config-prettier": "^9.1.2",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-prettier": "^5.5.6",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-unused-imports": "^4.4.1",
"fs-extra": "^11.4.0",
"glob": "^11.1.0",
"gulp": "^5.0.1",
"gulp-insert": "^0.5.0",
"gulp-postcss": "^10.0.0",
"gulp-rename": "^2.0.0",
"gulp-rename": "^2.1.0",
"gulp-replace": "^1.1.4",
"gulp-sass": "^5.1.0",
"happy-dom": "^14.12.3",
"highlight.js": "^11.9.0",
"husky": "^9.0.11",
"jscodeshift": "^17.0.0",
"lint-staged": "^15.2.2",
"highlight.js": "^11.11.1",
"husky": "^9.1.7",
"jscodeshift": "^17.4.0",
"lint-staged": "^15.5.2",
"lzutf8": "0.6.3",
"map-stream": "0.0.7",
"markdown-it": "^14.0.0",
"marked": "^14.1.1",
"mobx": "^6.12.0",
"mobx-react-lite": "^4.0.5",
"postcss": "^8.4.35",
"markdown-it": "^14.3.0",
"marked": "^14.1.4",
"mobx": "^6.16.1",
"mobx-react-lite": "^4.1.1",
"postcss": "^8.5.26",
"postcss-css-variables": "^0.19.0",
"postcss-import": "^16.0.1",
"postcss-modules": "^6.0.0",
"postcss-rtlcss": "^5.1.0",
"postcss-import": "^16.1.1",
"postcss-modules": "^6.0.1",
"postcss-rtlcss": "^5.7.1",
"postcss-scss": "^4.0.9",
"prettier": "^3.2.5",
"prettier-markdown-table": "^1.0.2",
"react": "^18.2.0",
"prettier": "^3.9.6",
"prettier-markdown-table": "^1.0.3",
"react": "^18.3.1",
"react-color": "^2.19.3",
"react-dom": "^18.2.0",
"react-markdown": "^9.0.1",
"react-refresh": "^0.14.0",
"react-router-dom": "^7.1.5",
"react-syntax-highlighter": "^15.5.0",
"react-test-renderer": "^18.2.0",
"react-dom": "^18.3.1",
"react-markdown": "^9.1.0",
"react-refresh": "^0.14.2",
"react-router-dom": "^7.18.2",
"react-syntax-highlighter": "^15.6.6",
"react-test-renderer": "^18.3.1",
"reactcss": "^1.2.3",
"remark-directive": "^3.0.0",
"remark-gfm": "^4.0.0",
"rollup": "^4.12.0",
"sass": "^1.71.1",
"remark-directive": "^3.0.1",
"remark-gfm": "^4.0.1",
"rollup": "^4.62.4",
"sass": "1.77.6",
"shelljs": "^0.8.5",
"simple-git": "^3.25.0",
"start-server-and-test": "^2.0.8",
"turndown": "^7.1.2",
"simple-git": "^3.36.0",
"start-server-and-test": "^2.1.5",
"turndown": "^7.2.4",
"turndown-plugin-gfm": "^1.0.2",
"typescript": "^5.3.3",
"unist-util-visit": "^5.0.0",
"vinyl-fs": "^4.0.0",
"vite": "^5.1.3",
"typescript": "^5.9.3",
"unist-util-visit": "^5.1.0",
"vinyl-fs": "^4.0.2",
"vite": "^5.4.21",
"vite-plugin-dts": "4.2.1",
"vitest": "^3.0.7",
"vitest": "^3.2.7",
"vitest-canvas-mock": "^0.3.3",
"yargs": "^17.7.2"
"yargs": "^17.7.3"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
Loading
Loading