Skip to content

Commit 512a577

Browse files
authored
chore(release): release 18.0.0 (NG-ZORRO#8568)
* chore(release): release 18.0.0 * chore: fix failed to generate changelog * chore: update changelog * chore: update changelog with break changes * chore: update mentioned version to v18 * chore: add 17.4.x old version * chore: update break changes description * chore: update break changes description * chore: update peer deps to v18
1 parent be863de commit 512a577

16 files changed

+636
-587
lines changed

CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
# [18.0.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/17.4.1...18.0.0) (2024-06-06)
2+
3+
### ⚠ BREAKING CHANGES
4+
5+
* **collapse:** change nzExpandIconPosition type from `left` | `right` to `start` | `end` ([#8561](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8561)) ([3ad5674](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3ad56749b0c8222b37444f27f81942fba4bc53e3))
6+
* no longer use inline JavaScript in Less ([#8552](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8552)) ([7e873c8](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7e873c863a1c8e9c053f64aca86bf9c7c9a11a21))
7+
8+
No need to wrap Less functions provided by antd (including `colorEasing`, `colorPalette`, `tinycolor`) with ~\`\` anymore.
9+
10+
```diff
11+
- color(~`colorPalette('@{primary-color}', 5)`)
12+
+ color(colorPalette('@{primary-color}', 5))
13+
```
14+
15+
16+
### Bug Fixes
17+
18+
* **cascader,select,time-picker,tooltip,tree-select:** take in account shadow dom when getting the target of an event ([#7853](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7853)) ([843b703](https://github.com/NG-ZORRO/ng-zorro-antd/commit/843b7035225df3d3a635a5ef8926d1e80f10ae18))
19+
* **tooltip:** fix arrow color when custom color ([#8555](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8555)) ([92c586b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/92c586b8f5e5fc0ec0e4cb2cc10b73a699b1555a))
20+
* **upload:** prevent drop event for firefox only ([#8551](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8551)) ([c6e7bd7](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c6e7bd7682a776a7ad3f34b589c9c473430e6baa))
21+
* **rate:** half value when allow half is false ([#8536](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8536)) ([7742fe3](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7742fe30b718aa19f2988f6354d982d439ad2c7b))
22+
23+
24+
### Features
25+
26+
* **date-picker:** support quarter selection of date picker ([#8478](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8478)) ([3513889](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3513889367ef468b9e792698f85bb6b890edec86)), closes [#7818](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7818) [#7380](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7380)
27+
* **qrcode:** qrcode supports scanned state ([#8447](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8447)) ([0be6178](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0be617854d1493a342c9354ce1156fcf323acc97))
28+
* **rate:** emit hover change when leave ([#8448](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8448)) ([38dcc31](https://github.com/NG-ZORRO/ng-zorro-antd/commit/38dcc3196c62369cd8061a9ead8ab20752e56a66))
29+
* **statistic:** support for loading state ([#8537](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8537)) ([21c8b62](https://github.com/NG-ZORRO/ng-zorro-antd/commit/21c8b621f15d642c391253ca91c3b124227ca2d9))
30+
* **table:** support setting virtual height when having no data ([#8457](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8457)) ([724d841](https://github.com/NG-ZORRO/ng-zorro-antd/commit/724d841ebd88a329c59e2cfeee3f9625393c8372))
31+
32+
33+
134
## [17.4.1](https://github.com/NG-ZORRO/ng-zorro-antd/compare/17.4.0...17.4.1) (2024-05-24)
235

336

README-zh_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ NG-ZORRO
4747

4848
## 🖥 支持环境
4949

50-
- Angular `^17.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)
50+
- Angular `^18.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)
5151
- 支持服务端渲染
5252
- 现代浏览器,[浏览器支持](https://angular.dev/reference/versions#browser-support)
5353
- [Electron](http://electron.atom.io/)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ English | [简体中文](README-zh_CN.md)
5050

5151
## 🖥 Environment Support
5252

53-
* Angular `^17.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)
53+
* Angular `^18.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)
5454
* Server-side Rendering
5555
* Modern browsers including the following [specific versions](https://angular.dev/reference/versions#browser-support)
5656
* [Electron](http://electron.atom.io/)

components/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-zorro-antd",
3-
"version": "17.4.1",
3+
"version": "18.0.0",
44
"license": "MIT",
55
"description": "An enterprise-class UI components based on Ant Design and Angular",
66
"schematics": "./schematics/collection.json",
@@ -27,17 +27,17 @@
2727
"url": "https://github.com/NG-ZORRO/ng-zorro-antd/issues"
2828
},
2929
"dependencies": {
30-
"@angular/cdk": "^17.0.0",
31-
"@ant-design/icons-angular": "^17.0.0",
30+
"@angular/cdk": "^18.0.0",
31+
"@ant-design/icons-angular": "^18.0.0",
3232
"date-fns": "^2.16.1"
3333
},
3434
"peerDependencies": {
35-
"@angular/animations": "^17.0.0",
36-
"@angular/common": "^17.0.0",
37-
"@angular/forms": "^17.0.0",
38-
"@angular/core": "^17.0.0",
39-
"@angular/platform-browser": "^17.0.0",
40-
"@angular/router": "^17.0.0"
35+
"@angular/animations": "^18.0.0",
36+
"@angular/common": "^18.0.0",
37+
"@angular/forms": "^18.0.0",
38+
"@angular/core": "^18.0.0",
39+
"@angular/platform-browser": "^18.0.0",
40+
"@angular/router": "^18.0.0"
4141
},
4242
"exports": {
4343
"./ng-zorro-antd.aliyun.min.css": {

components/version/version.ts

+1-1
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('17.4.1');
8+
export const VERSION = new Version('18.0.0');

docs/changelog.en-US.md

+34
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,40 @@ timeline: true
1313
* Major version release is not included in this schedule for breaking change and new features.
1414

1515
---
16+
## 18.0.0
17+
18+
`2024-06-06`
19+
20+
### ⚠ BREAKING CHANGES
21+
22+
* **collapse:** change nzExpandIconPosition type from `left` | `right` to `start` | `end` ([#8561](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8561)) ([3ad5674](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3ad56749b0c8222b37444f27f81942fba4bc53e3))
23+
* no longer use inline JavaScript in Less ([#8552](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8552)) ([7e873c8](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7e873c863a1c8e9c053f64aca86bf9c7c9a11a21))
24+
25+
No need to wrap Less functions provided by antd (including `colorEasing`, `colorPalette`, `tinycolor`) with ~\`\` anymore.
26+
27+
```diff
28+
- color(~`colorPalette('@{primary-color}', 5)`)
29+
+ color(colorPalette('@{primary-color}', 5))
30+
```
31+
32+
33+
### Bug Fixes
34+
35+
* **cascader,select,time-picker,tooltip,tree-select:** take in account shadow dom when getting the target of an event ([#7853](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7853)) ([843b703](https://github.com/NG-ZORRO/ng-zorro-antd/commit/843b7035225df3d3a635a5ef8926d1e80f10ae18))
36+
* **tooltip:** fix arrow color when custom color ([#8555](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8555)) ([92c586b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/92c586b8f5e5fc0ec0e4cb2cc10b73a699b1555a))
37+
* **upload:** prevent drop event for firefox only ([#8551](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8551)) ([c6e7bd7](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c6e7bd7682a776a7ad3f34b589c9c473430e6baa))
38+
* **rate:** half value when allow half is false ([#8536](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8536)) ([7742fe3](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7742fe30b718aa19f2988f6354d982d439ad2c7b))
39+
40+
41+
### Features
42+
43+
* **date-picker:** support quarter selection of date picker ([#8478](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8478)) ([3513889](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3513889367ef468b9e792698f85bb6b890edec86)), closes [#7818](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7818) [#7380](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7380)
44+
* **qrcode:** qrcode supports scanned state ([#8447](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8447)) ([0be6178](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0be617854d1493a342c9354ce1156fcf323acc97))
45+
* **rate:** emit hover change when leave ([#8448](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8448)) ([38dcc31](https://github.com/NG-ZORRO/ng-zorro-antd/commit/38dcc3196c62369cd8061a9ead8ab20752e56a66))
46+
* **statistic:** support for loading state ([#8537](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8537)) ([21c8b62](https://github.com/NG-ZORRO/ng-zorro-antd/commit/21c8b621f15d642c391253ca91c3b124227ca2d9))
47+
* **table:** support setting virtual height when having no data ([#8457](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8457)) ([724d841](https://github.com/NG-ZORRO/ng-zorro-antd/commit/724d841ebd88a329c59e2cfeee3f9625393c8372))
48+
49+
1650
## 17.4.1
1751

1852
`2024-05-24`

docs/changelog.zh-CN.md

+36
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,42 @@ timeline: true
1313
* 主版本号:含有破坏性更新和新特性,不在发布周期内。
1414

1515
---
16+
## 18.0.0
17+
18+
`2024-06-06`
19+
20+
### ⚠ BREAKING CHANGES
21+
22+
* **collapse:** `nzExpandIconPosition` 类型从 `left` | `right` 变更为 `start` | `end` ([#8561](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8561)) ([3ad5674](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3ad56749b0c8222b37444f27f81942fba4bc53e3))
23+
* Less 中不再使用 inline JavaScript ([#8552](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8552)) ([7e873c8](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7e873c863a1c8e9c053f64aca86bf9c7c9a11a21))
24+
25+
使用 antd 提供的 Less 函数时不再需要用 ~\`\` 包裹,例如:
26+
27+
```diff
28+
- color(~`colorPalette('@{primary-color}', 5)`)
29+
+ color(colorPalette('@{primary-color}', 5))
30+
```
31+
32+
受影响的函数包括:`colorEasing``colorPalette``tinycolor`
33+
34+
35+
### Bug Fixes
36+
37+
* **cascader,select,time-picker,tooltip,tree-select:** 修复在 shadow DOM 中获取 `EventTarget` 异常问题 ([#7853](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7853)) ([843b703](https://github.com/NG-ZORRO/ng-zorro-antd/commit/843b7035225df3d3a635a5ef8926d1e80f10ae18))
38+
* **tooltip:** 修复箭头颜色未被自定义颜色覆盖问题 ([#8555](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8555)) ([92c586b](https://github.com/NG-ZORRO/ng-zorro-antd/commit/92c586b8f5e5fc0ec0e4cb2cc10b73a699b1555a))
39+
* **upload:** 仅在 firefox 浏览器中阻止拖拽事件 ([#8551](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8551)) ([c6e7bd7](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c6e7bd7682a776a7ad3f34b589c9c473430e6baa))
40+
* **rate:** 修复 `nzAllowHalf``false` 时展示半星 ([#8536](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8536)) ([7742fe3](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7742fe30b718aa19f2988f6354d982d439ad2c7b))
41+
42+
43+
### Features
44+
45+
* **date-picker:** 支持季度选择 ([#8478](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8478)) ([3513889](https://github.com/NG-ZORRO/ng-zorro-antd/commit/3513889367ef468b9e792698f85bb6b890edec86)), closes [#7818](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7818) [#7380](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7380)
46+
* **qrcode:** 新增已扫描状态 ([#8447](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8447)) ([0be6178](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0be617854d1493a342c9354ce1156fcf323acc97))
47+
* **rate:** 鼠标离开时触发 `nzOnHoverChange` 事件 ([#8448](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8448)) ([38dcc31](https://github.com/NG-ZORRO/ng-zorro-antd/commit/38dcc3196c62369cd8061a9ead8ab20752e56a66))
48+
* **statistic:** 新增加载中状态 ([#8537](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8537)) ([21c8b62](https://github.com/NG-ZORRO/ng-zorro-antd/commit/21c8b621f15d642c391253ca91c3b124227ca2d9))
49+
* **table:** 支持设置空数据时内部滚动的高度 ([#8457](https://github.com/NG-ZORRO/ng-zorro-antd/issues/8457)) ([724d841](https://github.com/NG-ZORRO/ng-zorro-antd/commit/724d841ebd88a329c59e2cfeee3f9625393c8372))
50+
51+
1652
## 17.4.1
1753

1854
`2024-05-24`

docs/introduce.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ An enterprise-class Angular UI component library based on Ant Design, all compon
3636

3737
## Angular Support
3838

39-
`ng-zorro-antd` keeps the same major version with `@angular/core`, now supports Angular `^17.0.0`.
39+
`ng-zorro-antd` keeps the same major version with `@angular/core`, now supports Angular `^18.0.0`.
4040

4141
## Design Specification
4242

docs/introduce.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ title: Ant Design of Angular
3535
[![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-antd)
3636
## 支持 Angular 版本
3737

38-
`ng-zorro-antd``@angular/core` 保持相同的主版本号,目前支持 Angular `^17.0.0` 版本。
38+
`ng-zorro-antd``@angular/core` 保持相同的主版本号,目前支持 Angular `^18.0.0` 版本。
3939

4040
## 设计规范
4141

docs/migration-v17.en-US.md renamed to docs/migration-v18.en-US.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
order: 15
3-
title: v17 Migration Guide
3+
title: v18 Migration Guide
44
toc: false
55
---
66

7-
This document will help you upgrade from `ng-zorro-antd` 16.x version to 17.x version.
7+
This document will help you upgrade from `ng-zorro-antd` 17.x version to 18.x version.
88

99
## Before upgrade
1010

11-
1. Make sure `Node.js` >= `18.13.0` or >= `20.9.0`.
11+
1. Make sure `Node.js` >= `18.19.1` or >= `20.11.0` or >= `22.0.0`.
1212
2. Create a new branch, or use other methods to back up the current project.
1313
3. Delete the package-lock.json file.
1414

15-
### 1.Upgrade dependencies
15+
### 1. Upgrade dependencies
1616

17-
- Upgrade Angular to 17.x version, ref [https://update.angular.io/](https://update.angular.io/).
17+
- Upgrade Angular to 18.x version, ref [https://angular.dev/update-guide](https://angular.dev/update-guide).
1818
- Run `ng update @angular/cdk`, if you have used `@angular/cdk`.
1919

20-
### 2.Upgrade NG-ZORRO
20+
### 2. Upgrade NG-ZORRO
2121

2222
> For projects built in `standalone`, you need to update `ng-zorro-antd` manually
2323

docs/migration-v17.zh-CN.md renamed to docs/migration-v18.zh-CN.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
order: 15
3-
title: v17 升级指南
3+
title: v18 升级指南
44
toc: false
55
---
66

7-
本文档将帮助你从 `ng-zorro-antd` 16.x 版本升级到 17.x 版本。
7+
本文档将帮助你从 `ng-zorro-antd` 17.x 版本升级到 18.x 版本。
88

99
## 开始之前
1010

11-
1. 首先确保你 `Node.js` >= `18.13.0` 或 >= `20.9.0`
11+
1. 首先确保你 `Node.js` >= `18.19.1` 或 >= `20.11.0` 或 >= `22.0.0`
1212
2. 创建新的分支,或者使用其他方式备份当前项目
1313
3. 删除项目下 package-lock.json 文件
1414

1515
## 升级步骤
1616

1717
### 1. 升级相关依赖
1818

19-
- 前往 [https://update.angular.io/](https://update.angular.io/) 将项目升级到 Angular 17
19+
- 前往 [https://angular.dev/update-guide](https://angular.dev/update-guide) 将项目升级到 Angular 18
2020
- 如果你有单独使用 `@angular/cdk` 请执行 `ng update @angular/cdk`
2121

2222
### 升级 NG-ZORRO

0 commit comments

Comments
 (0)