angular-docs-cn/CHANGELOG.md

246 KiB
Raw Blame History

4.4.4 (2017-09-28)

Bug Fixes

  • animations: support negative query limit value (#19419) (bc81fbd), closes #19232
  • compiler: correctly map error message locations (#19424) (c3b39ba)
  • compiler: do not consider a reference with members as a reference (#19466) (7fc2dce)
  • compiler: skip   when trimming / removing whitespaces (#19310) (c7aa8a1), closes #19304
  • tsc-wrapped: add metadata for type declarations (#19040) (ae52851)

4.4.3 (2017-09-19)

Bug Fixes

  • tsc-wrapped: deduplicate metadata only when the module is the same (#19261) (0371538), closes #19219

4.4.2 (2017-09-18)

Bug Fixes

  • platform-server: fix for packaging issues #19250

4.4.1 (2017-09-15)

Bug Fixes

Features

  • compiler: allow multiple exportAs names (#18723) (7ec28fe)
  • core: add option to remove blank text nodes from compiled templates (#18823) (b8b551c)

Note: the 4.4.0 release on npm accidentally glitched-out midway, so we cut 4.4.1 instead. oops :-)

5.0.0-beta.7 (2017-09-13)

Bug Fixes

  • compiler: emit preamble in generated files. (b1055a5)
  • compiler: fix bazel integration and make perform-compile more flexible (a69172f)
  • compiler: lower variables with a closure by exporting the variable. (5ef6e63)
  • platform-browser: run BLACK_LISTED_EVENTS outside of ngZone (#18993) (d52f426)
  • platform-browser: simple version of zone aware addEventListener (#18993) (ed1175f)
  • platform-server: support setting innerText property (831613a)
  • router: adjust ChildActivation events to only fire when the child is actually changing (#19043) (66f0ab0), closes #18942
  • tsc-wrapped: deduplicate metadata for re-exported modules (c056b8c)
  • tsc-wrapped: fix metadata symbol reference (626555c)
  • upgrade: add testability hook to downgraded component (97cc6ca)
  • upgrade: remove code setting id attribute. (b6833d1), closes #18446

Code Refactoring

  • router: remove deprecated RouterOutlet properties (a9ef858)
  • update angular to support TypeScript 2.4 (ca5aeba)

Features

  • compiler: deprecate i18n comments in favor of ng-container (#18998) (66a5dab)
  • platform-server: provide a way to hook into renderModule* (#19023) (8dfc3c3)
  • router: add ActivationStart/End events (8f79150)

BREAKING CHANGES

    • the Angular compiler now requires TypeScript 2.4.x.
  • router: RouterOutlet properties locationInjector and locationFactoryResolver have been removed as they were deprecated since v4.

5.0.0-beta.6 (2017-09-03)

Bug Fixes

  • animations: do not leak DOM nodes/styling for host triggered animations (#18853) (fcadeb2), closes #18606
  • common: fix a duplicate case in the locale switch (#18941) (fdd5010)
  • common: fix improper packaging for @angular/common/http (#18613) (65e26d7)
  • common: fix XSSI prefix stripping by using JSON.parse always (#18466) (452a7ae), closes #18396 #18453
  • common: update closure-locale generation for tree shaking (#18938) (946e5bd)
  • common: use correct group separator for currency pipe (#18932) (4ec5e28)
  • common: use v4 plurals when importing DeprecatedI18NPipesModule (#18955) (30d53a8)
  • compiler: always check summaries first before falling back to metadata from .d.ts files (#18788) (f83b819)
  • compiler: always emit ngfactories with reexports (#18788) (0262e37)
  • compiler: dont emit stubs when we didnt generate code for a file. (#18788) (506d2e9)
  • compiler: dont reexport types in .ngfactory files (#18788) (8c858d7)
  • compiler: normalize the locale name (#18963) (043f104)
  • compiler: quote non identifiers in map keys. (#18788) (2fbc92f)
  • compiler: treat absolute imports as package imports (#18912) (fce7ae1)
  • compiler: use either summary or metadata information when reading .d.ts files (#18912) (f1e526f)
  • compiler: workaround bugs in TS when combining transformers (#18912) (4059a72)
  • compiler-cli: fix memory leaks in watch mode (#18961) (83e5deb)
  • compiler-cli: use --locale parameter for transformers (#18988) (22c4090)
  • core: complete EventEmitter in QueryList on component destroy (#18902) (36d37cc), closes #18741
  • tsc-wrapped: decouple bundle index host from tsickle dependency (#18999) (d1afadb)
  • upgrade: deprecate the dynamic version of ngUpgrade (450a13d)

Code Refactoring

Features

  • http: deprecate @angular/http in favor of @angular/common/http (#18906) (72c7b6e)
  • common: accept object map for HttpClient headers & params (#18490) (1b1d5f1)
  • common: generate closure-locale.ts to tree shake locale data (#18907) (4878936)
  • compiler: set enableLegacyTemplate to false by default (#18756) (56238fe)
  • compiler-cli: add watch mode to ngc (#18818) (cf7d47d)
  • compiler-cli: add watch mode to ngc (#18818) (06d01b2)
  • compiler-cli: lower metadata useValue and data literal fields (#18905) (0e64261)
  • compiler-cli: lower metadata useValue and data literal fields (#18905) (c685cc2)
  • platform-server: provide a DOM implementation on the server (2f2d5f3), closes #14638

BREAKING CHANGES

  • core: OpaqueToken has been removed as it was deprecated since v4. Use InjectionToken instead.
  • compiler: the compiler option enableLegacyTemplate is now disabled by default as the <template> element has been deprecated since v4. Use <ng-template> instead. The option enableLegacyTemplate and the <template> element will both be removed in Angular v6.

Features

  • compiler: allow multiple exportAs names (#18723) (7ec28fe)
  • core: add option to remove blank text nodes from compiled templates (#18823) (b8b551c)

5.0.0-beta.5 (2017-08-29)

Bug Fixes

  • animations: ensure animations are disabled on the element containing the @.disabled flag (#18714) (791c7ef)
  • animations: make sure @.disabled respects disabled parent/sub animation sequences (#18715) (e25f05a)
  • animations: make sure animation cancellations respect AUTO style values (#18787) (29aa8b3), closes #17450
  • animations: resolve error when using AnimationBuilder with platform-server (#18642) (845c68f), closes #18635
  • animations: restore auto-style support for removed DOM nodes (#18787) (7062811)
  • compiler-cli: propagate preserveWhitespaces option to codegen (#18773) (8ea6c56)
  • compiler-cli: use forward slashes for ts.resolveModuleName (#18784) (e228f2c)
  • core: correct order in ContentChildren query result (#18326) (f53f724), closes #16568
  • core: make sure onStable runs in the right zone (#18706) (713d7c2)
  • tsc-wrapped: add metadata for type declarations (#18704) (6e3498c), closes #18675
  • tsc-wrapped: make test.sh tools run the tsc-wrapped tests again (#18683) (2da45e6)

Code Refactoring

  • common: remove deprecated NgFor (#18758) (ec56760)
  • common: remove deprecated NgTemplateOutlet#ngOutletContext (#18780) (7522987)
  • compiler: remove option useDebug (#18778) (499d05d)
  • compiler: split compiler and core (#18683) (0cc77b4)
  • core: remove deprecated ChangeDetectionRef argument in DifferFactory#create (#18757) (be9713c)
  • core: remove deprecated DebugNode#source (#18779) (d61b902)
  • core: remove deprecated Testability#findBindings (#18782) (f2a2a6b)
  • core: remove deprecated TrackByFn (#18757) (596e9f4)
  • core: remove deprecated parameter for ErrorHandler (#18759) (8f41326)
  • platform-browser: remove deprecated NgProbeToken (#18760) (d7f42bf)
  • platform-webworker: remove deprecated PRIMITIVE (#18761) (a56468c)
  • router: remove deprecated initialNavigation options (#18781) (d76761b)
  • router: remove deprecated RouterOutlet properties (#18781) (d1c4a94)

Features

BREAKING CHANGES

Deprecated code

  • router: RouterOutlet properties locationInjector and locationFactoryResolver have been removed as they were deprecated since v4.
  • common: NgFor has been removed as it was deprecated since v4. Use NgForOf instead. This does not impact the use of*ngFor in your templates.
  • common: NgTemplateOutlet#ngOutletContext has been removed as it was deprecated since v4. Use NgTemplateOutlet#ngTemplateOutletContext instead.
  • core: Testability#findBindings has been removed as it was deprecated since v4. Use Testability#findProviders instead.
  • core: DebugNode#source has been removed as it was deprecated since v4.
  • router: the values true, false, legacy_enabled and legacy_disabled for the router parameter initialNavigation have been removed as they were deprecated. Use enabled or disabled instead.
  • core: DifferFactory.create no longer takes ChangeDetectionRef as a first argument as it was not used and deprecated since v4.
  • core: TrackByFn has been removed because it was deprecated since v4. Use TrackByFunction instead.
  • platform-webworker: PRIMITIVE has been removed as it was deprecated since v4. Use SerializerTypes.PRIMITIVE instead.
  • platform-browser: NgProbeToken has been removed from @angular/platform-browser as it was deprecated since v4. Import it from @angular/core instead.
  • core: ErrorHandler no longer takes a parameter as it was not used and deprecated since v4.
  • compiler: the option useDebug for the compiler has been removed as it had no effect and was deprecated since v4.

Other breaking changes

  • compiler: - @angular/platform-server now additionally depends on @angular/platform-browser-dynamic as a peer dependency.

  • common: Because of multiple bugs and browser inconsistencies, we have dropped the intl api in favor of data exported from the Unicode Common Locale Data Repository (CLDR). Unfortunately we had to change the i18n pipes (date, number, currency, percent) and there are some breaking changes.

    I18n pipes:
    • Breaking change:

      • By default Angular now only contains locale data for the language en-US, if you set the value of LOCALE_ID to another locale, you will have to import new locale data for this language because we don't use the intl API anymore.
    • Features:

      • you don't need to use the intl polyfill for Angular anymore.
      • all i18n pipes now have an additional last parameter locale which allows you to use a specific locale instead of the one defined in the token LOCALE_ID (whose default value is en-US).
      • the new locale data extracted from CLDR are now available to developers as well and can be used through an API (which should be especially useful for library authors).
      • you can still use the old pipes for now, but their names have been changed and they are no longer included in the CommonModule. To use them, you will have to import the DeprecatedI18NPipesModule after the CommonModule (the order is important):
      import { NgModule } from '@angular/core';
      import { CommonModule, DeprecatedI18NPipesModule } from '@angular/common';
      
      @NgModule({
        imports: [
          CommonModule,
          // import deprecated module after
          DeprecatedI18NPipesModule
        ]
      })
      export class AppModule { }
      

      Don't forget that you will still need to import the intl API polyfill if you want to use those deprecated pipes.

    Date pipe
    • Breaking changes:

      • the predefined formats (short, shortTime, shortDate, medium, ...) now use the patterns given by CLDR (like it was in AngularJS) instead of the ones from the intl API. You might notice some changes, e.g. shortDate will be 8/15/17 instead of 8/15/2017 for en-US.
      • the narrow version of eras is now GGGGG instead of G, the format G is now similar to GG and GGG.
      • the narrow version of months is now MMMMM instead of L, the format L is now the short standalone version of months.
      • the narrow version of the week day is now EEEEE instead of E, the format E is now similar to EE and EEE.
      • the timezone z will now fallback to O and output GMT+1 instead of the complete zone name (e.g. Pacific Standard Time), this is because the quantity of data required to have all the zone names in all of the existing locales is too big.
      • the timezone Z will now output the ISO8601 basic format, e.g. +0100, you should now use ZZZZ to get GMT+01:00.
      Field type Format Example value v4 v5
      Eras Narrow A for AD G GGGGG
      Months Narrow S for September L MMMMM
      Week day Narrow M for Monday E EEEEE
      Timezone Long location Pacific Standard Time z Not available
      Timezone Long GMT GMT+01:00 Z ZZZZ
    • Features

      • new predefined formats long, full, longTime, fullTime.
      • the format yyy is now supported, e.g. the year 52 will be 052 and the year 2017 will be 2017.
      • standalone months are now supported with the formats L to LLLLL.
      • week of the year is now supported with the formats w and ww, e.g. weeks 5 and 05.
      • week of the month is now supported with the format W, e.g. week 3.
      • fractional seconds are now supported with the format S to SSS.
      • day periods for AM/PM now supports additional formats aa, aaa, aaaa and aaaaa. The formats a to aaa are similar, while aaaa is the wide version if available (e.g. ante meridiem for am), or equivalent to a otherwise, and aaaaa is the narrow version (e.g. a for am).
      • extra day periods are now supported with the formats b to bbbbb (and B to BBBBB for the standalone equivalents), e.g. morning, noon, afternoon, ....
      • the short non-localized timezones are now available with the format O to OOOO. The formats O to OOO will output GMT+1 while the format OOOO will be GMT+01:00.
      • the ISO8601 basic time zones are now available with the formats Z to ZZZZZ. The formats Z to ZZZ will output +0100, while the format ZZZZ will be GMT+01:00 and ZZZZZ will be +01:00.
    • Bug fixes

      • the date pipe will now work exactly the same across all browsers, which will fix a lot of bugs for safari and IE.
      • eras can now be used on their own without the date, e.g. the format GG will be AD instead of 8 15, 2017 AD.
    Currency pipe
    • Breaking change:
      • the default value for symbolDisplay is now symbol instead of code. This means that by default you will see $4.99 for en-US instead of USD4.99 previously.
    • Deprecation:
      • the second parameter of the currency pipe (symbolDisplay) is no longer a boolean, it now takes the values code, symbol or symbol-narrow. A boolean value is still valid for now, but it is deprecated and it will print a warning message in the console.
    • Features:
      • you can now choose between code, symbol or symbol-narrow which gives you access to more options for some currencies (e.g. the canadian dollar with the code CAD has the symbol CA$ and the symbol-narrow $).
    Percent pipe
    • Breaking change
      • if you don't specify the number of digits to round to, the local format will be used (and it usually rounds numbers to 0 digits, instead of not rounding previously), e.g. {{ 3.141592 | percent }} will output 314% for the locale en-US instead of 314.1592% previously.

4.3.6 (2017-08-23)

Bug Fixes

  • animations: ensure animations are disabled on the element containing the @.disabled flag (#18714) (5d68c83)
  • animations: make sure @.disabled respects disabled parent/sub animation sequences (#18715) (c3dcbf9)
  • animations: make sure animation cancellations respect AUTO style values (#18787) (9a754f9), closes #17450
  • animations: resolve error when using AnimationBuilder with platform-server (#18642) (f9b2905), closes #18635
  • animations: restore auto-style support for removed DOM nodes (#18787) (e1f45a3)
  • core: correct order in ContentChildren query result (#18326) (fec3b1a), closes #16568
  • core: make sure onStable runs in the right zone (#18706) (ee5591d)

Features

  • animations: allow @.disabled property to work without an expression (#18713) (ac58914)
  • common: add an empty DeprecatedI18NPipesModule module (793f31b)

5.0.0-beta.4 (2017-08-16)

Bug Fixes

  • compiler: Don't strip CSS source maps (64b4be9)
  • forms: re-assigning options should not clear select (32ff21c), closes #18330
  • language-service: remove tsickle dependency (bc22ff1)

Features

  • common: mark NgTemplateOutlet API as stable (0a73e8d)
  • forms: add status to AbstractControlDirective (233ef93)
  • forms: add updateOn support to ngModelOptions (1cfa79c)

Performance Improvements

  • core: add option to remove blank text nodes from compiled templates (d2c0d98)
  • core: Remove decorator DSL which depends on Reflect (cac130e)

4.3.5 (2017-08-16)

Bug Fixes

  • core: forbid destroyed views to be inserted or moved in VC (972538b), closes #18615
  • forms: re-assigning options should not clear select (a1624f2), closes #18330

4.3.4 (2017-08-10)

Bug Fixes

5.0.0-beta.3 (2017-08-09)

Bug Fixes

Features

  • core: Create StaticInjector which does not depend on Reflect polyfill. (d9d00bd)
  • forms: add default updateOn values for groups and arrays (#18536) (ff5c58b)
  • forms: add updateOn blur option to FormControls (#18408) (333a708), closes #7113
  • forms: add updateOn submit option to FormControls (#18514) (f69561b)

Performance Improvements

  • switch angular to use StaticInjector instead of ReflectiveInjector (fcadbf4), closes #18496

BREAKING CHANGES

  • platformXXXX() no longer accepts providers which depend on reflection. Specifically the method signature when from Provider[] to StaticProvider[].

Example: Before:

[
  MyClass,
  {provide: ClassA, useClass: SubClassA}
]

After:

[
  {provide: MyClass, deps: [Dep1,...]},
  {provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]

NOTE: This only applies to platform creation and providers for the JIT compiler. It does not apply to @Component or @NgModule provides declarations.

Benchpress note: Previously Benchpress also supported reflective provides, which now require static providers.

DEPRECATION:

  • ReflectiveInjector is now deprecated as it will be remove. Use Injector.create as a replacement.

5.0.0-beta.2 (2017-08-02)

Bug Fixes

  • compiler: do not consider arguments when determining recursion (e64b54b)
  • compiler: fix for element needing implicit parent placed in top-level ng-container (381471d), closes #18314

Features

  • forms: add options arg to abstract controls (ebef5e6)
  • router: add events tracking activation of individual routes (49cd851)

4.3.3 (2017-08-02)

Bug Fixes

  • compiler: fix for element needing implicit parent placed in top-level ng-container (f5cbc2e), closes #18314

5.0.0-beta.1 (2017-07-27)

Bug Fixes

  • animations: export BrowserModule as apart of BrowserAnimationsModule (#18263) (fd0cc01)
  • compiler: add equiv & disp attributes to Xliff2 ICU placeholders (#18283) (38ec05f), closes #17344
  • compiler: allow numbers for ICU message cases in lexer (#18095) (a3a5429), closes #17799
  • core: invoke error handler outside of the Angular Zone (#18269) (7ae7573), closes #17073 #7774
  • platform-server: don't clobber parse5 properties when setting (#18237) (a094769), closes #17050
  • router: child CanActivate guard should wait for parent to complete (#18110) (086f4aa), closes #15670
  • router: should throw when lazy loaded module doesn't define any routes (#15001) (82923a3), closes #14596
  • upgrade: ensure downgraded components are created in the Angular zone (#18209) (43c33d5)
  • upgrade: throw error if trying to get injector before setting (#18209) (d31dc7b)

Features

  • compiler: add representation of placeholders to xliff & xmb (b3085e9), closes #17345

Performance Improvements

  • latest tsickle to tree shake: abstract class methods & interfaces (#18236) (b7a6f52)
  • core: use native addEventListener for faster rendering. (#18107) (6279e50)

4.3.2 (2017-07-26)

Bug Fixes

  • animations: export BrowserModule as apart of BrowserAnimationsModule (#18263) (cbeb197)
  • compiler: add equiv & disp attributes to Xliff2 ICU placeholders (#18283) (a084619), closes #17344
  • compiler: allow numbers for ICU message cases in lexer (#18095) (a8ac77b), closes #17799
  • core: invoke error handler outside of the Angular Zone (#18269) (a1bb9c2), closes #17073 #7774
  • platform-server: don't clobber parse5 properties when setting (#18237) (97135e8), closes #17050
  • router: child CanActivate guard should wait for parent to complete (#18110) (b9e32c8), closes #15670
  • router: should throw when lazy loaded module doesn't define any routes (#15001) (be49e0e), closes #14596
  • upgrade: throw error if trying to get injector before setting (#18209) (1f106d7)

5.0.0-beta.0 (2017-07-19)

Bug Fixes

  • animations: always camelcase style property names that contain auto styles (d22f8f5), closes #17938
  • animations: capture cancelled animation styles within grouped animations (23146c9), closes #17170
  • animations: do not crash animations if a nested component fires CD during CD (5db6f38), closes #18193
  • animations: make sure @.disabled works in non-animation components (5344be5)
  • common: send flushed body as error instead of null (5c62e30), closes #18181
  • compiler: ensure jit external id arguments names are unique (95635c1)
  • compiler-cli: don't generate empty when extracting xliff (65c9e13), closes #15754
  • platform-server: provide XhrFactory for HttpClient (8076482)
  • router: canDeactivate guards should run from bottom to top (e20cfe1), closes #15657
  • router: should navigate to the same url when config changes (eb6fb5f), closes #15535
  • router: should run resolvers for the same route concurrently (ad3029e), closes #14279
  • router: terminal route in custom matcher (b399cb2)
  • upgrade: allow accessing AngularJS injector from downgraded module (a5205c6)

Features

  • animations: support :increment and :decrement transition aliases (6f45519)
  • upgrade: propagate touched state of NgModelController (59c23c7)
  • upgrade: support lazy-loading Angular module into AngularJS app (30e76fc)

4.3.1 (2017-07-19)

Bug Fixes

  • animations: always camelcase style property names that contain auto styles (383d896), closes #17938
  • animations: capture cancelled animation styles within grouped animations (333ffd8), closes #17170
  • animations: do not crash animations if a nested component fires CD during CD (4c1f32b), closes #18193
  • animations: make sure @.disabled works in non-animation components (a5c4bb5)
  • common: send flushed body as error instead of null (17b7bc3), closes #18181
  • compiler: ensure jit external id arguments names are unique (4671168)
  • compiler-cli: don't generate empty <target/> when extracting xliff (f0476fc), closes #15754
  • platform-server: provide XhrFactory for HttpClient (4ce29f3)
  • router: canDeactivate guards should run from bottom to top (1ac78bf), closes #15657
  • router: should navigate to the same url when config changes (4340bea), closes #15535
  • router: should run resolvers for the same route concurrently (ec89f37), closes #14279
  • router: terminal route in custom matcher (5d275e9)

4.3.0 (2017-07-14)

Bug Fixes

  • animations: do not delay style() values before a stagger() runs (34f3832), closes #17412
  • animations: do not remove container nodes when children are queried by a parent animation (d699c35), closes #17746
  • animations: do not validate style overlap errors in different transitions (f2ee1dc)
  • animations: properly collect :enter nodes that exist within multi-level DOM trees (40f77cb), closes #17632
  • animations: compute removal node height correctly (185075d)
  • animations: do not treat a 0 animation state as void (451257a)
  • animations: properly collect :enter nodes in a partially updated collection (6ca4692), closes #17440
  • animations: remove duplicate license header (e096a85)
  • common/http: document HttpClient, fixing a few other issues (1855989)
  • common/http: don't guess Content-Type for FormData bodies (#18104) (4f1e4ff), closes #18096
  • common/http: expose reportProgress option on HttpClient API (#18083) (9f28e83)
  • common/http: rename HttpXsrfModule to HttpClientXsrfModule (3ecc5e5)
  • compiler: avoid emitting self importing factories (4352dd2)
  • compiler-cli: find lazy routes in nested module import arrays (8c89cc4)
  • core: add needed closure compiler warning suppression (e80851d)
  • core: argument destructuring sometimes breaks strictNullChecks (c59c390)
  • language-service: infer any ngForOf of type any (f194f18)
  • language-service: rollup tslib into the language service package (4e6be15)
  • router: fix outdated homepage url in NPM package (#17899) (df06e8b)
  • router: update the version placeholder so that it gets replaced during the build (d3c92a3), closes #17403
  • tsc-wrapped: report errors for invalid ast forms (#17994) (ce0f4f0)
  • tsc-wrapped: support as and class expressions (#16904) (45ffe54)
  • tsc-wrapped: skip collecting metadata for default functions (46ddf50)
  • upgrade: bring the dynamic version closer to the static one (11db3bd), closes #16627 #11044

Features

  • animations: support disabling animations for sub elements (8e28382), closes #16483
  • common/http: new HttpClient API (37797e2)
  • common/http: on-by-default XSRF support in HttpClient (#18108) (dd04f09), closes #18100
  • compiler: adds support for quoted object keys in the parser (798947e)
  • compiler: do not evaluate metadata expressions that can use references (#18001) (ddb766e)
  • compiler: update the schema by extracting from latest chrome (#17858) (dd7c113)
  • compiler: add support ::ng-deep (b754e60)
  • compiler-cli: add parameters to ngc main needed by bazel rules (#17885) (c1474f3)
  • compiler-cli: new compiler api and command-line using TypeScript transformers (3097083)
  • core: update zone.js to 0.8.12 (5ac3919)
  • router: add router-level events for GuardsCheck and Resolve (#17601) (8a1a989)
  • upgrade: fix support for directive.link in upgraded components (0193be7)

4.2.6 (2017-07-08)

Bug Fixes

  • animations: ensure :animating queries collect previous animation elements properly (d48b7d3)
  • animations: properly cleanup query artificats when animation construction fails (00de9ff)
  • animations: properly detect state transition changes for object literals (00c9741)
  • animations: properly handle cancelled animation style application (cf57527)
  • compiler: emits quoted keys only if they are quoted in the original template (45ae14c), closes #14292
  • compiler: fix merge error (6307581)
  • compiler: fix types (5ea9b62)
  • compiler: remove i18n markup even if no translations (#17999) (2763577), closes #11042
  • compiler-cli: fix relative source paths on windows for extracted msg (#17915) (991f8ad), closes #16639
  • core: fix re-insertions in the iterable differ (#17891) (a318093), closes #17852
  • language-service: do not crash when hovering over a label definitions (#17974) (2ab9057)
  • language-service: ignore hover of symbols not in the TypeScript program (#17969) (fe09e10)
  • router: encode URLs the same way AngularJS did (closer to spec) (#17890) (8f7cce3), closes #16067
  • router: export missing UrlMatcher and UrlMatchResult types (12a2099), closes #15140
  • tsc-wrapped: emit exports metadata in flat modules (#17893) (ee7d134)
  • upgrade: fix transclusion on upgraded components (#17971) (5337874), closes #13271
  • upgrade: fix transclusion on upgraded components (#17971) (30beb52), closes #13271

Performance Improvements

  • core: refactor NgZone, decrease size by 1.2Kb (#17773) (6d55a80)

4.2.5 (2017-06-29)

Bug Fixes

  • animations: do not delay style() values before a stagger() runs (7559b78), closes #17412
  • animations: do not remove container nodes when children are queried by a parent animation (ec4ae60), closes #17746
  • animations: do not validate style overlap errors in different transitions (6909171)
  • animations: properly collect :enter nodes that exist within multi-level DOM trees (79b6346), closes #17632
  • core: add needed closure compiler warning suppression (f31b0d6)

4.2.4 (2017-06-21)

Bug Fixes

  • compiler: avoid emitting self importing factories (c112232)
  • compiler-cli: find lazy routes in nested module import arrays (59299de)
  • core: argument destructuring sometimes breaks strictNullChecks (77860a0)
  • forms: roll back breaking change with min/max directives (4ab7353), closes #17491
  • language-service: infer any ngForOf of type any (63a5f33)
  • language-service: rollup tslib into the language service package (20eb5cf)
  • router: update the version placeholder so that it gets replaced during the build (7de1ae2), closes #17403
  • tsc-wrapped: skip collecting metadata for default functions (3390648)

4.2.3 (2017-06-16)

Bug Fixes

  • animations: compute removal node height correctly (185075d)
  • animations: do not treat a 0 animation state as void (451257a)
  • animations: properly collect :enter nodes in a partially updated collection (6ca4692), closes #17440
  • animations: remove duplicate license header (b192dd5)
  • forms: temp roll back breaking change with min/max directives (b8c39cd), closes #17491

4.2.2 (2017-06-12)

Bug Fixes

  • animations: compute removal node height correctly (185075d)
  • animations: do not treat a 0 animation state as void (451257a)
  • animations: properly collect :enter nodes in a partially updated collection (6ca4692), closes #17440
  • compiler: dont always compile .ngfactory.ts files by default (ed73d4f)

4.2.1 (2017-06-09)

Bug Fixes

  • compiler: dont write summaries for jit by default (d3a5f1a)
  • http: move destructuring inside {Request,Response}Options ctor (c2d31fb), closes #16663

4.2.0 salubrious-stratagem (2017-06-08)

Bug Fixes

  • animations: ensure web-animations understands a numeric CSS perspective value (819514a), closes #14007
  • animations: evaluate substitutions on option param values (e9886d7)
  • forms: fix min and max validator behavior on non-numbers (a222c3e)
  • router: opening links in new window (4c32cb9)
  • upgrade: call setInterval outside the Angular zone (269bbe0)

Features

  • compiler-cli: introduce synchronous codegen API (b00b80a)

Performance Improvements

  • animations: do not create a closure each time a node is removed (fe6b39d)
  • animations: only apply :leave flags if animations are set to run (b55adee)

4.2.0-rc.2 (2017-06-01)

Bug Fixes

  • animations: always change to desired animation state even if no transition fires (#17025) (665e707), closes #16947
  • animations: do not retain deleted nodes during an non-removal animation (#17153) (068133e), closes #17086
  • common: always use 'other' case for locales with no plural rules (#16990) (535d9da)
  • compiler: enableLegacyTemplate should not be ignored (#17051) (8ffa483), closes #15555
  • router: make remove trailing slash consistent with URL params (c20f60b), closes #16069

Features

  • compiler: emit typescript nodes from an output ast (#16823) (18bf772)
  • compiler-cli: produce template diagnostics error messages (#17125) (230255f)
  • tsc-wrapped: always convert shorthand imports (#16898) (ea8a43d)

Performance Improvements

  • animations: do not place enterId values on elements for querying purposes (#17150) (ad6a57e)

4.2.0-rc.1 (2017-05-26)

Bug Fixes

  • animations: repair flicker issues with WA polyfill (#16937) (e7d9fd8), closes #16919 #16918
  • animations: use a lightweight renderer for non-animation components (#17003) (3ab86bd)
  • compiler: compile .ngfactory.ts files even if nobody references them. (#16899) (573b861), closes #16741
  • compiler: do not report type errors for arguments with @Inject (#16222) (27761b4), closes #15424
  • core: make decorators closure safe (#16905) (a80ac0a), closes #16889
  • tsc-wrapped: ignore |null and |undefined when collecting types (#16222) (1651a8f)
  • tsc-wrapped: resolve short-hand literal values to locals (#16873) (11c10b2)

Features

  • compiler: add location note to extracted xliff2 files (#16791) (08dfe91), closes #16531
  • core: update zone.js to 0.8.10 and expose the flush method (#16860) (85d4c4b)
  • tsc-wrapped: support template literals in metadata collection (#16880) (6e41add)

4.2.0-rc.0 (2017-05-19)

Bug Fixes

  • animations: make sure reusable animation substitutions work without default params (#16875) (7d9f96a)
  • animations: only require one flushMicrotasks call when testing animations (6cb93c1)
  • compiler: avoid a ...null spread in extraction (#16547) (e0a8376)
  • compiler-cli: allow '==' to compare nullable types (#16731) (d761059)
  • core: detach projected views when a parent view is destroyed (#16592) (f0f6544), closes #15578
  • core: projected views should be dirty checked when the declaring component is dirty checked. (#16592) (fcc91d8), closes #14321
  • http: flatten metadata for @angular/http/testing (9da6340), closes #15521
  • http: honor RequestArgs.search and RequestArgs.params map type (aef5245), closes #15761 #16392
  • http: introduce encodingHint for text() for better ArrayBuffer support (7ae7a84), closes #15932 #16420
  • router: fix redirect to a URL with a param having multiple values (#16376) (5d4b36f), closes #16310

Features

  • animations: introduce a wave of new animation features (16c8167)
  • animations: introduce routable animation support (f1a9e3c)
  • add .ngsummary.ts files to support AOT unit tests (547c363)
  • introduce TestBed.overrideProvider (#16725) (39b92f7)
  • compiler: support a non-null postfix assert (#16672) (b9521b5)
  • core: introduce fixture.whenRenderingDone for testing (#16732) (38c524d)

Performance Improvements

  • animations: reduce size of animations bundle (712630c)

4.1.3 (2017-05-17)

Bug Fixes

  • add typescript 2.3.2 typings test (#16738) (a5bdbed), closes #16663
  • compiler-cli: import routing module with forRoot (#16438) (b7f8581)
  • platform-server: wait for async app initializers to complete before removing server side styles (#16712) (0a82f7d), closes #15716
  • router: Wrap Promise-like instances in native Promises (#16759) (883ca28)
  • upgrade: Prevent renaming of $inject property (#16706) (afb7540)
  • upgrade: use quote to prevent ClossureCompiler obfuscating $event. (#16724) (47df3d6)

4.2.0-beta.1 (2017-05-10)

Features

  • add .ngsummary.ts files to support AOT unit tests (547c363)

4.1.2 (2017-05-10)

Bug Fixes

  • compiler: avoid a ...null spread in extraction (#16547) (d0e1688)
  • core: detach projected views when a parent view is destroyed (#16592) (ee6705a), closes #15578
  • core: projected views should be dirty checked when the declaring component is dirty checked. (#16592) (9218812), closes #14321
  • http: flatten metadata for @angular/http/testing (9c70a3c), closes #15521
  • http: honor RequestArgs.search and RequestArgs.params map type (63066f7), closes #15761 #16392
  • http: introduce encodingHint for text() for better ArrayBuffer support (ec3b6e9), closes #15932 #16420
  • router: fix redirect to a URL with a param having multiple values (#16376) (915eae5), closes #16310

4.2.0-beta.0 (2017-05-04)

Bug Fixes

Features

  • compiler-cli: add param to set MissingTranslationStrategy on ngc (#15987) (6e2abcd), closes #15808
  • core: add begin and end renderer methods to track change detection (7f9c589)
  • core: allow custom selector when bootstrapping components (#15668) (900a88b), closes #7136
  • core: upgrade dep on zone.js to 0.8.9 (#16401) (065b76d)
  • forms: introduce min and max validators (#15813) (81925fa)
  • language-service: provide external file list to TypeScript (#16417) (f4b771a)

4.1.1 (2017-05-04)

Bug Fixes

4.1.0 (2017-04-26)

Bug Fixes

  • router: forward the query parameters in the ng1 -> ng2 url sync (#16249) (2f97731), closes #16067
  • upgrade: use correct attribute name for upgraded component's bindings (#16128) (d1fb066), closes #8856

4.1.0-rc.0 (2017-04-21)

Bug Fixes

  • benchpress: chrome - prevent trace buffer overflow (2f44206)
  • benchpress: Update types for TypeScript nullability support (14669f2)
  • common: Update types for TypeScript nullability support (d8b73e4)
  • compiler: fix build error in xliff2 (bd704c9)
  • compiler: fix inheritance for AOT with summaries (#15583) (8ef621a)
  • compiler: ignore calls to unresolved symbols in metadata (38a7e0d), closes #15969
  • compiler: ignore calls to unresolved symbols in metadata (#15970) (ce47d33), closes #15969
  • compiler: Inform user where Quoted error was thrown (a77b126)
  • compiler: make I18NHtmlParser provider AoT-compliant (#15980) (745731e)
  • compiler: support <ng-container> whatever the namespace (5b141fb), closes #14257
  • compiler: suppress another closure warning (#16137) (11b0213)
  • compiler: Update types for TypeScript nullability support (09d9f5f)
  • core: benchmarks - enable ng1 benchmark again (bccfaa4)
  • core: distribute externs for testability API (#16179) (da66884)
  • core: key-value differ changes iteration (#15968) (cb5a7ef), closes #14997
  • forms: Update types for TypeScript nullability support (6649743)
  • forms: Update types for TypeScript nullability support (57bc245)
  • forms: Update types for TypeScript nullability support (#15859) (6a2e08d)
  • http: Update types for TypeScript nullability support (c36ec9b)
  • http: Update types for TypeScript nullability support (ec028b8)
  • language-service: avoid throwing exceptions when reporting metadata errors (7764c5c)
  • language-service: detect when there isn't a tsconfig.json (258d539), closes #15874
  • language-service: improve resilience to incomplete information (71a8627)
  • language-service: infer correct type of ?. expressions (0a3a9af), closes #15885
  • language-service: initialize static reflector correctly (fe0d02f), closes #15768
  • language-service: look for type constructors on canonical symbol (2ddf3bc)
  • language-service: only use canonical symbols (5a88d2f)
  • language-service: parse extended i18n forms (bde9771)
  • language-service: resolve any parameter types to any result (5fbb0d0)
  • language-service: respect baseUrl compiler option (f21ff90), closes #15974
  • language-service: Update types for TypeScript nullability support (540581d)
  • packaging: increased buffer size (#15840) (65af964)
  • platform-browser: Update types for TypeScript nullability support (728c9d0), closes #15898
  • platform-server: handle innerText (#15818) (9394835)
  • router: fix query param parsing (a487563)
  • router: prevent RouterLinkActive from causing an infinite CD loop (82417b3), closes #15825
  • router: relax nullability requirements (a0d124b)
  • turn on nullability in the code base. (5293794)
  • Update types for TypeScript nullability support in examples (6f5fccf)
  • router: the preloader use the module from the loaded config (6d12aa9)
  • router: Update types for TypeScript nullability support (56c46d7)
  • router: Update types for TypeScript nullability support (bc43188)
  • tsc-wrapped: collect new expressions with no arguments (#15908) (70b1d6d), closes #15906
  • tsc-wrapped: ensure valid path separators in metadata (96aa236)
  • upgrade: Update types for TypeScript nullability support (01d93f3), closes #15897

Features

  • animations: Update types for TypeScript nullability support (38d75d4), closes #15870
  • compiler: add source files to xmb/xliff translations (#14705) (4054055), closes #14190
  • compiler: Implement i18n XLIFF 2.0 serializer (#14185) (09c4cb2), closes #11735
  • upgrade: allow setting the angularjs lib at runtime (#15168) (e927aea)
  • upgrade: allow setting the angularjs lib at runtime (#15168) (8ad464d)
  • upgrade: fixes for allow setting the angularjs lib at runtime (90814e4)
  • add support for TS 2.2 (3c8a61e)
  • add support for TS 2.3 (014594f)

4.0.3 (2017-04-21)

Bug Fixes

  • benchpress: chrome - prevent trace buffer overflow (d216f94)
  • compiler: fix build error in xliff2 (1870347)
  • compiler: ignore calls to unresolved symbols in metadata (d4038ab), closes #15969
  • compiler: ignore calls to unresolved symbols in metadata (#15970) (db25f08), closes #15969
  • compiler: Inform user where Quoted error was thrown (3184cc5)
  • compiler: suppress another closure warning (#16137) (72e240a)
  • core: benchmarks - enable ng1 benchmark again (ccac4c6)
  • core: distribute externs for testability API (#16179) (e377d9d)
  • core: key-value differ changes iteration (#15968) (a8600dc), closes #14997
  • language-service: only use canonical symbols (786093a)
  • packaging: increased buffer size (#15840) (88ad490)
  • platform-server: handle innerText (#15818) (7de340d)
  • router: prevent RouterLinkActive from causing an infinite CD loop (4479c42), closes #15825
  • tsc-wrapped: collect new expressions with no arguments (#15908) (41cac9e), closes #15906

Features

  • compiler: Implement i18n XLIFF 2.0 serializer (#14185) (a7d8edd), closes #11735
  • upgrade: allow setting the angularjs lib at runtime (#15168) (a75d056)
  • upgrade: allow setting the angularjs lib at runtime (#15168) (4f172b0)
  • upgrade: fixes for allow setting the angularjs lib at runtime (bb6932d)
  • add support for TS 2.3 (5cf101f)

4.1.0-beta.1 (2017-04-12)

Bug Fixes

  • compiler: fix inheritance for AOT with summaries (#15583) (8ef621a)
  • language-service: avoid throwing exceptions when reporting metadata errors (7764c5c)
  • language-service: detect when there isn't a tsconfig.json (258d539), closes #15874
  • language-service: improve resilience to incomplete information (71a8627)
  • language-service: initialize static reflector correctly (fe0d02f), closes #15768
  • language-service: parse extended i18n forms (bde9771)
  • language-service: resolve any parameter types to any result (5fbb0d0)
  • router: fix query param parsing (a487563)
  • router: the preloader use the module from the loaded config (6d12aa9)
  • tsc-wrapped: ensure valid path separators in metadata (96aa236)

Features

  • animations: Update types for TypeScript nullability support (38d75d4), closes #15870
  • benchpress: Update types for TypeScript nullability support (14669f2)
  • common: Update types for TypeScript nullability support (d8b73e4)
  • compiler: Update types for TypeScript nullability support (09d9f5f)
  • language-service: Update types for TypeScript nullability support (540581d)

4.0.2 (2017-04-11)

Bug Fixes

  • compiler: fix inheritance for AOT with summaries (#15583) (1864ccb)
  • language-service: avoid throwing exceptions when reporting metadata errors (0861fda)
  • language-service: detect when there isn't a tsconfig.json (168a2eb), closes #15874
  • language-service: improve resilience to incomplete information (e4277a0)
  • language-service: initialize static reflector correctly (5b99533), closes #15768
  • language-service: parse extended i18n forms (c9c7acd)
  • language-service: resolve any parameter types to any result (feae7b6)
  • router: fix query param parsing (2f41b52)
  • router: the preloader use the module from the loaded config (978f809)
  • tsc-wrapped: ensure valid path separators in metadata (c10e50c)

4.1.0-beta.0 (2017-03-29)

Features

Note: 4.1.0-beta.0 release also contains all the changes present in the 4.0.1 release.

4.0.1 (2017-03-29)

Bug Fixes

Performance Improvements

  • router: don't create new serializer every time UrlTree.toString is called (#15565) (fd61145)

4.0.0 invisible-makeover (2017-03-23)

Bug Fixes

BREAKING CHANGES

From 4.0.0 @angular/core uses a WeakMap, a polyfill needs to be included for browsers that do not support it natively.

4.0.0-rc.6 (2017-03-23)

Bug Fixes

  • animations: correct the main entry path in package.json (#15300) (2489e4b)
  • animations: ensure empty animate() steps work at the end of a sequence (#15328) (fbccd5c), closes #15310
  • animations: ensure enter/leave cancellations work (#15323) (9bf2fb4), closes #15315
  • animations: make sure easing values work with web-animations (#15195) (f925910), closes #15115
  • animations: make sure non-transitioned leave operations cancel existing animations (#15254) (a6fb78e), closes #15213
  • animations: only process element nodes through the animation engine (#15268) (80075af), closes #15267
  • animations: only treat view removals as void state transitions (#15245) (c66437f), closes #15223
  • animations: stringify boolean values as 1 and 0 (#15311) (94da801), closes #15247
  • compiler: add an empty content for source file of non mapped code. (#15246) (8415910)
  • compiler: dont call check if we dont need to (#15322) (764e90f)
  • compiler: look for flat module resources using declaration module path (#15367) (90d2518), closes #15221
  • compiler: only log template deprecation warning once (#15364) (08d8675)
  • compiler: use attribute id to merge translations (#15302) (1d7693c), closes #15234
  • compiler-cli: adding missing format xliff for the extractor (#15386) (a50d79d)
  • core: allow tree shaking of component factories and styles (#15214) (2a0e55f), closes #15181
  • core: dont create a comment for components with empty template. (#15260) (f8c075a), closes #15143
  • core: mark components for check when host events trigger. (#15359) (64beae9), closes #15352
  • core: only apply WrappedValue to the binding of the pipe (#15257) (0c43535), closes #15116
  • core: provide NgModuleRef in ViewContainerRef.createComponent. (#15350) (431eb30), closes #15241
  • core: stringify shouldn't throw when toString returns null/undefined (#14975) (8e6995c), closes #14948
  • core: trigger host animations for elements that are removed. (#15251) (0d3e314), closes #14813 #15193
  • core: update peer dep on zone.js to ^0.8.5 (#15365) (97149f9), closes #15185
  • forms: make composition event buffering configurable (#15256) (5efc860), closes #15079
  • platform-server: interpret Native view encapsulation as Emulated on the server (#15155) (de3d2ee)
  • platform-server: setup NoopAnimationsModule in ServerModule by default (#15131) (5c5c2ae), closes #15098 #14784
  • platform-server: throw a better error message for relative URLs (#15357) (15a082c), closes #15349
  • tsc-wrapped: emit flat module format correctly on Windows (#15215) (6e9264a), closes #15192
  • tsc-wrapped: use windows friendly path normalization in bundler (#15374) (c584997), closes #15289
  • upgrade: component injectors should not link the module injector tree (#15385) (ea49a95)

Features

  • core: expose inputs, outputs and ngContentSelectors on ComponentFactory. (#15214) (791534f)
  • router: add ParamMap.keys to get a list of parameters (d3eda7a)
  • router: introduce ParamMap to access parameters (a755b71)
  • tsc-wrapped: record original location of flattened symbols (#15367) (7354949)
  • upgrade: use ComponentFactory.inputs/outputs/ngContentSelectors (#15214) (9429032)

4.0.0-rc.5 (2017-03-17)

Bug Fixes

  • compiler-cli: update the tsc-wrapped dependency version (#15226) (7fb4528)

4.0.0-rc.4 (2017-03-17)

Bug Fixes

  • animations: always fire callbacks even for noop animations (#15170) (3f38c6f)
  • animations: make sure easing values are applied to an empty animate() step (#15174) (62d5543), closes #15115
  • animations: support multiple state names per state() call (#15147) (36ce0af), closes #14732
  • compiler: always use ng:// prefix for sourcemap urls (#15218) (994089d)
  • compiler: fix utf8encode, move to sharted utils, add tests (#15076) (959a03a)
  • compiler: generated code should pass noUnusedLocals check (50ab06e), closes #14797
  • compiler: Improve error message for missing annotations (#14724) (3c15916)
  • compiler: improve error msg for unexpected closing tags (#14747) (5f9fb91), closes #6652
  • compiler: make sourcemaps work in AOT mode (492153a)
  • compiler: only warn for [@Injectable](https://github.com/Injectable) classes with invalid args. (5c34066), closes #15003
  • compiler: shouldn't throw when Symbol is used as DI token (#13701) (8b5c6b2), closes #13314
  • compiler: support interface types in injectable constuctors (#14894) (b00fe20), closes #12631
  • compiler: warning prints "WARNING" instead of "ERROR" (#15125) (3b1956b)
  • core: dont recreate TemplateRef when used as a reference. (#15066) (df914ef), closes #14873
  • core: dont throw if queries change during change detection. (06fc42b), closes #14925
  • core: ErrorHandler should not rethrow an error by default (#15077) (#15208) (77fd91d), closes #14949 #15182 #14316
  • core: update peer dep on zone.js to ^0.8.4 (#15209) (d2fbbb4), closes #15180 #15185
  • core: use presence of .subscribe to detect observables rather then Symbol.observable (#15171) (6e98757), closes #14298 #14473 #14926
  • forms: ensure observable validators are properly canceled (#15132) (26d4ce2)
  • forms: remove equalsTo validator (#15050) (778f7d6)
  • element injector vs module injector (#15044) (13686bb), closes #12869 #12889 #13885 #13870
  • http: Make ResponseOptionsArgs an interface (#14607) (#14623) (f1b33ab), closes #13708
  • platform-browser: prevent clobbered elements from freezing the browser (a4076c7)
  • platform-server: correctly implement get href in parse5 adapter (#15022) (80649ea)
  • platform-server: fix an exception when HostListener('window:scroll') is used on the server (#15019) (4f7d62a)
  • correct UMD resolutions for platform-browser_animations (#15190) (923d0c5), closes #15114
  • don't instantiate providers with ngOnDestroy eagerly. (#15070) (2c5a671), closes #14552
  • fix path locally to empty.js (#15073) (80112a9)
  • platform-server: fix get/set title in parse5 adapter (#14965) (018e5c9)
  • platform-server: handle styles with extra ':'s correctly (#15189) (013d806)
  • platform-server: support svg elements with namespaced attributes (#15101) (f093501)
  • router: fix query parameters with multiple values (#15129) (029d0f2), closes #14796
  • tsc-wrapped: emit js files in all cases (c0e05e6)

Code Refactoring

  • core: use flags in Renderer2.setStyle instead of booleans (#15045) (ff71eff)

Features

  • common: support as syntax in template/* bindings (#15025) (c10c060), closes #15020
  • compiler-cli: support metadata file aliases (0ab49d4)
  • core: allow to provide multiple default testing modules (#15054) (6c8638c)
  • core: expose inputs, outputs and ngContentSelectors on ComponentFactory. (1171f91)
  • upgrade: support multi-slot projection in upgrade/static (#14282) (914797a), closes #14261
  • upgrade: use ComponentFactory.inputs/outputs/ngContentSelectors (a3e32fb)
  • introduce source maps for templates (#15011) (cdc882b)

BREAKING CHANGES

  • Perviously, any provider that had an ngOnDestroy lifecycle hook would be created eagerly.

    Now, only classes that are annotated with @Component, @Directive, @Pipe, @NgModule are eager. Providers only become eager if they are either directly or transitively injected into one of the above.

    This also makes all useValue providers eager, which should have no observable impact other than code size.

    EXPECTED IMPACT: Making providers eager was an incorrect behavior and never documented. Also, providers that are used by a directive / pipe / ngModule stay eager. So the impact should be rather small.

  • DebugNode.source no longer returns the source location of a node.

    Closes 14013

  • core: (since v4 rc.1)

    • Renderer2.setStyle no longer takes booleans but rather a bit mask of flags.

2.4.10 (2017-03-17)

Bug Fixes

  • compiler: fix decoding surrogate pairs (#15154) (e5c9bbc)
  • router: do not finish bootstrap until all the routes are resolved (#15121) (34403cd)

4.0.0-rc.3 (2017-03-10)

Bug Fixes

  • compiler: dont throw for empty array literal in assignments (#14878) (6cd3326), closes #14782
  • compiler: improve error message when a module imports itself (#14646) (6bc6482), closes #14644
  • core: allow to use the Renderer outside of views. (#14882) (ba4b6f5), closes #14872
  • router: do not finish bootstrap until all the routes are resolved (#14762) (5df998d)
  • upgrade: populate upgraded component's view before creating the controller (#14289) (07122f0), closes #13912
  • throw for synthetic properties / listeners by default (#14880) (3651d8d)

BREAKING CHANGES

since 4.0 rc.1:

  • rename RendererV2 to Renderer2
  • rename RendererTypeV2 to RendererType2
  • rename RendererFactoryV2 to RendererFactory2

2.4.9 (2017-03-02)

Bug Fixes

Reverts

4.0.0-rc.2 (2017-03-02)

Bug Fixes

  • animations: make animations work in AOT (#14775) (9560ad8)
  • compiler: apply element bindings before host bindings (#14823) (79fc1e3)
  • compiler: fix identifier names of EMPTY_MAP / EMPTY_ARRAY (#14806) (5ba55b0)
  • compiler: quote animation in RendererTypeV2 and skip if empty (#14773) (77682a3)
  • core: call lifecycle hooks for siblings in declaration order (d2e4256)
  • core: fix isComponentView() and isEmbeddedView() tests (#14789) (5753de5), closes #14778
  • language-service: tolerate errors in decorators (#14634) (6bae737), closes #14631
  • platform-server: don't setup Testability and TestabilityRegistry on the server (#14510) (47bdc2b)
  • tsc-wrapped: validate metadata in static members of a class (#14772) (a6996a9), closes #13481
  • upgrade: fix upgrade component Closure optimization. (#14801) (968995a)

Performance Improvements

  • delete pre-view-engine core, compiler, platform-browser, etc code (#14788) (126fda2)
  • compiler: make identifiers for generated code small to improve dev size (5caab71)

4.0.0-rc.1 (2017-02-24)

We are excited to share 4.0.0-RC.1 with the community. This is a feature-complete pre-release of 4.0.0. Upgrade to get to know the new features to be released in 4.0.0, and to help us validate the release.

Its important to note that this release has been tested extensively. All Angular applications within Google use the master branch of Angular, so every commit is tested and validated at scale prior to any release.

We Need Your Help

Please give this RC a try and test it with your projects! We have spent a significant amount of time working to ensure that this release is backwards compatible and will work with your existing code, but you may have use cases we havent anticipated. If you are broken by this release, let us know so that we can look into it right away. We are also looking for feedback related to the ergonomics of any newly added APIs.

Whats New

View Engine

Weve made changes under the hood to what AOT generated code looks like. These changes should reduce the size of the generated code for your components by more than half in some cases. Read the Design Doc for the View Engine updates.

Enhanced *ngIf syntax

Our template binding syntax now supports a couple helpful changes. You can now use an if/else style syntax, and assign local variables such as when unrolling an observable.

<ng-template #loading>Loading...</ng-template>
<div *ngIf="userObservable | async; else loading; let user">
  {{ user.name }}
</div>

Animation Package

We have pulled Animations into their own package. This means that if you dont use Animations, this extra code will not end up in your production bundles. This also allows you to more easily find documentation and to take better advantage of autocompletion. If you do need animations, libraries like Material will automatically import the module (once you install it via NPM), or you can add it yourself to your main NgModule.

TypeScript 2.1

Weve updated Angular to a more recent version of TypeScript. This will improve the speed of ngc and you will get better type checking throughout your application.

StrictNullChecks

Angular is now compliant with TypeScripts StrictNullChecks. This means that you can enable StrictNullChecks in your project, if desired.

Universal

Universal, the project that allows developers to run Angular on a server, is now up to date with Angular again, and has been adopted by the Angular team. This release now includes the results of the work from the Universal team over the last few months. The majority of the Universal code is now in platform-server. To learn more about this change, take a look the new renderModuleFactory method, or Rob Wormalds Demo Repository. More documentation is forthcoming.

Flat ES Modules (Flat ESM / FESM)

We now ship flattened versions of our modules ("rolled up" version of our code in the EcmaScript Module format, see example file). This format should help tree-shaking, help reduce the size of your generated bundles, and speed up build, transpilation, and loading in the browser in certain scenarios.

ES2015 Builds

We now also ship our packages in the ES2015 Flat ESM format. This option is experimental and opt-in (configure your webpack to resolve "es2015" property in package.json over the regular "module" property).

Known Issues

The following is a list of known issues that will be fixed in the next rcs.

  • Source maps are missing in npm packages
  • Generated bundles will be larger temporarily while we validate new code paths and remove old ones
  • angular.io docs have not been updated to reflect API changes in 4.0
  • legacy UMD bundles don't have correct RxJS mappings when running in ES5 mode without a module system

Installing RC.1

We have two main ways to update. If you have an existing project, you should be able to run:

On Linux/Mac: npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@next --save On Windows: npm install @angular/common@next @angular/compiler@next @angular/compiler-cli@next @angular/core@next @angular/forms@next @angular/http@next @angular/platform-browser@next @angular/platform-browser-dynamic@next @angular/platform-server@next @angular/router@next @angular/animations@next --save

Then run whatever ng serve or npm start command you normally use, and everything should work.

Please ensure that you are using Typescript v2.1.6 or higher.

If you rely on Animations youll also need to install the animations package @angular/animations and import the new BrowserAnimationsModule from @angular/platform-browser/animations in your root NgModule. Without this, your code will compile and run, but animations wont activate. Imports from @angular/core were deprecated, use imports from the new package import { trigger, state, style, transition, animate } from '@angular/animations';.

What's next?

We have three more release candidates scheduled before our planned GA the week of March 22. In the meantime we'll be looking for your feedback, fixing bugs and working on docs.

Commit Summary

Features

  • compiler: Add a enableLegacyTemplate option to support <template> (e99d721)
  • compiler: introduce <ng-template>, deprecate <template> and template attribute (bf8eb41)
  • compiler-cli: add a locale option to ng-xi18n (234f059), closes #12303 #14537
  • compiler-cli: add an outFile option to ng-xi18n (39f56fa), closes #11416 #14508 #14657
  • core: enable new view engine (d3a98c7)
  • core: make new Inject() optional for deps specified as InjectionToken (#14486) (d6a58f9), closes #10625
  • core: add a PLATFORM_ID token that provides a platform id Object. (#14647) (a1d4769)
  • forms: add option to use browser's native validation and angular forms (#13566) (8742432), closes #13573
  • forms: introduce AsyncValidator interface (#13483) (551fe50), closes #13398
  • router: add RouteConfigLoadStart and RouteConfigLoadEnd events (78e8814)
  • router: add an option to rerun guards and resolvers when query changes (c2e0f71), closes #14514 #14567
  • router: add an option to rerun guards and resolvers when query changes (#14624) (41da599), closes #14514 #14567
  • router: introduce RouteConfigLoaded event (7df6f46), closes #14036

Bug Fixes

  • common: do not reference deprecated classes in providers (#14523) (#14523) (a23634d), closes #14521
  • core: host bindings and host listeners for animations (5049a50)
  • http: Make ResponseOptionsArgs an interface (#14607) (fbe4b76), closes #13708
  • packaging: properly build the core-testing bundle (4301dce)
  • platform-webworker: integrate review feedback (601fd3e), closes #14581
  • router: do not finish bootstrap until all the routes are resolved (#14608) (2a191ca), closes #12162 #14155
  • app ids for better style tag management for ssr (#14632) (88bc143)

Code Refactoring

  • core: deprecate RootRenderer / Renderer (ccb636c)
  • core: change abstract classes for interfaces (#12324) (ee747f7), closes #10083

Performance Improvements

  • distribute smaller bundled code and include es2015 bundle (de795ea)

BREAKING CHANGES

  • core: Because all lifecycle hooks are now interfaces the code that uses 'extends' keyword will no longer compile. Introduced by (ee747f7).

    To migrate the code follow the example below:

    Before:

    @Component()
    class SomeComponent extends OnInit {}
    

    After:

    @Component()
    class SomeComponent implements OnInit {}
    

    Based on our research we don't expect anyone to be affected by this change.

  • RootRenderer cannot be used any more, use RendererFactoryV2 instead. Introduced by (ccb636c).

    Note: Renderer can still be injected/used, but is deprecated.

Note: the 4.0.0-rc.0 release on npm accidentally omitted one bug fix, so we cut rc.1 instead. oops :-)

4.0.0-beta.8 (2017-02-18)

Features

  • packaging: allow applications to turn on strictNullChecks mode in TypeScript (#14382) (03e855a)
  • common: added typed overloaded for AsyncPipe.transform() (#14367) (4da7925)
  • compiler: add support for source map generation (#14258) (7ac38aa), closes #14125
  • compiler: add target locale to the translation bundles (#14290) (bb4db2d)
  • compiler: generate shallow imports compiler generated references (#14388) (8b81bb1)
  • compiler: implement style encapsulation for new view engine (#14518) (0fa3895)
  • compiler: integrate compiler with view engine - change detection tests work (#14412) (e4e9dbe)
  • compiler: integrate compiler with view engine - main integration tests work (#14284) (baa654a)
  • compiler: integrate compiler with view engine (#14487) (4e7752a)
  • core: add isStable Observable property to ApplicationRef to indicate when it's stable and unstable (#14337) (c481798)
  • platform-server: add API to render Module and ModuleFactory to string (#14381) (b4d444a)
  • platform-server: Implement PlatformLocation for platformServer() (#14405) (9e28568)
  • platform-server: support @angular/http from @angular/platform-server (9559d3e)
  • tsc-wrapped: add an option to ngc to bundle metadata (#14509) (3b89670)

Bug Fixes

  • compiler: disable non-components as an entry component (#14335) (44bb337)
  • compiler: improve error message for unknown elements (#14373) (2c6dab9)
  • compiler: improve error messages in aot compiler (#14333) (a696f4a)
  • compiler: improve error msg for unknown properties on (#14373) (e5a144d), closes #14070
  • core: Remove ChangeDetectorRef Paramter from KeyValueDifferFactory and IterableDifferFactory (#14311) (45cc444)
  • core: suppress a Closure Compiler warning (#14484) (2f2b65b)
  • forms: getRawValue should correctly work with nested FormGroups/Arrays (#12964) (1ece736), closes #12963
  • http: REVERT: remove dots from jsonp callback name (#13219) (4676df5)
  • platform-browser: allow to mix shadow dom with non shadow dom (ab26b65)
  • platform-browser: should not throw for debug attrs containing $ (#14353) (1cfbefe), closes #9566
  • platform-browser: should only add styles with native encapsulation in shadow DOM (#14313) (53cf2ec), closes #7887
  • platform-server: allow multiple instances of platformServer and platformDynamicServer (17486fd)
  • platform-server: default unspecified sections of the url to empty string (#14512) (612f120)
  • platform-server: read initial location from INITIAL_CONFIG if present (56f232c)
  • platform-server: reflect properties to attributes for known elements, for serialization (047cda5)
  • platform-server: render styles in app component instead of <head> (30380d0)
  • upgrade: Prevent property renaming for $inject. (96d06f7)

DEPRECATIONS

  • core: KeyValueDifferFactory and IterableDifferFactory no longer have ChangeDetectorRef as a parameter. It was not used and has been there for historical reasons. If you call DifferFactory.create(...) remove the ChangeDetectorRef argument. Introduced by (#14311).

BREAKING CHANGES

  • common: Classes that derive from AsyncPipe and override transform() might not compile correctly. The much more common use of async pipe in templates is unaffected. We expect no or little impact on apps from this change, file an issue if we break you. Introduced by (#14367) (4da7925).

    • Mitigation: Update derived classes of AsyncPipe that override transform() to include the type parameter overloads.

2.4.8 (2017-02-18)

Bug Fixes

  • forms: getRawValue should correctly work with nested FormGroups/Arrays (#12964) (ea7737e), closes #12963
  • http: REVERT: remove dots from jsonp callback name (#13219) (9ceb5d1)
  • platform-browser: should only add styles with native encapsulation in shadow DOM (#14313) (fadaf1e), closes #7887
  • router: do not finish bootstrap until all the routes are resolved (#14327) (541de26), closes #12162
  • upgrade: correctly project content on downgraded components with structural directives (#14274) (74cb575), closes #14260
  • upgrade: pass correct values to ngOnChanges for interpolation bindings (#14400) (7c87c52)

4.0.0-beta.7 (2017-02-09)

Bug Fixes

  • build and test fixes for TS 2.1 (#13294) (ef32e6b)
  • benchmarks: dont force gc on the profile buttons (#14345) (f6b5965)
  • build: make fsevents an optional dependency in npm (#13945) (4370049)
  • compiler-cli: prevent ng-xi18n from emitting the compilation output (#14115) (e58d683), closes #13567
  • tsc-wrapped: use tsickle's new source map composition feature (#14150) (5bccff0)
  • upgrade: pass correct values to ngOnChanges for interpolation bindings (#14301) (1e3dd3d)

Performance Improvements

  • upgrade: unregister $doCheck watcher when destroying upgraded component (#14303) (94312f0)
  • Dont subclass Error; resulting in smaller binary (#14160) (c33fda2)

BREAKING CHANGES

  • Angular 4 will support only TypeScript 2.1, so we no longer provide backwards compatibility to TS 1.8.

2.4.7 (2017-02-09)

Bug Fixes

  • upgrade: allow non-element selectors for downgraded components (#14291) (5bb47db)

4.0.0-beta.6 (2017-02-03)

Bug Fixes

  • suppress some closure compiler warnings (#14198) (2205829)
  • common: add PopStateEvent interface (#13400) (fe44118), closes #13378
  • common: DatePipe shouldn't throw for NaN (#14117) (7ad616a), closes #14103
  • common: DatePipe should parses input string even if it's not a valid date in browser (#13895) (093cc04), closes #12334 #13874
  • common: use Symbol.observable to detect observables rather then presence of .subscribe (#14067) (ff290af), closes #8848
  • compiler: allow empty translations for attributes (#14085) (05b2b49), closes #13897
  • avoid closure compiler warning (#14229) (1bc5368)
  • router: should allow navigation from root component in ngOnInit hook (#13932) (47d41d4), closes #13795
  • failing integration test (8270bec)
  • lint errors to make circle-ci green (e0e5e78)
  • router: should find guard provided in a lazy loaded module (#13929) (e075b1b), closes #13530
  • ngModel should use rxjs/symbol/observable to detect observable (#14236) (a7479f6)
  • compiler: allow expressions or functions in extends (#14158) (b4214d6), closes #14154
  • compiler: fix missing translations handling (#14113) (827c3fe)
  • compiler: only lex messages that are needed by angular (#14208) (5921c87)
  • core: add bootstrapped modules into platform modules list (#13740) (863285a), closes #12015
  • core: ViewContainerRef.indexOf should not throw error when empty (#13220) (a277e97)
  • forms: async validator cancels previous subscription when input has changed (#13222) (6c7300c), closes #12709 #9120 #10074 #8923
  • forms: fix broken unit test (#14179) (1df9319)
  • forms: show a blank line when nothing is selected in IE or Edge (#13903) (029f558), closes #10010
  • forms: verify functions passed into async validators returns Observable or Promise (#14053) (94f84c5)
  • http: remove dots from jsonp callback name (#13219) (9e5617e)
  • http: use params without RequestOptions (#14101) (5f2b317), closes #14100
  • language-service: do not crash when Angular cannot be located (#14123) (49fb814), closes #14122
  • platform-browser: remove style nodes on destroy (#13744) (cd3901f), closes #11746
  • router: fix CanActivateChild guard provided in a lazy loaded module (#13989) (579567c), closes #12275
  • testing: async/fakeAsync/inject/withModule helpers should pass through context to callback functions (#13718) (5f40e5b)
  • upgrade: detect async downgrade component changes (#14039) (20b454c), closes #6385 #6385
  • upgrade: respect hierarchical injectors for downgraded components (#14037) (1367cd9)
  • compiler: improve error messages in aot compiler (#14017) (665dde2)

Features

Performance Improvements

  • use abstract keyword where possible to decrease file size. (#14112) (670b680)
  • core simplify ReflectiveInjector by removing code for Dart implementation (#14126) (670b680)

BREAKING CHANGES

  • common: A definition of Iterable<T> is now required to correctly compile Angular applications. Support for Iterable<T> is not required at runtime but a type definition Iterable<T> must be available.

NgFor, and now NgForOf<T>, already supports Iterable<T> at runtime. With this change the type definition is updated to reflect this support.

Migration:

  • add "es2015.iterable.ts" to your tsconfig.json "libs" fields.

Part of #12398

  • upgrade: Previously, upgrade/static/downgradeInjectable returned an array of the form:
['dep1', 'dep2', ..., function factory(dep1, dep2, ...) { ... }]

Now it returns a function with an $inject property:

factory.$inject = ['dep1', 'dep2', ...];
function factory(dep1, dep2, ...) { ... }

It shouldn't affect the behavior of apps, since both forms are equally suitable to be used for registering AngularJS injectable services, but it is possible that type-checking might fail or that current code breaks if it relies on the returned value being an array.

2.4.6 (2017-02-03)

Bug Fixes

  • common: add PopStateEvent interface (#13400) (71567d1), closes #13378
  • common: DatePipe does't throw for NaN (#14117) (32cc675), closes #14103
  • common: DatePipe parses input string if it's not a valid date in browser (#13895) (e641636), closes #12334 #13874
  • common: introduce isObservable method (#14067) (109f0d1), closes #8848
  • compiler: allow empty translations for attributes (#14085) (f3d5506), closes #13897
  • core: add bootstrapped modules into platform modules list (#13740) (250dbc4), closes #12015
  • core: ViewContainerRef.indexOf should not throw error when empty (#13220) (41b8d95)
  • forms: show a blank line when nothing is selected in IE or Edge (#13903) (09e2d20), closes #10010
  • forms: verify functions passed into async validators returns Observable or Promise (#14053) (774e1db)
  • ngModel should use rxjs/symbol/observable to detect observable (#14236) (7e639aa)
  • http: remove dots from jsonp callback name (#13219) (1eece50)
  • i18n: parse ICU messages while normalizing templates (#14153) (8d4aa82)
  • language-service: do not crash when Angular cannot be located (#14123) (a5b4af0), closes #14122
  • platform-browser: remove style nodes on destroy (#13744) (0614289), closes #11746
  • router: fix CanActivate redirect to the root on initial load (#13929) (a047124), closes #13530
  • router: should find guard provided in a lazy loaded module (#13989) (0965636), closes #12275
  • router: should allow navigation from root component in ngOnInit hook (#13932) (4d2901d), closes #13795
  • testing: async/fakeAsync/inject/withModule helpers should pass through context to callback functions (#13718) (70bbdf5)
  • upgrade: detect async downgrade component changes (#14039) (117fa79), closes #6385 #6385

4.0.0-beta.5 (2017-01-25)

Bug Fixes

Features

  • build: optionally build an ES2015 distro (#13471) (be6c95a)
  • core: add event support to view engine (0adb97b)
  • core: add initial view engine (#14014) (2f87eb5)
  • core: add pure expression support to view engine (6541737)
  • core: Add type information to injector.get() (#13785) (d169c24)
  • security: allow calc and gradient functions. (#13943) (e19bf70)
  • tsc-wrapped: Support of vinyl like config file was added (#13987) (0c7726d)
  • upgrade: Support ng-model in downgraded components (#10578) (e21e9c5)

DEPRECATIONS

  • OpaqueToken is now deprecated, use InjectionToken<T> instead.
  • Injector.get(token: any, notFoundValue?: any): any is now deprecated use the same method which is now overloaded as Injector.get<T>(token: Type<T>|InjectionToken<T>, notFoundValue?: T): T;

BREAKING CHANGES

  • core: - Because injector.get() is now parameterize it is possible that code which used to work no longer type checks. Example would be if one injects Foo but configures it as {provide: Foo, useClass: MockFoo}. The injection instance will be that of MockFoo but the type will be Foo instead of any as in the past. This means that it was possible to call a method on MockFoo in the past which now will fail type check. See this example:
class Foo {}
class MockFoo extends Foo {
  setupMock();
}

var PROVIDERS = [
  {provide: Foo, useClass: MockFoo}
];

...

function myTest(injector: Injector) {
  var foo = injector.get(Foo);
  // This line used to work since `foo` used to be `any` before this
  // change, it will now be `Foo`, and `Foo` does not have `setUpMock()`.
  // The fix is to downcast: `injector.get(Foo) as MockFoo`.
  foo.setUpMock();
}

2.4.5 (2017-01-25)

Bug Fixes

  • compiler: [i18n] XMB/XTB placeholder names can contain only A-Z, 0-9, _n (5492fad)
  • compiler: fix regexp to support firefox 31 (#14082) (bd2eecb), closes #14029 #13900
  • core: export animation classes required for Renderer impl (#14002) (fd4f9ac), closes #14001
  • upgrade: ensure upgraded injector is initialized early enough (#14065) (3b2fb23), closes #13811

4.0.0-beta.4 (2017-01-19)

Bug Fixes

Features

BREAKING CHANGES

  • core: - Because injector.get() is now parameterized it is possible that code which used to work no longer type checks. Example would be if one injects Foo but configures it as {provide: Foo, useClass: MockFoo}. The injection instance will be that of MockFoo but the type will be Foo instead of any as in the past. This means that it was possible to call a method on MockFoo in the past which now will fail type check. See this example:
class Foo {}
class MockFoo extends Foo {
  setupMock();
}

var PROVIDERS = [
  {provide: Foo, useClass: MockFoo}
];

...

function myTest(injector: Injector) {
  var foo = injector.get(Foo);
  // This line used to work since `foo` used to be `any` before this
  // change, it will now be `Foo`, and `Foo` does not have `setUpMock()`.
  // The fix is to downcast: `injector.get(Foo) as MockFoo`.
  foo.setUpMock();
}

2.4.4 (2017-01-19)

4.0.0-beta.3 (2017-01-11)

Bug Fixes

Features

  • animations: expose the element value within transition events (4bae4b3)
  • animations: expose the triggerName within the transition event (3f67ab0), closes #13600
  • animations: support function types in transitions (9211a22), closes #13538 #13537
  • language-service: support TS2.2 plugin model (99aa49a)
  • NgComponentOutlet: add NgComponentOutlet directive (8578682), closes #11168
  • NgTemplateOutlet: Make NgTemplateOutlet compatible with * syntax (c0178de)
  • router: call resolver when upstream params change (#12942) (d4d3782)

BREAKING CHANGES

  • core: - IterableChangeRecord is now an interface and parameterized on <V>. This should not be an issue unless your code does new IterableChangeRecord which it should not have a reason to do.
  • KeyValueChangeRecord is now an interface and parameterized on <V>. This should not be an issue unless your code does new KeyValueChangeRecord which it should not have a reason to do.

DEPRECATION

  • Deprecate ngOutletContext. Use ngTemplateOutletContext instead.
  • CollectionChangeRecord is renamed to IterableChangeRecord. CollectionChangeRecord is aliased to IterableChangeRecord and is marked as @deprecated. It will be removed in v6.x.x.
  • Deprecate DefaultIterableDiffer as it is private class which was erroneously exposed.
  • Deprecate KeyValueDiffers#factories as it is private field which was erroneously exposed.
  • Deprecate IterableDiffers#factories as it is private field which was erroneously exposed.

2.4.3 (2017-01-11)

Bug Fixes

  • compiler: avoid evaluating arguments to unknown decorators (5e9d3db), closes #13605
  • compiler: fix template binding parsing (*directive="-...") (7dc12b9), closes #13800
  • compiler-cli: add support for more than 2 levels of nested lazy routes (6164eb2), closes angular/angular-cli#3663
  • compiler-cli: avoid handling functions in loadChildren as lazy load routes paths (313683f), closes angular/angular-cli#3204
  • i18n: translate attributes inside elements marked for translation (d7f2a3c)
  • router: RouterLink mirrors input target as attribute (1c82b58), closes #13837
  • router: throw an error when navigate to null/undefined path (61ba223), closes #10560 #13384
  • router: fix checking for object intersection (1692265)

2.4.2 (2017-01-06)

Bug Fixes

  • common: add link to trackBy docs from the error message (#13634) (f723437)
  • common: do not override locale provided on bootstrap (#13654) (5f49c3e), closes #13607
  • common: allow null/undefined values for NgForTrackBy (6be55cc), closes #13641
  • compiler: dont throw when using ANALYZE_FOR_ENTRY_COMPONENTS with user classes (#13679) (230e33f), closes #13565
  • compiler: query <template> elements before their children. (#13677) (1cd73c7), closes #13118 #13167
  • compiler: allow "." in attribute selectors (#13653) (29ffdfd), closes #13645 #13982
  • core: animations no longer silently exits if the element is not apart of the DOM (#13763) (f1cde43)
  • core: animations should blend in all previously transitioned styles into next animation if interrupted (#13148) (b245b92)
  • core: remove reference to "Angular 2" in dev mode warning (#13751) (21f5f05)
  • core/testing: improve misleading error message when don't call compileComponents (#13543) (0e7f9f0), closes #11301
  • forms: Validators.required properly validate arrays (#13362) (17c5fa9), closes #12274
  • language-service: support TypeScript 2.1 (#13655) (56b4296)
  • router: fix lazy loaded module with wildcard route (#13649) (5754ecc), closes #12955
  • router: routerLink support of null (#13380) (018865e), closes #6971
  • router: update route snapshot before emit new values (#13558) (9f6a647), closes #12912
  • upgrade: fix/improve support for lifecycle hooks (#13020) (21942a8)

4.0.0-beta.2 (2017-01-06)

Features

  • compiler: generate less code for bindings to DOM elements (db49d42)
  • compiler: generate proper reexports in .ngfactory.ts files to not need transitive deps for compiling .ngfactory.ts files. (#13524) (9c69703), closes #12787
  • router: add an extra argument to CanDeactivate interface (#13560) (69fa3bb), closes #9853

Bug Fixes

  • compiler: improve error message for undefined providers (#13546) (6b02b80), closes #10835
  • compiler: improve the error when template is not a string (2c0c86e), closes #8708 #13377
  • compiler: throw an error for invalid provider (#13544) (445ed43), closes #8870
  • i18n: parse ICU messages while normalizing templates (e74d8aa)

Note: 4.0.0-beta.2 release also contains all the changes present in the 2.4.2 release.

BREAKING CHANGES

  • core: SimpleChange now takes an additional argument that defines whether this is the first change or not. This is a low profile API and we don't expect anyone to be affected by this change. If you are impacted by this change please file an issue. (465516b)

4.0.0-beta.1 (2016-12-22)

Features

  • upgrade: support the $doCheck() lifecycle hook in UpgradeComponent (#13015) (9da4c25)

Note: 4.0.0-beta.1 release also contains all the changes present in the 2.4.0 and the 2.4.1 releases.

2.4.1 (2016-12-21)

Bug Fixes

  • animations: always quote string map key values in AOT code (#13602) (6a5e46c)
  • animations: always recover from a failed animation step (#13604) (d788c67)
  • compiler: ignore @import in comments (#13368) (6316e5d), closes #12196
  • core: improve error message when component factory cannot be found (#13541) (b9e979e), closes #12678
  • router: should reset location if a navigation by location is successful (#13545) (a38f14b), closes #13491

2.4.0 stability-interjection (2016-12-20)

Bug Fixes

Features

4.0.0-beta.0 (2016-12-15)

Features

Note: 4.0.0-beta.0 release also contains all the changes present in the 2.3.1 release.

2.3.1 (2016-12-15)

Bug Fixes

Performance Improvements

  • animations: always run the animation queue outside of zones (e2622ad), closes #13440

Note

Due to regression in the 2.3.0 release that was fixed by #13464, components that have been compiled using 2.3.0 and published to npm will need to be recompiled and republished.

The >=2.3.1 compiler will issue is the following error if it encounters components compiled with 2.3.0: Unsupported metadata version 2 for module ${module}. This module should be compiled with a newer version of ngc.

We are adding more tests to our test suite to catch these kinds of problems before we cut a release.

2.3.0 (2016-12-07)

Bug Fixes

  • common: make sure the plural category exists (#13169) (82c81cd), closes #12379
  • compiler: include the summaries of reexported modules / directives / pipes (#13196) (75d1617)
  • compiler: serialize any StaticSymbol correctly, not matter in which context (5614c4f)
  • compiler: short-circut expressions with an index (#13263) (f31c947), closes #13254
  • core: display framework version on bootstrapped component (#13252) (16efb13)
  • facade: cache original format string (#12764) (a132287)
  • http: set the default Accept header (#12989) (986abbe), closes #6354
  • language-service: avoid throwing for invalid class declarations (#13257) (93556a5), closes #13253
  • language-service: do not throw for invalid metadata (#13261) (4a09c81), closes #13255
  • language-service: remove incompletely used parameter from createLanguageServiceFromTypescript() (#13278) (25c2141), closes #13277
  • language-service: update to use CompilerHost from compiler-cli (#13189) (3ff6554)
  • router: allow specifying a matcher without specifying a path (bbb7a39), closes #12972
  • router: fix replaceUrl on RouterLink directives (349ad75)
  • router: fix skipLocationChanges on RouterLink directives (f562cbf), closes #13156
  • router: make setUpLocationChangeListener idempotent (25e5b2f)
  • router: runs guards every time when unsuccessfully navigating to the same url over and over again (#13209) (d46b8de)
  • router: throw a better error message when AngularJS is not bootstraped (c767df0)
  • router: validate nested routes (#13224) (2893c2c), closes #12827
  • tsc-wrapped: have UserError display the actual error (393c100)

Features

  • compiler: read and write .ngsummary.json files (614a35d), closes #12787

2.3.0-rc.0 (2016-11-30)

Bug Fixes

  • animations: blend in all previously transitioned styles into next animation if interrupted (#13014) (ef96763), closes #13013
  • benchmarks: use sanitized style values (#12943) (fc5ac1e)
  • build: update versions of umd bundles (#13038) (86ffa88), closes #13037
  • changelog: replace beta.1 with beta.0 (#12961) (07a986d)
  • ci: pin version of npm on CircleCI (#12954) (a3884db)
  • closure: quote date pattern aliases (#13012) (7dcca30)
  • common: update DatePipe to allow closure compilation (b2b7219)
  • compiler: correctly evaluate references to static functions (#13133) (627282d)
  • compiler: fix performance regression caused by 5b0f9e2 (43c0e9a), closes #13146
  • compiler: fix versions of @angular/tsc-wrapped (bccf0e6)
  • compiler-cli: fix paths in source maps to be relative (2a3ca7b), closes #13040
  • compiler-cli: pin the version of tsc-wrapped (966bcba)
  • language-service: harden against partial normalization of directives (2975d89)
  • core: shrinkwrap was out of date with packages. (e45b7ff)
  • language-service: make link check pass (7194fc2)
  • router: guards restore an incorrect url when used with skipLocationChange (ad20d7d), closes #12825
  • router: support redirects to named outlets (602522b), closes #12740 #9921
  • tsc-wrapped: set correct version number (897555c)
  • tsc-wrapped: still emit version 1 metadata to allow use of new components in old setups (bc69c74)
  • upgrade: call ng1 lifecycle hooks (#12875) (1ef4696)
  • version: take all of version string after patch version (f275f36)

Features

  • core: update RxJS peer dependency to 5.0.0-rc.4 Please see this gist if you depend on the cache operator (2d6a003), closes #13125
  • core: upgrade zone.js to v0.7.1 (c4bbafc)
  • build: record angular version in the dom (#13164) (e628b66)
  • core: expose destroy() method on ViewRef (808275a)
  • core: properly support inheritance (f5c8e09), closes #11606 #12892
  • language-service: add services to support editors (#12987) (519a324)
  • router: add support for custom route reuse strategies (42cf06f)
  • tools: allow disabling annotation lowering (c1a62e2)

2.2.4 (2016-11-30)

Bug Fixes

  • common: update DatePipe to allow closure compilation (eba53fd)
  • compiler: fix performance regression caused by 5b0f9e2 (ee2d6e5), closes #13146
  • compiler-cli: fix paths in source maps to be relative (eb173bc), closes #13040

2.2.3 (2016-11-23)

Bug Fixes

  • compiler: Revert: fix versions of @angular/tsc-wrapped (015ca47)
  • animations: Revert: blend in all previously transitioned styles into next animation if interrupted (c12e56e)

2.2.2 (2016-11-22)

Bug Fixes

  • animations: blend in all previously transitioned styles into next animation if interrupted (#13014) (ea4fc9b), closes #13013
  • benchmarks: use sanitized style values (#12943) (33a7902)
  • closure: quote date pattern aliases (#13012) (0956ace)
  • compiler: fix versions of @angular/tsc-wrapped (2fe6fb1)
  • router: add a banner file for the router (#12919) (8df328b)
  • router: add a banner file for the router (#12919) (511cd4d)
  • router: removes a peer dependency from router to upgrade (115f18f)
  • router: removes a peer dependency from router to upgrade (87d5d49)
  • router: support redirects to named outlets (09226d9), closes #12740 #9921
  • upgrade: call ng1 lifecycle hooks (#12875) (462316b)

2.3.0-beta.0 (2016-11-17)

Bug Fixes

  • compiler: assert xliff messages have translations (7908679), closes #12815 #12604
  • compiler: updates hash algo for xmb/xtb files (2f14415)
  • core: fix placeholders handling in i18n. (76e4911), closes #12512
  • core: misc i18n fixes (ed5e98d)
  • core: xmb serializer uses decimal messaged IDs (08c038e), closes #12511
  • platform-browser: enable AOT (efbbefd), closes #12783

Features

  • core: add attachView / detachView to ApplicationRef (9f7d32a), closes #9293
  • core: expose ViewRef as ChangeDetectorRef (1b5384e), closes #12722
  • core: implements a decimal fingerprint for i18n (582550a)
  • router: register router with ngprobe (c2fae72)
  • router_link: add skipLocationChange and replaceUrl inputs (#12850) (46d1502)

Note: The 2.3.0-beta.0 release also contains all the changes present in the 2.2.1 release.

2.2.1 (2016-11-17)

Bug Fixes

  • animations: only pass in same typed players as previous players into web-animations (#12907) (583d283)
  • animations: retain styling when transition destinations are changed (#12208) (5c46c49), closes #9661
  • core: support ngTemplateOutlet in production mode (#12921) (4628798), closes #12911
  • http: correctly handle response body for 204 status code (21a4de9), closes #12830 #12393
  • http: return request url if it cannot be retrieved from response (845ea23), closes #12837
  • upgrade: make AoT ngUpgrade work with the testability API and resumeBootstrap() (#12910) (dc1662a)
  • platform-browser: fix disableDebugTools() (#12918) (7b67bad)
  • router: add a banner file for the router (#12919) (364642d)
  • router: removes a peer dependency from router to upgrade (1dcf1f4)
  • forms allow for null values in HTML select options bound with ngValue (e0ce545), closes #10349
  • router: should not create a route state if navigation is canceled (#12868) (dabaf85), closes #12776
  • common: select should allow for null values in HTML select options bound with ngValue (e02c180), closes #12829
  • compiler-cli: support ctorParams in function closure (#12876) (6cdc3b5)

2.2.0 upgrade-firebooster (2016-11-14)

Features (summary of all features from 2.2.0-beta.0 - 2.2.0-rc.0 releases)

  • common: support narrow forms for month and weekdays in DatePipe (#12297) (f77ab6a), closes #12294
  • core: map 'for' attribute to 'htmlFor' property (#10546) (634b3bb), closes #7516
  • core: add the find method to QueryList (7c16ef9)
  • forms: add hasError and getError to AbstractControlDirective (#11985) (592f40a), closes #7255
  • forms: add ng-pending CSS class during async validation (#11243) (97bc971), closes #10336
  • forms: add emitEvent to AbstractControl methods (#11949) (b9fc090)
  • forms: make 'parent' a public property of 'AbstractControl' (#11855) (445e592)
  • forms: Validator.pattern accepts a RegExp (#12323) (bf60418)
  • router: add a provider making angular1/angular2 integration easier (#12769) (6e35d13)
  • router: add support for custom url matchers (7340735), closes #12442 #12772
  • router: export routerLinkActive w/ isActive property (c9f58cf)
  • router: add support for ng1/ng2 migration (#12160) (8b9ab44)
  • upgrade: add support for AoT compiled upgrade applications (d6791ff), closes #12239
  • upgrade: add support for require in UpgradeComponent (fe1d0e2)
  • upgrade: add/improve support for lifecycle hooks in UpgradeComponent (469010e)

Performance Improvements

  • compiler: introduce direct rendering (9c23884)
  • core: dont use DomAdapter nor zone for regular events (648ce59)
  • core: use array.push / array.pop instead of splice if possible (0fc11a4)
  • platform-browser: cache plugin resolution in the EventManager (73593d4), closes #12824
  • platform-browser: dont use DomAdapter any more (d708a88)

Bug Fixes

  • animations: allow animations to be destroyed manually (#12719) (fe35bc3), closes #12456
  • animations: always normalize style properties and values during compilation (#12755) (a0e9fde), closes #11582 #12481
  • animations: always trigger animations after the change detection check (#12713) (383f23b)
  • animations: ensure animations work with web-workers (#12656) (19e869e)
  • animations: ensure web-animations are caught within the Angular zone (f80a157), closes #11881 #11712 #12355 #11881 #12546 #12707 #12774
  • common: NgSwitch - dont create the default case if another case matches (#12726) (d8f23f4), closes #11297 #9420
  • common: I18nSelectPipe selects other case on default (4708b24)
  • common: no TZ Offset added by DatePipe for dates without time (#12380) (2aba8b0)
  • common: NgClass should throw a descriptive error when CSS class is not a string (#12662) (f3793b5), closes #12586
  • common: DatePipe should handle empty string (#12374) (3dc6177)
  • compiler: don't convert undefined to null literals (#11503) (f0cdb42), closes #11493
  • compiler: generate safe access strictNullChecks compatible code (#12800) (a965d11), closes #12795
  • compiler: support more than 9 interpolations (#12710) (22c021c), closes #10253
  • compiler: use the other case by default in ICU messages (55dc0e4)
  • compiler-cli: suppress closure compiler suspiciousCode check in codegen (#12666) (7103754)
  • compiler-cli: suppress two more closure compiler checks in codegen (#12698) (77cbf7f)
  • core: allow to query content of templates that are stamped out at a different place (f2bbef3), closes #12283 #12094
  • core: apply host attributes to root elements (#12761) (ad3bf6c), closes #12744
  • core: ensure that component views that have no bindings recurse into nested components / view containers. (051d748)
  • core: fix pseudo-selector shimming (#12754) (acbf1d8), closes #12730 #12354
  • forms: check if registerOnValidatorChange exists on validator before trying to invoke it (#12801) (ef88147), closes #12593
  • forms: getRawValue returns any instead of Object (#12599) (09092ac)
  • http: preserve header case when copying headers (#12697) (121e508)
  • router: advance a route only after its children have been deactivated (#12676) (9ddf9b3), closes #11715
  • router: avoid router initialization for non root components (2a4bf9a), closes #12338 #12814
  • router: check if windows.console exists before using it (#12348) (7886561)
  • router: correctly export concatMap operator in es5 (#12430) (e25baa0)
  • router: do not require the creation of empty-path routes when no url left (2c11093), closes #12133
  • router: ignore null or undefined query parameters (#12333) (3052fb2)
  • router: incorrect injector is used when instantiating components loaded lazily (#12817) (52be848)
  • router: resolve guard observables on the first emit (#10412) (2e78b76)
  • router: Route.isActive also compares query params (#12321) (785b7b6)
  • router: router should not swallow "unhandled" errors (e5a753e), closes #12802
  • router: throw an error when encounter undefined route (#12389) (77dc1ab)
  • platform-browser: enableDebugTools should create AngularTools by merging into context.ng (#12003) (b2cf379), closes #12002
  • platform-browser: provide the ability to register global hammer.js events (768cddb), closes #12797
  • tsc-wrapped: harden collector against invalid asts (#12793) (69f87ca)

2.2.0-rc.0 (2016-11-02)

Bug Fixes

  • compiler: dedupe NgModule declarations, … (a178bc6)
  • compiler: dont double bind functions (e391cac)
  • compiler: Dont throw on empty property bindings (642c1db), closes #12583
  • compiler: support multiple components in a view container (6fda972)
  • core: improve error when multiple components match the same element (e9fd864), closes #7067
  • router: call data observers when the path changes (1de04b2)
  • router: CanDeactivate receives a wrong component (830a780), closes #12592
  • router: rerun resolvers when url changes (fe47e6b), closes #12603
  • router: reset URL to the stable state when a navigation gets canceled (d509ee0), closes #10321
  • router: routerLink should not prevent default on non-link elements (8e221b8)
  • router: run navigations serially (091c390), closes #11754
  • upgrade: silent bootstrap failures (fa93fd6), closes #12062

Features

  • core: add the find method to QueryList (7c16ef9)

2.1.2 (2016-10-27)

Bug Fixes

  • compiler: don't access view local variables nor pipes in host expressions (#12396) (867494a), closes #12004 #12071
  • compiler: walk third party modules (#12453) (a838aba), closes #11889 #12428
  • compiler: remove double exports of template_ast (7742ec0)
  • compiler: use Maps instead of objects in selector implementation (d321b0e)
  • compiler-cli: fix types (ef15364)
  • compiler-cli: assert that all pipes and directives are declared by a module (7221632)
  • http: overwrite already set xsrf header (b4265e0)
  • router: add a test to make sure canDeactivate guards are called for aux routes (fc60fa7), closes #11345
  • router: canDeactivate guards are not triggered for componentless routes (b741853), closes #12375
  • router: change router not to deactivate aux routes when navigating from a componentless routes (52a853e)
  • router: disallow component routes with named outlets (8f2fa0f), closes #11208 #11082
  • router: preserve resolve data (6ccbfd4), closes #12306

2.2.0-beta.1 (2016-10-27)

Code Refactoring

  • upgrade: re-export the new static upgrade APIs on new entry (a26dd28)

Features

  • router: export routerLinkActive w/ isActive property (c9f58cf)

BREAKING CHANGES (only for beta version users)

  • upgrade: Four newly added APIs in 2.2.0-beta: downgradeComponent, downgradeInjectable, UpgradeComponent, and UpgradeModule are no longer exported by @angular/upgrade. Import these from @angular/upgrade/static instead.

Note: The 2.2.0-beta.1 release also contains all the changes present in the 2.1.2 release.

2.1.1 (2016-10-20)

Bug Fixes

  • compiler: generate aot code for animation trigger output events (#12291) (6e5f8b5), closes #11707
  • compiler: don't redeclare a var in the same scope (#12386) (cca4a5c)
  • core: fix decorator default values (bd1dcb5)
  • core: fix property decorators (3993279), closes #12224
  • http: make normalizeMethodName optimizer-compatible. (#12370) (8409b65)
  • router: correctly export filter operator in es5 (#12286) (27d7677)
  • router: do not update primary route if only secondary outlet is given (#11797) (da5fc69)
  • router: fix lazy loading triggered by redirects from wildcard routes (5ae6915), closes #12183
  • router: module loader should start compiling modules when stubbedModules are set (#11742) (b44b6ef)

Performance Improvements

  • common: optimize NgSwitch default case (fdf4309)

2.2.0-beta.0 (2016-10-20)

Features

  • common: support narrow forms for month and weekdays in DatePipe (#12297) (f77ab6a), closes #12294
  • forms: add hasError and getError to AbstractControlDirective (#11985) (592f40a), closes #7255
  • forms: add ng-pending CSS class during async validation (#11243) (97bc971), closes #10336
  • forms: Added emitEvent to AbstractControl methods (#11949) (b9fc090)
  • forms: make 'parent' a public property of 'AbstractControl' (#11855) (445e592)
  • forms: Validator.pattern accepts a RegExp (#12323) (bf60418)
  • upgrade: add support for AoT compiled upgrade applications (d6791ff), closes #12239
  • router: add support for ng1/ng2 migration (#12160) (8b9ab44)

Note: The 2.2.0-beta.0 release also contains all the changes present in the 2.1.1 release.

2.1.0 incremental-metamorphosis (2016-10-12)

Bug Fixes

  • compiler: allow whitespace as <ng-content> content (#12225) (df1718d)
  • compiler: interpolation expressions report the correct offset (#12125) (d641c36)
  • compiler: properly shim :host:before and :host(:before) (#12171) (aa92512), closes #12165
  • compiler: validate @HostBinding name (#12139) (13ecc14)
  • compiler-cli: don't clone static symbols when simplifying annotation metadata (#12158) (8c477b2)
  • compiler-cli: remove peerDependency on @angular/platform-server (#12122) (71b7654)
  • compiler-cli: remove unused parse5 dependency from package.json (eaaec69)
  • forms: allow optional fields with pattern and minlength validators (#12147) (d22eeb7)
  • forms: properly validate blank strings with minlength (#12091) (f50c1da)
  • http: fix Headers initialization from Headers and Object (#12106) (f4566f8)
  • http: Headers.append should append to the list (a67c067)
  • platform-browser-dynamic: mark platformBrowserDynamic as stable API (#12154) (bcef5ef)
  • router: improve error message (#12102) (e06303a)
  • router: parent resolve should complete before merging resolved data (1681e4f), closes #12032
  • router: wildcards routes should support lazy loading (40b92dd), closes #12024
  • upgrade: allow compilerOptions in bootstrap (#10575) (5effc33)

2.1.0-rc.0 (2016-10-05)

Features

  • animations: provide aliases for :enter and :leave transitions (#11991) (e884f48)

Note: 2.1.0-rc.0 release also contains all the changes present in the 2.0.2 release.

2.1.0-beta.0 (2016-09-23)

Features

  • router: add router preloader to optimistically preload routes (5a84982)

Bug Fixes

  • router: update the router not to reset router state when updating root component (#11799) (31dce72)

Note: 2.1.0-beta.0 release also contains all the changes present in the 2.0.1 release.

2.0.2 (2016-10-05)

Bug Fixes

  • common: correctly removes styles on IE (#11953), closes #7916
  • compiler: do not embed templateUrl in view factories in non-debug mode. (#11818) (51e1994), closes #11117
  • compiler: move detection of unsafe properties for binding to ElementSchemaRegistry (#11378) (5911c3b)
  • compiler: fix :host(tag) and :host-context(tag) (a6bb84e0), closes #11972
  • compiler: fix attribute selectors in :host and :host-context (#12056) (6f7ed32), closes #11917
  • compiler: support @page and @document CSS rules (#11878) (c99ef49), closes #11860
  • compiler: support [attr="value with space"] (bd012ef), closes #6249
  • compiler: support quoted attribute values (7395400), closes #6085
  • compiler: fix <x> ctype names (7578d85), closes #12000
  • compiler-cli: allow ReflectorHost passed as argument to CodeGenerator#create (#11951) (826c98e)
  • forms: properly validate empty strings with patterns (#11450) (e00de0c)
  • http: preserve case of the first init, set() or append() (#12023) (adb17fe), closes #11624
  • http: remove url params if provided value is null or undefined (#11990) (9cc0a4e)
  • router: do not reset the router state when updating the component (#11867) (cf750e1)
  • upgrade: bind optional properties when upgrading from ng1 (#11411) (0851238), closes #10181

2.0.1 (2016-09-23)

Bug Fixes

  • common: fix ngOnChanges signature of NgTemplateOutlet directive (14ee759)
  • compiler: [attribute~=value] selector (#11696) (734b8b8), closes #9644
  • compiler: safe property access expressions work in event bindings (#11724) (a95d652)
  • compiler: throw when Component.moduleId is not a string (bd4045b), closes #11590
  • compiler: do not provide I18N values when they're not specified (03aedbe), closes #11643
  • core: ContentChild descendants should be queried by default (0dc15eb), closes #11645
  • forms: disable all radios with disable() (2860418)
  • forms: make setDisabledState optional for reactive form directives (#11731) (51d73d3), closes #11719
  • forms: support unbound disabled in ngModel (#11736) (39e251e)
  • upgrade: allow attribute selectors for components in ng2 which are not part of upgrade (#11808) (b81e2e7), closes #11280

2.0.0 proprioception-reinforcement (2016-09-14)