Skip to content

Conversation

@aojunhao123
Copy link
Contributor

@aojunhao123 aojunhao123 commented Mar 4, 2025

Summary by CodeRabbit

  • Chore
    • 更新了包的名称和版本,并调整了依赖项及发布脚本,提升了构建流程的一致性。
  • Documentation
    • 修改了示例代码中的引入路径,让文档内容与新版包管理保持同步。
  • Refactor
    • 统一了各模块中工具和组件的导入路径,并标准化了配置格式。
  • Tests
    • 更新了测试文件的依赖路径,确保测试环境与新依赖保持一致。

@vercel
Copy link

vercel bot commented Mar 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tree ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2025 9:53am

@coderabbitai
Copy link

coderabbitai bot commented Mar 4, 2025

Warning

Rate limit exceeded

@aojunhao123 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 41 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between e84a27f and 5644f08.

📒 Files selected for processing (1)
  • .github/dependabot.yml (1 hunks)

Walkthrough

本次提交主要更新了多个文件中的依赖导入路径,将原有的 rc- 前缀替换为 @rc-component/ 前缀。同时,package.json 文件中更新了包名、版本号、脚本和依赖项,统一了工具及测试文件中的导入路径。整体变更为代码重构和依赖迁移,不涉及业务逻辑或功能上的改变。

Changes

文件 修改摘要
.github/dependabot.yml 格式化 YAML 结构;将依赖名称 rc-tooltip 更名为 @rc-component/tooltip,添加 @rc-component/np 版本 1.0.0,移除版本 7.2.07.3.07.4.0
docs/examples/* 更新所有示例文件(如 animation-draggable.jsx、animation.jsx、basic-controlled.jsx、basic.jsx、big-data.jsx、contextmenu.jsx、custom-switch-icon.jsx、draggable-allow-drop.jsx、dropdown.jsx、dynamic.jsx、expandAction.jsx、fieldNames.tsx、funtionTitle.jsx、icon.jsx、selectable.jsx)中导入路径;将 rc-treerc-dialogrc-motionrc-tooltiprc-trigger 等替换为对应的 @rc-component/*,并调整相关 CSS 引入。
package.json 修改包名(由 "rc-tree" 变为 "@rc-component/tree")、版本号(由 "5.13.1" 变为 "1.0.0");调整 prepublish 脚本(由 np --yolo --no-publish 改为 rc-np);更新及替换多个依赖项,将 rc-* 包统一替换为 @rc-component/*
src/* 对 src 文件(如 MotionTreeNode.tsx、NodeList.tsx、Tree.tsx、TreeNode.tsx、useUnmount.ts、util.tsx、utils/conductUtil.ts、utils/treeUtil.ts)中工具和钩子的导入路径进行修改;将 rc-util/lib/… 转换为 @rc-component/util/lib/…,以及将 rc-motion 修改为 @rc-component/motion
tests/* 更新测试文件(如 Accessibility.spec.tsx、Tree.spec.tsx、TreeDraggable.spec.tsx、TreeMotion.spec.tsx、TreeProps.spec.tsx)中各工具函数与模块导入路径(如 KeyCode、resetWarned、spyElementPrototypes 等),统一调整为 @rc-component/* 前缀,并修改 mock 配置。
tsconfig.json 调整路径映射,将 "rc-tree": ["src/index.ts"] 修改为 "@rc-component/tree": ["src/index.ts"];并对 include 格式进行简化。

Suggested reviewers

  • afc163

我是一只小兔子,
跳跃在代码草丛间,
将旧依赖轻轻换新颜,
小步伐亦见大变迁,
ASCII 萌兔笑开颜 🐰✨
愿代码更稳、更清甜!


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@socket-security
Copy link

socket-security bot commented Mar 4, 2025

@codecov
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.84%. Comparing base (08f21b0) to head (5644f08).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #926   +/-   ##
=======================================
  Coverage   99.84%   99.84%           
=======================================
  Files          14       14           
  Lines        1274     1274           
  Branches      383      392    +9     
=======================================
  Hits         1272     1272           
  Misses          2        2           

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

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between be6666b and e84a27f.

📒 Files selected for processing (1)
  • .github/dependabot.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/dependabot.yml

[error] 21-21: syntax error: expected , but found '?'

(syntax)

🔇 Additional comments (1)
.github/dependabot.yml (1)

3-29: 依赖迁移配置更新确认
该部分变更已将依赖名称从 rc- 前缀更新为 @rc-component/ 命名空间,并新增了 @rc-component/np 依赖。整体配置看起来符合此次依赖迁移的目标,请确认 CI/CD 以及其他配置文件中的依赖引用也进行了相应更新。

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 21-21: syntax error: expected , but found '?'

(syntax)

@zombieJ zombieJ merged commit 4ce3d40 into react-component:master Mar 5, 2025
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