Angular 5.0.0-rc.1 已发布,该版本的更新内容包括 bug 修复和性能改进,具体如下:
Bug 修复
- compiler: always emit summaries for jit with ng_module bazel rule. (1058b2a)
- don’t rely on
goog.DEBUG
but onCOMPILED
instead (db74f44) - compiler: add typings for
COMPILED
. (0038712) - compiler: also count generated files to determine whether to use single file emit (7c5ecb5)
- compiler: disallow references for select and index evaluation (f3f4c3d)
- compiler: don’t use
ng://
in AOT source maps, and never point to the original source file (01f7112), closes #19538 - compiler: only don’t emit already emitted files in incremental compilation (caa5195)
- compiler: properly work on windows (696af79), closes #19492
- compiler: set
emitSkipped
to false for incremental compilation (c412913) - service-worker: several misc fixes for corner cases (f10f8db)
- upgrade: call
ngOnInit()
afterngOnChanges()
(on components with inputs) (eef7d8a), closes #18913 - upgrade: correctly run change detection when
propagateDigest
is false (617b3d2) - upgrade: ensure downgraded components are destroyed in the Angular zone (4e6aa9c)
性能改进
- compiler: don’t emit summaries for jit by default (b086891)
- compiler: fix perf issue in loading aot summaries in jit compiler (fbc9537)
- compiler: only emit changed files for incremental compilation (745b59f)
下载地址:
官方表示 Angular 5 正式版预计将于 10 月 23 日发布。
转自 http://www.oschina.net/news/89349/angular-5-0-0-rc1