Update dependency ng-zorro-antd to v20 #3387
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
20.0.0->20.4.4Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
NG-ZORRO/ng-zorro-antd (ng-zorro-antd)
v20.4.4Compare Source
20.4.4
2025-12-12Bug Fixes
20.4.4
2025-12-12Bug Fixes
nzSpin纳入变更检测逻辑,修复图标旋转状态在某些情况下无法及时更新 (#9597) (46dc381)nzStatus时图标不显示的问题 (#9568) (#9582) (b652105)v20.4.3Compare Source
Bug Fixes
v20.4.2Compare Source
Bug Fixes
v20.4.1Compare Source
Bug Fixes
nzColorshould work (#9517) (47d44ba)NG0100issue (#9504) (24b4e83)NG01350error (#9525) (fbcb8c3)selected$if no animation (#9512) (af8b531)v20.4.0Compare Source
Features
nzOpen(#9448) (4d5ec65)ENTERkey in multiple mode (#9457) (e02f1f4)nzBadge(#9489) (12beec7)nzRequiredMark(#9447) (800b6cf)nzAllowClearinput andnzClearcallback (#9452) (830b4b3)nz-input-wrapper(#9408) (a8e56ec), closes #9403nz-input-wrapper(#9450) (763f69e)nz-input-searchdirective (#9483) (af6f590)nz-input-passworddirective (#9460) (f80832a)nzAlign(#9433) (88d0864)nzNameis not provided (#9466) (33f8142)Bug Fixes
nzStylework even ifnzColoris not provided (#9486) (4424eb0)v20.3.1Compare Source
Bug Fixes
NG0203(#9418) (7fb58ae)v20.3.0Compare Source
Features
nzArrows(#9355) (1b9714b)provideNzI18nto support factory function (#9393) (1371265)nzClear(#9377) (cbecebf)nzVariant(#9379) (d92568b)nzShape(#9368) (ffce6c3)nzNameand keyboard interactions (#9373) (ebd8bdc)nzBeforeUpload(#9402) (cece107)Bug Fixes
nzColor, display incorrect (#9376) (e9abf92)NG0950error (#9386) (e82fc01)lessas devDependencies if choosing custom theme in non-less project (#9412) (a18cffd)v20.2.1Compare Source
Bug Fixes
v20.2.0Compare Source
Features
nzOpento control visibility (#9339) (354c7cf)nzCollapsible(#9349) (1ddbcaf)nzSize(#9348) (b5c256d)nzSize(#9346) (1f54536)nzIconsupport string type (#9302) (ce611e5)nzVertical(#9359) (52322cd)NzTagColortype (#9314) (1efd29e)Bug Fixes
v20.1.3Compare Source
Bug Fixes
cs_CZ(#9334) (93e486e)sk_SK(#9335) (ddefc7f)nzNotFoundContent(#9336) (366f8eb)v20.1.2Compare Source
Bug Fixes
v20.1.1Compare Source
Bug Fixes
NzBadgeStatusTypetype (#9298) (91b1ad7)v20.1.0Compare Source
Features
nzPlacement(#9267) (9dc19f3)nzDangersupport to cancel button (#9270) (f94cb31)Bug Fixes
setAttributeto setstyle(#9292) (12d58bd)undefined(#9269) (4c5666a)ToolTiptoTooltip(#9285) (2ebef97)NzTooltipModulemigration (#9294) (add21f7)v20.0.0Compare Source
Features
nzVariant(#9131) (b342bb4)nzPopoverTitleContextandnzPopoverContentContext(#9126) (df3ead9)nzOnClearcallback (#9188) (e047ac2)loadingandfetchpriorityattributes (#7347) (ff8419f)nzOkButtonPropsandnzCancelButtonProps(#9245) (22e2a9f)Bug Fixes
NzAligntype (#9151) (b271c19)Code Refactoring
injectpattern⚠ BREAKING CHANGES
ng-zorro-antd/core/polyfill:cancelRequestAnimationFrametocancelAnimationFramereqAnimFrametorequestAnimationFrameNzTabsetComponenttoNzTabsComponent,nz-tabsetselector tonz-tabs, the original component and selector are marked as deprecatednzOkDisabledandnzOkDangerare marked as deprecated, usenzOkButtonPropsandnzCancelButtonPropsinsteadRemove the following APIs which were marked as deprecated in the previous version:
ng-zorro-antd/buttonNzButtonGroupComponentng-zorro-antd/core/formNzFormPatchModuleng-zorro-antd/checkboxNzCheckBoxOptionInterfaceng-zorro-antd/inputNzInputGroupComponent#nzCompactng-zorro-antd/messageNzMessageModuleng-zorro-antd/notificationNzNotificationModuleNzNotificationServiceModuleThe
exportAsof components are updated to followcamelCaseand start withnz,exportAsof internal components are removed. Changes can be seen as follow:calendar-footercalendarFooterdate-helperdateHelperdate-range-popupdateRangePopupdate-tabledateTabledecade-helperdecadeHelperdecade-tabledecadeTablemonth-helpermonthHelpermonth-tablemonthTablequarter-helperquarterHelperquarter-tablequarterTableyear-helperyearHelperyear-tableyearTableinner-popupinnerPopupnz-color-blockNzColorBlocknzColorBlocknz-color-formatNzColorFormatnzColorFormatnz-color-pickerNzColorPickernzColorPickernz-model-closeNzModalCloseBuiltinnzModalCloseBuiltinnz-model-footerNzModalFooterBuiltinnzModalFooterBuiltinnz-model-titleNzModalTitleBuiltinnzModalTitleBuiltinnz-tree-drop-indicatorNzTreeDropIndicatornzTreeDropIndicatornz-water-markNzWaterMarknzWaterMarknz-tabsnzTabsetnzTabsDeprecations
The following APIs are marked as deprecated in v20 and will be removed in the next major version.
Please refer to related documentation for better alternatives.
ng-zorro-antd/autocompleteNZ_AUTOCOMPLETE_VALUE_ACCESSORgetNzAutocompleteMissingPanelErrorng-zorro-antd/buttonNzButtonGroupComponentng-zorro-antd/core/formNzFormPatchModuleng-zorro-antd/core/highlightNzHighlightModuleng-zorro-antd/checkboxNzCheckBoxOptionInterfaceng-zorro-antd/inputNzInputGroupComponent#nzCompactng-zorro-antd/mentionNZ_MENTION_TRIGGER_ACCESSORng-zorro-antd/messageNzMessageModuleng-zorro-antd/notificationNzNotificationModuleNzNotificationServiceModuleng-zorro-antd/tabsNzTabsetComponentv19.3.1Compare Source
Bug Fixes
nzLinkRouternot work for the first time load (#9130) (925a6a5)v19.3.0Compare Source
Features
nzBlurandnzFocusoutput (#9098) (1b1a013)Shiftkey (#9092) (b78b99f)Bug Fixes
es_ES(#9127) (0aadfdf)nzLinkRouternot work for the first time (#9118) (0f7f94d)Performance Improvements
v19.2.2Compare Source
Bug Fixes
NG0600error (#9106) (9f5b525)NG0600error (#9105) (61b6886)nzOptions(#9099) (7be2fe5)nzMaxMultipleCount(#9080) (3714840)v19.2.1Compare Source
Bug Fixes
v19.2.0Compare Source
Features
Documentation
DragDropModuleBug Fixes
nzMaxMultipleCountin default mode (#9068) (dcf8a5d)nzMaxMultipleCountreached (#9056) (d7031da)v19.1.0Compare Source
Features
nzDatawhen content is a template (#9001) (5157470)overlayClassNamesupports space delimited classes string (#8972) (3fcec91)nzPopoverOverlayClickableto disable click on mask (#8878) (5898da7)Bug Fixes
Code Refactoring
isolatedModulescompiler option (#8970) (0d42aa7)Now feel free to use
isolatedModulescompiler option in your project.v19.0.2Compare Source
Bug Fixes
NG0956error (#8962) (c4d2f81)v19.0.1Compare Source
Bug Fixes
nzFormat(#8744) (1b7ab5a)zh_TW(#8950) (9607e11)NG0600error (#8955) (8d6135e)v19.0.0Compare Source
Bug Fixes
nzBorderlessinput (#8741) (22ce17c)vi_VN(#8894) (f08ad1c)nzTreeNodePaddingnot works in virtual scroll (#8920) (82b660a)Code Refactoring
ngClassandngStyle(#8895) (c3ab3ba)FADE_CLASS_NAME_MAPandIMAGE_PREVIEW_MASK_CLASS_NAME(#8912) (65223d9)CheckBoxtoCheckbox(#8934) (c76433d5)Features
nzPlacement(#8935) (6fbd22c)nz-checkbox-groupcomponent (#8932) (489e0de)nzVariantoption (#8827) (2c63c87)nz-icontag selector (#8778) (1406241)nzTriggerSubMenuActionto support click trigger for submenu (#8461) (860df87)nzStatusRenderto support customize state rendering (#8714) (6f36d75)nzSortDirectionsto global config (#6613) (#8721) (eb1fdc5)nzOneWayto support one way style (#8717) (99fd4de)BREAKING CHANGES
All
nzClass/nzStyleinput properties no longer support the following features:Set(): use arrays instead@WithConfigto standard decorator. If you're using@WithConfigin your library, please turnexperimentalDecoratorsoff intsconfig.json[nz-icon]tonz-icontag. If you're using[nz-icon]selector in stylesheet to select icon inside zorro component, please usenz-iconinsteadinput-number: Redesign the input-number so that it will be much simpler and more flexible.
Now you can use affixes or addons as follows, no need for
ng-templateandnz-input-number-group:The old input-number component is marked as deprecated, and its entrypoint had changed to
ng-zorro-antd/input-number-legacy.NzInputNumberComponentis nowNzInputNumberLegacyComponent, andNzInputNumberModuleis nowNzInputNumberLegacyModule.Don't worry,
ng update ng-zorro-antdwill automatically do the migration.cascader: Cancel support for writing value with
NzCascaderOption[]type.In the past, the cascader component kept a trick that if you wrote value with
NzCascaderOption[]type, it extracted value by mapping each item to its value property, for example:then the value of cascader would be
'ng-zorro-antd'.It's strange that the input and output values don't match when we haven't changed the values, and it's hard to maintain. We expect that the value passed in should be the value in the list of options.
In v19, this trick is removed and if you're already using this trick in your code, please consider the add a
mapfunction to pass the actual value.checkbox Redesign the checkbox group component.
NzCheckBoxOptionInterface['checked]field. By the way,NzCheckBoxOptionInterfaceis marked as deprecated, useNzCheckboxOptioninsteadnz-checkbox-group: Type ofngModelis changed fromNzCheckBoxOptionInterface[]toNzCheckboxOption['value'][]card: Remove redundant
nzBorderlessinput property. UsenzBorderedinstead.image: Remove deprecated
FADE_CLASS_NAME_MAPandIMAGE_PREVIEW_MASK_CLASS_NAMEpipes: Remove deprecated
NzSafeNullPipesegmented: Redesign the segmented component.
ngModelis changed fromindexto option's valuenzValueChangefromnumberto option's value type (string | number)nzLabelTemplate, usenz-segmented-itemdirective insteadspace: Rename
exportAsofNzSpaceComponentfromNzSpaceto standardnzSpacetransfer: Rename
nzTreeCheckBoxChangetonzTreeCheckboxChangetree,tree-select: Rename
nzCheckBoxChangetonzCheckboxChangeDeprecations
The following APIs are marked as deprecated in v19 and will be removed in the next major version.
Please refer to related documentation for better alternatives.
ng-zorro-antd/buttonNzButtonGroupComponentng-zorro-antd/core/formNzFormPatchModuleng-zorro-antd/checkboxNzCheckboxWrapperComponentng-zorro-antd/inputNzInputGroupComponent#nzCompactng-zorro-antd/input-number-legacy*ng-zorro-antd/messageNzMessageModuleng-zorro-antd/notificationNzNotificationModuleNzNotificationServiceModulev18.2.1Compare Source
Bug Fixes
atag problem withnullorundefinedvalue if TemplateRef provided (#8864) (41f6609)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled because a matching PR was automerged previously.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.