Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
6102 lines (4077 sloc) 614 KB

9.0.0-rc.11 (2020-01-24)

Bug Fixes

  • ivy: correctly emit component when it's removed from its module (#34912) (adc663e), closes #34813
  • ivy: DebugNode.classes not working on SVG elements (#34872) (7e8aac1), closes #34868
  • ivy: disable use of aliasing in template type-checking (#34649) (2cf7d0f)
  • ivy: don't detect changes on detached child embedded views (#34846) (62e1186), closes #34816
  • ivy: ensure eventListeners added outside angular context are not called... (#34514) (b6dfb4d)
  • ivy: type-check multiple bindings to the same input (#34649) (ba7f2f1)
  • ivy: type-checking of properties which map to multiple fields (#34649) (b04d4ba)
  • ivy: use any for generic context checks when !strictTemplates (#34649) (e69d02c)
  • ivy: wrap 'as any' casts in parentheses when needed (#34649) (bf01b66)
  • language-service: Diagnostic span should point to class name (#34932) (c9db7bd)
  • language-service: Make metadata in Declaration non-optional (#34936) (37727ce)
  • language-service: rename getDiagnostics to getSemanticDiagnostics (#34909) (20dc436)
  • ngcc: do not attempt compilation when analysis fails (#34889) (080a8bf), closes #34288 #34500
  • ngcc: do not collect private declarations from external packages (#34811) (c80392b), closes #34544 #34544
  • ngcc: libraries using spread in object literals cannot be processed (#34661) (4eeb6cf)
  • ngcc: only lock ngcc after targeted entry-point check (#34722) (3897fb9)
  • ngcc: update package.json deterministically (#34870) (a10d2a8), closes #34635

Features

Performance

  • ivy: add more styling use-cases to benchmarks (#34923) (ef70a89)

9.0.0-rc.10 (2020-01-22)

Bug Fixes

  • work around 'noImplicityAny' incompatibility due to ts3.7 update (#34798) (251d548)
  • animations: not waiting for child animations to finish when removing parent in Ivy (#34702) (92c17fe), closes #33597
  • common: ensure diffing in ngStyle/ngClass correctly emits value changes (#34307) (93a035f), closes #34336 #34444
  • ivy: ensure that LOCALE_ID is set after app initializers (#34830) (7643913), closes #34701
  • ivy: more accurate detection of pipes in host bindings (#34655) (da69335)
  • ngcc: do not add DTS deep imports to missing packages list (#34695) (32d4d97), closes #34720

9.0.0-rc.9 (2020-01-15)

Bug Fixes

Features

  • common: allow default currency code to be configurable (#34771) (965f557), closes #25461
  • ivy: improve ExpressionChangedAfterChecked error message for attributes (#34505) (d63572e)
  • language-service: completions support for template reference variables (#34363) (937d3fd)
  • i18n - include currency code in locale data (#34771) (c18a3fe)
  • language-service: provide completion for $event variable (#34566) (fa39a8c)
  • language-service: support hover/definitions for structural directive (#34564) (fe19327)

Performance Improvements

  • ivy: add create scenario to the styling benchmark (#34775) (1ec9515)
  • ivy: add noop change detection scenario to the styling benchmark (#34775) (4928f1a)
  • ivy: add static style to the list of scenarios (#34775) (a15f20b)
  • ivy: styling algorithm benchmark (#34664) (f8d4ce7)

9.0.0-rc.8 (2020-01-08)

Bug Fixes

  • common: remove trailing whitespace for CurrencyPipe (#34642) (c42b90b), closes #34641
  • ivy: append advance instructions before i18nExp (#34436) (ba4c31c)
  • ivy: correctly associate output bound events with directives (#34479) (fde5067)
  • ivy: Ensure ngProjectAs marker name appears at even attribute index (#34617) (4f3215d)
  • ivy: skip field inheritance if InheritDefinitionFeature is present on parent def (#34244) (22533fb)
  • ivy: TestBed not unwrapping imports array function when overriding provider (#34629) (963ed71), closes #34623
  • language-service: completions after "let x of |" in ngFor (#34473) (ca8b584)
  • language-service: correctly parse expressions in an attribute (#34517) (7a0d6e7)
  • language-service: The pipe method should not include parentheses (#34485) (2845596)
  • ngcc: capture entry-point dependencies from typings as well as source (#34494) (c692757), closes #34411
  • ngcc: do not add trailing commas in UMD imports (#34545) (e6850a3), closes #34353 #34525

Features

Performance Improvements

  • ivy: support simple generic type constraints in local type ctors (#34021) (88adc30)

9.0.0-rc.7 (2019-12-18)

Bug Fixes

  • animations: leaking detached nodes when parent has a leave transition (#34409) (6607fb4), closes #25744
  • common: ngStyle should ignore undefined values (#34422) (ee1eebd), closes #34310
  • ivy: avoid duplicate errors in safe navigations and template guards (#34417) (d6edeab)
  • ivy: avoid using proto when reading metadata in JIT mode (#34305) (08ce026)
  • ivy: don't produce template diagnostics when scope is invalid (#34460) (c1fd629), closes #33849
  • ivy: generate a better error for template var writes (#34339) (418d586), closes #33674
  • ivy: i18n - remove translate function when clearing translations (#34346) (1489e5e), closes #32781
  • ivy: i18n instructions thrown off by sanitizer in IE11 (#34305) (bed62b1)
  • ivy: improve ExpressionChangedAfterChecked error (#34381) (7ea3984)
  • ivy: inconsistent attribute casing in DebugNode.attributes on IE (#34305) (9bff8e7)
  • ivy: incorrect injectable name logged in warning message on IE (#34305) (60d1d5e)
  • ivy: inheritance in JIT mode not working correctly on IE10 (#34305) (65fb2fd)
  • ivy: inheriting injectable definition from undecorated class not working on IE10 in JIT mode (#34305) (d83599d)
  • ivy: record correct absolute source span for ngForOf expressions (#31813) (931cb5e)
  • ivy: reorder provider type checks to align with VE (#34433) (7916b1e)
  • ivy: unknown property and element checks not working correctly in IE (#34305) (0ff54f2)
  • ivy: validate the NgModule declarations field (#34404) (03e236a)
  • language-service: HTML path should include last node before cursor (#34440) (76e4870)
  • language-service: Proper completions for properties and events (#34445) (4e41bf9)
  • language-service: Remove completions for let and of in ngFor (#34434) (ab61480)
  • ngcc: correctly match aliased classes between src and dts files (#34254) (4bffb6b), closes #33593
  • ngcc: handle CommonJS re-exports by reference (#34254) (9ca5faa)
  • ngcc: handle imports in dts files when processing UMD (#34356) (81c75cf)
  • ngcc: handle UMD re-exports (#34254) (84a7d8a)
  • ngcc: render UMD imports even if no prior imports (#34353) (c26738d), closes #34138
  • ngcc: use the correct identifiers when updating typings files (#34254) (c0c2ab3)

Features

  • forms: expand NgModel disabled type to work with strict template type checking (#34438) (b1d4c58)
  • ivy: error in ivy when inheriting a ctor from an undecorated base (#34460) (f563c7c)
  • ivy: throw compilation error when providing undecorated classes (#34460) (0638e65)

Performance Improvements

  • compiler: optimize cloning cursors state (#34332) (5d871b5)
  • compiler: speed up i18n digest computations (#34332) (adb0663)
  • compiler: use a shared interpolation regex (#34332) (940e62b)
  • ivy: cache export scopes extracted from declaration files (#34332) (eb9a8ac)
  • ivy: eagerly parse the template twice during analysis (#34334) (fb4a11a)
  • ivy: reuse prior analysis work during incremental builds (#34288) (c387952)
  • ivy: share instances of DomElementSchemaRegistry (#34332) (ce94192)
  • ivy: use module resolution cache (#34332) (82442c5)

9.0.0-rc.6 (2019-12-11)

Bug Fixes

Performance Improvements

9.0.0-rc.5 (2019-12-04)

Bug Fixes

Performance Improvements

  • add js-web-frameworks benchmark (#34034) (bf16b0e)
  • ivy: avoid duplicate state lookup and default function parameters (#34183) (00f7372)

9.0.0-rc.4 (2019-11-27)

Bug Fixes

Features

Performance Improvements

  • ivy: do no work if moving a viewRef to the same position (#34052) (d228801)
  • ivy: fix creation time micro-benchmarks (#34031) (457ac3a)
  • ivy: R3TestBed - Do not process NgModuleDefs that have already been processed (#33863) (05a18cc)

9.0.0-rc.3 (2019-11-20)

Bug Fixes

  • bazel: add terser as an optional peer dependency (#33891) (2d7b015)
  • compiler-cli: Refactor getTsTypeFromBuiltinType (#33778) (09480d3)
  • core: make QueryList implement Iterable in the type system (#33536) (49571bf), closes #29842
  • ivy: always re-analyze the program during incremental rebuilds (#33862) (30ddadc), closes #32388
  • ivy: avoid cyclical dependency in imports (#33831) (a61fb76)
  • ivy: constant object literals shared across element and component instances (#33705) (93ba4c2)
  • ivy: don't infer template context types when in full mode (#33537) (595375f), closes #33527
  • ivy: emit fs-relative paths when rootDir(s) aren't in effect (#33828) (14156bd), closes #33659 #33562
  • ivy: ExpressionChangedAfterItHasBeenCheckedError for SafeValue (#33749) (cba6b7d), closes #33448
  • ivy: extend assertion in directiveInject function to support IcuContainers (#33832) (8452458)
  • ivy: i18n - ensure that colons in i18n metadata are not rendered (#33820) (bc28ca7)
  • ivy: i18n - support "", "`" and "${" sequences in i18n messages (#33820) (b53a1ac)
  • ivy: move setClassMetadata calls into a pure iife (#33337) (213e3c3)
  • ivy: properly insert views before ng-container with injected ViewContainerRef (#33853) (c7a3694)
  • ivy: properly insert views into ViewContainerRef injected by querying (#33816) (f136dda)
  • ivy: report watch mode diagnostics correctly (#33862) (d92da13), closes #32213
  • ivy: reset style property value defined using [style.prop.px] (#33780) (de8cf75)
  • ivy: retain JIT metadata unless JIT mode is explicitly disabled (#33671) (5267c92)
  • ivy: shadow all DOM properties in DebugElement.properties (#33781) (5be23a3), closes #33695
  • ivy: support for #id bootstrap selectors (#33784) (9761ebe), closes #33485
  • language-service: Function alias should be callable (#33782) (ca63353)
  • language-service: Provide completions for attribute values (#33839) (0e20453)
  • language-service: Recompute analyzed modules only when source files change (#33806) (9882a82)
  • language-service: Remove getTemplateReferences() from LanguageService API (#33807) (0688a28)
  • ngcc: always add exports for ModuleWithProviders references (#33875) (f3d8f6a), closes #33701
  • ngcc: correctly associate decorators with aliased classes (#33878) (59a4b76)
  • ngcc: correctly include internal .d.ts files (#33875) (0854dc8)
  • ngcc: do not emit ES2015 code in ES5 files (#33514) (06e36e5), closes #32665
  • ngcc: generate correct metadata for classes with getter/setter properties (#33514) (21bd8c9), closes #30569
  • ngcc: properly detect origin of constructor param types (#33901) (05d5c4f), closes #33677
  • router: make routerLinkActive work with query params which contain arrays (#22666) (8e5ed20), closes #22223
  • zone.js: fixes typo of zone.js patch vrdisplaydisconnected property (#33581) (1b7aa05), closes #33579

Features

  • bazel: update ng-add to use bazel v1.1.0 (#33813) (b1d0a4f)
  • core: missing-injectable migration should migrate empty object literal providers (#33709) (b7c012f)

Performance Improvements

  • ivy: add micro-benchmark focused on directive input update (#33798) (edd624b)
  • ivy: don't store public input names in two places (#33798) (105616c)
  • ivy: extract template's instruction first create pass processing (#33856) (01af94c)
  • ivy: Improve performance of transplanted views (#33702) (a16a57e)

9.0.0-rc.2 (2019-11-13)

Bug Fixes

  • common: rerun cldr to remove � characters (#33699) (011ecdf)
  • common: update CLDR generated files after change to npm sources (#33634) (59b25da)
  • common: update CLDR generated files to 36.0.0 (#33584) (c1bd3bc)
  • compiler: correctly parse attributes with a dot in the name (#32256) (687582f)
  • compiler-cli: Fix typo $implict (#33633) (7bccef5)
  • compiler-cli: Pass SourceFile to getFullText() (#33660) (33f6cd4)
  • core: remove ngcc postinstall migration (#33727) (508bbfd)
  • core: support ngInjectableDef on types with inherited ɵprov (#33732) (4ec079f)
  • ivy: auto register NgModules with ID (#33663) (4988094)
  • ivy: better support for i18n attributes on s (#33599) (2046202)
  • ivy: ComponentFactory.create should clear host element content (#33487) (d67a38b)
  • ivy: ensure module scope is rebuilt on dependent change (#33522) (71238a9), closes #32416
  • ivy: ensure that the correct document is available (#33712) (8362696), closes #33651
  • ivy: Handle overrides for {providedIn: AModule} in R3TestBed (#33606) (d09ad82)
  • ivy: match directives on namespaced elements (#33555) (99ead47), closes #32061
  • ivy: properly determine the first native node of a view (#33627) (811275c)
  • ivy: properly insert views in front of empty views (#33647) (c5737f4)
  • ivy: properly insert views in front of views with an empty element container (#33647) (0b99884)
  • ivy: provider override via TestBed should remove old providers from the list (#33706) (f45d5dc)
  • ivy: recompile component when template changes in ngc watch mode (#33551) (da01dbc), closes #32869
  • ivy: recompile component when template changes in ngc watch mode (#33551) (cd8333c), closes #32869
  • ivy: Run ChangeDetection on transplanted views (#33644) (37ae45e), closes #33393
  • language-service: Resolve template variable in nested ngFor (#33676) (6615743)
  • ngcc: add default config for ng2-dragula (#33797) (ecf38d4), closes #33718
  • ngcc: add reexports only once (#33658) (83b635c)
  • ngcc: ensure that adjacent statements go after helper calls (#33689) (c540061)
  • generate the new locale files (#33682) (72796b9)
  • resolve event listeners not correct when registered outside of ngZone (#33711) (9045e3e), closes #33687
  • use full cldr data to support all locales (#33682) (ea83125), closes #33681
  • ngcc: remove __decorator calls even when part of the IIFE return statement (#33777) (e1df98b)
  • ngcc: support minified ES5 scenarios (#33777) (49e517d)

Performance Improvements

  • core: Avoid unnecessary creating provider factory (#33742) (c315881)

Reverts

  • "fix(ivy): recompile component when template changes in ngc watch mode (#33551)" (#33661) (cb55f60)
  • fix(ivy): Only restore registered modules if user compiles modules with TestBed (#32944) (#33663) (f8e9c1e)
  • fix(ivy): R3TestBed should clean up registered modules after each test (#32872) (#33663) (7c4366d)

BREAKING CHANGES

  • i18n: The CLDR data has been updated to v36.0.0, which may cause some localized data strings to change. For example, the space separator used in numbers in the fr locales changed from \xa0 to \u202f (c1bd3bc)

8.2.14 (2019-11-13)

Bug Fixes

9.0.0-rc.1 (2019-11-06)

Bug Fixes

Features

  • common: support loading locales from a global (#33523) (c5894e0)
  • ivy: graceful evaluation of unknown or invalid expressions (#33453) (ce30888)
  • ivy: implement unknown element detection in jit mode (#33419) (c83f501)
  • add a flag in bootstrap to enable coalesce event change detection to improve performance (#30533) (44623a1)

Performance Improvements

  • ivy: add new benchmark focused on template creation (#33511) (df1bef3)
  • ivy: add ngIf-like directive to the ng_template benchmark (#33595) (e89c2dd)
  • ivy: avoid native node retrieval from LView (#33511) (083d48e)
  • ivy: avoid repeated native node retrieval and patching (#33322) (41caafc)
  • ivy: avoid repeated tNode.initialInputs reads (#33322) (4452d6d)
  • ivy: move local references into consts array (#33129) (66725b7), closes #32798

9.0.0-rc.0 (2019-10-31)

Please see the v9 update guide for more information.

9.0.0-next.15 (2019-10-30)

Bug Fixes

  • compiler: i18n - ignore alt-trans tags in XLIFF 1.2 (#33450) (936700a), closes #33161
  • ivy: descend into ICU containers when collecting rootNodes (#33493) (563a507)
  • ivy: descend into view containers on elements when collecting rootNodes (#33493) (87743f1)
  • ivy: descend into view containers on ng-container when collecting rootNodes (#33493) (a5167bd)
  • ivy: descend into view containers on ng-template when collecting rootNodes (#33493) (502fb7e)
  • ivy: ensure overrides for 'multi: true' only appear once in final providers (#33104) (e483aca)
  • ivy: handle elements with local refs in i18n blocks (#33415) (bd40c89)
  • ivy: i18n - support setting locales for each translation file (#33381) (62b2840), closes #33323
  • ivy: i18n - update localize-translate to accept target-locales (#33381) (41979d6)
  • language-service: Improve signature selection for pipes with args (#33456) (1de7579)

Features

Performance Improvements

  • ivy: avoid generating selectors array for directives without a selector (#33431) (c3e9356)

8.2.13 (2019-10-30)

Bug Fixes

9.0.0-next.14 (2019-10-25)

Bug Fixes

  • core: missing-injectable migration should handle forwardRef (#33286) (eeecbf2)
  • core: missing-injectable migration should not migrate providers with "useExisting" (#33286) (4d23b60)
  • core: missing-injectable migration should not update type definitions (#33286) (335854f)
  • ivy: allow abstract directives to have an invalid constructor (#32987) (8d15bfa), closes #32981
  • ivy: fix broken typechecking test on Windows (#33376) (63f0ded)
  • ivy: split checkTypeOfReferences into DOM and non-DOM flags. (#33365) (113411c)
  • ivy: support abstract directives in template type checking (#33131) (a42057d), closes #30080
  • language-service: Do not show HTML elements and attrs for ext template (#33388) (a78b701)
  • ngcc: prevent reflected decorators from being clobbered (#33362) (0de2dbf)

Features

  • ivy: add a runtime feature to copy cmp/dir definitions (#33362) (818c514)
  • ivy: add flag to disable checking of text attributes (#33365) (d8ce212)
  • ivy: allow the locale to be set via a global property (#33314) (fde8363)
  • ivy: i18n - inline current locale at compile-time (#33314) (fb84ea7)
  • ivy: input type coercion for template type-checking (#33243) (f1269d9)
  • ivy: strictness flags for template type checking (#33365) (0d9be22)
  • ivy: verify whether TypeScript version is supported (#33377) (4aa51b7)
  • ngcc: add a migration for undecorated child classes (#33362) (b381497)
  • ngcc: enable migrations to apply schematics to libraries (#33362) (6b26748)
  • ngcc: migrate services that are missing @Injectable() (#33362) (31b9492)

Performance Improvements

  • ivy: apply [style]/[class] bindings directly to style/className (#33336) (dcdb433)
  • ivy: apply static styles/classes directly to an element's style/className properties (#33364) (5607ad8)
  • ivy: improve styling performance (#33326) (d40ee6a)

9.0.0-next.13 (2019-10-23)

Bug Fixes

Features

  • core: add ModuleWithProviders generic type migration (#33217) (56731f6)
  • ivy: enable re-export of the compilation scope of NgModules privately (#33177) (c4733c1), closes #29361
  • ivy: give shim generation its own compiler options (#33256) (d4db746)
  • ngcc: enable private NgModule re-exports in ngcc on request (#33177) (e030375)

Performance Improvements

  • ivy: avoid unnecessary i18n pass while processing a template (#33284) (7f7dc7c)

BREAKING CHANGES

  • bazel: @angular/bazel ng_setup_workspace() is no longer needed and has been removed. We assume you will fetch rules_nodejs in your WORKSPACE file, and no other dependencies remain here. Simply remove any calls to this function and the corresponding load statement.

8.2.12 (2019-10-23)

Bug Fixes

9.0.0-next.12 (2019-10-18)

Bug Fixes

Features

  • add a flag in bootstrap to enable coalesce event change detection to improve performance (#30533) (21c1e14)
  • ivy: improve debugging experience for styles/classes (#33179) (724707c)
  • typescript 3.6 support (#32946) (86e1e6c), closes #32380
  • ivy: type checking of event bindings (#33125) (6958d11)
  • language-service: add Angular pseudo elements into completions (#31248) (7c64b8d)
  • ngcc: support --async flag (defaults to true) (#33192) (2196114)
  • ngcc: support ignoreMissingDependencies in ngcc config (#33192) (4da2dda)

Performance Improvements

  • ivy: initialise inputs from static attrs on the first template pass only (#33195) (aef7dca)
  • ivy: limit global state read / write in host bindings (#33195) (3e14c2d)

Reverts

BREAKING CHANGES

  • typescript 3.4 and 3.5 are no longer supported, please update to typescript 3.6

9.0.0-next.11 (2019-10-15)

Bug Fixes

  • compiler-cli: produce diagnostic messages in expression of PrefixNot node. (#33087) (2ddc851)
  • compiler-cli: resolve type of exported *ngIf variable. (#33016) (39587ad)
  • ivy: avoid DOM element assertions if procedural renderer is used (#33156) (11e04b1)
  • ivy: do not always accept undefined for directive inputs (#33066) (50bf17a), closes #32690
  • ivy: ensure sanitizer is not used when direct class application occurs (#33154) (1cda80e)
  • ivy: i18n - add XLIFF aliases for legacy message id support (#33160) (ad72c90)
  • ivy: i18n - strip meta blocks from untranslated messages (#33097) (1845faa)
  • ivy: i18n - support lazy-load template string helpers (#33097) (83425fa)
  • ivy: i18n - turn on legacy message-id support by default (#33053) (f640a4a)
  • language-service: Use index.d.ts for typings (#33043) (728cd84)
  • google3 sync which requires type hints (#33108) (0c69ec2)
  • ngcc: rename the executable from ivy-ngcc to ngcc (#33140) (1a34fbc)
  • service-worker: continue serving api requests on cache failure (#32996) (52483bf), closes #21412

Code Refactoring

Features

  • compiler: record absolute span of template expressions in parser (#31897) (b04488d), closes #31898
  • core: add postinstall ngcc migration (#32999) (30d25f6)
  • ivy: better error messages for unknown components (#33064) (d8249d1)
  • ivy: check regular attributes that correspond with directive inputs (#33066) (cd7b199)
  • ivy: disable strict null checks for input bindings (#33066) (ece0b2d)
  • ivy: i18n - support source locale inlining (#33101) (f433d66)
  • change tslib from direct dependency to peerDependency (#32167) (e2d5bc2)
  • language-service: directive info when looking up attribute's symbol (#33127) (ce7f934)
  • language-service: hover information for component NgModules (#33118) (e409ed0), closes #32565
  • ngcc: support fallback to a default configuration (#33008) (9167624)
  • ngcc: support version ranges in project/default configurations (#33008) (90007e9)

Performance Improvements

  • ivy: guard host binding execution with a TNode flag (#33102) (d4d0723)
  • ivy: introduce micro-benchmark for directive instantiation (#33082) (22d4efb)
  • ivy: limit memory reads in getOrCreateNodeInjectorForNode (#33102) (dcca80b)
  • ivy: speed up bindings when no directives are present (#32919) (b2decf0)
  • ivy: stricter null checks in setInputsFromAttrs (#33102) (b800b88)
  • ivy: use instanceof operator to check for NodeInjectorFactory instances (#33082) (8d111da)

BREAKING CHANGES

  • We no longer directly have a direct depedency on tslib. Instead it is now listed a peerDependency.

Users not using the CLI will need to manually install tslib via;

yarn add tslib

or

npm install tslib --save
  • forms: * <ngForm></ngForm> can no longer be used as a selector. Use <ng-form></ng-form> instead.
  • The NgFormSelectorWarning directive has been removed.
  • FormsModule.withConfig has been removed. Use the FormsModule directly.

8.2.11 (2019-10-15)

Bug Fixes

9.0.0-next.10 (2019-10-09)

Bug Fixes

  • common: expand type for "ngForOf" input to work with strict null checks (#31371) (c1bb886), closes #16373
  • core: ngNoopZone should have the same signature with ngZone (#32068) (3a53e2c), closes #32063
  • core: set migration schematic versions to valid semver versions (#32991) (0119f46)
  • core: update migration descriptions with links to AIO documentation (#32991) (f8eca84)
  • ivy: avoid exposing ng with Closure Compiler enhanced optimizations (#33010) (bad3434)
  • ivy: generate ng-reflect properties for i18n attributes (#32989) (90fb5d9)
  • ivy: i18n - better translation warnings (#32867) (97d5700)
  • ivy: i18n - do not render message ids unnecessarily (#32867) (9188751)
  • ivy: i18n - support colons in $localize metadata (#32867) (d24ade9)
  • ivy: i18n - throw an error if a translation contains an invalid placeholder (#32867) (601f87c)
  • ivy: missing schematics field in localize package (#33025) (d18289f), closes #32791
  • ivy: process nested animation metadata (#32818) (c61e4d7), closes #32794
  • ivy: unable to bind style zero (#32994) (3efb060), closes #32984
  • language-service: create StaticReflector once only (#32543) (adb562b)

Code Refactoring

Features

Performance Improvements

  • ivy: add static attributes to the element_text_create benchmark (#32997) (affae99)
  • ivy: attempt rendering initial styling only if present (#32979) (6004703)
  • ivy: avoid memory allocation in the isAnimationProp check (#32997) (9f0c549)
  • ivy: increase number of created views in the element_text_create benchmark (#32979) (8593d0d)
  • ivy: limit TNode.inputs reads on first template pass (#32979) (e6881b5)
  • ivy: move attributes array into component def (#32798) (d5b87d3)
  • language-service: improve Language service performance (#32098) (65297cd)

BREAKING CHANGES

  • core: The deprecated type Renderer has been removed. Use Renderer2 instead.
  • core: The deprecated type RenderComponentType has been removed. Use RendererType2 instead.
  • core: The deprecated type RootRenderer has been removed. Use RendererFactory2 instead.

8.2.10 (2019-10-09)

This release contains various API docs improvements.

9.0.0-next.9 (2019-10-02)

Bug Fixes

Features

  • update rxjs peerDependencies minimum requirment to 6.5.3 (#32812) (66658c4)
  • ivy: support ng-add in localize package (#32791) (e41cbfb)
  • language-service: allow retreiving synchronized analyzed NgModules (#32779) (98feee7)
  • service-worker: remove deprecated versionedFiles option (#32862) (5d5c94d)

Performance Improvements

  • ivy: avoid repeat global state accesses in i18n instructions (#32916) (ffc34b3)

BREAKING CHANGES

  • service-worker: Remove deprecated option versionedFiles from service worker asset group configuration in ngsw-config.json

Before

"assetGroups": [
  {
    "name": "test",
    "resources": {
      "versionedFiles": [
        "/**/*.txt"
      ]
    }
  }
]

After

"assetGroups": [
  {
    "name": "test",
    "resources": {
      "files": [
        "/**/*.txt"
      ]
    }
  }
]

8.2.9 (2019-10-02)

Bug Fixes

  • upgrade: fix AngularJsUrlCodec to support Safari (#32959) (57457fb)

9.0.0-next.8 (2019-09-25)

Bug Fixes

  • ivy: ensure window.ng.getDebugNode returns debug info for component elements (#32780) (5651fa3)
  • ivy: ensure multiple map-based bindings do not skip intermediate values (#32774) (86fd571)

Features

  • language-service: expose determining the NgModule of a Directive (#32710) (2846505), closes #32565

Performance Improvements

8.2.8 (2019-09-25)

This release contains various API docs improvements.

9.0.0-next.7 (2019-09-18)

Bug Fixes

  • bazel: ng_package(data) should support non-text files (#32721) (df1c456)
  • compiler-cli: fix typo in diagnostic template info. (#32684) (f6d6667), closes #32662
  • core: initialize global ngDevMode without toplevel side effects (#32079) (5f095a5), closes #31595
  • core: make injector.get() return default value with InjectFlags.Self flag on (#27739) (0477bfc), closes #27729
  • ivy: avoid unnecessary i18n instructions generation for with structural directives (#32623) (5328bb2)
  • ivy: correct debug array names (#32691) (52a6da0)
  • ivy: DebugNode throws exceptions when querying some properties (#32622) (bfb3995)
  • ivy: ensure that window.ng utilities are published when NgModules are used (#32725) (a0d04c6)
  • ivy: i18n - start generated placeholder name at PH (#32493) (f1b1de9)
  • ivy: i18n - update the compiler to output MessageIds (#32594) (b741a1c)
  • ivy: i18n - use MessageId for matching translations (#32594) (357aa4a)
  • language-service: Lazily instantiate MetadataResolver (#32631) (1771d6f)
  • language-service: Use tsLSHost.fileExists() to resolve modules (#32642) (bbb2798)
  • ngcc: consistently use outer declaration for classes (#32539) (373e133), closes #32078
  • ngcc: correctly read static properties for aliased classes (#32619) (c4e039a), closes #32539 #31791
  • ngcc: resolve imports in .d.ts files for UMD/CommonJS bundles (#32619) (3c7da76), closes #31791
  • ngcc: support UMD global factory in comma lists (#32709) (e5a3de5)

Features

Performance Improvements

  • ivy: avoid megamorphic reads during property binding (#32574) (fcdd068)
  • ivy: avoid repeated lview reads in pipe instructions (#32633) (73cb581)
  • ivy: avoid repeated LView reads in property instructions (#32681) (e6ed4a2)
  • ivy: avoid unnecessary DOM reads in styling instructions (#32716) (05e1b3b)
  • ivy: binding update benchmark (#32574) (ea378a9)
  • ivy: convert all node-based benchmark to use a testing harness (#32699) (1748aeb)
  • ivy: guard listening to outputs with isDirectiveHost (#32495) (527ce3b)
  • ivy: initialise TNode inputs / outputs on the first creation pass (#32608) (ad178c5)
  • ivy: introduce benchmark for listeners registration (#32495) (024765b)
  • ivy: limit TNode.outputs reads (#32495) (51292e2)
  • ivy: run the expandng rows benchmark with es2015 (#32716) (3ace25f)
  • language-service: keep analyzedModules cache when source files don't change (#32562) (4f03323)

BREAKING CHANGES

  • ivy: Translations (loaded via the loadTranslations() function) must now use MessageId for the translation key rather than the previous SourceMessage string.
  • ivy: To attach the $localize function to the global scope import from @angular/localize/init. Previously it was @angular/localize. To access the loadTranslations() and clearTranslations() functions, import from @angular/localize. Previously it was @angular/localize/run_time.

DEPRECATIONS

  • core: TestBed.get function is marked as deprecated, use TestBed.inject instead.

8.2.7 (2019-09-18)

Bug Fixes

9.0.0-next.6 (2019-09-11)

Bug Fixes

  • core: improve the "missing $localize" error message (#32491) (a9ff48e)
  • ivy: capture template source mapping details during preanalysis (#32544) (a64eded), closes #32538
  • ivy: handle expressions in i18n attributes properly (#32309) (f00d033)
  • ivy: i18n - do not generate jsdoc comments for $localize (#32473) (a731119)
  • ivy: maintain coalesced listeners order (#32484) (098feec)
  • ivy: match class and attribute value without case-sensitivity (#32548) (ded5724)
  • ivy: node placed in incorrect order inside ngFor with ng-container (#32324) (da42a76)
  • ivy: restore global state after running refreshView (#32521) (a1beba4)
  • ivy: template compiler should render correct $localize placeholder names (#32509) (ea6a2e9)
  • ivy: unable to bind to properties that start with class or style (#32421) (62d92f8), closes #32310
  • ivy: unable to override ComponentFactoryResolver provider in tests (#32512) (2124588)
  • ivy: warn instead of throwing for unknown properties (#32463) (bc061b7)
  • language-service: Return empty external files during project initialization (#32519) (a65d3fa)
  • language-service: Use module resolution cache (#32479) (6052b12)
  • ngcc: only back up the original prepublishOnly script and not the overwritten one (#32427) (38359b1)
  • service-worker: keep serving clients on older versions if latest is invalidated (#31865) (bda2b4e)

Code Refactoring

Features

  • language-service: add definitions for styleUrls (#32464) (a391aeb)
  • language-service: add script to rebuild, refresh Angular dist (#32515) (1716b91)
  • service-worker: recover from EXISTING_CLIENTS_ONLY mode when there is a valid update (#31865) (094538c), closes #31109

Performance Improvements

  • ivy: check for animation synthetic props in dev mode only (#32578) (7280710)
  • ivy: introduce a node-based micro-benchmarks harness (#32510) (2895edc)
  • ivy: replace select instruction with advance (#32516) (664e001)
  • ivy: run tree benchmark with bundles and ngDevMode off (#32558) (c3a1ef2)
  • ngcc: process tasks in parallel in async mode (#32427) (e36e6c8)

BREAKING CHANGES

  • bazel: Angular bazel users using protractor_web_test_suite from @angular/bazel npm package should now switch to the @bazel/protractor npm package.

This should impact very few users and the user's that are impacted have a very easy upgrade path to switch to fetching the protractor_web_test_suite rule via the @bazel/protractor npm package.

8.2.6 (2019-09-11)

This release contains various API docs improvements.

9.0.0-next.5 (2019-09-04)

Bug Fixes

  • ivy: add missing closure extern for $localize (#32460) (e8f9ba4)
  • ivy: ensure binding ordering doesn't mess up when a NO_CHANGE value is encountered (#32143) (7cc4225)
  • ivy: i18n - handle translated text containing HTML comments (#32475) (5d8eb74)
  • ivy: ngcc - improve the "ngcc version changed" error message (#32396) (d5101df)
  • ivy: Prevent errors when querying for elements outside Angular context (#32361) (260217a)
  • language-service: Create DirectiveKind enum (#32376) (852afb3)
  • language-service: Invalidate Reflector caches when program changes (#32357) (97fc45f)
  • update all files/directories owned by DevInfra to new DevInfra Framework team alias (#32247) (3758978)
  • language-service: re-add regressed templateUrl tests (#32438) (1ed3531), closes #32378
  • language-service: Use ts.CompletionEntry for completions (#32375) (f6e88cd)
  • ngcc: handle compilation diagnostics (#31996) (f7471ee), closes #31977
  • common: HttpParams fromObject accepts ReadonlyArray (#31072) (f5bec3f), closes #28452

Features

Performance Improvements

  • core: Make PlatformLocation tree-shakable (#32154) (1537791)
  • ivy: add a micro benchmark for map-based style and class bindings (#32401) (ba5e07e)
  • ivy: add a micro benchmark for style and class bindings (#32401) (df8e675)
  • ivy: add element and text creation benchmark (#32342) (85864ed)
  • ivy: guard directive-related operations with a TNode flag (#32445) (641c5c1)
  • ivy: properly initialise global state in the element_text_create benchmark (#32397) (8dc3f36)
  • ivy: remove renderStringify calls for text nodes creation (#32342) (a1e91b0)
  • ivy: remove repeated memory read / write in addComponentLogic (#32339) (581b837)
  • ivy: run registerPostOrderHooks in the first template pass only (#32342) (fac066e)

Reverts

  • docs: create Issue and Pull Request markdown doc, explaining automatic locking policy (#32405) (43619fc)

BREAKING CHANGES

  • ivy: This commit removes the public export of hasBeenProcessed().

This was exported to be availble to the CLI integration but was never used. The change to the function signature is a breaking change in itself so we remove the function altogether to simplify and lower the public API surface going forward.

  • core: Injector.get now accepts abstract classes to return type-safe values. Previous implementation returned any through the deprecated implementation.

8.2.5 (2019-09-04)

This release contains various API docs improvements.

Bug Fixes

9.0.0-next.4 (2019-08-28)

Bug Fixes

  • ivy: debug node names should match user declaration (#32328) (14feb56)
  • ivy: ngtsc throws if "flatModuleOutFile" is set to null (#32235) (4f7c971)
  • ivy: reset binding index before executing a template in refreshView call (#32201) (6b245a3)
  • ngcc: do not analyze dependencies for non Angular entry-points (#32303) (e563d77), closes #32302

Features

  • core: add undecorated classes with decorated fields schematic (#32130) (904a201)
  • ivy: use the schema registry to check DOM bindings (#32171) (0677cf0)

Performance Improvements

  • ivy: minimise writes to the lView[BINDING_INDEX] / binding root (#32263) (e3422e0)
  • ivy: store binding metadata in the ngDevMode only (#32317) (0874bf4)

8.2.4 (2019-08-28)

This release contains various API docs improvements.

9.0.0-next.3 (2019-08-21)

Bug Fixes

  • bazel: pin [@microsoft](https://github.com/microsoft)/api-extractor (#32187) (5da5ca5)
  • common: update $locationShim to notify onChange listeners before emitting AngularJS events (#32037) (5064dc7)
  • compiler: return enableIvy true when using readConfiguration (#32234) (424ab48)
  • ivy: get name directly from nativeNode (#32198) (3dbc4ab)
  • ivy: handle empty bindings in template type checker (#31594) (0db1b5d), closes #30076 #30929
  • ivy: in ngcc, handle inline exports in commonjs code (#32129) (02bab8c)
  • ivy: ngcc should only index .d.ts exports within the package (#32129) (964d726)
  • ivy: ngTemplateOutlet error when switching between null and template value (#32160) (c2868de), closes #32060
  • ivy: run template type-checking for all components (#31952) (bfc26bc)
  • language-service: Instantiate MetadataResolver once (#32145) (6a0b1d5)
  • language-service: Remove 'context' used for module resolution (#32015) (a91ab15)
  • ngcc: handle deep imports that already have an extension (#32181) (4bbf16e), closes #32097
  • ngcc: ignore format properties that exist but are undefined (#32205) (f8b995d), closes #32052 #32188

Features

  • core: add undecorated classes migration schematic (#31650) (024c31d)
  • forms: formControlName also accepts a number (#30606) (628b0c1)
  • compiler: allow selector-less directives as base classes in View Engine (#31379) (4055150)
  • ivy: support selector-less directive as base classes in Ivy (#32125) (cfed0c0), closes #31379
  • ivy: make the Ivy compiler the default for ngc (#32219) (ec4381d)
  • ivy: convert all ngtsc diagnostics to ts.Diagnostics (#31952) (0287b23)

Performance Improvements

  • core: make sanitization tree-shakable in Ivy mode (#31934) (2e4d17f)
  • ivy: auto-call select(0) for non-empty views only (#32131) (4d549f6)
  • ivy: avoid first template pass checks during view creation (#32120) (4c3b791)
  • ivy: avoid for-of loops at runtime (#32157) (abb44f7)
  • ivy: improve NaN checks in change detection (#32212) (53bfa7c)
  • ivy: interpolation micro-benchmark (#32104) (be665d8)
  • ivy: noop change detection micro-benchmark (#32104) (c422c72)
  • don't create holey arrays (#32155) (6477057)
  • ivy: read selected index only when need in prop bindings (#32212) (53f33c1)
  • ivy: split hooks processing into init and check phases (#32131) (1062960)
  • ivy: split view processing into render (create) and refresh (update) pass (#32020) (b9dfe66)

BREAKING CHANGES

Angular now compiles with Ivy by default (#32219) (ec4381d).

If you aren't familiar with Ivy, read our blog post about the Ivy preview and see the list of changes here.

  • ivy: make Hammer support tree-shakable. Previously, in Ivy applications, Hammer providers were included by default. With this commit, apps that want Hammer support must import HammerModulein their root module. (#32203) (de8ebbd)

8.2.3 (2019-08-21)

Bug Fixes

  • bazel: pin [@microsoft](https://github.com/microsoft)/api-extractor (#32187) (a7b9478)

9.0.0-next.2 (2019-08-12)

Bug Fixes

  • bazel: disable treeshaking when generating FESM and UMD bundles (#32069) (4f37487)
  • compiler: do not remove whitespace wrapping i18n expansions (#31962) (0ddf0c4)
  • ivy: reuse compilation scope for incremental template changes. (#31932) (eb5412d), closes #31654

Performance Improvements

  • ivy: don't read global state when interpolated values don't change (#32093) (6eb9c2f)

8.2.2 (2019-08-12)

Bug Fixes

  • bazel: disable treeshaking when generating FESM and UMD bundles (#32069) (3420d29)

9.0.0-next.1 (2019-08-08)

Bug Fixes

  • language-service: getSourceFile() should only be called on TS files (#31920) (e8b8f6d)
  • language-service: Make Definition and QuickInfo compatible with TS LS (#31972) (a8e2ee1)
  • upgrade: compile downgraded components synchronously (if possible) (#31840) (c1ae612), closes #27217 #30330

8.2.1 (2019-08-08)

Bug Fixes

9.0.0-next.0 (2019-07-31)

  • Ivy related improvements and fixes

8.2.0 (2019-07-31)

Features

  • core: TypeScript 3.5 support (#31615) (6ece7db)
  • core: add automatic migration from Renderer to Renderer2 (#30936) (c095597)
  • bazel: compile targets used for indexing by Kythe with Ivy (#31786) (82055b2)
  • upgrade: support $element in upgraded component template/templateUrl functions (#31637) (29e1c53)
  • bazel: allow passing a custom bazel compiler host to ngc compile (#31341) (a29dc96)
  • bazel: allow passing and rewriting an old bazel host (#31381) (11a208f), closes #31341

Performance Improvements

  • compiler: avoid copying from prototype while cloning an object (#31638) (24ca582), closes #31627

Bug Fixes

  • core: DebugElement.listeners not cleared on destroy (#31820) (46b160e)
  • bazel: increase memory limit of ngc under bazel from 2 to 4 GB (#31784) (5a8eb92)
  • core: allow Z variations of CSS transforms in sanitizer (#29264) (78e7fdd)
  • elements: handle falsy initial value (#31604) (7151eae), closes angular/angular#30834
  • platform-browser: debug element query predicates not compatible with strictFunctionTypes (#30993) (10a1e19)
  • use the correct WTF array to iterate over (#31208) (9204de9)
  • bazel: pass custom bazel compiler host rather than rewriting one (#31496) (0c61a35)
  • compiler-cli: Return original sourceFile instead of redirected sourceFile from getSourceFile (#26036) (3166cff), closes #22524
  • language-service: Eagarly initialize data members (#31577) (0110de2)
  • bazel: revert location of xi18n outputs to bazel-genfiles (#31410) (1d3e227)
  • compiler: give ASTWithSource its own visit method (#31347) (6aaca21)
  • core: handle undefined meta in injectArgs (#31333) (80ccd6c), closes CLI #14888
  • service-worker: cache opaque responses in data groups with freshness strategy (#30977) (d7be38f), closes #30968
  • service-worker: cache opaque responses when requests exceeds timeout threshold (#30977) (93abc35)

8.1.3 (2019-07-26)

Bug Fixes

Performance Improvements

  • compiler: avoid copying from prototype while cloning an object (#31638) (1f3daa0), closes #31627

8.1.2 (2019-07-17)

Bug Fixes

8.1.1 (2019-07-10)

Bug Fixes

8.1.0 (2019-07-02)

Bug Fixes

  • core: handle undefined meta in injectArgs (#31333) (80ccd6c), closes CLI #14888
  • service-worker: cache opaque responses in data groups with freshness strategy (#30977) (b0c3453), closes #30968
  • service-worker: cache opaque responses when requests exceeds timeout threshold (#30977) (a9038ef)

8.1.0-rc.0 (2019-06-26)

Bug Fixes

Features

  • upgrade: provide unit test helpers for wiring up injectors (#16848) (3fb78aa)

8.0.3 (2019-06-26)

Bug Fixes

8.1.0-next.3 (2019-06-19)

Bug Fixes

8.0.2 (2019-06-19)

Bug Fixes

8.1.0-next.2 (2019-06-13)

Bug Fixes

  • bazel: do not modify tsconfig.json (#30877) (b086676)
  • bazel: exclude components schematics from build (#30825) (05a43ca)
  • bazel: Load global stylesheet in dev and prod (#30879) (17bfedd)
  • common: expose the HttpUploadProgressEvent interface as public API (#30852) (5c18f23), closes #30814
  • service-worker: avoid uncaught rejection warning when registration fails (#30876) (81c2a94)

8.0.1 (2019-06-13)

Bug Fixes

8.1.0-next.1 (2019-06-05)

Bug Fixes

8.1.0-beta.0 (2019-05-30)

Bug Fixes

  • bazel: allow ts_library interop with list-typed inputs (#30600) (3125376)
  • bazel: Bump ibazel to 0.10.1 for windows fixes (#30196) (1353bf0)
  • bazel: Directly spawn native Bazel binary (#30306) (2a0f497)
  • bazel: Disable sandbox on Mac OS (#30460) (b6b1aec)
  • bazel: Exclude common/upgrade* in metadata.tsconfig.json (#30133) (1f4c380)
  • bazel: ng test should run specific ts_web_test_suite (#30526) (e688e02)
  • bazel: pass correct arguments to http_server in Windows (#30346) (3aff79c), closes #29785
  • bazel: update peerDep ranges (#30155) (4ae0ee8)
  • bazel: Use existing npm/yarn lock files (#30438) (ff29ccc)
  • compiler-cli: log ngcc skipping messages as debug instead of info (#30232) (60a8888)
  • core: consistently use ng:/// for sourcemap URLs (#29826) (392473e)
  • core: CSS sanitizer now allows parens in file names (#30322) (728db88)
  • core: fix interpolate identifier in AOT (#30243) (30d1f29)
  • core: migrations not always migrating all files (#30269) (349935a)
  • core: remove deprecated TestBed.deprecatedOverrideProvider API (#30576) (a96976e)
  • core: require 'static' flag on queries in typings (#30639) (84dd267)
  • core: static-query migration errors not printed properly (#30458) (6ceb903)
  • core: static-query migration fails with default parameter values (#30269) (6357d4a)
  • core: static-query migration should gracefully exit if AOT compiler throws (#30269) (509352f)
  • core: static-query migration should handle queries on accessors (#30327) (0ffdb48)
  • core: static-query migration should not fallback to test strategy (#30458) (0cdf598)
  • core: static-query migration should not prompt if no queries are used (#30254) (4c12d74)
  • core: static-query usage migration strategy should detect ambiguous query usage (#30215) (8d3365e)
  • core: temporarily remove @deprecated jsdoc tag for a TextBed.get overload (#30514) (f6bf892), closes #29290 #29905
  • language-service: Remove tsserverlibrary from rollup globals (#30123) (124e497)
  • router: ensure history.state is set in eager update mode (#30154) (b40f6f3)
  • router: ensure navigations start with the current URL value incase redirect is skipped (#30344) (0fd9d08), closes #30340 #30160
  • router: fix a problem with router not responding to back button (#30160) (3327bd8)
  • router: IE 11 bug can break URL unification when comparing objects (#30393) (197584d)
  • router: type cast correctly for IE 11 bug breaking URL Unification when comparing objects (#30464) (53f3564)

Features

  • bazel: use rbe_autoconfig() and new container. (#29336) (9abf114)
  • common: add ability to watch for AngularJS URL updates through onUrlChange hook (#30466) (1aff524)
  • common: stricter types for SlicePipe (#30156) (95830ee)
  • core: deprecate integration with the Web Tracing Framework (WTF) (#30642) (f310a59)
  • language-service: Implement definitionAndBoundSpan (#30125) (f491673)
  • platform-webworker: deprecate platform-webworker (#30642) (ccc76f7)

8.0.0 (2019-05-28)

Features

  • add support for TypeScript 3.4 (and drop older versions) (#29372) (ef85336)
  • common: add ability to watch for AngularJS URL updates through onUrlChange hook (#30466) (8022d36)
  • common: stricter types for SlicePipe (#30156) (722b2fa)
  • bazel: use rbe_autoconfig() and new container (#29336) (e562acc)
  • common: add @angular/common/upgrade package for $location-related APIs (#30055) (152d99e)
  • common: add ability to retrieve the state from Location service (#30055) (b44b143)
  • common: add ability to track all location changes (#30055) (3a9cf3f)
  • common: add APIs to read component pieces of URL (#30055) (b635fe8)
  • common: add MockPlatformLocation to enable more robust testing of Location services (#30055) (d0672c2)
  • common: add UrlCodec type for use with upgrade applications (#30055) (ec455e1)
  • common: provide replacement for AngularJS $location service (#30055) (4277600)
  • remove deprecated DOCUMENT token from platform-browser (#28117) (3a9d247)
  • compiler: support skipping leading trivia in template source-maps (#30095) (304a12f)
  • core: add missing ARIA attributes to html sanitizer (#29685) (909557d), closes #26815
  • router: deprecate loadChildren:string (#30073) (c61df39)
  • service-worker: allow configuring when the SW is registered (#21842) (4cfba58), closes #20970
  • service-worker: expose SwRegistrationOptions token to allow runtime config (#21842) (39c0152)
  • service-worker: support bypassing SW with specific header/query param (#30010) (6200732), closes #21191
  • compiler-cli: export tooling definitions (#29929) (e1f51ea)
  • compiler-cli: lower some exported expressions (#30038) (8e73f9b)
  • core: add schematics to move deprecated DOCUMENT import (#29950) (645e305)
  • bazel: update the build to use the new architect api (#29720) (902a53a)
  • remove @angular/http dependency from @angular/platform-server (#29408) (9745f55)
  • compiler-cli: ngcc - make logging more configurable (#29591) (8d3d75e)
  • core: Add AbstractType<T> interface (#29295) (afd4a4e), closes #26491
  • core: template-var-assignment update schematic (#29608) (7c8f4e3)
  • bazel: Upgrade rules_nodejs and rules_sass (#29388) (d6d081e)
  • service-worker: support multiple apps on different subpaths of a domain (#27080) (e721c08), closes #21388
  • bazel: Eject Bazel (#29167) (36a1550)
  • bazel: Hide Bazel files in Bazel builder (#29110) (7060d90)
  • forms: clear (remove all) components from a FormArray (#28918) (a68b1a1), closes #18531
  • platform-server: wait on returned BEFORE_APP_SERIALIZED promises (#29120) (7102ea8)

Bug Fixes

  • bazel: allow ts_library interop with list-typed inputs (#30600) (bf38df4)
  • bazel: Disable sandbox on Mac OS (#30460) (3de26a8)
  • bazel: ng test should run specific ts_web_test_suite (#30526) (8bc4da8)
  • core: remove deprecated TestBed.deprecatedOverrideProvider API (#30576) (5a46f94)
  • core: require 'static' flag on queries in typings (#30641) (c8af830)
  • core: temporarily remove @deprecated jsdoc tag for a TextBed.get overload (#30514) (561e01d), closes #29290 #29905
  • router: type cast correctly for IE 11 bug breaking URL Unification when comparing objects (#30464) (32daa93)
  • bazel: Directly spawn native Bazel binary (#30306) (d1fcc2b)
  • bazel: pass correct arguments to http_server in Windows (#30346) (71eba45), closes #29785
  • bazel: Use existing npm/yarn lock files (#30438) (3136d9f)
  • compiler: ensure strict mode when evaluating in JIT (#30122) (192f108)
  • core: migrations not always migrating all files (#30269) (e8ceae1)
  • core: static-query migration errors not printed properly (#30458) (fde3f46)
  • core: static-query migration fails with default parameter values (#30269) (c3246e6)
  • core: static-query migration should gracefully exit if AOT compiler throws (#30269) (a71d8a8)
  • core: static-query migration should handle queries on accessors (#30327) (dd299f9)
  • core: static-query migration should not fallback to test strategy (#30458) (0fa48e8)
  • core: static-query migration should not prompt if no queries are used (#30254) (12fb639)
  • core: static-query usage migration strategy should detect ambiguous query usage (#30215) (e295c6a)
  • router: ensure navigations start with the current URL value incase redirect is skipped (#30344) (9b88920), closes #30340 #30160
  • router: IE 11 bug can break URL unification when comparing objects (#30393) (c383491)
  • bazel: Bump ibazel to 0.10.1 for Windows fixes (#30196) (9f68c35)
  • compiler-cli: log ngcc skipping messages as debug instead of info (#30232) (548b003)
  • core: fix interpolate identifier in AOT (#30243) (3fe3a84)
  • router: ensure history.state is set in eager update mode (#30154) (9720227)
  • router: fix a problem with router not responding to back button (#30160) (132f01c)
  • language-service: Remove tsserverlibrary from rollup globals (#30123) (b706800)
  • disable injectable-pipe migration (#30180) (4b2fcfd)
  • bazel: Exclude common/upgrade* in metadata.tsconfig.json (#30133) (6711f22)
  • bazel: update peerDep ranges (#30155) (6067583)
  • bazel: make name param in ng add optional (#30074) (0b5f480)
  • bazel: Make sure only single copy of @angular/bazel is installed (#30072) (2905bf5)
  • bazel: transitive npm deps in ng_module (#30065) (61365a9)
  • common: add upgrade sub-package to ng_package rule for @angular/common (#30117) (6de4cbd), closes #30055 #30116
  • common: adjust MockPlatformLocation to set state to new object (#30055) (825efa8)
  • compiler: Fix compiler crash due to isSkipSelf of null (#30075) (28fd5ab)
  • upgrade: do not break if onMicrotaskEmpty emits while a $digest is in progress (#29794) (0ddf2e7), closes #24680 /github.com/angular/angular/blob/78146c189/packages/core/src/util/ng_dev_mode.ts#L12 #24680
  • bazel: do not typecheck core schematic files (#29876) (2ba799d)
  • bazel: restore ng build --prod (#30005) (96a8289)
  • common: prevent repeated application of HttpParams mutations (#29045) (8e8e89a), closes #20430
  • common: async pipe will properly check when it receives an NaN value from an observable (#22305) (3f6bf6d), closes #15721
  • core: don't include a local EventListener in typings (#29809) (4bde40f), closes #29806
  • core: use shakeable global definitions (#29929) (e5905bb)
  • language-service: Use proper types instead of any (#29942) (1a56cd5)
  • bazel: Install packages after ng add when invoked independently (#29852) (bd2ce9c)
  • compiler-cli: pass config path to ts.parseJsonConfigFileContent (#29872) (86a3f90)
  • router: support non-NgFactory promise in loadChildren typings (#29832) (2bfb6a0)
  • bazel: add configuration_env_vars = ["compile"] to generated @npm//@angular/bazel/bin:ngc-wrapped nodejs_binary (#29694) (2e66ddf)
  • bazel: docs formatting (#29817) (cc2e4b6)
  • bazel: remove karma-jasmine from ts_web_test_suite (#29695) (2bd9214)
  • bazel: support running ng-add on minimal applications (#29681) (9810c6c), closes #29680
  • common: add @Injectable() to common pipes (#29834) (387fbb8)
  • compiler-cli: ensure LogicalProjectPaths always start with a slash (#29627) (e02684e)
  • core: add missing migration to npm package (#29705) (96b76dc)
  • core: call ngOnDestroy for tree-shakeable providers (#28943) (30b0442), closes #28927
  • core: Deprecate TestBed.get(...):any (#29290) (609024f), closes #13785 #26491
  • core: resolve ts compile issues due to lenient tsconfig (#29843) (54058ba)
  • platform-browser: insert APP_ID in styles, contentAttr and hostAttr (#17745) (712d60e)
  • bazel: Update schematics to support routing (#29548) (401b8ee)
  • bazel: use //:tsconfig.json as the default for ng_module (#29670) (b14537a)
  • compiler-cli: ngcc - cope with processing entry-points multiple times (#29657) (6b39c9c)
  • core: static-query schematic should detect static queries in getters. (#29609) (33016b8)
  • common: escape query selector used when anchor scrolling (#29577) (7671c73), closes #28193
  • router: adjust setting navigationTransition when a new navigation cancels an existing one (#29636) (e884c0c), closes #29389 #29590
  • bazel: allow ng_module users to set createExternalSymbolFactoryReexports (#29459) (21be0fb)
  • bazel: workaround problem reading summary files from node_modules (#29459) (769d960)
  • compiler: inherit param types when class has a constructor which takes no declared parameters and delegates up (#29232) (0007564)
  • core: parse incorrect ML open tag as text (#29328) (dafbbf8), closes #29231
  • core: static-query schematic should detect queries in ngDoCheck and ngOnChanges (#29492) (09fab58)
  • router: support NgFactory promise in loadChildren typings (#29392) (26a8c59)
  • bazel: correct regexp test for self-references in metadata (#29346) (9d090cb)
  • bazel: don't produce self-references in metadata (#29317) (3facdeb), closes #29315
  • bazel: fix strict null checks compile error in packages/bazel/src/schematics/ng-add/index.ts (#29282) (9a7f560)
  • bazel: Remove @angular/upgrade from dev dependencies (#29319) (1db8bf3)
  • bazel: Support new e2e project layout (#29318) (8ef690c)
  • bazel: turn off pure call tree shaking for ng_package (#29210) (4990b93)
  • compiler-cli: incorrect metadata bundle for multiple unnamed re-exports (#29360) (105cfaf)
  • core: don't wrap <tr> and <col> elements into a required parent (#29219) (f2dc32e)
  • core: parse incorrect ML open tag as text (#29328) (4605df8), closes #29231
  • bazel: add missing binary path for api-extractor (#29202) (df354d1)
  • bazel: ng build should produce prod bundle (#29136) (14ce8a9)
  • compiler: ensure template is updated if an output is transformed (#29041) (c7e4931)

DEPRECATIONS

  • core: deprecate integration with the Web Tracing Framework (WTF) (#30642) (b408445)
  • platform-webworker: deprecate platform-webworker (#30642) (361f181)

BREAKING CHANGES

  • bazel: @bazel/typescript is now a peerDependency of @angular/bazel so users of @angular/bazel must add @bazel/typescript to their package.json

  • bazel: ng_module now depends on a minimum of build_bazel_rules_nodejs 0.27.12

  • core: In Angular version 8, it's required that all @ViewChild and @ContentChild queries have a 'static' flag specifying whether the query is 'static' or 'dynamic'. The compiler previously sorted queries automatically, but in 8.0 developers are required to explicitly specify which behavior is wanted. This is a temporary requirement as part of a migration; see static query migration guide for more details.

    @ViewChildren and @ContentChildren queries are always dynamic, and so are unaffected.

  • TestBed.get() has two signatures, one which is typed and another which accepts and returns any. The signature for any is deprecated; all usage of TestBed.get() should go through the typed API. This mainly affects string tokens (which aren't supported) and abstract class tokens.

    Before:

    TestBed.configureTestingModule({
      providers: [{provide: "stringToken", useValue: new Service()}],
    });
    
    let service = TestBed.get("stringToken"); // type any

    After:

    const SERVICE_TOKEN = new InjectionToken<Service>("SERVICE_TOKEN");
    
    TestBed.configureTestingModule({
      providers: [{provide: SERVICE_TOKEN, useValue: new Service()}],
    });
    
    let service = TestBed.get(SERVICE_TOKEN); // type Service
  • core: Certain elements (like <tr> or <col>) require parent elements to be of a certain type by the HTML specification (ex. <tr> can only be inside <tbody> / <thead>). Before this change Angular template parser was auto-correcting "invalid" HTML using the following rules:

    • <tr> would be wrapped in <tbody> if not inside <tbody>, <tfoot> or <thead>;
    • <col> would be wrapped in <colgroup> if not inside <colgroup>.

    This mechanism of automatic wrapping / auto-correcting was problematic for several reasons:

    • it is non-obvious and arbitrary (ex. there are more HTML elements that have rules for parent type);
    • it is incorrect for cases where <tr> / <col> are at the root of a component's content, ex.:
    <projecting-tr-inside-tbody>
      <tr>...</tr>
    </projecting-tr-inside-tbody>

    In the above example the <projecting-tr-inside-tbody> component could be "surprised" to see additional <tbody> elements inserted by Angular HTML parser.

  • http: The deprecated @angular/http package has been removed, the @angular/common/http package should be used instead. For details on how to migrate, please refer to the deprecations guide.

  • TypeScript 3.1 and 3.2 are no longer supported.

    Please update your TypeScript version to 3.4, as version 3.3 is also not supported.

8.0.0-rc.5 (2019-05-24)

Bug Fixes

  • bazel: allow ts_library interop with list-typed inputs (#30600) (bf38df4)
  • bazel: Disable sandbox on Mac OS (#30460) (3de26a8)
  • bazel: ng test should run specific ts_web_test_suite (#30526) (8bc4da8)
  • core: remove deprecated TestBed.deprecatedOverrideProvider API (#30576) (5a46f94)
  • core: require 'static' flag on queries in typings (#30641) (c8af830)
  • core: temporarily remove @deprecated jsdoc tag for a TextBed.get overload (#30514) (561e01d), closes #29290 #29905
  • router: type cast correctly for IE 11 bug breaking URL Unification when comparing objects (#30464) (32daa93)

Features

  • common: add ability to watch for AngularJS URL updates through onUrlChange hook (#30466) (8022d36)
  • common: stricter types for SlicePipe (#30156) (722b2fa)

DEPRECATIONS

  • core: deprecate integration with the Web Tracing Framework (WTF) (#30642) (b408445)
  • platform-webworker: deprecate platform-webworker (#30642) (361f181)

BREAKING CHANGES

  • core: In Angular version 8, it's required that all @ViewChild and @ContentChild queries have a 'static' flag specifying whether the query is 'static' or 'dynamic'. The compiler previously sorted queries automatically, but in 8.0 developers are required to explicitly specify which behavior is wanted. This is a temporary requirement as part of a migration; see https://v8.angular.io/guide/static-query-migration for more details.

@ViewChildren and @ContentChildren queries are always dynamic, and so are unaffected.

8.0.0-rc.4 (2019-05-15)

Bug Fixes

  • bazel: Directly spawn native Bazel binary (#30306) (d1fcc2b)
  • bazel: pass correct arguments to http_server in Windows (#30346) (71eba45), closes #29785
  • bazel: Use existing npm/yarn lock files (#30438) (3136d9f)
  • compiler: ensure strict mode when evaluating in JIT (#30122) (192f108)
  • core: migrations not always migrating all files (#30269) (e8ceae1)
  • core: static-query migration errors not printed properly (#30458) (fde3f46)
  • core: static-query migration fails with default parameter values (#30269) (c3246e6)
  • core: static-query migration should gracefully exit if AOT compiler throws (#30269) (a71d8a8)
  • core: static-query migration should handle queries on accessors (#30327) (dd299f9)
  • core: static-query migration should not fallback to test strategy (#30458) (0fa48e8)
  • core: static-query migration should not prompt if no queries are used (#30254) (12fb639)
  • core: static-query usage migration strategy should detect ambiguous query usage (#30215) (e295c6a)
  • router: ensure navigations start with the current URL value incase redirect is skipped (#30344) (9b88920), closes #30340 #30160
  • router: IE 11 bug can break URL unification when comparing objects (#30393) (c383491)

Features

  • bazel: use rbe_autoconfig() and new container. (#29336) (e562acc)

8.0.0-rc.3 (2019-05-07)

Bug Fixes

  • bazel: Bump ibazel to 0.10.1 for windows fixes (#30196) (9f68c35)
  • compiler-cli: log ngcc skipping messages as debug instead of info (#30232) (548b003)
  • core: fix interpolate identifier in AOT (#30243) (3fe3a84)
  • router: ensure history.state is set in eager update mode (#30154) (9720227)
  • router: fix a problem with router not responding to back button (#30160) (132f01c)

7.2.15 (2019-05-07)

Bug Fixes

8.0.0-rc.2 (2019-04-29)

Bug Fixes

  • language-service: Remove tsserverlibrary from rollup globals (#30123) (b706800)
  • disable injectable-pipe migration (#30180) (4b2fcfd)

8.0.0-rc.1 (2019-04-26)

Bug Fixes

8.0.0-rc.0 (2019-04-25)

Bug Fixes

Features

  • common: add @angular/common/upgrade package for $location-related APIs (#30055) (152d99e)
  • common: add ability to retrieve the state from Location service (#30055) (b44b143)
  • common: add ability to track all location changes (#30055) (3a9cf3f)
  • common: add APIs to read component pieces of URL (#30055) (b635fe8)
  • common: add MockPlatformLocation to enable more robust testing of Location services (#30055) (d0672c2)
  • common: add UrlCodec type for use with upgrade applications (#30055) (ec455e1)
  • common: provide replacement for AngularJS $location service (#30055) (4277600)
  • remove deprecated DOCUMENT token from platform-browser (#28117) (3a9d247)
  • compiler: support skipping leading trivia in template source-maps (#30095) (304a12f)
  • core: add missing ARIA attributes to html sanitizer (#29685) (909557d), closes #26815
  • router: deprecate loadChildren:string (#30073) (c61df39)
  • service-worker: allow configuring when the SW is registered (#21842) (4cfba58), closes #20970
  • service-worker: expose SwRegistrationOptions token to allow runtime config (#21842) (39c0152)
  • service-worker: support bypassing SW with specific header/query param (#30010) (6200732), closes #21191

BREAKING CHANGES

  • bazel: ng_module now depends on a minimum of build_bazel_rules_nodejs 0.27.12

8.0.0-beta.14 (2019-04-23)

Bug Fixes

Features

  • compiler-cli: export tooling definitions (#29929) (e1f51ea)
  • compiler-cli: lower some exported expressions (#30038) (8e73f9b)
  • core: add schematics to move deprecated DOCUMENT import (#29950) (645e305)

8.0.0-beta.13 (2019-04-16)

Bug Fixes

8.0.0-beta.12 (2019-04-13)

Bug Fixes

  • bazel: add configuration_env_vars = ["compile"] to generated @npm//@angular/bazel/bin:ngc-wrapped nodejs_binary (#29694) (2e66ddf)
  • bazel: docs formatting (#29817) (cc2e4b6)
  • bazel: remove karma-jasmine from ts_web_test_suite (#29695) (2bd9214)
  • bazel: support running ng-add on minimal applications (#29681) (9810c6c), closes #29680
  • common: add @Injectable() to common pipes (#29834) (387fbb8)
  • compiler-cli: ensure LogicalProjectPaths always start with a slash (#29627) (e02684e)
  • core: add missing migration to npm package (#29705) (96b76dc)
  • core: call ngOnDestroy for tree-shakeable providers (#28943) (30b0442), closes #28927
  • core: Deprecate TestBed.get(...):any (#29290) (609024f), closes #13785 #26491
  • core: resolve ts compile issues due to lenient tsconfig (#29843) (54058ba)
  • platform-browser: insert APP_ID in styles, contentAttr and hostAttr (#17745) (712d60e)

Features

  • bazel: update the build to use the new architect api (#29720) (902a53a)

DEPRECATIONS

  • TestBed.get() has two signatures, one which is typed and another which accepts and returns any. The signature for any is deprecated; all usage of TestBed.get() should go through the typed API. This mainly affects string tokens (which aren't supported) and abstract class tokens.

Before:

TestBed.configureTestingModule({
  providers: [{provide: "stringToken", useValue: new Service()}],
});

let service = TestBed.get("stringToken"); // type any

After:

const SERVICE_TOKEN = new InjectionToken<Service>("SERVICE_TOKEN");

TestBed.configureTestingModule({
  providers: [{provide: SERVICE_TOKEN, useValue: new Service()}],
});

let service = TestBed.get(SERVICE_TOKEN); // type Service

7.2.13 (2019-04-12)

Bug Fixes

  • bazel: use //:tsconfig.json as the default for ng_module (#29670) (#29711) (9e33dc3)
  • platform-browser: insert APP_ID in styles, contentAttr and hostAttr (#17745) (ca14509)

8.0.0-beta.11 (2019-04-03)

Bug Fixes

  • bazel: Update schematics to support routing (#29548) (401b8ee)
  • bazel: use //:tsconfig.json as the default for ng_module (#29670) (b14537a)
  • compiler-cli: ngcc - cope with processing entry-points multiple times (#29657) (6b39c9c)
  • core: static-query schematic should detect static queries in getters. (#29609) (33016b8)

build

Features

BREAKING CHANGES

  • bazel: @bazel/typescript is now a peerDependency of @angular/bazel so user's of @angular/bazel must add @bazel/typescript to their package.json

7.2.12 (2019-04-03)

Bug Fixes

  • common: escape query selector used when anchor scrolling (#29577) (7671c73), closes #28193
  • router: adjust setting navigationTransition when a new navigation cancels an existing one (#29636) (e884c0c), closes #29389 #29590

8.0.0-beta.10 (2019-03-26)

Bug Fixes

  • bazel: allow ng_module users to set createExternalSymbolFactoryReexports (#29459) (21be0fb)
  • bazel: workaround problem reading summary files from node_modules (#29459) (769d960)
  • compiler: inherit param types when class has a constructor which takes no declared parameters and delegates up (#29232) (0007564)
  • core: parse incorrect ML open tag as text (#29328) (dafbbf8), closes #29231
  • core: static-query schematic should detect queries in "ngDoCheck" and "ngOnChanges" (#29492) (09fab58)
  • router: support NgFactory promise in loadChildren typings (#29392) (26a8c59)

Features

  • bazel: Upgrade rules_nodejs and rules_sass (#29388) (d6d081e)
  • service-worker: support multiple apps on different subpaths of a domain (#27080) (e721c08), closes #21388

7.2.11 (2019-03-26)

This release contains various API docs improvements.

8.0.0-beta.9 (2019-03-20)

Bug Fixes

Features

  • add support for TypeScript 3.3 (and drop older versions) (#29004) (75748d6)

BREAKING CHANGES

  • core: Certain elements (like <tr> or <col>) require parent elements to be of a certain type by the HTML specification (ex. <tr> can only be inside <tbody> / <thead>). Before this change Angular template parser was auto-correcting "invalid" HTML using the following rules:
  • <tr> would be wrapped in <tbody> if not inside <tbody>, <tfoot> or <thead>;
  • <col> would be wrapped in <colgroup> if not inside <colgroup>.

This mechanism of automatic wrapping / auto-correcting was problematic for several reasons:

  • it is non-obvious and arbitrary (ex. there are more HTML elements that have rules for parent type);
  • it is incorrect for cases where <tr> / <col> are at the root of a component's content, ex.:
<projecting-tr-inside-tbody>
  <tr>...</tr>
</projecting-tr-inside-tbody>

In the above example the <projecting-tr-inside-tbody> component could be "surprised" to see additional <tbody> elements inserted by Angular HTML parser.

  • TypeScript 3.1 and 3.2 are no longer supported.

Please update your TypeScript version to 3.3

7.2.10 (2019-03-20)

Bug Fixes

8.0.0-beta.8 (2019-03-12)

Bug Fixes

  • bazel: add missing binary path for api-extractor (#29202) (df354d1)
  • bazel: ng build should produce prod bundle (#29136) (14ce8a9)
  • compiler: ensure template is updated if an output is transformed (#29041) (c7e4931)

Features

7.2.9 (2019-03-12)

This release contains various API docs improvements.

8.0.0-beta.7 (2019-03-06)

Bug Fixes

Features

  • core: update schematic to migrate to explicit query timing (#28983) (6215799)
  • service-worker: add JSON schema for service worker config (#27859) (3bee0f6), closes #19847

7.2.8 (2019-03-06)

Bug Fixes

8.0.0-beta.6 (2019-02-27)

Bug Fixes

Features

  • bazel: add ts_config extending support for ng_module (#21883) (edb6c2d)

7.2.7 (2019-02-27)

Bug Fixes

8.0.0-beta.5 (2019-02-20)

Bug Fixes

Features

7.2.6 (2019-02-20)

Bug Fixes

8.0.0-beta.4 (2019-02-15)

Bug Fixes

  • bazel: Install angular repo before yarn_install (#28670) (49fb8c3)
  • bazel: Turn on strict action env (#28675) (2ea030c)
  • compiler: ensure that event handlers have the correct source spans (#28055) (cffd862)
  • compiler: fix two existing expression transformer issues (#28523) (09af7ea)
  • compiler: markup lexer should not capture quotes in attribute value (#28055) (c0dac18)
  • compiler: support sourceMappingURL comments that have trailing lines (#28055) (0d6fdec)
  • compiler-cli: don't throw when listing lazy routes for an entry route (#28372) (2caa419)
  • core: improve global variable detection (#28679) (77eee42), closes #16545
  • core: use the correct generated URL for JIT compiled components (#28055) (4f46bfb)
  • core: use the correct template URL in render3 JIT compilation (#28055) (a5ea55a)
  • forms: mark form as pristine before emitting value and status change events (#28395) (1df3aef), closes #28130
  • router: redirect to root url when returned as UrlTree from guard (#28271) (50732e1), closes #27845
  • router: set href when routerLink is used on an 'area' element (#28441) (ed0cf7e), closes #28401

Features

7.2.5

(2019-02-15)

Bug Fixes

  • compiler-cli: diagnostics should respect "newLine" compiler option (#28550) (ce750e6)
  • router: redirect to root url when returned as UrlTree from guard (#28271) (1e58a21), closes #27845
  • router: set href when routerLink is used on an 'area' element (#28441) (d491a20), closes #28401

8.0.0-beta.3 (2019-02-06)

Bug Fixes

  • bazel: Bazel builder resolves with require.resolve() (#28478) (36902e2)
  • bazel: fix integration test for bazel-schematics (#28460) (b1e099b)
  • compiler-cli: base synthetic filepaths on input filepath (#28453) (7219639)
  • compiler-cli: diagnostics should respect "newLine" compiler option (#28352) (4aa189d)
  • core: remove createInjector() from public API (#28509) (f2621db)

Performance Improvements

7.2.4 (2019-02-06)

Bug Fixes

  • bazel: Bazel builder resolves with require.resolve() (#28478) (d85d396)
  • bazel: fix integration test for bazel-schematics (#28460) (449da8c)

Performance Improvements

8.0.0-beta.2 (2019-01-30)

Bug Fixes

  • bazel: also pass afterDeclarations transformers to emitWithTsickle (#28342) (70e426b)
  • forms: don't override form group's dirty state when disabling controls (#24591) (ef67282)

Features

Performance Improvements

  • core: be more consistent about typeof checks (#28400) (9af18c2)

7.2.3 (2019-01-30)

Bug Fixes

  • bazel: add @npm//tslib dep to e2e ts_library target in bazel-workspace schematic (#28358) (8cee56e)
  • bazel: Bazel-workspace schematics should run in ScopedTree (#28349) (260ac20)
  • bazel: Builder should invoke local bazel/iblaze (#28303) (12b8a6e)
  • bazel: ng-new should run yarn install (#28381) (a9d46e4)

Performance Improvements

8.0.0-beta.1 (2019-01-22)

Bug Fixes

  • bazel: increase node memory limit for ng_module rule to prevent OOM for big modules (#28237) (73616ab)
  • router: skipLocationChange with named outlets (#28300) (50df897), closes #27680 #28200

Features

Reverts

7.2.2 (2019-01-22)

Bug Fixes

Features

  • bazel: Add support for SASS (#28167) (a4d9192)
  • compiler-cli: resolve generated Sass/Less files to .css inputs (#28166) (4c00059)

8.0.0-beta.0 (2019-01-16)

Bug Fixes

  • bazel: Add @bazel/bazel to dev deps (#28032) (5a0deb8)
  • bazel: Add /bazel-out to .gitignore (#27874) (b05baa5)
  • bazel: Add ibazel to deps of Bazel project (#28090) (605f450)
  • bazel: Bazel schematics should add router package (#28141) (06e5bf1)
  • bazel: flat module misses AMD module name on windows (#27839) (935ce63)
  • bazel: incorrectly always uses ngc-wrapped from "npm" workspace (#28137) (d12db4e)
  • bazel: ng_package creates invalid typings reexport on windows (#27829) (4caf654)
  • bazel: packager not properly removing amd directives on windows (#27829) (8473d68)
  • bazel: protractor rule does not run spec files with underscore (#28022) (65e72e9)
  • bazel: protractor utils cannot start server on windows (#27915) (9de9c8a)
  • bazel: replay compilation uses wrong compiler for building esm5 (#28053) (cd04513)
  • bazel: ts_web_test_suite now properly includes init_browser_spec.js (#27965) (ce51dfb)
  • service-worker: navigation urls backwards compatibility (#27244) (d49d1e7)

Features

  • forms: export NumberValueAccessor & RangeValueAccessor directives (#27743) (ac15717)

Performance Improvements

7.2.1 (2019-01-16)

Bug Fixes

  • bazel: Add @bazel/bazel to dev deps (#28032) (21093b9)
  • bazel: Add /bazel-out to .gitignore (#27874) (e4fc8ba)
  • bazel: Add ibazel to deps of Bazel project (#28090) (28d34b6)
  • bazel: Bazel schematics should add router package (#28141) (02a852a)
  • bazel: flat module misses AMD module name on windows (#27839) (c3d8e28)
  • bazel: incorrectly always uses ngc-wrapped from "npm" workspace (#28137) (ca3965a)
  • bazel: ng_package creates invalid typings reexport on windows (#27829) (6b394f6)
  • bazel: packager not properly removing amd directives on windows (#27829) (fad4145)
  • bazel: protractor rule does not run spec files with underscore (#28022) (f05c5f8)
  • bazel: protractor utils cannot start server on windows (#27915) (0be8487)
  • bazel: replay compilation uses wrong compiler for building esm5 (#28053) (fbbdaaa)
  • router: ensure URL is updated after second redirect with UrlUpdateStrategy="eager" (#27680) (6ae7aee), closes #27116
  • service-worker: navigation urls backwards compatibility (#27244) (585e871)

Performance Improvements

7.2.0 (2019-01-07)

7.2.0 release also contains all the fixes released in 7.1.4.

Features

Bug Fixes

7.1.4 (2018-12-18)

Bug Fixes

7.1.3 (2018-12-11)

Bug Fixes

  • bazel: tsickle dependency not working with typescript 3.1.x (#27402) (a9f39a4)

7.1.2 (2018-12-06)

Bug Fixes

7.1.1 (2018-11-28)

Bug Fixes

7.1.0 (2018-11-21)

Bug Fixes

  • core: allow null value for renderer setElement(…) (#17065) (ff15043), closes #13686
  • router: fix regression where navigateByUrl promise didn't resolve on CanLoad failure (#26455) (1c9b065), closes #26284
  • service-worker: clean up caches from old SW versions (#26319) (2326b9c)
  • upgrade: properly destroy upgraded component elements and descendants (#26209) (071934e), closes #26208
  • compiler: generate inputs with aliases properly (#26774) (19fcfc3)
  • compiler: generate relative paths only in summary file errors (#26759) (56f44be)
  • core: ignore comment nodes under unsafe elements (#25879) (d5cbcef)
  • core: Remove static dependency from @angular/core to @angular/compiler (#26734) (d042c4a)
  • core: support computed base class in metadata inheritance (#24014) (95743e3)
  • bazel: unknown replay compiler error in windows (#26711) (aed95fd)
  • core: ensure that ɵdefineNgModule is available in flat-file formats (#26403) (a64859b)
  • router: remove type bludgeoning of context and outlet when running CanDeactivate (#26496) (496372d), closes #18253
  • service-worker: add typing to public api guard and fix lint errors (#25860) (1061875)
  • upgrade: improve downgrading-related error messages (#26217) (7dbc103)
  • upgrade: make typings compatible with older AngularJS typings (#26880) (64647af), closes #26420
  • compiler-cli: add missing tslib dependency (#27063) (c31e78f)
  • compiler-cli: only pass canonical genfile paths to compiler host (#27062) (0ada23a)
  • router: add relativeLinkResolution to recognize operator (#26990) (a752971), closes #26983

Features

  • bazel: Bazel workspace schematics (#26971) (b07bd30)
  • router: add prioritizedGuardValue operator optimization and allowing UrlTree return from guard (#26478) (fdfedce)
  • compiler: ability to mark an InvokeFunctionExpr as pure (#26860) (4dfa71f)
  • forms: add updateOn option to FormBuilder (#24599) (e9e804f)
  • router: allow guards to return UrlTree as well as boolean (#26521) (081f95c)
  • router: allow redirect from guards by returning UrlTree (#26521) (152ca66)
  • router: guard returning UrlTree cancels current navigation and redirects (#26521) (4e9f2e5), closes #24618
  • service-worker: add typing for messagesClicked in SwPush service (#25860) (c78c221)
  • service-worker: close notifications and focus window on click (#25860) (f5d5a3d)
  • service-worker: handle 'notificationclick' events (#25860) (cf6ea28), closes #20956 #22311
  • upgrade: support downgrading multiple modules (#26217) (93837e9), closes #26062
  • router: add pathParamsChange mode for runGuardsAndResolvers (#26861) (bf6ac6c), closes #18253

7.1.0-rc.0 (2018-11-14)

Bug Fixes

  • compiler-cli: add missing tslib dependency (#27063) (c31e78f)
  • compiler-cli: only pass canonical genfile paths to compiler host (#27062) (0ada23a)
  • router: add relativeLinkResolution to recognize operator (#26990) (a752971), closes #26983

Features

  • router: add pathParamsChange mode for runGuardsAndResolvers (#26861) (bf6ac6c), closes #18253

7.0.4 (2018-11-14)

Bug Fixes

  • compiler-cli: add missing tslib dependency (#27063) (4348c47)
  • compiler-cli: only pass canonical genfile paths to compiler host (#27062) (188e9ce)
  • router: add relativeLinkResolution to recognize operator (#26990) (d304427), closes #26983

7.1.0-beta.2 (2018-11-07)

Bug Fixes

  • bazel: unknown replay compiler error in windows (#26711) (aed95fd)
  • core: ensure that ɵdefineNgModule is available in flat-file formats (#26403) (a64859b)
  • router: remove type bludgeoning of context and outlet when running CanDeactivate (#26496) (496372d), closes #18253
  • service-worker: add typing to public api guard and fix lint errors (#25860) (1061875)
  • upgrade: improve downgrading-related error messages (#26217) (7dbc103)
  • upgrade: make typings compatible with older AngularJS typings (#26880) (64647af), closes #26420

Features

  • compiler: ability to mark an InvokeFunctionExpr as pure (#26860) (4dfa71f)
  • forms: add updateOn option to FormBuilder (#24599) (e9e804f)
  • router: allow guards to return UrlTree as well as boolean (#26521) (081f95c)
  • router: allow redirect from guards by returning UrlTree (#26521) (152ca66)
  • router: guard returning UrlTree cancels current navigation and redirects (#26521) (4e9f2e5), closes #24618
  • service-worker: add typing for messagesClicked in SwPush service (#25860) (c78c221)
  • service-worker: close notifications and focus window on click (#25860) (f5d5a3d)
  • service-worker: handle 'notificationclick' events (#25860) (cf6ea28), closes #20956 #22311
  • upgrade: support downgrading multiple modules (#26217) (93837e9), closes #26062

7.0.3 (2018-11-07)

Bug Fixes

  • bazel: unknown replay compiler error in windows (#26711) (4d532df)
  • router: remove type bludgeoning of context and outlet when running CanDeactivate (#26496) (dc05385), closes #18253
  • upgrade: make typings compatible with older AngularJS typings (#26880) (315d95c), closes #26420

7.1.0-beta.1 (2018-10-31)

Bug Fixes

  • compiler: generate inputs with aliases properly (#26774) (19fcfc3)
  • compiler: generate relative paths only in summary file errors (#26759) (56f44be)
  • core: ignore comment nodes under unsafe elements (#25879) (d5cbcef)
  • core: Remove static dependency from @angular/core to @angular/compiler (#26734) (d042c4a)
  • core: support computed base class in metadata inheritance (#24014) (95743e3)

7.0.2 (2018-10-31)

Bug Fixes

  • compiler: generate relative paths only in summary file errors (#26759) (c01f340)
  • core: Remove static dependency from @angular/core to @angular/compiler (#26734) (#26879) (257ac83)
  • core: support computed base class in metadata inheritance (#24014) (b3c6409)

7.1.0-beta.0 (2018-10-24)

Bug Fixes

  • core: allow null value for renderer setElement(…) (#17065) (ff15043), closes #13686
  • router: fix regression where navigateByUrl promise didn't resolve on CanLoad failure (#26455) (1c9b065), closes #26284
  • service-worker: clean up caches from old SW versions (#26319) (2326b9c)
  • upgrade: properly destroy upgraded component elements and descendants (#26209) (071934e), closes #26208

Features

  • router: add prioritizedGuardValue operator optimization and allowing UrlTree return from guard (#26478) (fdfedce)

7.0.1 (2018-10-24)

7.0.0 (2018-10-18)

Release Highlights & Update instructions

To learn about the release highlights and our new CLI-powered update workflow for your projects please check out the v7 release announcement.

Dependency updates

  • @angular/core now depends on
    • TypeScript 3.1
    • RxJS 6.3
  • @angular/platform-server now depends on Domino 2.1

Features

Bug Fixes

6.1.10 (2018-10-10)

Bug Fixes

  • platform-browser: fix #22155, destroy hammer manager when HammerInstance.off() is run (#22156) (3b4d9dc)
  • upgrade: properly destroy upgraded component elements and descendants (#26209) (623adbb), closes #26208

6.1.9 (2018-09-26)

6.1.7 (2018-09-06)

Bug Fixes

6.1.6 (2018-08-29)

Bug Fixes

  • bazel: Cache fileNameToModuleName lookups (#25731) (3e690e0)
  • bazel: only lookup amd module-name tags in .d.ts files (#25710) (7aff364)

Note: the 6.1.5 release on npm accidentally glitched-out midway, so we cut 6.1.6 instead. sorry! :-)

6.1.4 (2018-08-22)

Bug Fixes

6.1.3 (2018-08-15)

Bug Fixes

  • service-worker: Cache-Control: no-cache on assets breaks service worker (#25408) (1319ff4), closes #25442

6.1.2 (2018-08-08)

Bug Fixes

  • router: take base uri into account in setUpLocationSync() (#20244) (ae9b4e6), closes #20061
  • add mappings for ngfactory & ngsummary files to their module names in aot summary resolver (#25335) (054fbbe)

6.1.1 (2018-08-02)

  • compiler-cli: correct tsickle dependency version to fix typescript 2.9 compatibility (fec29fa)

6.1.0 (2018-07-25)

Bug Fixes

  • animations: always render end-state styles for orphaned DOM nodes (#24236) (dc4a3d0)
  • animations: set animations styles properly on platform-server (#24624) (0b356d4)
  • animations: do not throw errors when a destroyed component is animated (#23836) (d2a8687)
  • animations: Fix browser detection logic (#24188) (b492b9e)
  • animations: properly clean up queried element styles in safari/edge (#23633) (da9ff25)
  • animations: retain state styling for nodes that are moved around (#23534) (65211f4)
  • animations: retain trigger-state for nodes that are moved around (#24238) (8db928d)
  • bazel: Allow ng_module to depend on targets w no deps (#24446) (282d351)
  • benchpress: Fix promise chain in chrome_driver_extension. (#23458) (d4b6c41)
  • common: do not round factional seconds (#24831) (a527c69), closes #24384
  • common: format fractional seconds (#24844) (0b4d85e), closes #24831
  • common: properly update collection reference in NgForOf (#24684) (ff84c5c), closes #24155
  • common: use correct currency format for locale de-AT (#24658) (dcabb05), closes #24609
  • common: use correct ICU plural for locale mk (#24659) (64a8584)
  • compiler: fix a few non-tree-shakeable code patterns (#24677) (50d4a4f)
  • compiler: i18n_extractor now outputs the correct source file name (#24885) (c8ad965), closes #24884
  • compiler: support . in import statements. (#20634) (d8f7b29), closes #20363
  • compiler: avoid a crash in ngc-wrapped. (#23468) (e1c4930)
  • compiler: generate constant array for i18n attributes (#23837) (cfde36d)
  • compiler: generate core-compliant hostBindings property (#24087) (01b5acd), closes #24013
  • compiler: handle undefined annotation metadata (#23349) (ca776c5)
  • compiler-cli: Use typescript to resolve modules for metadata (#22856) (0d5f2d3)
  • compiler-cli: don't rely on incompatible TS method (#23550) (b1f040f)
  • core: stop reusing provider definitions across NgModuleRef instances (#25022) (6b859da), closes #25018
  • core: mark NgModule as not the root if APP_ROOT is set to false (#24814) (1089261)
  • core: use addCustomEqualityTester instead of overriding toEqual (#22983) (0922228), closes #22939
  • core: Injector correctly honors the @Self flag (#24520) (ccbda9d)
  • core: avoid eager providers re-initialization (#23559) (0c6dc45)
  • core: call ngOnDestroy on all services that have it (#23755) (fc03427), closes #22466 #22240 #14818
  • elements: always check to create strategy (#23825) (b1cda36)
  • elements: prevent closure renaming of platform properties (#23843) (d4b8b24)
  • forms: properly handle special properties in FormGroup.get (#22249) (9367e91), closes #17195
  • language-service: do not overwrite native Reflect (#24299) (6881404), closes #21420
  • platform-browser: add missing deps for HammerGesturesPlugin (#24682) (13d60ea)
  • platform-browser: mark Meta and Title services as tree shakable providers (#24815) (197387d)
  • platform-browser: workaround wrong import path generated by ngc for DOCUMENT (#24830) (7d27ecc)
  • platform-server: avoid clash between server and client style encapsulation attributes (#24158) (b96a3c8)
  • platform-server: avoid dependency cycle when using http interceptor (#24229) (60aa943), closes #23023
  • platform-server: don't reflect innerHTML property to attribute (#24213) (6a663a4), closes #19278
  • platform-server: provide Domino DOM types globally (#24116) (c73196e), closes #23280 #23133
  • router: Fix _lastPathIndex in deeply nested empty paths (#22394) (968f153)
  • router: add ability to recover from malformed url (#23283) (86d254d), closes #21468
  • router: fix lazy loading of aux routes (#23459) (5731d07), closes #10981
  • router: avoid freezing queryParams in-place (#22663) (89f64e5), closes #22617
  • router: cache route handle if found (#22475) (4cfa571), closes #22474
  • router: correct the segment parsing so it won't break on ampersand (#23684) (553a680)
  • service-worker: don't include sourceMappingURL in ngsw-worker (#24877) (8620373), closes #23596
  • service-worker: avoid network requests when looking up hashed resources in cache (#24127) (52d43a9)
  • service-worker: fix SwPush.unsubscribe() (#24162) (3ed2d75), closes #24095
  • service-worker: add badge to NOTIFICATION_OPTION_NAMES (#23241) (fb59b2d), closes #23196
  • service-worker: check platformBrowser before accessing navigator.serviceWorker (#21231) (0bdd30e)
  • service-worker: correctly handle requests with empty clientId (#23625) (e0ed59e), closes #23526
  • service-worker: deprecate versionedFiles in asset-group resources (#23584) (1d378e2)

Features

build

Angular Labs (experimental feature) breaking change

  • bazel: Use of @angular/bazel rules now requires calling ng_setup_workspace() in your WORKSPACE file.

For example:

local_repository(
    name = "angular",
    path = "node_modules/@angular/bazel",
)

load("@angular//:index.bzl", "ng_setup_workspace")

ng_setup_workspace()

6.0.9 (2018-07-11)

Bug Fixes

6.0.8 (2018-07-11)

Bug Fixes

Features

6.0.7 (2018-06-27)

Bug Fixes

  • animations: set animations styles properly on platform-server (#24624) (0b356d4)
  • common: use correct ICU plural for locale mk (#24659) (64a8584)

6.0.6 (2018-06-20)

Bug Fixes

6.0.5 (2018-06-13)

6.0.4 (2018-06-06)

Bug Fixes

  • animations: Fix browser detection logic (#24188) (c9eb491)
  • animations: retain trigger-state for nodes that are moved around (#24238) (19deca1)
  • forms: properly handle special properties in FormGroup.get (#22249) (dc3e8aa), closes #17195
  • platform-server: avoid clash between server and client style encapsulation attributes (#24158) (e9f2203)
  • platform-server: avoid dependency cycle when using http interceptor (#24229) (2991b1b), closes #23023
  • platform-server: don't reflect innerHTML property to attibute (#24213) (c17098d), closes #19278
  • platform-server: provide Domino DOM types globally (#24116) (906b3ec), closes #23280 #23133

6.0.3 (2018-05-22)

Bug Fixes

  • service-worker: check platformBrowser before accessing navigator.serviceWorker (#21231) (0ee5b7e)

6.0.2 (2018-05-15)

Bug Fixes

  • animations: do not throw errors when a destroyed component is animated (#23836) (752b83a)
  • service-worker: deprecate versionedFiles in asset-group resources (#23584) (c6b618d)

6.0.1 (2018-05-11)

Bug Fixes

6.0.0 (2018-05-03)

Release Highlights & Update instructions

Angular v6 is the first release of Angular that unifies the Framework, Material and CLI.

To learn about the release highlights and our new CLI-powered update workflow for your projects please check out the v6 release announcement.

Dependency updates

  • @angular/core now depends on
    • TypeScript 2.7
    • RxJS 6.0.0
    • tslib 1.9.0
  • @angular/platform-server now depends on Domino 2.0

Small Features

  • animations: only use the WA-polyfill alongside AnimationBuilder (#22143) (b2f366b), closes #17496
  • animations: expose element and params within transition matchers (#22693) (58b94e6)
  • common: better error message when non-template element used in NgIf (#22274) (67cf11d), closes #16410
  • common: export functions to format numbers, percents, currencies & dates (#22423) (4180912), closes #20536
  • compiler: lower @NgModule ids if needed (#23031) (bd024c0)
  • compiler: implement "enableIvy" compiler option (#21427) (64d16de)
  • compiler: mark @NgModules in provider lists for identification at runtime (#22005) (2d5e7d1)
  • compiler: add support for marker tags in xliff serializers (#21250) (f74130c), closes #21078
  • compiler: support for singleline, multiline & jsdoc comments (#22715) (3b167be)
  • compiler-cli: lower loadChildren fields to allow dynamic module paths (#23088) (550433a)
  • compiler-cli: check unvalidated combination of ngc and TypeScript (#22293) (3ceee99), closes #20669
  • compiler-cli: reflect static methods added to classes in metadata (#21926) (eb8ddd2)
  • compiler-cli: Check unvalidated combination of ngc and TypeScript (#22293) (3ceee99), closes #20669
  • compiler-cli: add resource inlining to ngc (#22615) (b5be18f)
  • compiler-cli: require node 8 as runtime engine (#22669) (c602563)
  • core: add binding name to content changed error (#20352) (d3bf54b)
  • core: optional generic type for ElementRef (#20765) (d3d9aac), closes #13139
  • core: set preserveWhitespaces to false by default (#22046) (f1a0632), closes #22027
  • core: support metadata reflection for native class types (#22356) (5c89d6b), closes #21731
  • core: change @Injectable() to support tree-shakeable tokens (#22005) (235a235)
  • core: support metadata reflection for native class types (#22356) (b7544cc), closes #21731
  • core: allow direct scoping of @Injectables to the root injector (#22185) (7ac34e4)
  • core: add task tracking to Testability (#16863) (37fedd0)
  • forms: handle string with and without line boundary on pattern validator (#19256) (54bf179)
  • forms: multiple validators for array method (#20766) (941e88f), closes #20665
  • forms: allow markAsPending to emit events (#20212) (e86b64b), closes #17958
  • platform-browser: add token marking which the type of animation module nearest in the injector tree (#23075) (b551f84)
  • platform-browser: do not throw error when Hammer.js not loaded (#22257) (991300b), closes #16992
  • platform-browser: fix #19604, can config hammerOptions (#21979) (1d571b2)
  • platform-server: bump Domino to v2.0 (#22411) (d3827a0)
  • router: add navigationSource and restoredState to NavigationStart event (#21728) (c40ae7f)
  • service-worker: add support for configuring navigations URLs (#23339) (08325aa), closes #20404
  • service-worker: add helper script which will uninstall SW (#21863) (b10540a)

Bug Fixes

  • animations: report correct totalTime value even during noOp animations (#22225) (e1bf067)
  • animations: avoid animation insertions during router back/refresh (#21977) (f88fba0), closes #19712
  • animations: treat numeric state name values as strings (#22923) (e5e1b0d)
  • animations: fix increment/decrement aliases example (#18323) (d2aa8ac)
  • common: NgClass should properly take className changes into account (#21937) (4a42669), closes #21932
  • common: fix the titlecase pipe (#22600) (7966744)
  • common: add locale currency values (#21783) (420cc7a), closes #20385
  • common: round currencies based on decimal digits in CurrencyPipe (#21783) (44154e7), closes #10189
  • common: weaken AsyncPipe transform signature (#22169) (be59c3a)
  • common: http testing library should not convert null to a string when flushing a mock request (#21417) (8b14488), closes #20744
  • common: correct mapping of Observable methods (#20518) (2639b4b), closes #20516
  • common: then and else template might be set to null (#22298) (8115edc)
  • common: A null value should remove the style on IE (#21679) (7d49443), closes #21064
  • common: fallback to last defined value for named date and time formats (#21299) (879756d), closes #21282
  • common: set correct timezone for ISO8601 dates in Safari (#21506) (05208b8), closes #21491
  • compiler: fix ICU select messages to use male/female/other (#21713) (cb5090c)
  • compiler: avoid a crash in ngc-wrapped. (#23468) (0bc8443)
  • compiler: handle undefined annotation metadata (#23349) (b9431e8)
  • compiler: don't typecheck all inputs (#22899) (838a610)
  • compiler: fix support for html-like text in translatable attributes (#23053) (28058b7)
  • compiler: take quoting into account when determining if object literals can be shared (#22942) (d98e9e7)
  • compiler: do not emit line/char in ngsummary files. (#22840) (5c387a7)
  • compiler: make unary plus operator consistent to JavaScript (#22154) (72f8abd), closes #22089
  • compiler: allow tree-shakeable injectables to depend on string tokens (#22376) (dd53447)
  • compiler: don't strip /*# sourceURL ... */ (#16088) (5f681f9)
  • compiler: cache external reference resolution (#21359) (e3e2fc0)
  • compiler: make .ngsummary.json files idempotent (#21448) (e64b1e9)
  • compiler-cli: shorten resolved module name in fileNameToModuleName to npm package name for typings (#23231) (6199ea5)
  • compiler-cli: strictMetadataEmit should not break on non-compliant libraries (#23275) (5814355), closes #22210
  • compiler-cli: flat module index metadata should be transformed (#23129) (f99cb5c)
  • compiler-cli: use numeric comparison for TypeScript version (#22705) (193737a), closes #22593
  • compiler-cli: disableTypeScriptVersionCheck should be applied even for older tsc versions (#22669) (3f70aba)
  • compiler-cli: emit correct css string escape sequences (#22776) (6e5e819)
  • compiler-cli: do not fold errors past calls in the collector (#21708) (dd86790)
  • compiler-cli: do not lower expressions in non-modules (#21649) (7f93aad)
  • core: fix #20582, don't need to wrap zone in location change listener (#20640) (f791e9f)
  • core: fix proper propagation of subscriptions in EventEmitter (#22016) (e81606c), closes #21999
  • core: fix chained http call (#20924) (7e3f9a4), closes #20921
  • core: should check Zone existence when scheduleMicroTask (#20656) (3a86940)
  • core: avoid eager providers re-initialization (#23559) (697b6c0)
  • core: add stacktrace in log when error during cleanup component in TestBed (#22162) (16d1700)
  • core: ensure initial value of QueryList length (#21980) (#21982) (e56de10), closes #21980
  • core: use appropriate inert document strategy for Firefox & Safari (#17019) (a751649)
  • core: properly handle function without prototype in reflector (#22284) (a7ebf5a), closes #19978
  • core: require factory to be provided for shakeable InjectionToken (#22207) (f755db7), closes #22205
  • core: remove core animation import symbols (#22692) (f5a98f4)
  • forms: improve error message for invalid value accessors (#22731) (23cc3ef)
  • forms: make Validators.email support optional controls (#20869) (140e7c0)
  • forms: prevent event emission on enable/disable when emitEvent is false (#12366) (#21018) (0bcfae7)
  • forms: set state before emitting a value from ngModelChange (#21514) (9744a1c), closes #21513
  • forms: publish missing types (#19941) (2707012)
  • forms: set state before emitting a value from ngModelChange (#21514) (3e6a86f), closes #21513
  • language-service: Clear caches when program changes (#21337) (43e1520), closes #19405
  • platform-browser: add @Injectable where it was missing (#22005) (0a1a397)
  • platform-browser: support 0/false/null values in transfer_state (#22179) (6435ecd)
  • platform-browser: do not throw error when Hammer.js not loaded (#22257) (991300b), closes #16992
  • platform-browser: fix #19604, can config hammerOptions (#21979) (1d571b2)
  • platform-server: require node v8+ (#23331) (bbfa1d3)
  • platform-server: generate correct stylings for camel case names (#22263) (40ba009), closes #19235
  • platform-server: add styles to elements correctly (#22527) (cd2ebd2)
  • router: cache route handle if found (#22475) (d8de648), closes #22474
  • router: don't use spread operator to workaround an issue in closure compiler (#22884) (e6c731f)
  • router: make locationSyncBootstrapListener public due to change in output after TS 2.7 update in #22669 (#22896) (623d769)
  • router: correct over-encoding of URL fragment (#22687) (0bf6fa5)
  • router: don't mutate route configs (#22358) (45eff4c), closes #22203
  • router: fix URL serialization so special characters are only encoded where needed (#22337) (094666d), closes #10280
  • router: don't use ParamsInheritanceStrategy in declarations (#21574) (925e654), closes #21456
  • service-worker: add badge to NOTIFICATION_OPTION_NAMES (#23241) (fb59b2d), closes #23196
  • service-worker: let * match 0 characters in globs (#23339) (6c2c958)
  • service-worker: do not enter degraded mode when offline (#22883) (9e9b8dd), closes #21636
  • service-worker: fix LruList bugs (#22769) (8c2a578), closes #22218 #22768
  • service-worker: ignore invalid only-if-cached requests (#22883) (d9dc46e), closes #22362
  • service-worker: properly handle invalid hashes in all scenarios (#21288) (3951098)
  • upgrade: correctly handle downgraded OnPush components (#22209) (ad9ce5c), closes #14286
  • upgrade: propagate return value of resumeBootstrap (#22754) (a2330ff), closes #22723
  • upgrade: two-way binding and listening for event (#22772) (2b3de63), closes #22734
  • upgrade: correctly destroy nested downgraded component (#22400) (8a85888), closes #22392
  • upgrade: correctly handle = bindings in @angular/upgrade (#22167) (f089bf5)
  • upgrade: fix empty transclusion content with AngularJS@>=1.5.8 (#22167) (13ab91e), closes #22175

Possible Breaking Changes

  • animations: When animation is triggered within a disabled zone, the associated event (which an instance of AnimationEvent) will no longer report the totalTime as 0 (it will emit the actual time of the animation).

    To detect if an animation event is reporting a disabled animation then the event.disabled property can be used instead.

  • compiler: The <template> tag was deprecated in Angular v4 to avoid collisions (i.e. when using Web Components).

    This change removes support for <template>. <ng-template> should be used instead.

    BEFORE:

    <!-- html template -->
    <template>some template content</template>
    
    # tsconfig.json
    {
      # ...
      "angularCompilerOptions": {
        # ...
        # This option is no more supported and will have no effect
        "enableLegacyTemplate": [true|false]
      }
    }
    

    AFTER:

    <!-- html template -->
    <ng-template>some template content</ng-template>
    
  • core: it is no longer possible to import animation-related functions from @angular/core. All animation symbols must now be imported from @angular/animations.

  • forms: - AbstractControl#statusChanges now emits an event of 'PENDING' when you call AbstractControl#markAsPending

    • Previously it did not emit an event when you called markAsPending
    • To migrate you would need to ensure that if you are filtering or checking events from statusChanges that you account for the new event when calling markAsPending
  • forms: ngModelChange is now emitted after the value/validity is updated on its control.

    Previously, ngModelChange was emitted before its underlying control was updated. This was fine if you passed through the value directly through the $event keyword, e.g.

    <input [(ngModel)]="name" (ngModelChange)="onChange($event)">
    
    onChange(value) {
       console.log(value);               // would log updated value
    }
    

    However, if you had a handler for the ngModelChange event that checked the value through the control, you would get the old value rather than the updated value. e.g:

    <input #modelDir="ngModel" [(ngModel)]="name" (ngModelChange)="onChange(modelDir)">
    
    onChange(ngModel: NgModel) {
      console.log(ngModel.value);        // would log old value, not updated value
    }
    

    Now the value and validity will be updated before the ngModelChange event is emitted, so the same setup will log the updated value.

    onChange(ngModel: NgModel) {
       console.log(ngModel.value);       // will log updated value
    }
    

    We think this order will be less confusing when the control is checked directly. You will only need to update your app if it has relied on this bug to keep track of the old control value. If that is the case, you should be able to track the old value directly by saving it on your component.

5.2.10 (2018-04-16)

Bug Fixes

4.4.7 (2018-04-16)

Bug Fixes

  • core: use appropriate inert document strategy for Firefox & Safari (#22077) (2c5cf19)

5.2.9 (2018-03-14)

Bug Fixes

  • platform-server: add styles to elements correctly (#22527) (fc6dfc2)
  • router: correct over-encoding of URL fragment (#22687) (86517f2)

5.2.8 (2018-03-07)

Bug Fixes

  • platform-server: generate correct stylings for camel case names (#22263) (de02a7a), closes #19235
  • router: don't mutate route configs (#22358) (8f0a064), closes #22203
  • router: fix URL serialization so special characters are only encoded where needed (#22337) (789a47e), closes #10280
  • upgrade: correctly destroy nested downgraded component (#22400) (4aef9de), closes #22392
  • upgrade: correctly handle = bindings in @angular/upgrade (#22167) (6638390)
  • upgrade: fix empty transclusion content with AngularJS@>=1.5.8 (#22167) (a9a0e27), closes #22175

5.2.7 (2018-02-28)

Bug Fixes

5.2.6 (2018-02-22)

Bug Fixes

  • common: correct mapping of Observable methods (#20518) (ce5e8fa), closes #20516
  • common: then and else template might be set to null (#22298) (af6a056)
  • compiler-cli: add missing entry point to package, update tsickle (#22295) (c5418c7)
  • core: properly handle function without prototype in reflector (#22284) (5ec38f2), closes #19978
  • core: support metadata reflection for native class types (#22356) (ee91de9), closes #21731

5.2.5 (2018-02-14)

Bug Fixes

5.2.4 (2018-02-07)

Bug Fixes

  • common: don't convert null to a string when flushing a mock request (#21417) (c4fb696), closes #20744
  • core: fix #20582, don't need to wrap zone in location change listener (#22007) (ce51ea9)
  • core: fix proper propagation of subscriptions in EventEmitter (#22016) (c6645e7), closes #21999
  • core: should check Zone existence when scheduleMicroTask (#20656) (aa9ba7f)

5.2.3 (2018-01-31)

Bug Fixes

5.2.2 (2018-01-25)

Bug Fixes

  • common: A null value should remove the style on IE (#21679) (c12ea3a), closes #21064
  • common: don't remove special characters when extracting CLDR data (#21626) (a62c186)
  • common: extract plural function from i18n locale data files for TS 2.6 (#21626) (71f9eaa), closes #21608
  • common: fallback to last defined value for named date and time formats (#21299) (982eb7b), closes #21282
  • compiler: add support for marker tags in xliff serializers (#21250) (02352bc), closes #21078
  • compiler: Don't strip /*# sourceURL ... */ (#16088) (de6c644)
  • compiler: fix ICU select messages to use male/female/other (#21713) (8e44577)
  • compiler-cli: do not fold errors past calls in the collector (#21708) (52970c0)
  • compiler-cli: do not lower expressions in non-modules (#21649) (ba4ea82)
  • router: don't use ParamsInheritanceStrategy in declarations (#21574) (8b3fbb5), closes #21456

5.2.1 (2018-01-17)

Bug Fixes

Features

  • core: add binding name to content changed error (#20352) (4556532)
  • forms: handle string with and without line boundary on pattern validator (#19256) (75f8522)

5.2.0 (2018-01-10)

Bug Fixes

  • bazel: Give correct module names for ES6 output (#21320) (9728dce), closes #21022
  • benchpress: forward compat with selenium_webdriver 3.6.0 (#21399) (6040ee3)
  • benchpress: work around missing events from Chrome 63 (#21396) (fa03ae1)
  • common: export currencies via getCurrencySymbol (#20983) (fecf768)

Note: Due to an animation fix back in 5.1.1 (c2b3792) which allows for nested :leave queries to work within animation sequences, all elements that are dynamically inserted (*ngIf, *ngFor, etc…) now contain the special CSS class: “ng-star-inserted”. This may cause failures within unit tests if there are any assertions that match against element.className directly. (An easy fix for this is to match using a regular expression instead of asserting the className string directly.)

5.2.0-rc.0 (2018-01-04)

Bug Fixes

5.1.3 (2018-01-03)

Bug Fixes

5.2.0-beta.1 (2017-12-20)

Bug Fixes

  • compiler: generate the correct imports for summary type-check (d91ff17)
  • forms: avoid producing an error with hostBindingTypeCheck (d213a20)

Features

  • compiler: allow ngIf to use the ngIf expression directly as a guard (82bcd83)
  • router: add "paramsInheritanceStrategy" router configuration option (5efea2f), closes #20572

5.1.2 (2017-12-20)

Bug Fixes

  • common: fix a Closure compilation issue. (267ebf3)
  • compiler: make tsx file aot compatible (756dd34), closes #20555
  • compiler: report an error for recursive module references (ced575f)
  • compiler-cli: do not emit invalid .metadata.json files (a1d4c2d)
  • compiler-cli: do not force type checking on .js files (3b63e16)
  • service-worker: check for updates on navigation (a33182c), closes #20877
  • upgrade: replaces get/setAngularLib with get/setAngularJSGlobal (66cc2fa)

5.2.0-beta.0 (2017-12-13)

Features

5.1.1 (2017-12-13)

Bug Fixes

5.1.0 (2017-12-06)

Bug Fixes

5.1.0-rc.1 (2017-12-01)

Bug Fixes

  • compiler-cli: propagate ts.SourceFile moduleName into metadata (f841fbe)
  • service-worker: allow disabling SW while still using services (65f4fad)
  • service-worker: don't crash if SW not supported (b9a91a5)
  • service-worker: send initialization signal from the application (3fbcde9)
  • service-worker: use relative path for ngsw.json (f582620)

5.0.5 (2017-12-01)

Bug Fixes

  • compiler-cli: propagate ts.SourceFile moduleName into metadata (a2ff4ab)
  • service-worker: allow disabling SW while still using services (f99335b)
  • service-worker: don't crash if SW not supported (ee37d4b)
  • service-worker: send initialization signal from the application (6bf07b4)
  • service-worker: use relative path for ngsw.json (56c98f7)

5.1.0-rc.0 (2017-12-01)

Bug Fixes

Features

  • common: add locale id parameter to registerLocaleData (#20623) (24bf3e2)
  • compiler-cli: improve error messages produced during structural errors (#20459) (8ecda94)

5.0.4 (2017-12-01)

Bug Fixes

5.1.0-beta.2 (2017-11-22)

Bug Fixes

  • animations: always fire inner trigger callbacks even if blocked by parent animations (#19753) (0e012c9), closes #19100
  • animations: always fire start and done callbacks in order for noop animations (#20570) (ffb6dbe)
  • animations: validate against trigger() names that use @ symbols (#20326) (1861e41)
  • benchpress: Allow ignoring navigationStart events in perflog metric. (#20312) (717ac5a)
  • common: return ISubscription from Location.subscribe() (#20429) (437a044), closes #20406
  • compiler: emit correct type-check-blocks with TemplateRef's (#20463) (68b53c0)
  • compiler: support event bindings in fullTemplateTypeCheck (#20490) (4ed0439)
  • core: fix #20532, should be able to cancel listener from mixed zone (#20538) (a740e4f)
  • core: should support event.stopImmediatePropagation (#20469) (997336b)
  • forms: updateOn should check if change occurred (#20358) (69c53c3), closes #20259

Features

5.0.3 (2017-11-22)

Bug Fixes

  • animations: always fire inner trigger callbacks even if blocked by parent animations (#19753) (814f062), closes #19100
  • animations: validate against trigger() names that use @ symbols (#20326) (15795d0)
  • benchpress: Allow ignoring navigationStart events in perflog metric. (#20312) (9ca6ee9)
  • common: return ISubscription from Location.subscribe() (#20429) (bc904b1), closes #20406
  • compiler: emit correct type-check-blocks with TemplateRef's (#20463) (81f1d42)
  • compiler: support event bindings in fullTemplateTypeCheck (#20490) (b53ead4)
  • core: fix #20532, should be able to cancel listener from mixed zone (#20538) (0feba49)
  • core: should support event.stopImmediatePropagation (#20469) (82aace6)
  • forms: updateOn should check if change occurred (#20358) (f9f2c20), closes #20259

5.1.0-beta.1 (2017-11-16)

Bug Fixes

  • animations: always fire inner trigger callbacks even if blocked by parent animations (#19753) (d47b2a6), closes #19100
  • animations: ensure final state() styles are applied within @.disabled animations (#20267) (20aafff), closes #20266
  • bazel: adjust mock of tsconfig for ng_module rule unit test (#20175) (c2a24b4)
  • compiler: fix corner cases in shadow CSS (c32f5fd)
  • compiler: recognize @NgModule with a redundant @Injectable (#20320) (c33a576)
  • compiler: show explanatory text in template errors (#20313) (3257fcd)
  • core: ensure init lifecycle events are called (#20258) (24cf8b3)
  • language-service: pass compilerOptions.paths to ReflectorHost (#20222) (eb8013e)
  • router: 'merge' queryParamHandling strategy should be able to remove query params (#19733) (a622e19), closes #18463 #17202
  • Update test code to type-check under TS 2.5 (#20175) (5ec1717)

Features

Note, if you do Injector.get(Token) where Token has static members, you'll run into https://github.com/Microsoft/TypeScript/issues/20102 where the returned type is {} rather than Token. Use Injector.get<Token>(Token) to work around.

5.0.2 (2017-11-16)

Bug Fixes

  • animations: ensure final state() styles are applied within @.disabled animations (#20267) (8b1a6b1), closes #20266
  • compiler: fix corner cases in shadow CSS (5d1cd57)
  • compiler: recognize @NgModule with a redundant @Injectable (#20320) (4cc6abb)
  • compiler: show explanatory text in template errors (#20313) (424a323)
  • router: 'merge' queryParamHandling strategy should be able to remove query params (#19733) (b732fb9), closes #18463 #17202

5.1.0-beta.0 (2017-11-08)

Bug Fixes

  • compiler: don't overwrite missingTranslation's value in JIT (#19952) (799cbb9)
  • compiler: report a reasonable error with invalid metadata (#20062) (da22c48)
  • compiler-cli: don't report emit diagnostics when --noEmitOnError is off (#20063) (8639995)
  • core: __symbol__ should return __zone_symbol__ without zone.js loaded (#19541) (678d1cf)
  • core: should support event.stopImmediatePropagation (#19222) (7083791)
  • platform-browser: support Symbols in custom jasmineToString() method (#19794) (5a6efa7)

Features

  • compiler: introduce TestBed.overrideTemplateUsingTestingModule (a460066), closes #19815

5.0.1 (2017-11-08)

Bug Fixes

  • compiler: don't overwrite missingTranslation's value in JIT (#19952) (799cbb9)
  • compiler: report a reasonable error with invalid metadata (#20062) (da22c48)
  • compiler-cli: don't report emit diagnostics when --noEmitOnError is off (#20063) (8639995)
  • core: __symbol__ should return __zone_symbol__ without zone.js loaded (#19541) (678d1cf)
  • core: should support event.stopImmediatePropagation (#19222) (7083791)
  • platform-browser: support Symbols in custom jasmineToString() method (#19794) (5a6efa7)

5.0.0 pentagonal-donut (2017-11-01)

Features

  • animations: allow @.disabled property to work without an expression (#18713) (2159342)
  • animations: report errors when invalid CSS properties are detected (#18718) (409688f), closes #18701
  • animations: support :increment and :decrement transition aliases (6f45519)
  • animations: support negative query limit values (86ffacf), closes #19259
  • common: accept object map for HttpClient headers & params (#18490) (1b1d5f1)
  • common: drop use of the Intl API to improve browser support (#18284) (079d884), closes #10809 #9524 #7008 #9324 #7590 #6724 #3429 #17576 #17478 #17319 #17200 #16838 #16624 #16625 #16591 #14131 #12632 #11376 #11187
  • common: generate closure-locale.ts to tree shake locale data (#18907) (4878936)
  • common: mark NgTemplateOutlet API as stable (0a73e8d)
  • compiler-cli: add watch mode to ngc (#18818) (06d01b2)
  • compiler-cli: lower metadata useValue and data literal fields (#18905) (0e64261)
  • compiler: add representation of placeholders to xliff & xmb (b3085e9), closes #17345
  • compiler: allow multiple exportAs names (#18723) (7ec28fe)
  • compiler: enabled strict checking of parameters to an @Injectable (#19412) (dfb8d21)
  • compiler: make .ngsummary.json files portable (2572bf5)
  • compiler: reuse the TypeScript typecheck for template typechecking. (#19152) (996c7c2)
  • compiler: set enableLegacyTemplate to false by default (#18756) (56238fe)
  • compiler: use typescript for resolving resource paths (43226cb)
  • core: Create StaticInjector which does not depend on Reflect polyfill. (d9d00bd)
  • core: add option to remove blank text nodes from compiled templates (#18823) (b8b551c)
  • core: support for bootstrap with custom zone (#17672) (344a5ca)
  • forms: add default updateOn values for groups and arrays (#18536) (ff5c58b)
  • forms: add options arg to abstract controls (ebef5e6)
  • forms: add status to AbstractControlDirective (233ef93)
  • forms: add updateOn and ngFormOptions to NgForm (0d45828)
  • forms: add updateOn blur option to FormControls (#18408) (333a708), closes #7113
  • forms: add updateOn submit option to FormControls (#18514) (f69561b)
  • forms: add updateOn support to ngModelOptions (1cfa79c)
  • platform-server: add an API to transfer state from server (#19134) (cfd9ca0)
  • platform-server: provide a DOM implementation on the server (2f2d5f3), closes #14638
  • platform-server: provide a way to hook into renderModule* (#19023) (8dfc3c3)
  • router: add ActivationStart/End events (8f79150)
  • router: add events tracking activation of individual routes (49cd851)
  • service-worker: introduce the @angular/service-worker package (#19274) (d442b68)
  • upgrade: propagate touched state of NgModelController (59c23c7)
  • upgrade: support lazy-loading Angular module into AngularJS app (30e76fc)
  • update angular to support TypeScript 2.4 (ca5aeba)

Performance Improvements

  • animations: reduce size of bundle by removing AST classes (#19539) (d5c9c5f)
  • compiler: don’t emit summaries for jit by default (b086891)
  • compiler: fix perf issue in loading aot summaries in jit compiler (fbc9537)
  • compiler: make the creation of ts.Program faster. (#19275) (edd5f5a)
  • compiler: only emit changed files for incremental compilation (745b59f)
  • compiler: only type check input files when using bazel (#19581) (0b06ea1)
  • compiler: only use tsickle if needed (#19275) (8f95b75)
  • compiler: skip type check and emit in bazel in some cases. (#19646) (a22121d)
  • compiler: speed up loading of summaries for bazel. (#19581) (81167d9)
  • compiler: speed up watch mode (#19275) (6665d76)
  • core: Remove decorator DSL which depends on Reflect (cac130e)
  • core: add option to remove blank text nodes from compiled templates (d2c0d98)
  • core: use native addEventListener for faster rendering. (#18107) (6279e50)
  • core switch angular to use StaticInjector instead of ReflectiveInjector (fcadbf4), closes #18496
  • latest tsickle to tree shake: abstract class methods & interfaces (#18236) (b7a6f52)

BREAKING CHANGES

  • compiler: Angular now requires TypeScript 2.4.x.
  • compiler: split compiler and core. @angular/platform-server now additionally depends on @angular/platform-browser-dynamic as a peer dependency. (#18683) (0cc77b4)
  • platformXXXX() no longer accepts providers which depend on reflection. Specifically the method signature went 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.

I18n Changes (@angular/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.

Deprecated code

  • compiler: The method ngGetContentSelectors() has been removed as it was deprecated since v4. Use ComponentFactory.ngContentSelectors instead.
  • compiler: the compiler option enableLegacyTemplate is now disabled by default as the <template> element was deprecated since v4. Use <ng-template> instead. The option enableLegacyTemplate and the <template> element will both be removed in Angular v6.
  • compiler: the option useDebug for the compiler has been removed as it had no effect and was deprecated since v4. (#18778) (499d05d)
  • compiler: deprecate i18n comments in favor of ng-container (#18998) (66a5dab)
  • 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. (#18758) (ec56760)
  • common: NgTemplateOutlet#ngOutletContext has been removed as it was deprecated since v4. Use NgTemplateOutlet#ngTemplateOutletContext instead. (#18780) (7522987)
  • core: ErrorHandler no longer takes a parameter as it was not used and deprecated since v4. (#18759) (8f41326)
  • core: ReflectiveInjector is now deprecated. Use Injector.create as a replacement.
  • core: Testability#findBindings has been removed as it was deprecated since v4. Use Testability#findProviders instead. (#18782) (f2a2a6b)
  • core: DebugNode#source has been removed as it was deprecated since v4. (#18779) (d61b902)
  • core: OpaqueToken has been removed as it was deprecated since v4. Use InjectionToken instead. (#18971) (3c4eef8)
  • core: DifferFactory.create no longer takes ChangeDetectionRef as a first argument as it was not used and deprecated since v4. (#18757) (be9713c)
  • core: TrackByFn has been removed because it was deprecated since v4. Use TrackByFunction instead. (#18757) (596e9f4)
  • http: deprecate @angular/http in favor of @angular/common/http (#18906) (72c7b6e)
  • router: RouterOutlet properties locationInjector and locationFactoryResolver have been removed as they were deprecated since v4. (#18781) (d1c4a94, a9ef858)
  • 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. (#18781) (d76761b)
  • platform-browser: NgProbeToken has been removed from @angular/platform-browser as it was deprecated since v4. Import it from @angular/core instead. (#18760) (d7f42bf)
  • platform-webworker: PRIMITIVE has been removed as it was deprecated since v4. Use SerializerTypes.PRIMITIVE instead. (#18761) (a56468c)

4.4.6 (2017-10-18)

Bug Fixes

  • animations: properly support boolean-based transitions and state changes (#19672) (f983a6c), closes #9396 #12337
  • common: attempt to JSON.parse errors for JSON responses (#19773) (269f5ac)
  • router: RouterLinkActive should update its state right after checking the children (53a807a), closes #18983

Performance Improvements

  • animations: reduce size of bundle by removing AST classes (#19673) (76d2496)

4.4.5 (2017-10-12)

Bug Fixes

  • compiler: TestBed.overrideProvider should keep imported NgModules eager (#19624) (734378c)
  • compiler: correctly instantiate eager providers that are used via Injector.get (#19558) (e292548), closes #15501
  • compiler: disallow references for select and index evaluation (95f3b1d)
  • core: make dynamic & inline code checking behave the same (#19189) (6c66031)
  • platform-browser: support customEqualityTesters when overriding Jasmine toEqual (cc8ae32)
  • tsc-wrapped: don't rewrite imports when annotating for closure (#19579) (c9f8718)

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

  • animations: do not leak DOM nodes/styling for host triggered animations (#18853) (1cc3fe2), closes #18606
  • common: fix improper packaging for @angular/common/http (#18613) (a203a95)
  • common: fix XSSI prefix stripping by using JSON.parse always (#18466) (8821723), closes #18396 #18453
  • compiler: normalize the locale name (#18963) (497e017)
  • core: complete EventEmitter in QueryList on component destroy (#18902) (7d137d7), closes #18741
  • tsc-wrapped: deduplicate metadata for re-exported modules (48ae1a6)
  • tsc-wrapped: fix metadata symbol reference (f6a7183)
  • upgrade: remove code setting id attribute. (#19182) (b20c5d2), closes #18446

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 :-)

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)

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

4.3.3 (2017-08-02)

Bug Fixes

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

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)

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: don’t always compile .ngfactory.ts files by default (ed73d4f)

4.2.1 (2017-06-09)

Bug Fixes

  • compiler: don’t 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: don’t call check if we don’t 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: don’t 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 constructors (#14894) (b00fe20), closes #12631
  • compiler: warning prints "WARNING" instead of "ERROR" (#15125) (3b1956b)
  • core: don’t recreate TemplateRef when used as a reference. (#15066) (df914ef), closes #14873
  • core: don’t 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

  • Previously, 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: don’t 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.

It’s 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 haven’t 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.

What’s New

View Engine

We’ve 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 don’t 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

We’ve 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 TypeScript’s 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 Wormald’s 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 you’ll 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 won’t 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 Parameter 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 (30380d0)
  • upgrade: Prevent property renaming for $inject. (96d06f7)