Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependencies and publishing script #513

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

aojunhao123
Copy link
Contributor

@aojunhao123 aojunhao123 commented Feb 18, 2025

Summary by CodeRabbit

  • Chores
    • 优化了构建与预发布流程,更新了依赖版本以提高系统的稳定性和兼容性。

Copy link

coderabbitai bot commented Feb 18, 2025

Walkthrough

此次更新修改了 package.json 文件,调整了预发布命令并更新了依赖管理。预发布命令已从使用 np --yolo --no-publish 更改为 rc-np。同时,@rc-component/father-plugin 的版本被升级到了 ^2.0.0,添加了新依赖 @rc-component/np(版本 ^1.0.3),并将 @types/react-dom 的版本降级至 ^18.0.0,此外移除了 np 依赖。

Changes

文件 更改说明
package.json 修改 prepublishOnly 命令为 rc-np;升级 @rc-component/father-plugin^2.0.0;添加依赖 @rc-component/np@^1.0.3;降级 @types/react-dom^18.0.0;移除 np 依赖

Sequence Diagram(s)

sequenceDiagram
    participant Dev as 开发者
    participant Pkg as package.json
    participant Build as 构建系统
    participant DM as 依赖管理器

    Dev->>Pkg: 触发 prepublishOnly 脚本
    Pkg->>Build: 调用 "rc-np" 命令
    Build->>DM: 检查并加载依赖 (@rc-component/father-plugin, @rc-component/np, @types/react-dom)
    DM-->>Build: 返回依赖信息
    Build-->>Dev: 构建流程继续,准备发布
Loading

Poem

我是小兔子跳跃忙,
代码更新终身不忘。
脚本换新意儿飞扬,
依赖升级步步高扬。
构建之路春风荡,🐰 快乐无限光!
代码花园乐无疆。
未来更新共飞翔!


📜 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 e5a6910 and 8e98aa7.

📒 Files selected for processing (1)
  • package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (3)
package.json (3)

36-36: 预发布脚本更新
将 prepublishOnly 命令修改为 "npm run compile && rc-np",请确认新命令 rc-np 能正确执行预发布流程,并更新相关文档以反映该变更。


44-45: 依赖更新:升级与新增
@rc-component/father-plugin 版本升级至 ^2.0.0 并新增依赖 @rc-component/np (^1.0.3),请确认这些变更与项目工具链及其他依赖兼容,并检查是否存在潜在的 breaking changes。


52-52: 类型依赖降级
@types/react-dom 版本降级至 ^18.0.0,请确认此降级不会影响项目中对 React DOM 的类型支持以及与 React 18 的其他依赖兼容。


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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. (Beta)
  • @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.

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@rc-component/[email protected] 🔁 npm/@rc-component/[email protected] None +4 121 kB zombiej
npm/@types/[email protected] 🔁 npm/@types/[email protected] None 0 37.9 kB types

🚮 Removed packages: npm/[email protected]

View full report↗︎

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.71%. Comparing base (e5a6910) to head (8e98aa7).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #513   +/-   ##
=======================================
  Coverage   97.71%   97.71%           
=======================================
  Files          13       13           
  Lines         788      788           
  Branches      235      227    -8     
=======================================
  Hits          770      770           
  Misses         18       18           

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

@aojunhao123 aojunhao123 changed the title chore(deps): update development dependencies and publishing script chore(deps): update dependencies and publishing script Feb 18, 2025
@zombieJ zombieJ merged commit f6e5e85 into react-component:master Feb 18, 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