Skip to content

chore: update maintenance dependencies#190

Merged
afc163 merged 20 commits into
masterfrom
codex/update-maintenance-deps
Jul 3, 2026
Merged

chore: update maintenance dependencies#190
afc163 merged 20 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

  • 新功能

    • 依赖更新现在按组管理,便于集中处理常见更新。
    • 仓库文档中的 Ant Design 标识现在可点击跳转到官网。
  • Bug 修复

    • 调整代码检查流程,避免在拉取请求场景下执行不必要的分析任务。
    • 更新类型与配置支持,提升 React、TypeScript 和测试环境的兼容性。
  • 维护

    • 升级了开发、测试和代码检查相关依赖,并同步调整项目配置。

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
input Ready Ready Preview, Comment Jul 3, 2026 3:35am

@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: 23 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: c22fff8e-d637-4990-9e8c-27afc9ded0c1

📥 Commits

Reviewing files that changed from the base of the PR and between 09e4ec3 and 6e00cf5.

⛔ Files ignored due to path filters (4)
  • tests/__snapshots__/BaseInput.test.tsx.snap is excluded by !**/*.snap
  • tests/__snapshots__/TextArea.allowClear.test.tsx.snap is excluded by !**/*.snap
  • tests/__snapshots__/TextArea.test.tsx.snap is excluded by !**/*.snap
  • tests/__snapshots__/index.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (8)
  • .eslintrc.js
  • README.md
  • README.zh-CN.md
  • eslint.config.mjs
  • global.d.ts
  • package.json
  • src/utils/types.ts
  • tsconfig.json

概览

升级开发工具链:引入 ESLint 9.x flat config(通过 FlatCompat 兼容旧配置)、将 React 升至 19.x、TypeScript 升至 6.x;新增 global.d.tsreact-compat.d.ts 补充类型声明;调整 tsconfig.json 放宽严格性并切换模块解析策略;同时更新 Dependabot 分组与 CodeQL CI 条件。

变更

工具链升级与类型兼容

Layer / File(s) 说明
依赖版本升级
package.json
devDependencies 大范围升级:ESLint 9.x 及插件体系、React/ReactDOM 18→19、TypeScript 5→6、@testing-library/* 及相关类型包同步升级。
ESLint flat config 迁移
eslint.config.mjs
新增 flat config 入口:使用 FlatCompat 转换旧 .eslintrc.js;实现 normalizeConfig 过滤/去重 @typescript-eslint 插件与规则;导出最终配置数组并全局关闭若干 @typescript-eslint/* 规则。
全局类型与 React 兼容补丁
global.d.ts, react-compat.d.ts, tsconfig.json
global.d.ts 新增 Jest/Vitest/JSX 类型声明;react-compat.d.ts 补充 ReactTextuseRefhydrate 等签名以兼容 React 19;tsconfig.json 将两文件纳入 include,切换 moduleResolutionbundler,关闭多项 strict 选项。
CI 与 Dependabot 调整
.github/dependabot.yml, .github/workflows/codeql.yml, README.md, README.zh-CN.md
Dependabot 新增 npm/github-actions 更新分组;CodeQL 任务跳过 pull_request 事件;README(中英文)徽标图片增加 https://ant.design 链接包裹。

估算代码审查工作量

🎯 3 (Moderate) | ⏱️ ~25 minutes

小诗

🐇 ESLint 换了新衣裳,
TypeScript 六代登场,
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

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 the project to React 19, TypeScript 6, and ESLint 9, adds a flat ESLint configuration, and groups Dependabot updates. However, the feedback highlights two critical issues: disabling strict type-checking flags in tsconfig.json significantly reduces type safety, and declaring ambient overrides for 'react' in a local react-compat.d.ts file will cause compilation errors for consumers since it won't be published. It is recommended to keep strict mode enabled and refactor the source code to be natively compatible with React 19.

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 react-compat.d.ts Outdated
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

✅ Preview is ready!

PR preview ✅ Ready ✅ Ready
🔗 Preview https://react-component-input-preview-pr-190.surge.sh
📝 Commit6e00cf5
⏱️ Build time17.322s
📦 Size1.7 MB · 50 files
🪵 LogsView logs
📱 MobileScan to open preview on mobile

↩️ Previous: ⚡️ 6e00cf5 · react-component-input-preview-pr-190.surge.sh (open ↗) · 2026-07-03 03:36:04 UTC

🤖 Powered by surge-preview

@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 6e00cf5.

@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 98.34%. Comparing base (8c99b00) to head (6e00cf5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #190   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files          11       11           
  Lines         423      423           
  Branches      131      137    +6     
=======================================
  Hits          416      416           
  Misses          7        7           

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

@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

@afc163

afc163 commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

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

Copilot AI review requested due to automatic review settings July 2, 2026 03:55

Copilot AI 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.

Pull request overview

This PR modernizes the repo’s maintenance/tooling setup by upgrading core dev dependencies (React/TS/ESLint/testing), migrating to ESLint 9 flat config, and tightening automation configuration (Dependabot grouping and CodeQL behavior). It also makes the Ant Design ecosystem logo in the READMEs link to the Ant Design site.

Changes:

  • Upgrade React/ReactDOM, TypeScript, ESLint 9, Testing Library, and related lint tooling deps.
  • Replace legacy .eslintrc.js with eslint.config.mjs (flat config) and add global.d.ts to centralize ambient type/module declarations.
  • Adjust automation: Dependabot grouped updates; CodeQL job gated to skip certain events.

Reviewed changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.json Updates module resolution/config and adds global.d.ts to include.
package.json Upgrades major dev tooling deps (React/TS/ESLint/testing) and adds new lint-related packages.
eslint.config.mjs Introduces ESLint 9 flat config with TS/React/Jest integration.
global.d.ts Adds ambient type references and module declarations for CSS/LESS and a few modules.
.eslintrc.js Removes legacy ESLint config (superseded by flat config).
.github/workflows/codeql.yml Adds conditional to skip CodeQL analysis on PR events.
.github/dependabot.yml Enables grouped Dependabot updates for npm and GitHub Actions.
README.md Wraps Ant Design logo with a link to https://ant.design.
README.zh-CN.md Wraps Ant Design logo with a link to https://ant.design.
src/utils/types.ts Removes an ESLint disable comment related to TypeScript utility types.
tests/__snapshots__/TextArea.test.tsx.snap Snapshot header link update.
tests/__snapshots__/TextArea.allowClear.test.tsx.snap Snapshot header link update.
tests/__snapshots__/index.test.tsx.snap Snapshot header link update.
tests/__snapshots__/BaseInput.test.tsx.snap Updates snapshots for input rendering (e.g., value="" removal) and header link.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread eslint.config.mjs Outdated
Comment thread .github/workflows/codeql.yml
@afc163 afc163 merged commit 6eed130 into master Jul 3, 2026
17 checks passed
@afc163 afc163 deleted the codex/update-maintenance-deps branch July 3, 2026 12:31
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