Ant Design (antd) has undergone significant changes moving from version 4.24.16 to 5.0.0, marking a substantial upgrade for developers leveraging this popular React UI library. One of the most prominent shifts is the dependency update. Version 5.0.0 replaces moment with dayjs for date management, potentially leading to smaller bundle sizes and improved performance due to dayjs's lighter footprint. Many of the rc-* (React Component) dependencies have been updated which might fix bugs or improve performance.
Developers should also note the changes in devDependencies with the introduction of dumi in v5 and the change from antd: 4.x in v4.24.16. The addition of @ant-design/cssinjs in v5.0.0 hints at a more granular control over the CSS styling, offering more flexibility and customization. Certain dev dependencies like bundlesize2 and bisheng-* are removed in new version, probably because the related tools have been replaced.
While both versions maintain peer dependency requirements for React and React DOM (>=16.9.0), the core architecture and tooling enhancements in version 5.0.0 promise a more streamlined and performant development experience. Developers should carefully review the migration guide to address potential breaking changes with that version.
The are not vulnerabilities for the version 5.0.0 of the package antd