chore(deps): upgrade @rc-component/tree to 1.5.0 - #660
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Walkthrough生产依赖 Changes树组件依赖更新
Estimated code review effort: 1(简单) | ~5 分钟 Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #660 +/- ##
=======================================
Coverage 99.39% 99.39%
=======================================
Files 22 22
Lines 661 661
Branches 204 193 -11
=======================================
Hits 657 657
Misses 4 4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
❌ Deploy failed
📋 Build log (last lines)🤖 Powered by surge-preview |
|||||||||
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with 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.
Inline comments:
In `@package.json`:
- Line 48: Update the `@rc-component/tree` dependency in package.json from the
unavailable ~1.5.0 range to the published 1.3.2 version, and adjust any code
affected by that version change so installation and CI dependency resolution
succeed.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| "dependencies": { | ||
| "@rc-component/select": "~1.10.0", | ||
| "@rc-component/tree": "~1.4.0", | ||
| "@rc-component/tree": "~1.5.0", |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
version="$(npm view `@rc-component/tree`@1.5.0 version \
--registry=https://registry.npmjs.org/ 2>/dev/null || true)"
test "$version" = "1.5.0" || {
echo "未找到 `@rc-component/tree`@1.5.0"
exit 1
}Repository: react-component/cascader
Length of output: 191
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
echo "== package.json dependency =="
python3 - <<'PY'
import json
from pathlib import Path
p=Path("package.json")
data=json.loads(p.read_text())
for sec in ("dependencies","devDependencies"):
if sec in data and "`@rc-component/tree`" in data[sec]:
print(sec, data[sec]["`@rc-component/tree`"])
PY
echo "== registry metadata for `@rc-component/tree` =="
npm view `@rc-component/tree` version dist-tags --registry=https://registry.npmjs.org/
echo "== lockfile reference (if present) =="
if [ -f package-lock.json ]; then
python3 - <<'PY'
import json, re
data=json.load(open("package-lock.json"))
for k,v in data.get("packages",{}).items():
if k.endswith("node_modules/@rc-component/tree"):
print(k, v.get("version"), v.get("resolved"))
break
else:
print("no package-lock entry")
PY
else
echo "no package-lock.json"
fiRepository: react-component/cascader
Length of output: 901
🌐 Web query:
npm view @rc-component/treeversion dist-tags@rc-component/tree 1.5.0
💡 Result:
As of August 6, 2026, the package @rc-component/tree does not have a version 1.5.0. The latest version available in the npm registry is 1.3.2, which was published on May 25, 2026 [1][2][3]. The version 1.3.2 is currently tagged as the latest version [1][2].
Citations:
- 1: https://npmx.dev/package/@rc-component/tree/versions
- 2: https://npmx.dev/package/@rc-component/tree
- 3: https://registry.npmjs.org/@rc-component/tree
将 @rc-component/tree 换为已发布版本。
package.json 中当前范围是 ~1.5.0,但公开 npm 源中 @rc-component/tree@1.5.0 不存在,最新版为 1.3.2。依赖解析会失败,会导致安装和 CI 失败。请使用已发布版本并更新代码,或先发布 1.5.0。
🤖 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` at line 48, Update the `@rc-component/tree` dependency in
package.json from the unavailable ~1.5.0 range to the published 1.3.2 version,
and adjust any code affected by that version change so installation and CI
dependency resolution succeed.

Upgrade
@rc-component/treefrom~1.4.0to~1.5.0to consume the latest Tree behavior.Validation:
ut run test -- --runInBandut run tscSummary by CodeRabbit