Skip to content

Conversation

kiner-tang
Copy link
Member

中文版模板 / Chinese template

🤔 This is a ...

  • 🆕 New feature
  • 🐞 Bug fix
  • 📝 Site / documentation improvement
  • 📽️ Demo improvement
  • 💄 Component style improvement
  • 🤖 TypeScript definition improvement
  • 📦 Bundle size optimization
  • ⚡️ Performance optimization
  • ⭐️ Feature enhancement
  • 🌐 Internationalization
  • 🛠 Refactoring
  • 🎨 Code style optimization
  • ✅ Test Case
  • 🔀 Branch merge
  • ⏩ Workflow
  • ❓ Other (about what?)

🔗 Related Issues

  • Describe the source of related requirements, such as links to relevant issue discussions.
  • For example: close #xxxx, fix #xxxx

💡 Background and Solution

  • The specific problem to be addressed.
  • List the final API implementation and usage if needed.
  • If there are UI/interaction changes, consider providing screenshots or GIFs.

📝 Change Log

Language Changelog
🇺🇸 English Retire deprecated api for form
🇨🇳 Chinese form 废弃 api 退休

@kiner-tang kiner-tang requested review from zombieJ and crazyair January 4, 2025 03:58
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Contributor

github-actions bot commented Jan 4, 2025

Preview is ready

Copy link
Contributor

github-actions bot commented Jan 4, 2025

👁 Visual Regression Report for PR #52235 Failed ❌

🎯 Target branch: next (07c34d9)
📖 View Full Report ↗︎
📊 Summary: 🔄 1 changed

Expected (Branch next) Actual (Current PR) Diff
input-group.compact.png input-group.compact.png input-group.compact.css-var.png input-group.compact.css-var.png

Important

There are 1 diffs found in this PR: 🔄 1 changed.
Please check all items:

  • Visual diff is acceptable

Copy link

Walkthrough

This pull request focuses on retiring deprecated APIs related to forms in the Ant Design library. The changes involve removing deprecated properties and methods, such as hideRequiredMark, fieldKey, and Form.create, from various components and test files. This update aims to clean up the codebase by eliminating outdated functionalities.

Changes

Files Summary
components/form/Form.tsx, components/form/FormItem/index.tsx, components/form/FormList.tsx Removed deprecated properties hideRequiredMark and fieldKey.
components/form/tests/index.test.tsx Removed tests related to deprecated features like Form.create and hideRequiredMark.
components/form/index.tsx Removed the deprecated Form.create method and related warnings.

if (contextForm && contextForm.requiredMark !== undefined) {
return contextForm.requiredMark;
}

return true;
}, [hideRequiredMark, requiredMark, contextForm]);
}, [requiredMark, contextForm]);

Choose a reason for hiding this comment

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

Ensure that removing hideRequiredMark does not affect any existing functionality that relies on this property. Double-check if any external dependencies or documentation still reference this property.

Copy link
Contributor

github-actions bot commented Jan 4, 2025

size-limit report 📦

Path Size
dist/antd.min.js 445.29 KB (-26 B 🔽)
dist/antd-with-locales.min.js 513.49 KB (-31 B 🔽)

Copy link

pkg-pr-new bot commented Jan 4, 2025

Copy link

cloudflare-workers-and-pages bot commented Jan 4, 2025

Deploying ant-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd5215d
Status: ✅  Deploy successful!
Preview URL: https://c1699e72.ant-design.pages.dev
Branch Preview URL: https://v6-kiner-retire-deprecated-a-ctwu.ant-design.pages.dev

View logs

Copy link

codecov bot commented Jan 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b75fd72) to head (cd5215d).
Report is 55 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff            @@
##              next    #52235   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          763       760    -3     
  Lines        13734     13695   -39     
  Branches      3585      3580    -5     
=========================================
- Hits         13734     13695   -39     

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

@kiner-tang kiner-tang requested a review from zombieJ January 8, 2025 00:54
Copy link

codecov bot commented Jan 8, 2025

Bundle Report

Changes will decrease total bundle size by 2.76kB (-0.08%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
antd.min-array-push 3.37MB 2.76kB (-0.08%) ⬇️

@zombieJ zombieJ merged commit 50bee02 into next Jan 13, 2025
41 checks passed
@zombieJ zombieJ deleted the v6-kiner-retire-deprecated-api-form branch January 13, 2025 09:40
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