Skip to content

Commit

Permalink
release(7.0.0-rc.0): release 7.0.0-rc.0 (#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie committed Nov 30, 2018
1 parent e5535d2 commit 76b1d3b
Show file tree
Hide file tree
Showing 15 changed files with 68 additions and 30 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,24 @@
# [7.0.0-rc.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/1.8.0...7.0.0-rc.0) (2018-11-30)


### Bug Fixes

* **menu:** fix dropdown menu item selected className ([#2434](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2434)) ([acbe5da](https://github.com/NG-ZORRO/ng-zorro-antd/commit/acbe5da)), closes [#2433](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2433)
* **menu:** fix fold menu ([#2454](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2454)) ([f228013](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f228013)), closes [#2449](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2449)
* **timeline:** fix loading icon ([#2386](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2386)) ([cebfff7](https://github.com/NG-ZORRO/ng-zorro-antd/commit/cebfff7)), closes [#2377](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2377)
* **readme:** fix misspelling ([#2472](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2472)) ([e5535d2](https://github.com/NG-ZORRO/ng-zorro-antd/commit/e5535d2))


### Features

* Adds danish locale ([#2486](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2486)) ([1c7f983](https://github.com/NG-ZORRO/ng-zorro-antd/commit/1c7f983)), closes [#2485](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2485)
* **avatar:** support custom size ([#2416](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2416)) ([0bf8a36](https://github.com/NG-ZORRO/ng-zorro-antd/commit/0bf8a36)), closes [#2380](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2380)
* **drawer:** add input property in NzDrawerRef ([#2464](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2464)) ([9565cd5](https://github.com/NG-ZORRO/ng-zorro-antd/commit/9565cd5)), closes [#2403](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2403)
* **modal:** support clicking ESC to close modal ([#2483](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2483)) ([c72f431](https://github.com/NG-ZORRO/ng-zorro-antd/commit/c72f431)), closes [#1999](https://github.com/NG-ZORRO/ng-zorro-antd/issues/1999)
* **progress:** support custom strokeColor and strokeLinecap ([#2404](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2404)) ([167a110](https://github.com/NG-ZORRO/ng-zorro-antd/commit/167a110)), closes [#2378](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2378)



<a name="1.8.1"></a>
## [1.8.1](https://github.com/NG-ZORRO/ng-zorro-antd/compare/1.8.0...1.8.1) (2018-11-24)

Expand Down
1 change: 0 additions & 1 deletion README-zh_CN.md
Expand Up @@ -15,7 +15,6 @@ Ant Design 的 Angular 实现,开发和服务于企业级后台产品。
[![Travis branch](https://img.shields.io/travis/NG-ZORRO/ng-zorro-antd/master.svg?style=flat-square)](https://travis-ci.org/NG-ZORRO/ng-zorro-antd)
[![Codecov](https://img.shields.io/codecov/c/github/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://codecov.io/gh/NG-ZORRO/ng-zorro-antd)
[![Dependencies](https://img.shields.io/david/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://david-dm.org/NG-ZORRO/ng-zorro-antd)
[![DevDependencies](https://img.shields.io/david/dev/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://david-dm.org/NG-ZORRO/ng-zorro-antd?type=dev)
[![GitHub Release Date](https://img.shields.io/github/release-date/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://github.com/NG-ZORRO/ng-zorro-antd/releases)
[![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-atnd)
[![NPM downloads](http://img.shields.io/npm/dm/ng-zorro-antd.svg?style=flat-square)](https://npmjs.org/package/ng-zorro-antd)
Expand Down
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -15,7 +15,6 @@ An enterprise-class UI components based on Ant Design and Angular.
[![Travis branch](https://img.shields.io/travis/NG-ZORRO/ng-zorro-antd/master.svg?style=flat-square)](https://travis-ci.org/NG-ZORRO/ng-zorro-antd)
[![Codecov](https://img.shields.io/codecov/c/github/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://codecov.io/gh/NG-ZORRO/ng-zorro-antd)
[![Dependencies](https://img.shields.io/david/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://david-dm.org/NG-ZORRO/ng-zorro-antd)
[![DevDependencies](https://img.shields.io/david/dev/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://david-dm.org/NG-ZORRO/ng-zorro-antd?type=dev)
[![GitHub Release Date](https://img.shields.io/github/release-date/NG-ZORRO/ng-zorro-antd.svg?style=flat-square)](https://github.com/NG-ZORRO/ng-zorro-antd/releases)
[![npm package](https://img.shields.io/npm/v/ng-zorro-antd.svg?style=flat-square)](https://www.npmjs.org/package/ng-zorro-atnd)
[![NPM downloads](http://img.shields.io/npm/dm/ng-zorro-antd.svg?style=flat-square)](https://npmjs.org/package/ng-zorro-antd)
Expand Down
2 changes: 1 addition & 1 deletion components/package.json
@@ -1,6 +1,6 @@
{
"name": "ng-zorro-antd",
"version": "1.8.1",
"version": "7.0.0-rc.0",
"license": "MIT",
"description": "An enterprise-class UI components based on Ant Design and Angular",
"schematics": "./schematics/collection.json",
Expand Down
19 changes: 18 additions & 1 deletion docs/changelog.en-US.md
Expand Up @@ -13,7 +13,24 @@ timeline: true
* Major version release is not included in this schedule for breadking change and new features.

---
## [1.8.1]

## 7.0.0-rc.0
`2018-11-30`

**NO BREAK CHANGES**

`ng-zorro-antd` will track the major version of `@angular/core` from `7.0.0-rc.0` like other angular libraries.

* Support Angular 7.0
* Work with latest `@angular/cdk`
* Support OnPush in some components
* Support SSR in some components
* Fix some bugs

We are still working on it now, you can track [this issue](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2381) to get more information.


## 1.8.1
`2018-11-24`


Expand Down
19 changes: 18 additions & 1 deletion docs/changelog.zh-CN.md
Expand Up @@ -13,7 +13,24 @@ timeline: true
* 主版本号:含有破坏性更新和新特性,不在发布周期内。

---
## [1.8.1]

## 7.0.0-rc.0
`2018-11-30`

**该版本不包含任何破坏性更新**

从这个版本开始,`ng-zorro-antd` 将和其他 Angular 第三方库一样,保持与 Angular 的主版本号一致。当前版本已经完成了

* 支持 Angular 7.0
* 使用了 Angular CDK 7.0 的最新特性
* 部分组件支持 OnPush
* 部分组件支持了SSR的功能
* 修复了部分 Bug

整体的工作仍然还在推进之中,用户可以通过追踪[相关ISSUE](https://github.com/NG-ZORRO/ng-zorro-antd/issues/2381)来获得最新的进度更新


## 1.8.1
`2018-11-24`


Expand Down
4 changes: 0 additions & 4 deletions docs/customize-theme.en-US.md
Expand Up @@ -17,14 +17,10 @@ We are using [Less](http://lesscss.org/) as the development language for styling

Run `ng add ng-zorro-antd --theme`,then modified the file `src/theme.less`.

> Note: `ng add ng-zorro-antd --theme` will [downgrade](https://github.com/angular/angular-cli/issues/10430) the version of `less` to `2.7`.
### Without schematics

Create a standalone less file named `theme.less` in `src` folder, and add the path of it to the list of `styles` in `angular.json` file.

> Note: You have to [downgrade](https://github.com/angular/angular-cli/issues/10430) the version of `less` to `2.7`.
```json
...
"styles": [
Expand Down
3 changes: 0 additions & 3 deletions docs/customize-theme.zh-CN.md
Expand Up @@ -16,13 +16,10 @@ Ant Design 的样式使用了 [Less](http://lesscss.org/) 作为开发语言,

在初始化项目时 `ng add ng-zorro-antd --theme` 即可自动配置好自定义主题的相关文件,修改 `src/theme.less` 文件内容就可以自定义主题。

> 注意:使用 `ng add ng-zorro-antd --theme` 时会[自动](https://github.com/angular/angular-cli/issues/10430)降级 `less``2.7` 版本
### 手动修改

`src` 目录下建立一个单独的 `theme.less` 文件,在 `angular.json` 文件的 `styles` 列表加入该文件

> 注意:由于 `less``3.0` 以上版本默认禁用了 `javascriptEnabled`,需要手动降级 `less``2.7` 版本

```json
...
Expand Down
2 changes: 1 addition & 1 deletion docs/schematics.en-US.md
Expand Up @@ -18,7 +18,7 @@ ng add ng-zorro-antd [options]

***--theme***

`ng-zorro-antd` will [downgrade](https://github.com/angular/angular-cli/issues/10430) the version of `less` to `2.7` and create `theme.less` in `src` folder.
`ng-zorro-antd` will create `theme.less` in `src` folder.

You can get more information at the [Customize Theme](/docs/customize-theme/en) part.

Expand Down
2 changes: 1 addition & 1 deletion docs/schematics.zh-CN.md
Expand Up @@ -19,7 +19,7 @@ ng add ng-zorro-antd [options]

***--theme***

`ng-zorro-antd` [自动](https://github.com/angular/angular-cli/issues/10430)降级 `less` 版本至 `2.7` 并在 `src` 目录下生成 `theme.less` 的主题配置文件
`ng-zorro-antd` 会在 `src` 目录下生成 `theme.less` 的主题配置文件

详细的配置可以在[自定义主题](/docs/customize-theme/zh)中查看。

Expand Down
12 changes: 1 addition & 11 deletions schematics/ng-add/index.ts
Expand Up @@ -21,7 +21,6 @@ import { Schema } from './schema';
import schematicsFixIcon from '../fix-icon/index';

const ADD_CONFIG = {
LESS_VERSION : '^2.7.3',
CUSTOM_THEME_PATH : 'src/theme.less',
COMPILED_THEME_PATH: 'node_modules/ng-zorro-antd/ng-zorro-antd.min.css',
BOOT_PAGE_PATH : 'src/app/app.component.html',
Expand All @@ -34,12 +33,11 @@ const ADD_CONFIG = {
export default function (options: Schema): Rule {
return chain([
options && options.skipPackageJson ? noop() : addZorroToPackageJson(),
options && options.theme ? downgradeLess() : noop(),
setBootstrapPage(),
addThemeToAppStyles(options),
addModulesToAppModule(options),
addI18n(options),
(options && !options.skipPackageJson) || (options && !options.theme) ? installNodeDeps() : noop(),
(options && !options.skipPackageJson) ? installNodeDeps() : noop(),
schematicsFixIcon(options)
]);
}
Expand Down Expand Up @@ -152,14 +150,6 @@ function registerLocaleData(moduleSource: ts.SourceFile, modulePath: string, loc
: new ReplaceChange(modulePath, registerLocaleDataFun[ 0 ].getStart(), registerLocaleDataFun[ 0 ].getText(), `registerLocaleData(${locale});`);
}

/** 降级 less */
function downgradeLess(): (host: Tree) => Tree {
return (host: Tree) => {
addPackageToPackageJson(host, 'dependencies', 'less', ADD_CONFIG.LESS_VERSION);
return host;
};
}

/** 添加 ng-zorro-antd 到 package.json 的 dependencies */
function addZorroToPackageJson(): (host: Tree) => Tree {
return (host: Tree) => {
Expand Down
1 change: 1 addition & 0 deletions scripts/publish/publish.js
Expand Up @@ -51,6 +51,7 @@ function changeVersion() {

function checkVersionNumber(cur, next) {
// Must be numbers and dots.
if (next.indexOf('rc') > -1) { return true; }
if (!/^[1-9][0-9.]{1,10}[0-9]$/.test(next)) { return false; }

const curArr = cur.split('.');
Expand Down
4 changes: 2 additions & 2 deletions scripts/release-helper.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
rm -rf issue-helper && rm -rf ./dist/issue-helper && git clone https://github.com/NG-ZORRO/issue-helper.git && cp -R issue-helper/issue-helper ./dist/
rm -rf issue-helper
# download 0.5.x 0.6.x
rm -rf ./dist/version && mkdir ./dist/version && cd ./dist/version && git clone https://github.com/NG-ZORRO/0.5.5-doc.git 0.5.x && rm -rf 0.5.x/.git/ && git clone https://github.com/NG-ZORRO/0.6.x-doc.git 0.6.x && rm -rf 0.6.x/.git/ && git clone https://github.com/NG-ZORRO/0.7.x-doc.git 0.7.x && rm -rf 0.7.x/.git/
# download 0.5.x 0.6.x 0.7.x 1.8.x
rm -rf ./dist/version && mkdir ./dist/version && cd ./dist/version && git clone https://github.com/NG-ZORRO/0.5.5-doc.git 0.5.x && rm -rf 0.5.x/.git/ && git clone https://github.com/NG-ZORRO/0.6.x-doc.git 0.6.x && rm -rf 0.6.x/.git/ && git clone https://github.com/NG-ZORRO/0.7.x-doc.git 0.7.x && rm -rf 0.7.x/.git/ && git clone https://github.com/NG-ZORRO/1.8.x-doc.git 1.8.x && rm -rf 1.8.x/.git/
5 changes: 3 additions & 2 deletions scripts/site/_site/src/app/app.component.ts
Expand Up @@ -26,9 +26,10 @@ export class AppComponent implements OnInit, AfterViewInit {
oldVersionList = [
'0.5.x',
'0.6.x',
'0.7.x'
'0.7.x',
'1.8.x'
];
currentVersion = '1.8.1';
currentVersion = '7.0.0-rc.0';

@ViewChild('searchInput') searchInput: ElementRef<HTMLInputElement>;

Expand Down
Expand Up @@ -401,7 +401,7 @@ export class AppModule { }
'date-fns' : '^1.29.0',
'tslib' : '^1.9.3',
'typescript' : '~3.1.1',
'ng-zorro-antd' : '^7.0.0'
'ng-zorro-antd' : '^7.0.0-rc.0'
},
tags : [ 'stackblitz', 'sdk' ]
});
Expand Down

0 comments on commit 76b1d3b

Please sign in to comment.