Skip to content

[Snyk] Upgrade antd from 5.18.0 to 5.27.1#11

Open
VV1NN wants to merge 6 commits intomainfrom
snyk-upgrade-da9a5384efe633a2296d4cab11d228e9
Open

[Snyk] Upgrade antd from 5.18.0 to 5.27.1#11
VV1NN wants to merge 6 commits intomainfrom
snyk-upgrade-da9a5384efe633a2296d4cab11d228e9

Conversation

@VV1NN
Copy link
Owner

@VV1NN VV1NN commented Sep 17, 2025

snyk-top-banner

Snyk has created this PR to upgrade antd from 5.18.0 to 5.27.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 61 versions ahead of your current version.

  • The recommended version was released a month ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-BABELRUNTIME-10044504
452 Proof of Concept
Release notes
Package name: antd
  • 5.27.1 - 2025-08-19
    • 🐞 Fix Form with nest Form that parent Form.Item status will pass to sub Fom's noStyle Form.Item. #54715 @ zombieJ
    • 🐞 Fix Table header Checkbox flickering issue. #54713 @ QdabuliuQ
    • 💄 Optimize Collapse clickable expand area with mouse cursor to improve user experience. #54706 @ Copilot
    • 🐞 Fix Pagination button and input size with simple mode. #54652 @ guoyunhe
    • 🌐 Add Vietnamese translation. #54644 @ doandevhere

    • 🐞 修复 Form 嵌套场景下,父级 Form.Item 的 status 会传递给子级 noStyle Form.Item 的问题。#54715 @ zombieJ
    • 🐞 修复 Table 组件的头部 Checkbox 会出现闪烁的问题。#54713 @ QdabuliuQ
    • 💄 优化 Collapse 可点击展开区域的鼠标样式以优化用户体验。#54706 @ Copilot
    • 🐞 修复 Pagination simple 样式下,按钮和输入框的尺寸异常问题。#54652 @ guoyunhe
    • 🌐 添加越南语支持。#54644 @ doandevhere
  • 5.27.0 - 2025-08-11
    • ConfigProvider
    • Tabs
    • Button
      • 💄 Button support iconGap component token. #54629 @ guoyunhe
      • 🐞 Fix Button hover/active text color of button with variant="filled" and href set. #54614 @ Komoszek
    • Input
    • 🆕 Table support getHeaderCheckboxProps method to the checkbox in the table title. #54600 @ EmilyyyLiu
    • 🆕 Tooltip support adjusting the text color based on configured color. #54552 @ EmilyyyLiu
    • 🆕 Tag.CheckableTag supports icon prop. #54298 @ QdabuliuQ
    • 🆕 Splitter support showCollapsibleIcon to control if hiding collapse icon. #54154 @ rxy001
    • 🐞 Fix the issue where the suffix shifts to the left after the mouse hovers over InputNumber in read-only mode. #54585 @ Wxh16144
    • 🐞 Fix Typography copyable cause react maximum render error in some cases. #54449 @ Meet-student
    • 🐞 Fixed Avatar component to properly apply font size design tokens. #54187 @ doandevhere
    • 🐞 Fix Modal and Drawer panelRef prop not work. #54619 @ dengfuping
    • 💄 DatePicker remove !important style. #54634 @ Jiyur
    • 💄 Fixed Form.Item layout disorder when layout="vertical" is set to layout="horizontal". #54611 @ crazyair
    • 💄 Fix Space.Compact border cropping issue. #54596 @ 765477020
    • 💄 Adjusted the Carousel dot background to prevent white gaps during animation. #54529 @ Limoer96
    • 💄 MISC: Add new CSS variables for the "size" series. #54621 @ 765477020
    • 💄 Fix Select, TreeSelect and Cascader unexpected compact style inside popup. #54544 @ EmilyyyLiu
    • 🇻🇳 Add missing transfer component localization text of vi-VN. #54638 @ Jiyur
    • 🛠 MISC: Remove unnecessary object spread syntax for genFocusOutline calls. #54622 @ afc163
    • 🛎 Fix Button and Splitter warn in SSR. #54517 @ Meet-student
    • TypeScript

    • ConfigProvider
      • 🆕 ConfigProvider 支持 FloatButton 组件 backTopIcon 全局配置。#54493 @ guoyunhe
      • 🆕 ConfigProvider 支持全局配置 empty 图片。#54502 @ guoyunhe
      • 🆕 ConfigProvider 支持 Upload 组件 customRequest 全局配置。#54474 @ guoyunhe
      • 🆕 ConfigProvider 支持 Button 组件 shape 全局配置。#54463 @ guoyunhe
    • Tabs
    • Button
      • 💄 Button 增加 iconGap 组件 token。#54629 @ guoyunhe
      • 🐞 修复 Button 在 variant="filled" 且设置 href 时的悬停/点击文本颜色异常。#54614 @ Komoszek
    • Input
    • 🆕 Table 标题中复选框增加 getHeaderCheckboxProps 方法。#54600 @ EmilyyyLiu
    • 🆕 Tooltip 支持根据背景色自动调整文本颜色。#54552 @ EmilyyyLiu
    • 🆕 Tag.CheckableTag 支持传入 icon 属性。#54298 @ QdabuliuQ
    • 🆕 Splitter 支持通过 showCollapsibleIcon 控制可折叠图标显隐。#54154 @ rxy001
    • 🐞 修复 InputNumber 在只读状态下鼠标划入后 suffix 出现左移的问题。#54585 @ Wxh16144
    • 🐞 修复 Typography 组件 copyable 在某些情况下导致 react 渲染过多的问题。#54449 @ Meet-student
    • 🐞 修复 Avatar 组件未正确应用字体大小设计令牌的问题。#54187 @ doandevhere
    • 🐞 修复 Modal 和 Drawer panelRef 属性不生效的问题。#54619 @ dengfuping
    • 💄 DatePicker 移除 !important 样式。#54634 @ Jiyur
    • 💄 修复 Form layout="horizontal"layout="vertical" 的 Form.Item 布局错乱的问题。#54611 @ crazyair
    • 💄 修复 Space.Compact 边框裁剪问题。#54596 @ 765477020
    • 💄 修复 Carousel 动画中的白缝问题。#54529 @ Limoer96
    • 💄 杂项:新增 size 系列 css 变量。#54621 @ 765477020
    • 💄 修复 TreeSelect 和 Cascader 组件弹窗内错误套用 compact 样式的问题。#54544 @ EmilyyyLiu
    • 🛠 杂项:移除 genFocusOutline 多余的 spread 语法。#54622 @ afc163
    • 🛎 修复 Button 和 Splitter 组件在 SSR 下的 Warning。#54517 @ Meet-student
    • 🇻🇳 添加 vi-VN 缺失的 Transfer 组件本地化文本。#54638 @ Jiyur
    • TypeScript
  • 5.26.7 - 2025-07-29
    • 🐞 Fixed Card tabBarExtraContent typing to support both React.ReactNode and { left?: React.ReactNode; right?: React.ReactNode } using TabBarExtraContent from rc-tabs. #54470 @ pueding
    • 🐞 Fixed the issue where the cursor position was incorrect after pasting text into TextArea. #72 @ QdabuliuQ
    • ⚡️ Optimized the size of the Result component icon. #54455 @ 765477020
    • ⚡️ Optimized the calculation performance of internal methods of Dropdown, Tooltip, Tour. #54443 Meet-student
    • TypeScript
      • 🤖 Fixed Tabs TabPaneProps type to be compatible with deprecated APIs. #54482 @ leshalv

    • 🐞 修复 Card 的 tabBarExtraContent 类型定义,仅支持 React.ReactNode 的问题。现在支持完整的 rc-tabs 类型,包括 { left?: React.ReactNode; right?: React.ReactNode }#54470 @ pueding
    • 🐞 修复了 TextArea 在 Firefox 浏览器下粘贴文本后光标位置错误的问题。#72 @ QdabuliuQ
    • ⚡️ 优化了 Result 组件的图标的体积。#54455 @ 765477020
    • ⚡️ 优化了 Dropdown、Tooltip、Tour 等弹层类组件的内部方法的计算性能。#54443 Meet-student
    • TypeScript
      • 🤖 修正了 Tabs 的 TabPaneProps 类型以兼容废弃 api。#54482 @ leshalv
  • 5.26.6 - 2025-07-20
    • 🐞 Fix Input variant=underlined not using activeBorderColor token. #54409 @ Meet-student
    • 🐞 Fix InputNumber fontSizeSM and fontSizeLG tokens not working. #54396 @ guoyunhe
    • 🐞 Fix Flex component children prop is now optional instead of required. #54399 @ Wxh16144
    • 🐞 Fix Menu component not supporting data-* attributes for menu items. #54393 @ salihyavuz
    • 🐞 Fix Mentions component clear and feedback icons overlap. #54390 @ QdabuliuQ

    • 🐞 修复 Input variant=underlined 未使用 activeBorderColor token 的问题。#54409 @ Meet-student
    • 🐞 修复 InputNumber fontSizeSMfontSizeLG token 不生效的问题。#54396 @ guoyunhe
    • 🐞 修复 Flex 组件 children 属性现在为可选而不是必需的问题。#54399 @ Wxh16144
    • 🐞 修复 Menu 组件不支持 data-* 属性的问题。#54393 @ salihyavuz
    • 🐞 修复 Mentions 组件清除图标和反馈图标重叠的问题。#54390 @ QdabuliuQ
  • 5.26.5 - 2025-07-15
    • 🐞 Fix Tag closeIcon not being passed correctly. #54370 @ Meet-student
    • 🐞 Fix Splitter mask was not removed after dragging. #54320 @ QdabuliuQ
    • 🐞 Fix Modal configuration responsive width did not take effect correctly. #54349
    • 💄 Optimize the style issue when Notification description is empty. #54344 @ dengfuping
    • 💄 Fix the border style issue when the FloatButton popup direction is horizontal and is square. #54261 @ WwwHhhYran
    • TypeScript

    • 🐞 修复 Tag closeIcon 未正确传递的问题。#54370 @ Meet-student
    • 🐞 修复 Splitter 蒙层拖拽后未被移除的问题。#54320 @ QdabuliuQ
    • 🐞 修复 Modal 配置响应式 width 没有正确生效的问题。#54349
    • 💄 优化 Notification description 为空时间距样式问题。#54344 @ dengfuping
    • 💄 修复 FloatButton 弹出方向为水平方向为 square 时的边框样式问题。#54261 @ WwwHhhYran
    • TypeScript
  • 5.26.4 - 2025-07-07

  • 5.26.3 - 2025-06-30
  • 5.26.2 - 2025-06-24
  • 5.26.1 - 2025-06-16
  • 5.26.0 - 2025-06-10
  • 5.26.0-alpha.0 - 2025-06-03
  • 5.25.4 - 2025-05-31
  • 5.25.3 - 2025-05-26
  • 5.25.2 - 2025-05-19
  • 5.25.1 - 2025-05-09
  • 5.25.0 - 2025-05-07
  • 5.24.9 - 2025-04-29
  • 5.24.8 - 2025-04-21
  • 5.24.7 - 2025-04-14
  • 5.24.6 - 2025-04-01
  • 5.24.5 - 2025-03-24
  • 5.24.4 - 2025-03-17
  • 5.24.3 - 2025-03-05
  • 5.24.2 - 2025-02-24
  • 5.24.1 - 2025-02-17
  • 5.24.0 - 2025-02-11
  • 5.23.4 - 2025-02-05
  • 5.23.3 - 2025-01-28
  • 5.23.2 - 2025-01-20
  • 5.23.1 - 2025-01-13
  • 5.23.0 - 2025-01-06
  • 5.22.7 - 2024-12-27
  • 5.22.6 - 2024-12-23
  • 5.22.5 - 2024-12-14
  • 5.22.4 - 2024-12-09
  • 5.22.3 - 2024-12-02
  • 5.22.2 - 2024-11-20
  • 5.22.1 - 2024-11-13
  • 5.22.0 - 2024-11-11
  • 5.21.6 - 2024-10-28
  • 5.21.5 - 2024-10-21
  • 5.21.4 - 2024-10-14
  • 5.21.3 - 2024-10-09
  • 5.21.2 - 2024-09-30
  • 5.21.1 - 2024-09-25
  • 5.21.0 - 2024-09-22
  • 5.20.6 - 2024-09-09
  • 5.20.5 - 2024-09-03
  • 5.20.4 - 2024-09-02
  • 5.20.3 - 2024-08-26
  • 5.20.2 - 2024-08-19
  • 5.20.1 - 2024-08-11
  • 5.20.0 - 2024-08-03
  • 5.19.4 - 2024-07-30
  • 5.19.3 - 2024-07-19
  • 5.19.2 - 2024-07-15
  • 5.19.1 - 2024-07-05
  • 5.19.0 - 2024-07-01
  • 5.18.3 - 2024-06-19
  • 5.18.2 - 2024-06-17
  • 5.18.1 - 2024-06-12
  • 5.18.0 - 2024-06-03
from antd GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

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