Skip to content

Commit

Permalink
chore(release): release 14.0.0 (#7608)
Browse files Browse the repository at this point in the history
* chore(release): release 14.0.0

* chore(release): add 13.4.x version

* chore: use ngx-quicklink instead of ngx-hover-preload

* chore: update template with v14

chore: update template with v14

chore: update template with v14

* chore: update build shell and docs
  • Loading branch information
simplejason committed Aug 25, 2022
1 parent becdd68 commit 8e25b50
Show file tree
Hide file tree
Showing 30 changed files with 240 additions and 129 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# [14.0.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/14.0.0-beta.0...14.0.0) (2022-08-25)


### Bug Fixes
* **cascader:** fix wrong format of docs ([#7604](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7604)) ([8b92c63](https://github.com/NG-ZORRO/ng-zorro-antd/commit/8b92c6362e9702a79ff23f3605d8a3ab84c4b9ca))
* **steps:** remove top-level redundant `div` element ([#7582](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7582)) ([60beabc](https://github.com/NG-ZORRO/ng-zorro-antd/commit/60beabccd2459adcb973133fc139008b31abfca0))


### Features
* **icon:** change tag of nz-icon from `<i>` to `<span>` ([#7586](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7586)) ([7242111](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7242111c8bc2523df9d13e19521473502a4f6cf1))
* **popconfirm:** support async close ([#7533](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7533)) ([797b261](https://github.com/NG-ZORRO/ng-zorro-antd/commit/797b2617f08394b56fe0a7903dc69e2d75984219))

## BREAKING CHANGES
* **pagination:** add ul tag ([#7500](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7500)) ([becdd68](https://github.com/NG-ZORRO/ng-zorro-antd/commit/becdd682514e36b188be93667a03ac74f224dcf7))


# [13.4.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/13.3.2...13.4.0) (2022-07-25)


Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ NG-ZORRO

## 🖥 支持环境

- Angular `^13.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)
- Angular `^14.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)
- 支持服务端渲染
- 现代浏览器,[浏览器支持](https://angular.io/guide/browser-support)
- [Electron](http://electron.atom.io/)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ English | [简体中文](README-zh_CN.md)

## 🖥 Environment Support

* Angular `^13.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)
* Angular `^14.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)
* Server-side Rendering
* Modern browsers including the following [specific versions](https://angular.io/guide/browser-support)
* [Electron](http://electron.atom.io/)
Expand Down
36 changes: 22 additions & 14 deletions components/graph/graph.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,29 @@ import { NzGraphNodeDirective } from './graph-node.directive';
import { NzGraphZoomDirective } from './graph-zoom.directive';
import { NzGraphComponent } from './graph.component';

const COMPONENTS = [
NzGraphComponent,
NzGraphMinimapComponent,
NzGraphDefsComponent,
NzGraphNodeDirective,
NzGraphGroupNodeDirective,
NzGraphZoomDirective,
NzGraphNodeComponent,
NzGraphEdgeComponent,
NzGraphEdgeDirective
];

@NgModule({
declarations: [...COMPONENTS],
declarations: [
NzGraphComponent,
NzGraphMinimapComponent,
NzGraphDefsComponent,
NzGraphNodeDirective,
NzGraphGroupNodeDirective,
NzGraphZoomDirective,
NzGraphNodeComponent,
NzGraphEdgeComponent,
NzGraphEdgeDirective
],
imports: [CommonModule, NzIconModule, NzSpinModule, NzNoAnimationModule],
exports: [...COMPONENTS]
exports: [
NzGraphComponent,
NzGraphMinimapComponent,
NzGraphDefsComponent,
NzGraphNodeDirective,
NzGraphGroupNodeDirective,
NzGraphZoomDirective,
NzGraphNodeComponent,
NzGraphEdgeComponent,
NzGraphEdgeDirective
]
})
export class NzGraphModule {}
2 changes: 1 addition & 1 deletion components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-zorro-antd",
"version": "13.4.0",
"version": "14.0.0",
"license": "MIT",
"description": "An enterprise-class UI components based on Ant Design and Angular",
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion components/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"declaration": true,
"inlineSources": true,
"declarationMap": true,
"lib": ["es2018", "dom"],
"lib": ["es2020", "dom"],
"sourceMap": true,
"strictFunctionTypes": true,
"stripInternal": true,
Expand Down
2 changes: 1 addition & 1 deletion components/version/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

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

export const VERSION = new Version('13.4.0');
export const VERSION = new Version('14.0.0');
28 changes: 28 additions & 0 deletions docs/changelog.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,34 @@ timeline: true
* Major version release is not included in this schedule for breaking change and new features.

---
## 14.0.0

`2022-08-25`

### Install ng-zorro-antd

```bash
$ cd PROJECT-NAME
$ ng add ng-zorro-antd@14.0.0
```

### Bug Fixes
* **steps:** remove top-level redundant `div` element ([#7582](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7582)) ([60beabc](https://github.com/NG-ZORRO/ng-zorro-antd/commit/60beabccd2459adcb973133fc139008b31abfca0))

### Features
* **icon:** change tag of nz-icon from `<i>` to `<span>` ([#7586](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7586)) ([7242111](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7242111c8bc2523df9d13e19521473502a4f6cf1))
* **popconfirm:** support async close ([#7533](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7533)) ([797b261](https://github.com/NG-ZORRO/ng-zorro-antd/commit/797b2617f08394b56fe0a7903dc69e2d75984219))

```diff
- <i nz-icon nzType="search" nzTheme="outline"></i>
+ <span nz-icon nzType="search" nzTheme="outline"></span>
```

## BREAKING CHANGES
* **pagination:** add ul tag ([#7500](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7500)) ([becdd68](https://github.com/NG-ZORRO/ng-zorro-antd/commit/becdd682514e36b188be93667a03ac74f224dcf7))



## 13.4.0

`2022-07-25`
Expand Down
27 changes: 27 additions & 0 deletions docs/changelog.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,33 @@ timeline: true
* 主版本号:含有破坏性更新和新特性,不在发布周期内。

---
## 14.0.0

`2022-08-25`

### 安装 ng-zorro-antd

```bash
$ cd PROJECT-NAME
$ ng add ng-zorro-antd@14.0.0
```

### Bug Fixes
* **steps:** 移除顶层多余的 `div` 元素 ([#7582](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7582)) ([60beabc](https://github.com/NG-ZORRO/ng-zorro-antd/commit/60beabccd2459adcb973133fc139008b31abfca0))

### Features
* **icon:** `nz-icon` 使用方式从 `i` 元素变更为 `span` 元素 ([#7586](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7586)) ([7242111](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7242111c8bc2523df9d13e19521473502a4f6cf1))
* **popconfirm:** 支持基于 `Promise` 的异步关闭 ([#7533](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7533)) ([797b261](https://github.com/NG-ZORRO/ng-zorro-antd/commit/797b2617f08394b56fe0a7903dc69e2d75984219))

```diff
- <i nz-icon nzType="search" nzTheme="outline"></i>
+ <span nz-icon nzType="search" nzTheme="outline"></span>
```

## BREAKING CHANGES
* **pagination:** `dom` 结构中添加 `ul` 标签 ([#7500](https://github.com/NG-ZORRO/ng-zorro-antd/issues/7500)) ([becdd68](https://github.com/NG-ZORRO/ng-zorro-antd/commit/becdd682514e36b188be93667a03ac74f224dcf7))


## 13.4.0

`2022-07-25`
Expand Down
2 changes: 1 addition & 1 deletion docs/introduce.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ An enterprise-class Angular UI component library based on Ant Design, all compon

## Angular Support

`ng-zorro-antd` keeps the same major version with `@angular/core`, now supports Angular `^13.0.0`.
`ng-zorro-antd` keeps the same major version with `@angular/core`, now supports Angular `^14.0.0`.

## Design Specification

Expand Down
2 changes: 1 addition & 1 deletion docs/introduce.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ title: Ant Design of Angular
[![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-antd)
## 支持 Angular 版本

`ng-zorro-antd``@angular/core` 保持相同的主版本号,目前支持 Angular `^13.0.0` 版本。
`ng-zorro-antd``@angular/core` 保持相同的主版本号,目前支持 Angular `^14.0.0` 版本。

## 设计规范

Expand Down
8 changes: 4 additions & 4 deletions docs/migration-v13.en-US.md → docs/migration-v14.en-US.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
order: 15
title: v13 Migration Guide
title: v14 Migration Guide
toc: false
---

This document will help you upgrade from `ng-zorro-antd` 12.x version to 13.x version.
This document will help you upgrade from `ng-zorro-antd` 13.x version to 14.x version.

## Before upgrade

1. Make sure `Node.js` >= `12.20`.
1. Make sure `Node.js` >= `14.15.0` or >= `16.10.0`.
2. Create a new branch, or use other methods to back up the current project.
3. Delete the package-lock.json file.

### 1.Upgrade dependencies

- Upgrade Angular to 13.x version, ref [https://update.angular.io/](https://update.angular.io/).
- Upgrade Angular to 14.x version, ref [https://update.angular.io/](https://update.angular.io/).
- Run `ng update @angular/cdk`, if you have used `@angular/cdk`.

### 2.Upgrade NG-ZORRO
Expand Down
8 changes: 4 additions & 4 deletions docs/migration-v13.zh-CN.md → docs/migration-v14.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
order: 15
title: v13 升级指南
title: v14 升级指南
toc: false
---

本文档将帮助你从 `ng-zorro-antd` 12.x 版本升级到 13.x 版本。
本文档将帮助你从 `ng-zorro-antd` 13.x 版本升级到 14.x 版本。

## 开始之前

1. 首先确保你 `Node.js` >= `12.20`
1. 首先确保你 `Node.js` >= `14.15.0` 或 >= `16.10.0`
2. 创建新的分支,或者使用其他方式备份当前项目
3. 删除项目下 package-lock.json 文件

## 升级步骤

### 1. 升级相关依赖

- 前往 [https://update.angular.io/](https://update.angular.io/) 将项目升级到 Angular 13
- 前往 [https://update.angular.io/](https://update.angular.io/) 将项目升级到 Angular 14
- 如果你有单独使用 `@angular/cdk` 请执行 `ng update @angular/cdk`

### 升级 NG-ZORRO
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@ant-design/icons-angular": "^14.1.0",
"@ctrl/tinycolor": "^3.4.1",
"date-fns": "^2.16.1",
"ngx-hover-preload": "0.0.3"
"ngx-quicklink": "^0.3.0"
},
"devDependencies": {
"@angular-builders/custom-webpack": "^14.0.0",
Expand Down
5 changes: 5 additions & 0 deletions schematics/migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
"description": "Updates NG-ZORRO to v13 [https://github.com/NG-ZORRO/ng-zorro-antd/issues/7157]",
"factory": "./ng-update/index#updateToV13"
},
"migration-v14": {
"version": "14.0.0-0",
"description": "Updates NG-ZORRO to v14 [https://github.com/NG-ZORRO/ng-zorro-antd/issues/7613]",
"factory": "./ng-update/index#updateToV14"
},
"ng-post-update": {
"description": "Prints out results after ng-update.",
"factory": "./ng-update/index#postUpdate",
Expand Down
4 changes: 4 additions & 0 deletions schematics/ng-update/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export function updateToV13(): Rule {
return createMigrationSchematicRule(TargetVersion.V13, migrations, ruleUpgradeData, postUpdate);
}

/** Entry point for the migration schematics with target of NG-ZORRO v14 */
export function updateToV14(): Rule {
return createMigrationSchematicRule(TargetVersion.V14, migrations, ruleUpgradeData, postUpdate);
}

/** Post-update schematic to be called when update is finished. */
export function postUpdate(context: SchematicContext, targetVersion: TargetVersion,
Expand Down
15 changes: 8 additions & 7 deletions scripts/gulp/tasks/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,19 @@ task('serve:site', done => {
/** Run `ng build --prod --project=ng-zorro-antd-doc` */
task(
'build:site-doc',
execNodeTask('@angular/cli', 'ng', [
'build',
'--project=ng-zorro-antd-doc',
'--prod',
CI ? '--configuration=pre-production' : ''
])
execNodeTask(
'@angular/cli',
'ng',
CI
? ['build', '--project=ng-zorro-antd-doc', '--configuration', 'production,pre-production']
: ['build', '--project=ng-zorro-antd-doc', '--configuration', 'production']
)
);

/** Run `ng build --prod --project=ng-zorro-antd-doc --configuration es5` */
task(
'build:site-doc-es5',
execNodeTask('@angular/cli', 'ng', ['build', '--project=ng-zorro-antd-doc', '--prod', '--configuration=es5'])
execNodeTask('@angular/cli', 'ng', ['build', '--project=ng-zorro-antd-doc', '--configuration', 'production,es5'])
);

/** Run `ng build --prod --base-href ./ --project=ng-zorro-antd-iframe` */
Expand Down
36 changes: 20 additions & 16 deletions scripts/prerender/route-paths.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/
components/overview/zh
components/overview/en
/components/overview/en
/components/overview/zh
/components/affix/en
/components/affix/zh
/components/alert/en
Expand Down Expand Up @@ -87,6 +87,8 @@ components/overview/en
/components/rate/zh
/components/result/en
/components/result/zh
/components/segmented/en
/components/segmented/zh
/components/select/en
/components/select/zh
/components/skeleton/en
Expand Down Expand Up @@ -127,12 +129,6 @@ components/overview/en
/components/typography/zh
/components/upload/en
/components/upload/zh
/experimental/pipes/en
/experimental/pipes/zh
/experimental/resizable/zh
/experimental/resizable/en
/experimental/code-editor/zh
/experimental/code-editor/en
/docs/animations/en
/docs/animations/zh
/docs/changelog/en
Expand All @@ -141,29 +137,37 @@ components/overview/en
/docs/contributing/zh
/docs/customize-theme/en
/docs/customize-theme/zh
/docs/global-config/en
/docs/global-config/zh
/docs/customize-theme-variable/en
/docs/customize-theme-variable/zh
/docs/direction/en
/docs/direction/zh
/docs/faq/en
/docs/faq/zh
/docs/getting-started/en
/docs/getting-started/zh
/docs/global-config/en
/docs/global-config/zh
/docs/i18n/en
/docs/i18n/zh
/docs/introduce/en
/docs/introduce/zh
/docs/join/en
/docs/join/zh
/docs/migration-v14/en
/docs/migration-v14/zh
/docs/recommendation/en
/docs/recommendation/zh
/docs/schematics/en
/docs/schematics/zh
/docs/universal/en
/docs/universal/zh
/docs/migration-v13/en
/docs/migration-v13/zh
/experimental/resizable/zh
/experimental/resizable/en
/experimental/pipes/en
/experimental/pipes/zh
/experimental/code-editor/zh
/experimental/code-editor/en
/experimental/experimental-image/zh
/experimental/experimental-image/en
/experimental/graph/en
/experimental/graph/zh
/experimental/pipes/en
/experimental/pipes/zh
/experimental/resizable/zh
/experimental/resizable/en

0 comments on commit 8e25b50

Please sign in to comment.