Skip to content

Commit 5e677b9

Browse files
authored
chore(release): release 22.0.0-beta.0 (#9870)
1 parent a865a89 commit 5e677b9

7 files changed

Lines changed: 77 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
## [22.0.0-alpha.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/21.3.2...22.0.0-alpha.1) (2026-06-12)
1+
## [22.0.0-beta.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/21.3.2...22.0.0-beta.0) (2026-07-13)
22

3-
- Support Angular v22
4-
- All components use OnPush change detection strategy
3+
### Features
4+
5+
- All components use OnPush change detection strategy ([#9824](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9824)) ([b50ea34](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b50ea34e298ff153f1809b96ca3d4c0a6d8b9082))
6+
- **\*:** add date adapter support ([#9858](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9858)) ([d578c8b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d578c8bd619743f7a4c77f092d5d43b8b196e6e2))
7+
8+
### Bug Fixes
59

6-
> **NOTE**: v22 is still in alpha stage and may contain breaking changes in future releases.
10+
- **form:** signal form compatibility ([#9831](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9831)) ([f57fd67](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f57fd67fd49b3b274a8b8e54de22f230b82624da))
11+
- **i18n:** add missing translations to `ja_JP` ([#9857](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9857)) ([1ff499e](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1ff499e511b2f10d444ed9e050d0beea9433a166))
712

813
### ⚠ BREAKING CHANGES
914

15+
Date-related components no longer provide a default date engine adapter. Applications that use date-related components must configure a date adapter explicitly. To keep the previous date-fns based behavior, add `provideNzDateFnsAdapter()` in `app.config.ts`.
16+
17+
`date-fns` has been upgraded to v4. Applications that use `date-fns` APIs directly should update their imports and date-fns usage to be compatible with v4. ([#9868](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9868)) ([a865a89](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a865a89832e1382dc291c1028c2ae58f47891987))
18+
1019
Remove the following APIs which were marked as deprecated in the previous version:
1120

1221
| Module | API |

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": "22.0.0-alpha.1",
3+
"version": "22.0.0-beta.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('22.0.0-alpha.1');
8+
export const VERSION = new Version('22.0.0-beta.0');

docs/changelog.en-US.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,26 @@ tag: '{{version}}'
1616

1717
---
1818

19-
## 22.0.0-alpha.1
19+
## 22.0.0-beta.0
2020

21-
`2026-06-12`
21+
`2026-07-13`
2222

23-
- Support Angular v22
24-
- All components use OnPush change detection strategy
23+
### Features
24+
25+
- All components use OnPush change detection strategy ([#9824](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9824)) ([b50ea34](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b50ea34e298ff153f1809b96ca3d4c0a6d8b9082))
26+
- **\*:** add date adapter support ([#9858](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9858)) ([d578c8b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d578c8bd619743f7a4c77f092d5d43b8b196e6e2))
27+
28+
### Bug Fixes
2529

26-
> **NOTE**: v22 is still in alpha stage and may contain breaking changes in future releases.
30+
- **form:** signal form compatibility ([#9831](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9831)) ([f57fd67](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f57fd67fd49b3b274a8b8e54de22f230b82624da))
31+
- **i18n:** add missing translations to `ja_JP` ([#9857](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9857)) ([1ff499e](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1ff499e511b2f10d444ed9e050d0beea9433a166))
2732

2833
### ⚠ BREAKING CHANGES
2934

35+
Date-related components no longer provide a default date engine adapter. Applications that use date-related components must configure a date adapter explicitly. To keep the previous date-fns based behavior, add `provideNzDateFnsAdapter()` in `app.config.ts`.
36+
37+
`date-fns` has been upgraded to v4. Applications that use `date-fns` APIs directly should update their imports and date-fns usage to be compatible with v4. ([#9868](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9868)) ([a865a89](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a865a89832e1382dc291c1028c2ae58f47891987))
38+
3039
Remove the following APIs which were marked as deprecated in the previous version:
3140

3241
| Module | API |

docs/changelog.zh-CN.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,26 @@ tag: '{{version}}'
1616

1717
---
1818

19-
## 22.0.0-alpha.1
19+
## 22.0.0-beta.0
2020

21-
`2026-06-12`
21+
`2026-07-13`
2222

23-
- 支持 Angular v22
24-
- 所有组件均使用 OnPush
23+
### Features
24+
25+
- 所有组件均使用 OnPush ([#9824](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9824)) ([b50ea34](https://github.com/NG-ZORRO/ng-zorro-antd/commit/b50ea34e298ff153f1809b96ca3d4c0a6d8b9082))
26+
- **\*:** 新增日期适配器支持 ([#9858](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9858)) ([d578c8b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/d578c8bd619743f7a4c77f092d5d43b8b196e6e2))
27+
28+
### Bug Fixes
2529

26-
> **注意**: v22 仍然处于预览阶段,未来版本可能会包含破坏性变更。
30+
- **form:** 修复 signal form 兼容性问题 ([#9831](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9831)) ([f57fd67](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f57fd67fd49b3b274a8b8e54de22f230b82624da))
31+
- **i18n:** 补充 `ja_JP` 缺失翻译 ([#9857](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9857)) ([1ff499e](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1ff499e511b2f10d444ed9e050d0beea9433a166))
2732

2833
### ⚠ BREAKING CHANGES
2934

35+
日期相关组件不再内置默认日期引擎适配器。使用日期相关组件的应用需要在应用配置中显式提供日期适配器;如需保持旧版本基于 date-fns 的行为,可在 `app.config.ts` 中配置 `provideNzDateFnsAdapter()`
36+
37+
`date-fns` 已升级至 v4。直接使用 `date-fns` API 的应用需要更新 import 和相关用法,以兼容 v4 版本。([#9868](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9868)) ([a865a89](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a865a89832e1382dc291c1028c2ae58f47891987))
38+
3039
移除以下在过去的版本中标记为废弃的 API:
3140

3241
| Module | API |

docs/migration-v22.en-US.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,20 @@ This document will help you upgrade from `ng-zorro-antd` 21.x version to 22.x ve
2828
### 3. Remove deprecated APIs
2929

3030
- Remove deprecated APIs, please refer to the [v22 changelog](/docs/changelog/en#2200) for more information.
31+
32+
### 4. Configure date adapter
33+
34+
NG-ZORRO no longer provides a default date engine adapter. If your application uses date-related components such as DatePicker, Calendar, or TimePicker, configure a date adapter explicitly in `app.config.ts`.
35+
36+
To keep the previous date-fns based behavior:
37+
38+
```ts
39+
import { ApplicationConfig } from '@angular/core';
40+
import { provideNzDateFnsAdapter } from 'ng-zorro-antd/core/time';
41+
42+
export const appConfig: ApplicationConfig = {
43+
providers: [provideNzDateFnsAdapter()]
44+
};
45+
```
46+
47+
`date-fns` has been upgraded to v4. If your application uses `date-fns` APIs directly, update the imports and date-fns usage to be compatible with v4.

docs/migration-v22.zh-CN.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,20 @@ toc: false
2828
### 3. 移除废弃 API
2929

3030
- 请参考 [v22 changelog](/docs/changelog/zh#2200) 移除废弃 API
31+
32+
### 4. 配置日期适配器
33+
34+
NG-ZORRO 不再内置默认日期引擎适配器。如果你的应用使用 DatePicker、Calendar、TimePicker 等日期相关组件,需要在 `app.config.ts` 中显式配置日期适配器。
35+
36+
如需保持旧版本基于 date-fns 的行为:
37+
38+
```ts
39+
import { ApplicationConfig } from '@angular/core';
40+
import { provideNzDateFnsAdapter } from 'ng-zorro-antd/core/time';
41+
42+
export const appConfig: ApplicationConfig = {
43+
providers: [provideNzDateFnsAdapter()]
44+
};
45+
```
46+
47+
`date-fns` 已升级至 v4。如果你的应用直接使用 `date-fns` API,请同步更新 import 和相关用法以兼容 v4。

0 commit comments

Comments
 (0)