Skip to content

Commit bf2b33b

Browse files
authored
chore(release): release 20.0.0 (#9253)
1 parent 22e2a9f commit bf2b33b

File tree

12 files changed

+291
-17
lines changed

12 files changed

+291
-17
lines changed

CHANGELOG.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,93 @@
1+
## [20.0.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/20.0.0-next.1...20.0.0) (2025-06-27)
2+
3+
### Features
4+
5+
* **cascader,date-picker,input-number,input,select,time-picker,tree-select:** support `nzVariant` ([#9131](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9131)) ([b342bb4](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b342bb464eb544a2e3fda8723cac7e550828b3f2))
6+
* **popover:** add `nzPopoverTitleContext` and `nzPopoverContentContext` ([#9126](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9126)) ([df3ead9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/df3ead9af8368eb7e2374744f01cecd5ccc21440))
7+
* **select:** add `nzOnClear` callback ([#9188](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9188)) ([e047ac2](https://github.com/NG-ZORRO/ng-zorro-antd/commit/e047ac249b16b547525a0ca4d13beeef620f44c4))
8+
* **avatar:** add `loading` and `fetchpriority` attributes ([#7347](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7347)) ([ff8419f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/ff8419f6614bdac8bc3c778e470da08b679889d0))
9+
* **popconfirm:** add `nzOkButtonProps` and `nzCancelButtonProps` ([#9245](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9245)) ([22e2a9f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/22e2a9fb148fd875c76fb339c6582d92aef62791))
10+
11+
### Bug Fixes
12+
13+
* **flex:** fix `NzAlign` type ([#9151](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9151)) ([b271c19](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b271c19076ead71fabbe5b224072cfea975d801d))
14+
* **segmented:** accepts disabled state from ng control ([#9166](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9166)) ([134cd59](https://github.com/NG-ZORRO/ng-zorro-antd/commit/134cd5976220d51179118491a4b4b2e4d7cf761c))
15+
* **space:** border radius compact mode one item ([#9165](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9165)) ([d2f4541](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d2f4541a9ae01d6ea8705faf2bc4b96bf34b6945))
16+
* **tabs:** prevent incorrect scroll offset on tab focus ([#9186](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9186)) ([4f658e0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4f658e0834e99ea2be0ffd4ead2dd041ec88fb83))
17+
* **schematics:** ng add failed when call twice ([#9171](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9171)) ([d0a9748](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d0a974848c0e31ad41ba69a5af60c002a7b251cd))
18+
* **water-mark:** make server-side compatible ([#9250](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9250)) ([a70a682](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a70a682c8aa4d073bb150abd4b69104fbe21e2ed))
19+
20+
### Code Refactoring
21+
22+
* **core:** cleanup animation frame polyfill ([#9243](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9243)) ([272237a](https://github.com/NG-ZORRO/ng-zorro-antd/commit/272237a7a33d150ac9c0f6965df37a678221b074))
23+
* migrate to `inject` pattern
24+
25+
### ⚠ BREAKING CHANGES
26+
27+
* **core:** refactoring in `ng-zorro-antd/core/polyfill`:
28+
- rename `cancelRequestAnimationFrame` to `cancelAnimationFrame`
29+
- rename `reqAnimFrame` to `requestAnimationFrame`
30+
* **tabs:** rename `NzTabsetComponent` to `NzTabsComponent`, `nz-tabset` selector to `nz-tabs`, the original component and selector are marked as deprecated
31+
* **table:** no longer compatible with material components
32+
- **popconfirm:** `nzOkDisabled` and `nzOkDanger` are marked as deprecated, use `nzOkButtonProps` and `nzCancelButtonProps` instead
33+
34+
Remove the following APIs which were marked as deprecated in the previous version:
35+
36+
| Module | API |
37+
|------------------------------|----------------------------------------------------------|
38+
| `ng-zorro-antd/button` | `NzButtonGroupComponent` |
39+
| `ng-zorro-antd/core/form` | `NzFormPatchModule` |
40+
| `ng-zorro-antd/checkbox` | `NzCheckBoxOptionInterface` |
41+
| `ng-zorro-antd/input` | `NzInputGroupComponent#nzCompact` |
42+
| `ng-zorro-antd/message` | `NzMessageModule` |
43+
| `ng-zorro-antd/notification` | `NzNotificationModule`<br/>`NzNotificationServiceModule` |
44+
45+
The `exportAs` of components are updated to follow `camelCase` and start with `nz`, `exportAs` of internal components are removed. Changes can be seen as follow:
46+
47+
| Component | Original | Current |
48+
|--------------------------|------------------------|------------------------|
49+
| `calendar-footer` | `calendarFooter` | - |
50+
| `date-helper` | `dateHelper` | - |
51+
| `date-range-popup` | `dateRangePopup` | - |
52+
| `date-table` | `dateTable` | - |
53+
| `decade-helper` | `decadeHelper` | - |
54+
| `decade-table` | `decadeTable` | - |
55+
| `month-helper` | `monthHelper` | - |
56+
| `month-table` | `monthTable` | - |
57+
| `quarter-helper` | `quarterHelper` | - |
58+
| `quarter-table` | `quarterTable` | - |
59+
| `year-helper` | `yearHelper` | - |
60+
| `year-table` | `yearTable` | - |
61+
| `inner-popup` | `innerPopup` | - |
62+
| `nz-color-block` | `NzColorBlock` | `nzColorBlock` |
63+
| `nz-color-format` | `NzColorFormat` | `nzColorFormat` |
64+
| `nz-color-picker` | `NzColorPicker` | `nzColorPicker` |
65+
| `nz-model-close` | `NzModalCloseBuiltin` | `nzModalCloseBuiltin` |
66+
| `nz-model-footer` | `NzModalFooterBuiltin` | `nzModalFooterBuiltin` |
67+
| `nz-model-title` | `NzModalTitleBuiltin` | `nzModalTitleBuiltin` |
68+
| `nz-tree-drop-indicator` | `NzTreeDropIndicator` | `nzTreeDropIndicator` |
69+
| `nz-water-mark` | `NzWaterMark` | `nzWaterMark` |
70+
| `nz-tabs` | `nzTabset` | `nzTabs` |
71+
72+
### Deprecations
73+
74+
The following APIs are marked as **deprecated** in v20 and will be removed in the next major version.
75+
Please refer to related documentation for better alternatives.
76+
77+
| Module | API |
78+
|------------------------------|------------------------------------------------------------------------------|
79+
| `ng-zorro-antd/autocomplete` | `NZ_AUTOCOMPLETE_VALUE_ACCESSOR` <br /> `getNzAutocompleteMissingPanelError` |
80+
| `ng-zorro-antd/button` | `NzButtonGroupComponent` |
81+
| `ng-zorro-antd/core/form` | `NzFormPatchModule` |
82+
| `ng-zorro-antd/checkbox` | `NzCheckBoxOptionInterface` |
83+
| `ng-zorro-antd/input` | `NzInputGroupComponent#nzCompact` |
84+
| `ng-zorro-antd/mention` | `NZ_MENTION_TRIGGER_ACCESSOR` |
85+
| `ng-zorro-antd/message` | `NzMessageModule` |
86+
| `ng-zorro-antd/notification` | `NzNotificationModule`<br/>`NzNotificationServiceModule` |
87+
| `ng-zorro-antd/tabs` | `NzTabsetComponent` |
88+
89+
90+
191
## [19.3.1](https://github.com/NG-ZORRO/ng-zorro-antd/compare/19.3.0...19.3.1) (2025-05-29)
292

393
### Bug Fixes

README-zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ NG-ZORRO
4646

4747
## 🖥 支持环境
4848

49-
- Angular `^19.0.0` [![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-antd)
49+
- Angular `^20.0.0` [![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-antd)
5050
- 支持服务端渲染
5151
- 现代浏览器,[浏览器支持](https://angular.cn/reference/versions#browser-support)
5252
- [Electron](http://electron.atom.io/)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ English | [简体中文](README-zh_CN.md)
4848

4949
## 🖥 Environment Support
5050

51-
* Angular `^19.0.0` [![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-antd)
51+
* Angular `^20.0.0` [![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-antd)
5252
* Server-side Rendering
5353
* Modern browsers including the following [specific versions](https://angular.dev/reference/versions#browser-support)
5454
* [Electron](http://electron.atom.io/)

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-zorro-antd",
3-
"version": "19.3.1",
3+
"version": "20.0.0",
44
"license": "MIT",
55
"description": "An enterprise-class UI components based on Ant Design and Angular",
66
"schematics": "./schematics/collection.json",

components/version/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
import { Version } from '@angular/core';
77

8-
export const VERSION = new Version('19.3.1');
8+
export const VERSION = new Version('20.0.0');

docs/changelog.en-US.md

Lines changed: 96 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,99 @@ timeline: true
1313
* Major version release is not included in this schedule for breaking change and new features.
1414

1515
---
16-
### 19.3.1
16+
## 20.0.0
17+
18+
`2025-06-27`
19+
20+
### Features
21+
22+
* **cascader,date-picker,input-number,input,select,time-picker,tree-select:** support `nzVariant` ([#9131](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9131)) ([b342bb4](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b342bb464eb544a2e3fda8723cac7e550828b3f2))
23+
* **popover:** add `nzPopoverTitleContext` and `nzPopoverContentContext` ([#9126](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9126)) ([df3ead9](https://github.com/NG-ZORRO/ng-zorro-antd/commit/df3ead9af8368eb7e2374744f01cecd5ccc21440))
24+
* **select:** add `nzOnClear` callback ([#9188](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9188)) ([e047ac2](https://github.com/NG-ZORRO/ng-zorro-antd/commit/e047ac249b16b547525a0ca4d13beeef620f44c4))
25+
* **avatar:** add `loading` and `fetchpriority` attributes ([#7347](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7347)) ([ff8419f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/ff8419f6614bdac8bc3c778e470da08b679889d0))
26+
* **popconfirm:** add `nzOkButtonProps` and `nzCancelButtonProps` ([#9245](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9245)) ([22e2a9f](https://github.com/NG-ZORRO/ng-zorro-antd/commit/22e2a9fb148fd875c76fb339c6582d92aef62791))
27+
28+
### Bug Fixes
29+
30+
* **flex:** fix `NzAlign` type ([#9151](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9151)) ([b271c19](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b271c19076ead71fabbe5b224072cfea975d801d))
31+
* **segmented:** accepts disabled state from ng control ([#9166](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9166)) ([134cd59](https://github.com/NG-ZORRO/ng-zorro-antd/commit/134cd5976220d51179118491a4b4b2e4d7cf761c))
32+
* **space:** border radius compact mode one item ([#9165](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9165)) ([d2f4541](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d2f4541a9ae01d6ea8705faf2bc4b96bf34b6945))
33+
* **tabs:** prevent incorrect scroll offset on tab focus ([#9186](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9186)) ([4f658e0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4f658e0834e99ea2be0ffd4ead2dd041ec88fb83))
34+
* **schematics:** ng add failed when call twice ([#9171](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9171)) ([d0a9748](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d0a974848c0e31ad41ba69a5af60c002a7b251cd))
35+
* **water-mark:** make server-side compatible ([#9250](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9250)) ([a70a682](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a70a682c8aa4d073bb150abd4b69104fbe21e2ed))
36+
37+
### Code Refactoring
38+
39+
* **core:** cleanup animation frame polyfill ([#9243](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9243)) ([272237a](https://github.com/NG-ZORRO/ng-zorro-antd/commit/272237a7a33d150ac9c0f6965df37a678221b074))
40+
* migrate to `inject` pattern
41+
42+
### ⚠ BREAKING CHANGES
43+
44+
* **core:** refactoring in `ng-zorro-antd/core/polyfill`:
45+
- rename `cancelRequestAnimationFrame` to `cancelAnimationFrame`
46+
- rename `reqAnimFrame` to `requestAnimationFrame`
47+
* **tabs:** rename `NzTabsetComponent` to `NzTabsComponent`, `nz-tabset` selector to `nz-tabs`, the original component and selector are marked as deprecated
48+
* **table:** no longer compatible with material components
49+
- **popconfirm:** `nzOkDisabled` and `nzOkDanger` are marked as deprecated, use `nzOkButtonProps` and `nzCancelButtonProps` instead
50+
51+
Remove the following APIs which were marked as deprecated in the previous version:
52+
53+
| Module | API |
54+
|------------------------------|----------------------------------------------------------|
55+
| `ng-zorro-antd/button` | `NzButtonGroupComponent` |
56+
| `ng-zorro-antd/core/form` | `NzFormPatchModule` |
57+
| `ng-zorro-antd/checkbox` | `NzCheckBoxOptionInterface` |
58+
| `ng-zorro-antd/input` | `NzInputGroupComponent#nzCompact` |
59+
| `ng-zorro-antd/message` | `NzMessageModule` |
60+
| `ng-zorro-antd/notification` | `NzNotificationModule`<br/>`NzNotificationServiceModule` |
61+
62+
The `exportAs` of components are updated to follow `camelCase` and start with `nz`, `exportAs` of internal components are removed. Changes can be seen as follow:
63+
64+
| Component | Original | Current |
65+
|--------------------------|------------------------|------------------------|
66+
| `calendar-footer` | `calendarFooter` | - |
67+
| `date-helper` | `dateHelper` | - |
68+
| `date-range-popup` | `dateRangePopup` | - |
69+
| `date-table` | `dateTable` | - |
70+
| `decade-helper` | `decadeHelper` | - |
71+
| `decade-table` | `decadeTable` | - |
72+
| `month-helper` | `monthHelper` | - |
73+
| `month-table` | `monthTable` | - |
74+
| `quarter-helper` | `quarterHelper` | - |
75+
| `quarter-table` | `quarterTable` | - |
76+
| `year-helper` | `yearHelper` | - |
77+
| `year-table` | `yearTable` | - |
78+
| `inner-popup` | `innerPopup` | - |
79+
| `nz-color-block` | `NzColorBlock` | `nzColorBlock` |
80+
| `nz-color-format` | `NzColorFormat` | `nzColorFormat` |
81+
| `nz-color-picker` | `NzColorPicker` | `nzColorPicker` |
82+
| `nz-model-close` | `NzModalCloseBuiltin` | `nzModalCloseBuiltin` |
83+
| `nz-model-footer` | `NzModalFooterBuiltin` | `nzModalFooterBuiltin` |
84+
| `nz-model-title` | `NzModalTitleBuiltin` | `nzModalTitleBuiltin` |
85+
| `nz-tree-drop-indicator` | `NzTreeDropIndicator` | `nzTreeDropIndicator` |
86+
| `nz-water-mark` | `NzWaterMark` | `nzWaterMark` |
87+
| `nz-tabs` | `nzTabset` | `nzTabs` |
88+
89+
### Deprecations
90+
91+
The following APIs are marked as **deprecated** in v20 and will be removed in the next major version.
92+
Please refer to related documentation for better alternatives.
93+
94+
| Module | API |
95+
|------------------------------|------------------------------------------------------------------------------|
96+
| `ng-zorro-antd/autocomplete` | `NZ_AUTOCOMPLETE_VALUE_ACCESSOR` <br /> `getNzAutocompleteMissingPanelError` |
97+
| `ng-zorro-antd/button` | `NzButtonGroupComponent` |
98+
| `ng-zorro-antd/core/form` | `NzFormPatchModule` |
99+
| `ng-zorro-antd/checkbox` | `NzCheckBoxOptionInterface` |
100+
| `ng-zorro-antd/input` | `NzInputGroupComponent#nzCompact` |
101+
| `ng-zorro-antd/mention` | `NZ_MENTION_TRIGGER_ACCESSOR` |
102+
| `ng-zorro-antd/message` | `NzMessageModule` |
103+
| `ng-zorro-antd/notification` | `NzNotificationModule`<br/>`NzNotificationServiceModule` |
104+
| `ng-zorro-antd/tabs` | `NzTabsetComponent` |
105+
106+
107+
108+
## 19.3.1
17109

18110
`2025-05-29`
19111

@@ -24,7 +116,7 @@ timeline: true
24116
* **tabs:** `nzLinkRouter` not work for the first time load ([#9130](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9130)) ([925a6a5](https://github.com/NG-ZORRO/ng-zorro-antd/commit/925a6a54dd477b687b3dd0b836c32cb17e6d8a0f))
25117

26118

27-
### 19.3.0
119+
## 19.3.0
28120

29121
`2025-05-23`
30122

@@ -46,7 +138,7 @@ timeline: true
46138
* **transfer:** use item.key as tracking for the list render ([#9123](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9123)) ([adb91e4](https://github.com/NG-ZORRO/ng-zorro-antd/commit/adb91e4ba0cbcfc72cccb26a66580fa19dc9c8aa))
47139

48140

49-
### 19.2.2
141+
## 19.2.2
50142

51143
`2025-04-25`
52144

@@ -58,7 +150,7 @@ timeline: true
58150
* **select:** limit number of pasted item to `nzMaxMultipleCount` ([#9080](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9080)) ([3714840](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3714840a8a72d4d7809a2cac339dd3891052225d))
59151

60152

61-
### 19.2.1
153+
## 19.2.1
62154

63155
`2025-03-29`
64156

0 commit comments

Comments
 (0)