Change Log

ng-zorro-antd strictly follows Semantic Versioning 2.0.0.

Release Schedule#

  • Weekly release: patch version at the end of every week for routine bugfix (anytime for urgent bugfix).
  • Monthly release: minor version at the end of every month for new features.
  • Major version release is not included in this schedule for breaking change and new features.

7.4.1#

2019-05-21

Bug Fixes#

  • build: unable to build in production when importing secondary module (#3266)

7.4.0#

2019-05-19

Bug Fixes#

  • breadcrumb: fix input boolean and router event not caught error (#3185) (fd43ec5), closes #3186
  • carousel: fix carousel in entry components (#3367) (9d495fc)
  • cascader,checkbox,switch,tooltip: fix memory leak problem (#3416) (c63849f)
  • drawer: fix z-index level (#3405) (663f6c1), closes #3402
  • menu: submenu should not remain highlighted (#3455) (fd47605)
  • modal: cannot to close in order of overlay opens when using esc (#3339) (0533c32), closes #3338
  • modal: content not work in confirm mode when the type is component (#3415) (6458c57), closes #3407
  • modal: should not close when mousedown in the body (#3400) (82e488a), closes #3394
  • progress: fix stroke color is not updated (#3445) (80c6ed4), closes #3441
  • tree,tree-select: fix the styles of connecting line (#3385) (f7e9a7c), closes #3382

Features#

7.3.3#

2019-04-25

Bug Fixes#

7.3.2#

2019-04-22

Bug Fixes#

  • build: fix bundling error of components.less (#3331) (fb19921)

7.3.1#

2019-04-22

Bug Fixes#

7.3.0#

2019-04-21

Features#

Bug Fixes#

7.2.0#

2019-03-27

Bug Fixes#

Features#

7.1.0#

2019-03-21

Bug Fixes#

Features#

7.0.3#

2019-03-14

Bug Fixes#

  • select: fix select init touched state error when disabled (#3084) (ba9d454), closes #3059

Build#

  • build: add strictNullCheck config (#2126)
  • build: upgrade icon to 2.0.2 (#3085) (fc72d7d)

7.0.2#

2019-03-11

Bug Fixes#

7.0.1#

2019-03-04

Bug Fixes#

7.0.0#

2019-02-28

It has been three months since we released the last stable version 1.8.1, and now here comes ng-zorro-antd 7.0.0! (From 7.0.0, the package’s major version number would be aligned to Angular’s)

According to the road map we published last year, we add 105 commits on the top of the last three release candidate versions. Now we have reached Milestone I.

  • All components now work with OnPush change detection strategy. You can anticipate a tremendous improvement of performance.
  • Animations are updated to meet Ant Design’s specifications. And you can configure animation globally or specifically to each component.
  • New components: Empty, Statistic, Countdown and Comment.
  • New features of Angular CDK is introduced to some components. For example, Table component now supports virtual scrolling.
  • Lots of new features. Lots of bug fixes.
  • You can use ISO date format in components like Calendar & Date Picker.
  • Global scrolling strategy is changed. Modal and Drawer components will no longer shake under some circumstances.
  • More strict TypeScript compiler options.
  • Brand new logo and documentation site.

We will move on to Milestone II right after this release. Server side rendering (SSR), secondary entries, global configurations and dynamic validation would be supported in future versions to come.

Update Guidance#

  1. Update Angular and other packages to newest versions.

  2. Update ng-zorro-antd to 7.0.

Notice

Pay attention to these changes to ensure that your code works as expected:

  1. All components now work with OnPush strategy. Components with this strategy would not respond to mutations on object properties or array child items, even decorated with @Input(). So you should make all your @Input properties immutable objects. Not only this would ensure your code works correctly but also improve performance if you use immutable objects right. Please checkout our example below.
  2. We correct the meaning of nzDropdownMatchSelectWidth of Select component. Now it means exactly opposite of the old one.
  3. If you want to add a button to an input-group in search mode, you should use nzAddOnAfter instead of nzSuffix.

Changelog#

Bug Fixes#

Features#

Example#

In this example, this.value.push('jack') would not trigger change detection. However, this.value = [ ...this.value, 'jack' ] works. Please refer to this article (These 5 articles will make you an Angular Change Detection expert) if you want to have a comprehensive understanding of Angular’s change detection.

import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'nz-demo-select-basic',
  template: `
    <nz-select [(ngModel)]="value" nzMode="multiple">
      <nz-option nzValue="jack" nzLabel="Jack"></nz-option>
      <nz-option nzValue="lucy" nzLabel="Lucy"></nz-option>
    </nz-select>
  `
})
export class NzDemoSelectBasicComponent implements OnInit {
  value = [ 'lucy' ];

  ngOnInit(): void {
    setTimeout(() => {
      // this.value.push('jack'); // Mutation on the object would not trigger change detection.
      this.value = [ ...this.value, 'jack' ]; // This works!
    }, 3000);
  }
}


Old Versions#

All releases notes can be found here