Skip to content

Conversation

@EmilyyyLiu
Copy link
Contributor

@EmilyyyLiu EmilyyyLiu commented Oct 22, 2025

迁移到 @rc-component 空间

Summary by CodeRabbit

  • Chores

    • 包名已从 rc-overflow 更新为 @rc-component/overflow,版本重置为 1.0.0
    • 升级以支持 React 18 并调整构建/发布脚本与开发依赖
    • 移除了 Vercel 部署配置文件
    • 若干内部依赖导入路径和测试/构建相关依赖已统一更新
  • Documentation

    • README 标题已更新为 @rc-component/overflow
@vercel
Copy link

vercel bot commented Oct 22, 2025

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

A member of the Team first needs to authorize it.

@gemini-code-assist
Copy link

Summary of Changes

Hello @EmilyyyLiu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求的核心目标是将 rc-overflow 包迁移到 @rc-component 命名空间下。这包括更新包的名称、其依赖项以及相关的构建配置,以使其与新的组织结构保持一致。此更改旨在标准化 @rc-component 生态系统内的包命名和依赖管理。

Highlights

  • 包名迁移: 将包名从 rc-overflow 迁移到 @rc-component/overflow,这体现在 package.jsonREADME.mdtsconfig.json 文件中。
  • 依赖更新: 将 rc-utilrc-resize-observer 等依赖更新为它们在 @rc-component 命名空间下的对应版本,例如 rc-util 变为 @rc-component/util
  • 构建与发布脚本调整: 更新了 package.json 中的 prepublishOnly 脚本,改用 rc-np 进行发布流程,并移除了旧的 np 依赖。
  • 移除 Vercel 配置: 删除了 now.json 文件,该文件可能包含了 Vercel 部署相关的配置。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link

coderabbitai bot commented Oct 22, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

将包名从 rc-overflow 重命名为 @rc-component/overflow,统一替换代码与配置中的 rc-* 导入为对应的 @rc-component/* 包,更新 package.json(版本、依赖、发布脚本、React/TS 目标),并移除 now.json。无功能性逻辑变更。

Changes

Cohort / File(s) 变更摘要
包与配置变更
package.json, tsconfig.json, README.md, now.json
包名 rc-overflow@rc-component/overflow,版本 1.4.11.0.0,发布脚本由 nprc-np,升级 React/TypeScript 相关版本,移除 now.json 部署配置,tsconfig 别名同步更新。
核心源码导入更新
src/Item.tsx, src/Overflow.tsx, src/hooks/channelUpdate.ts, src/hooks/useEffectState.tsx
将依赖导入由 rc-resize-observer@rc-component/resize-observerrc-util 及其子路径 → @rc-component/util(包括 useLayoutEffect, raf, useEvent)。无其它逻辑或 API 变更。
示例与测试导入更新
examples/fill-width.tsx, tests/github.spec.tsx
示例与测试中相应替换导入源:rc-util/...@rc-component/util/...rc-resize-observer/...@rc-component/resize-observer/...
构建/脚本与依赖调整
package.json(依赖/开发依赖)
移除/替换若干包(如 @babel/runtime, rc-resize-observer, rc-util, np),新增/替换为 @rc-component/* 系列与 @rc-component/np,并更新测试/类型相关依赖版本(React 18 等)。

Sequence Diagram(s)

更改仅限包名与导入路径替换,控制流无变化,故不生成序列图。

Estimated code review effort

🎯 2 (简单) | ⏱️ ~12 分钟

变更为大量一致性替换与配置更新,逻辑未改动,审查重点为导入路径、package.json 与 tsconfig 的一致性。

兔子的庆贺诗

🐰 包名换新装,路径整齐跳两行,
依赖换了位置,代码依旧去忙忙;
版本归一笑开朗,编译跑通我欢畅。 🥕✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed PR标题"chore: migrate to @rc-component namespace"完全准确地反映了此changeset的主要变更。整个PR的核心目的是将项目从"rc-overflow"、"rc-util"、"rc-resize-observer"等旧命名空间迁移到"@rc-component"统一命名空间,包括更新package.json中的包名、依赖项、导入路径以及配置文件。标题简洁、具体且清晰地传达了这一意图。
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7a3f7ef and dd6168d.

📒 Files selected for processing (1)
  • package.json (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: Socket Security: Project Report

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 and usage tips.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request migrates the rc-overflow component to the @rc-component namespace. This involves updating the package name, dependencies, and import paths across multiple files. The changes appear to be straightforward namespace updates with version bumps. I have identified a potential issue with the version number in package.json and have raised a comment.

@EmilyyyLiu EmilyyyLiu force-pushed the migrate-rc-component branch from dd6168d to 142c9a1 Compare October 22, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant