Skip to content

chore: update maintenance dependencies#529

Open
afc163 wants to merge 13 commits into
masterfrom
codex/update-maintenance-deps
Open

chore: update maintenance dependencies#529
afc163 wants to merge 13 commits into
masterfrom
codex/update-maintenance-deps

Conversation

@afc163

@afc163 afc163 commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Link the Ant Design ecosystem logo in README files to https://ant.design
  • Update React, React DOM, TypeScript, ESLint, Testing Library, @types/, @typescript-eslint/, lint-staged, and related lint dependencies
  • Add ESLint flat config compatibility for ESLint 9 and TypeScript ESLint 8
  • Use grouped Dependabot updates for npm and GitHub Actions

Test Plan

  • npm run lint
  • npm run tsc

Summary by CodeRabbit

  • 文档

    • 更新了中英文 README 的顶部徽标展示,并调整了本地运行与开发命令示例。
  • 新功能

    • 优化了依赖更新分组规则,便于更统一地管理自动更新。
  • Chores

    • 升级了前端开发与构建相关基础配置,支持更新的工具链与类型环境。

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/react-component?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@afc163, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 15 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0f4953b1-cd82-43e9-99b4-1746e823420d

📥 Commits

Reviewing files that changed from the base of the PR and between fd02564 and 914846e.

📒 Files selected for processing (5)
  • README.md
  • README.zh-CN.md
  • global.d.ts
  • package.json
  • tsconfig.json

Walkthrough

本次变更升级了依赖版本(含React 19、TypeScript 6),将ESLint迁移至Flat配置,调整了tsconfig.json的模块解析与严格性选项,新增global.d.ts全局类型声明,并更新了README文档与dependabot分组配置。

Changes

工具链与配置升级

Layer / File(s) Summary
依赖版本升级与peerDependencies调整
package.json
devDependencies中多项工具链依赖版本上调(含React/ReactDOM升至19.2.7、TypeScript升至6.0.3),peerDependencies收紧为固定^19.2.7
ESLint Flat配置迁移
eslint.config.mjs
新增基于@eslint/jsFlatCompat的Flat配置,兼容旧.eslintrc.js,实现normalizeConfig规范化规则并关闭部分@typescript-eslint规则。
TypeScript配置与全局类型声明
tsconfig.json, global.d.ts
moduleResolution改为bundlermodule改为ESNext,关闭多项严格性选项;新增global.d.ts声明jest/vi全局类型及*.css/*.less等模块。
文档与dependabot配置更新
README.md, README.zh-CN.md, .github/dependabot.yml
徽标图片增加链接/样式;安装命令示例被替换为ut install;dependabot为npm与github-actions新增依赖分组规则。

Estimated code review effort: 3 (Moderate) | ~25 minutes

Suggested reviewers: zombieJ

Poem

小兔敲键盘,配置换新装 🐰
ESLint扁平化,规则理得清爽
React十九岁,跳跃又轻盈
徽标加了链,安装命令却打了个滚
愿代码常青,愿评审心情好~ 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题简洁且准确概括了此次以维护依赖和工具链升级为主的变更。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/update-maintenance-deps

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.

@socket-security

socket-security Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​types/​jest@​29.5.14 ⏵ 30.0.01001007780100
Addednpm/​@​types/​react@​19.2.171001007995100
Addednpm/​@​eslint/​eslintrc@​3.3.59910010084100
Addednpm/​@​eslint/​js@​9.39.410010010088100
Addednpm/​typescript@​6.0.3100100909690
Addednpm/​eslint@​9.39.49710010096100

View full report

@socket-security

socket-security Bot commented Jun 29, 2026

Copy link
Copy Markdown

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades React to v19, TypeScript to v6, and ESLint to v9, alongside adding a new flat ESLint configuration and compatibility type definitions. However, several issues were identified in the review: disabling strict TypeScript compiler flags in tsconfig.json significantly reduces type safety; declaring test globals as any in global.d.ts overrides strongly-typed Jest definitions; and shimming deprecated ESLint rules at runtime in eslint.config.mjs adds unnecessary complexity and fragility compared to updating the base configuration directly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tsconfig.json Outdated
Comment thread global.d.ts Outdated
Comment thread eslint.config.mjs
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tooltip Error Error Jul 1, 2026 5:23am

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

❌ Deploy failed

PR preview ❌ Failed ❌ Failed
🔗 Preview https://react-component-tooltip-preview-pr-529.surge.sh (may be unavailable)
📝 Commit914846e
🪵 LogsView logs
📋 Build log (last lines)
npm warn exec The following package was not found and will be installed: surge@0.27.4

   Running as afc163@gmail.com (Student)

        project: ./docs-dist
         domain: react-component-tooltip-preview-pr-529.surge.sh
           size: 59 files, 1.8 MB

   Aborted - you do not have permission to publish to react-component-tooltip-preview-pr-529.surge.sh

🤖 Powered by surge-preview

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (766604a) to head (914846e).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #529   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           36        36           
  Branches        14        14           
=========================================
  Hits            36        36           

☔ 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.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

React Doctor skipped this pull request — it changed no React files.

Reviewed by React Doctor for commit 914846e.

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/afc163s-projects?upgradeToPro=build-rate-limit

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 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 `@global.d.ts`:
- Around line 22-29: `jest.Matchers` 的泛型签名与 `@types/jest` 不一致,导致声明合并冲突。请在
`declare namespace jest` 下的 `Matchers` 接口中将泛型参数对齐为与 `@types/jest@30` 一致的形式,并保留现有
matcher 方法定义,这样可避免 TS2428 类型检查失败。

In `@package.json`:
- Around line 88-90: The React peer dependency range is too narrow in
peerDependencies and excludes compatible React 19 versions earlier than 19.2.7.
Update the react and react-dom entries in package.json to a broader React 19
range, such as ^19.0.0, unless code elsewhere explicitly requires
19.2.7-specific APIs.

In `@README.md`:
- Line 52: Fix the installation command typo in the local development
instructions by replacing the incorrect “ut install” text with the proper
package install command in both README occurrences. Update the affected setup
guidance so the referenced install step is consistent and discoverable, using
the surrounding installation section to locate the two occurrences.

In `@README.zh-CN.md`:
- Around line 52-53: The local setup instructions contain a typo in the install
command, so update the README.zh-CN.md development steps to use npm install
instead of ut install in both occurrences. Locate the two setup command blocks
in the README and correct the installation command text only, keeping the rest
of the instructions unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bb89e218-a006-408e-a627-166fc45e375c

📥 Commits

Reviewing files that changed from the base of the PR and between 766604a and fd02564.

📒 Files selected for processing (7)
  • .github/dependabot.yml
  • README.md
  • README.zh-CN.md
  • eslint.config.mjs
  • global.d.ts
  • package.json
  • tsconfig.json

Comment thread global.d.ts Outdated
Comment thread package.json Outdated
Comment thread README.md Outdated
Comment thread README.zh-CN.md Outdated
@afc163

afc163 commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

Related to ant-design/ant-design#58514.

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.

1 participant