Skip to content

chore(deps): upgrade @rc-component/tree to 1.5.3 - #687

Merged
zombieJ merged 2 commits into
react-component:masterfrom
aojunhao123:chore/bump-tree-1.5.3
Sep 10, 2026
Merged

chore(deps): upgrade @rc-component/tree to 1.5.3#687
zombieJ merged 2 commits into
react-component:masterfrom
aojunhao123:chore/bump-tree-1.5.3

Conversation

@aojunhao123

@aojunhao123 aojunhao123 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Raise the minimum @rc-component/tree version from ~1.5.0 to ~1.5.3 to include the controlled/uncontrolled state fixes in fix: treat undefined props as uncontrolled tree#1069.
  • Update the search-clear snapshot: releasing the search-controlled expandedKeys now resets expansion, so the leaf node no longer retains the switcher-open class.
  • Add one behavior test covering automatic search expansion followed by clearing the search without manual expansion. It asserts the visible nodes rather than CSS classes.
  • No TreeSelect production code changes or package version bump.

Validation

Dependencies installed with pnpm; verified that @rc-component/tree resolves to 1.5.3.

  • pnpm test --runInBand --silent: 12 suites, 185 tests, and 15 snapshots passed.
  • Counterfactual check: the new behavior test fails with Tree 1.5.2 and passes with Tree 1.5.3.
  • pnpm run tsc: passed.
  • pnpm run lint: passed with 0 errors and 6 warnings in unchanged source/example files.
  • Prettier checks for package.json and tests/Select.spec.tsx: passed.
  • git diff --check: passed.

Summary by CodeRabbit

  • Bug 修复
    • 修复树组件中,搜索子节点后清空搜索内容时,节点展开状态未正确恢复的问题。
  • 维护
    • 更新树组件相关依赖版本,提升兼容性与稳定性。

@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

@aojunhao123 is attempting to deploy a commit to the React Component Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: e085cc1b-aa67-4b5e-9f10-c405f03b144d

📥 Commits

Reviewing files that changed from the base of the PR and between 2631215 and 3b4dc76.

📒 Files selected for processing (1)
  • tests/Select.spec.tsx

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


Walkthrough

更新 @rc-component/tree 的依赖版本约束,并新增测试验证搜索内容清空后的树节点可见状态。

Changes

树选择器更新

Layer / File(s) Summary
更新 Tree 依赖约束
package.json
@rc-component/tree 的版本约束从 ~1.5.0 更新为 ~1.5.3
验证搜索分支恢复行为
tests/Select.spec.tsx
新增搜索工具导入。测试搜索子节点后显示父节点和匹配子节点,并在清空搜索后恢复根节点列表。

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 3b4dc

This updates the Tree dependency for controlled and uncontrolled state fixes and verifies that clearing a search restores the expected collapsed tree visibility. No merge-blocking risk is evident.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题明确说明将 @rc-component/tree 升级到 1.5.3,准确概括了变更的主要内容。
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

小兔查看树节点,
搜索展开一条线。
清空输入枝叶收,
根节点重新出现。
依赖版本也更新。

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.84%. Comparing base (7035d29) to head (3b4dc76).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #687   +/-   ##
=======================================
  Coverage   99.84%   99.84%           
=======================================
  Files          17       17           
  Lines         633      633           
  Branches      198      198           
=======================================
  Hits          632      632           
  Misses          1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zombieJ
zombieJ merged commit 8691e30 into react-component:master Sep 10, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants