Skip to content
Permalink
master
Go to file
94 contributors

Users who have contributed to this file

@mhevery @IgorMinar @alxhub @AndrewKushnir @kara @jasonaden @atscott @vicb @alexeagle @chuckjaz @yjbanov @StephenFluin
6737 lines (4806 sloc) 755 KB

11.0.0-rc.0 (2020-10-21)

Bug Fixes

  • common: update locales using new CLDR data (#39343) (3738233)
  • compiler: promote constants in templates to Trusted Types (#39211) (6e18d2d)
  • core: guard reading of global ngDevMode for undefined. (#36055) (f541e5f)
  • language-service: [Ivy] create compiler only when program changes (#39231) (8f1317f)
  • ngcc: ensure that "inline exports" can be interpreted correctly (#39267) (822b838)
  • platform-server: Resolve absolute URL from baseUrl (#39334) (b4e8399)
  • router: incorrect signature for createUrlTree (#39347) (161b278)

Code Refactoring

BREAKING CHANGES

  • platform-server: If you use useAbsoluteUrl to setup platform-server, you now need to also specify baseUrl. We are intentionally making this a breaking change in a minor release, because if useAbsoluteUrl is set to true then the behavior of the application could be unpredictable, resulting in issues that are hard to discover but could be affecting production environments.
  • compiler: TypeScript 3.9 is no longer supported, please upgrade to TypeScript 4.0.

10.2.0 (2020-10-21)

Bug Fixes

  • core: guard reading of global ngDevMode for undefined. (#36055) (02405f1)
  • platform-server: Resolve absolute URL from baseUrl (#39334) (71fb99f)

BREAKING CHANGES

  • platform-server: If you use useAbsoluteUrl to setup platform-server, you now need to also specify baseUrl. We are intentionally making this a breaking change in a minor release, because if useAbsoluteUrl is set to true then the behavior of the application could be unpredictable, resulting in issues that are hard to discover but could be affecting production environments.

11.0.0-next.6 (2020-10-14)

Bug Fixes

  • compiler-cli: type checking of expressions within ICUs (#39072) (0a16e60), closes #39064
  • core: migrate relative link resolution with single quotes (#39102) (049b453), closes #39082
  • core: use Trusted Types policy in inert DOM builder (#39208) (7d49299)
  • core: use Trusted Types policy in named_array_type (#39209) (f6d5cdf)
  • router: Allow undefined inputs on routerLink (#39151) (b0b4953)
  • router: create schematic for preserveQueryParams (#38762) (93ee05d)
  • router: remove preserveQueryParams symbol (#38762) (783a5bd)

Features

  • core: add automated migration to replace async with waitForAsync (#39212) (5ce71e0)
  • core: add automated migration to replace ViewEncapsulation.Native (#38882) (0e733f3)
  • core: add initialNavigation schematic (#36926) (0ec7043)
  • core: add Trusted Types workaround for Function constructor (#39209) (5913e5c)
  • core: create internal Trusted Types module (#39207) (0875fd2)
  • core: depend on type definitions for Trusted Types (#39207) (c4266fb)
  • core: remove ViewEncapsulation.Native (#38882) (4a1c12c)
  • language-service: [Ivy] getSemanticDiagnostics for external templates (#39065) (63624a2)
  • language-service: Add getTypeDefinitionAtPosition (go to type definition) (#39145) (a84976f)
  • language-service: Add module name to directive quick info (#39121) (4604fe9)
  • router: add new initialNavigation options to replace legacy (#37480) (c4becca)

BREAKING CHANGES

  • router: * The initialNavigation property for the options in RouterModule.forRoot no longer supports legacy_disabled, legacy_enabled, true, or false as valid values. legacy_enabled (the old default) is instead enabledNonBlocking
  • enabled is deprecated as a valid value for the RouterModule.forRoot initialNavigation option. enabledBlocking has been introduced to replace it
  • router: preserveQueryParams has been removed, use queryParamsHandling="preserve" instead
  • router: If you were accessing the RouterLink values of queryParams, fragment or queryParamsHandling you might need to relax the typing to also accept undefined and null. (#39151)
  • core: * ViewEncapsulation.Native has been removed. Use ViewEncapsulation.ShadowDom instead. Existing usages will be updated automatically by ng update.
  • compiler-cli: Expressions within ICUs are now type-checked again, fixing a regression in Ivy. This may cause compilation failures if errors are found in expressions that appear within an ICU. Please correct these expressions to resolve the type-check errors.

10.1.6 (2020-10-14)

Bug Fixes

build

  • upgrade angular build, integration/bazel and @angular/bazel package to rule_nodejs 2.2.0 (#39182) (7628c36)

Performance Improvements

  • ngcc: do not rescan program source files when referenced from multiple root files (#39254) (5221df8), closes #39240

11.0.0-next.5 (2020-10-07)

Bug Fixes

  • common: add boolean to valid json for testing (#37893) (3c474ec), closes #20690
  • core: use single quotes for relative link resolution migration to align with style guide (#39070) (8894706)
  • forms: improve types of directive constructor arguments (#38944) (246de9a)
  • forms: include null in .parent of abstract control (#32671) (f4f1bcc), closes #16999
  • language-service: [Ivy] hybrid visitor should not locate let keyword (#39061) (70e13dc)
  • router: properly assign ExtraOptions to Router in RouterTestingModule (#39096) (d8c0534), closes #23347

Features

  • compiler-cli: support getting resource dependencies for a source file (#38048) (5dbf357)
  • forms: add migration for AbstractControl.parent accesses (#39009) (aeec223), closes #32671
  • language-service: Add getDefinitionAndBoundSpan (go to definition) (#39101) (3975dd9)
  • language-service: add quick info for inline templates in ivy (#39060) (904adb7)

BREAKING CHANGES

  • forms: Directives in the @angular/forms package used to have any[] as a type of validators and asyncValidators arguments in constructors. Now these arguments are properly typed, so if your code relies on directive constructor types it may require some updates to improve type safety.
  • forms: Type of AbstractFormControl.parent now includes null

null is now included in the types of .parent. If you don't already have a check for this case, the TypeScript compiler might compain. A v11 migration exists which adds the not-null assertion operator where necessary.

In an unlikely case your code was testing the parnet against undefined with sitrct equality, you'll need to change this to === null instead, since the parent is not explicily initialized with null instead of being left undefined.

10.1.5 (2020-10-07)

Bug Fixes

  • router: update getRouteGuards to check if the context outlet is activated (#39049) (771f731), closes #39030
  • compiler: Recover on malformed keyed reads and keyed writes (#39004) (f50313f), closes #38596

11.0.0-next.4 (2020-09-30)

Bug Fixes

  • common: correct and simplify typing of KeyValuePipe (#37447) (4dfe0fa)
  • common: correct and simplify typing of AsyncPipe (#37447) (5f815c0)
  • common: correct and simplify typing of I18nPluralPipe (#37447) (3b919ef)
  • common: correct typing and implementation of SlicePipe (#37447) (4744c22)
  • common: let case conversion pipes accept type unions with null (#36259) (#37447) (c7d5555)
  • compiler-cli: perform DOM schema checks even in basic mode in g3 (#38943) (40975e0)
  • language-service: hybrid visitor returns parent node of BoundAttribute (#38995) (323be39)
  • packaging: remove polyfills needed to run tests on IE9 and IE 10 (#38931) (4ca1c73)
  • platform-webworker: remove platform-webworker and platform-webworker-dynamic (#38846) (93c3d8f)
  • router: make relativeLinkResolution corrected by default (#25609) (837889f), closes #22394

Code Refactoring

  • router: Adjust type of parameter in navigateByUrl and createUrlTree to be more accurate (#38227) (e4f4d18), closes #18798

Features

  • common: stricter types for DatePipe (#37447) (daf8b7f)
  • common: stricter types for number pipes (#37447) (7b2aac9)
  • compiler: Add keySpan to Variable Node (#38965) (239968d)
  • router: Add relativeLinkResolution migration to update default value (#38698) (15ea811)

BREAKING CHANGES

  • packaging: In v10, IE 9, 10, and IE mobile support was deprecated. In v11, Angular framework removes IE 9, 10, and IE mobile support completely. Supporting outdated browsers like these increases bundle size, code complexity, and test load, and also requires time and effort that could be spent on improvements to the framework. For example, fixing issues can be more difficult, as a straightforward fix for modern browsers could break old ones that have quirks due to not receiving updates from vendors.
  • platform-webworker: @angular/platform-webworker and @angular/platform-webworker-dynamic have been removed as they were deprecated in v8
  • common: The slice pipe now returns null for the undefined input value, which is consistent with the behavior of most pipes. If you rely on undefined being the result in that case, you now need to check for it explicitly.
  • common: The typing of the keyvalue pipe has been fixed to report that for input objects that have number keys, the result will contain the string representation of the keys. This was already the case and the code has simply been updated to reflect this. Please update the consumers of the pipe output if they were relying on the incorrect types. Note that this does not affect use cases where the input values are Maps, so if you need to preserve numbers, this is an effective way.
  • common: The signatures of the number pipes now explicitly state which types are accepted. This should only cause issues in corner cases, as any other values would result in runtime exceptions.
  • common: The signature of the date pipe now explicitly states which types are accepted. This should only cause issues in corner cases, as any other values would result in runtime exceptions.
  • common: The async pipe no longer claims to return undefined for an input that was typed as undefined. Note that the code actually returned null on undefined inputs. In the unlikely case you were relying on this, please fix the typing of the consumers of the pipe output.
  • common: The case conversion pipes no longer let falsy values through. They now map both null and undefined to null and raise an exception on invalid input (0, false, NaN) just like most "common pipes". If your code required falsy values to pass through, you need to handle them explicitly.
  • router: While the new parameter types allow a variable of type NavigationExtras to be passed in, they will not allow object literals, as they may only specify known properties. They will also not accept types that do not have properties in common with the ones in the Pick. To fix this error, only specify properties from the NavigationExtras which are actually used in the respective function calls or use a type assertion on the object or variable: as NavigationExtras.
  • router: This commit changes the default value of relativeLinkResolution from 'legacy' to 'default'. If your application previously used the default by not specifying a value in the ExtraOptions and uses relative links when navigating from children of empty path routes, you will need to update your RouterModule to specifically specify 'legacy' for relativeLinkResolution. See https://angular.io/api/router/ExtraOptions#relativeLinkResolution for more details.

10.1.4 (2020-09-30)

Bug Fixes

11.0.0-next.3 (2020-09-23)

Bug Fixes

  • common: add params and reportProgress options to HttpClient.put() overload (#37873) (dd8d8c8), closes #23600
  • compiler-cli: generate let statements in ES2015+ mode (#38775) (123bff7)
  • core: ensure TestBed is not instantiated before override provider (#38717) (c8f056b)
  • forms: type NG_VALUE_ACCESSOR injection token as array (#29723) (2b1b718), closes #29351

Features

  • common: Add ISO week-numbering year formats support to formatDate (#38828) (984ed39)
  • compiler: Parse and recover on incomplete opening HTML tags (#38681) (6ae3b68), closes #38596
  • router: add migration to update calls to navigateByUrl and createUrlTree with invalid parameters (#38825) (7849fdd), closes #38227
  • service-worker: add the option to prefer network for navigation requests (#38565) (a206852), closes #38194

BREAKING CHANGES

  • core: If you call TestBed.overrideProvider after TestBed initialization, provider overrides are not applied. This behavior is consistent with other override methods (such as TestBed.overrideDirective, etc) but they throw an error to indicate that, when the check was missing in the TestBed.overrideProvider function. Now calling TestBed.overrideProvider after TestBed initialization also triggers an error, thus there is a chance that some tests (where TestBed.overrideProvider is called after TestBed initialization) will start to fail and require updates to move TestBed.overrideProvider calls before TestBed initialization is completed.

10.1.3 (2020-09-23)

Bug Fixes

  • http: Fix error message when we call jsonp without importing HttpClientJsonpModule (#38756) (3902ec0)
  • ngcc: fix compilation of ChangeDetectorRef in pipe constructors (#38892) (093c3a1), closes #38666 #38883

Reverts

  • feat(router): better warning message when a router outlet has not been instantiated (#38920) (04d0aa6)

11.0.0-next.2 (2020-09-16)

Bug Fixes

Features

  • compiler-cli: TemplateTypeChecker operation to get Symbol from a template node (#38618) (c4556db)
  • compiler-cli: Add ability to get Symbol of Templates and Elements in component template (#38618) (cf2e8b9)
  • compiler-cli: Add ability to get Symbol of AST expression in component template (#38618) (f56ece4)
  • compiler-cli: add ability to get symbol of reference or variable (#38618) (19598b4)
  • compiler-cli: define interfaces to be used for TemplateTypeChecker (#38618) (9e77bd3)

Performance Improvements

  • compiler-cli: only emit directive/pipe references that are used (#38539) (077f516)
  • compiler-cli: optimize computation of type-check scope information (#38539) (297c060)
  • router: use ngDevMode to tree-shake error messages in router (#38674) (db21c4f)

BREAKING CHANGES

  • router: This change corrects the argument order when calling RouteReuseStrategy#shouldReuseRoute. Previously, when evaluating child routes, they would be called with the future and current arguments would be swapped. If your RouteReuseStrategy relies specifically on only the future or current snapshot state, you may need to update the shouldReuseRoute implementation's use of "future" and "current" ActivateRouteSnapshots.
  • common: The locale data API has been marked as returning readonly arrays, rather than mutable arrays, since these arrays are shared across calls to the API. If you were mutating them (e.g. calling sort(), push(), splice(), etc) then your code will not longer compile. If you need to mutate the array, you should now take a copy (e.g. by calling slice()) and mutate the copy.
  • common: When passing a date-time formatted string to the DatePipe in a format that contains fractions of a millisecond, the milliseconds will now always be rounded down rather than to the nearest millisecond.

Most applications will not be affected by this change. If this is not the desired behaviour then consider pre-processing the string to round the millisecond part before passing it to the DatePipe.

10.1.2 (2020-09-16)

Bug Fixes

Performance Improvements

  • compiler-cli: only emit directive/pipe references that are used (#38843) (5658405)
  • compiler-cli: optimize computation of type-check scope information (#38843) (ebede67)
  • ngcc: introduce cache for sharing data across entry-points (#38840) (58411e7)
  • ngcc: reduce maximum worker count (#38840) (ea36466)

11.0.0-next.1 (2020-09-09)

Bug Fixes

BREAKING CHANGES

  • core: CollectionChangeRecord has been removed, use IterableChangeRecord instead

10.1.1 (2020-09-09)

Bug Fixes

  • compiler: correct confusion between field and property names (#38685) (a1c34c6)
  • compiler-cli: compute source-mappings for localized strings (#38747) (b4eb016), closes #38588
  • compiler-cli: ensure that a declaration is available in type-to-value conversion (#38684) (56d5ff2), closes #38670
  • core: reset tView between tests in Ivy TestBed (#38659) (efc7606), closes #38600
  • localize: do not expose NodeJS typings in $localize runtime code (#38700) (4de8dc3), closes #38692
  • localize: enable whitespace preservation marker in XLIFF files (#38737) (190dca0), closes #38679
  • localize: install [@angular](https://github.com/angular)/localize in devDependencies by default (#38680) (dbab744), closes #38329
  • localize: render context of translation file parse errors (#38673) (32f33f0), closes #38377
  • localize: render location in XLIFF 2 even if there is no metadata (#38713) (ab4f953), closes #38705
  • ngcc: use aliased exported types correctly (#38666) (6a28675), closes #38238
  • router: If users are using the Alt key when clicking the router links, prioritize browser’s default behavior (#38375) (309709d)

Performance Improvements

  • core: use ngDevMode to tree-shake error messages (#38612) (b084bff)

11.0.0-next.0 (2020-09-02)

Bug Fixes

  • forms: ensure to emit statusChanges on subsequent value update/validations (#38354) (d9fea85), closes #20424 #14542
  • service-worker: fix condition to check for a cache-busted request (#36847) (5be4edf)

Features

BREAKING CHANGES

  • forms: Previously if FormControl, FormGroup and FormArray class instances had async validators defined at initialization time, the status change event was not emitted once async validator completed. After this change the status event is emitted into the statusChanges observable. If your code relies on the old behavior, you can filter/ignore this additional status change event.

10.1.0 (2020-09-02)

Features

  • bazel: provide LinkablePackageInfo from ng_module (#37623) (6898eab)
  • common: add ReadonlyMap in place of Map in keyValuePipe (#37311) (3373453), closes #37308
  • compiler-cli: add SourceFile.getOriginalLocation() to sourcemaps package (#32912) (6abb8d0)
  • compiler-cli: Add compiler option to report errors when assigning to restricted input fields (#38249) (71138f6)
  • compiler-cli: add support for TypeScript 4.0 (#38076) (0fc44e0)
  • compiler-cli: explain why an expression cannot be used in AOT compilations (#37587) (712f1bd)
  • compiler: support unary operators for more accurate type checking (#37918) (874792d), closes #20845 #36178
  • core: rename async to waitForAsync to avoid confusing (#37583) (8f07429)
  • core: support injection token as predicate in queries (#37506) (97dc85b), closes #21152 #36144
  • core: update reference and doc to change async to waitAsync. (#37583) (8fbf40b)
  • forms: AbstractControl to store raw validators in addition to combined validators function (#37881) (ad7046b)
  • localize: allow duplicate messages to be handled during extraction (#38082) (cf9a47b), closes #38077
  • localize: expose canParse() diagnostics (#37909) (ec32eba), closes #37901
  • localize: implement message extraction tool (#32912) (190561d)
  • platform-browser: Allow sms-URLs (#31463) (fc5c34d), closes #31462
  • platform-server: add option for absolute URL HTTP support (#37539) (d37049a), closes #37071
  • router: better warning message when a router outlet has not been instantiated (#30246) (1609815)

Bug Fixes

  • bazel: fix integration test for bazel building (#38629) (dd82f2f)
  • common: date pipe gives wrong week number (#37632) (ef1fb6d), closes #33961
  • common: narrow NgIf context variables in template type checker (#36627) (9c8bc4a)
  • compiler-cli: avoid creating value expressions for symbols from type-only imports (#37912) (18098d3), closes #37900
  • compiler-cli: ensure source-maps can handle webpack:// protocol (#32912) (decd95e)
  • compiler-cli: only read source-map comment from last line (#32912) (07a07e3)
  • compiler-cli: type-check inputs that include undefined when there's coercion members (#38273) (7525f3a)
  • compiler: incorrectly inferring namespace for HTML nodes inside SVG (#38477) (0dda97e), closes #37218
  • compiler: mark NgModuleFactory construction as not side effectful (#38147) (7f8c222)
  • core: Allow modification of lifecycle hooks any time before bootstrap (#35464) (737506e), closes #30497
  • core: detect DI parameters in JIT mode for downleveled ES2015 classes (#38463) (ca07da4), closes #38453
  • core: determine required DOMParser feature availability (#36578) (#36578) (c509243)
  • core: do not trigger CSP alert/report in Firefox and Chrome (#36578) (#36578) (b950d46), closes #25214
  • core: move generated i18n statements to the consts field of ComponentDef (#38404) (cb05c01)
  • elements: run strategy methods in correct zone (#37814) (8df888d), closes #24181
  • forms: handle form groups/arrays own pending async validation (#22575) (77b62a5), closes #10064
  • language-service: non-existent module format in package output (#37623) (413a0fb)
  • localize: ensure required XLIFF parameters are serialized (#38575) (f0af387), closes #38570
  • localize: extract the correct message ids (#38498) (ac461e1)
  • localize: render ICU placeholders in extracted translation files (#38484) (81c3e80)
  • localize: render text of extracted placeholders (#38536) (14e90be)
  • ngcc: detect synthesized delegate constructors for downleveled ES2015 classes (#38463) (3b9c802), closes #38453 #38453
  • router: defer loading of wildcard module until needed (#38348) (8f708b5), closes #25494
  • router: fix navigation ignoring logic to compare to the browser url (#37716) (a5ffca0), closes #16710 #13586
  • router: properly compare array queryParams for equality (#37709) (#37860) (1801d0c)
  • router: remove parenthesis for primary outlet segment after removing auxiliary outlet segment (#24656) (#37163) (71f008f)
  • router: restore 'history.state' object for navigations coming from Angular router (#28108) (#28176) (df76a20)

Code Refactoring

  • router: export DefaultRouteReuseStrategy to Router public_api (#31575) (ca79880)

Performance Improvements

  • compiler-cli: don't emit template guards when child scope is empty (#38418) (1388c17)
  • compiler-cli: fix regressions in incremental program reuse (#37641) (5103d90)
  • compiler-cli: only generate directive declarations when used (#38418) (fb8f4b4)
  • compiler-cli: only generate type-check code for referenced DOM elements (#38418) (f42e6ce)
  • forms: use internal ngDevMode flag to tree-shake error messages in prod builds (#37821) (201a546), closes #37697
  • ngcc: shortcircuit tokenizing in ESM dependency host (#37639) (bd7f440)
  • ngcc: use EntryPointManifest to speed up noop ProgramBaseEntryPointFinder (#37665) (9318e23)
  • router: apply prioritizedGuardValue operator to optimize CanLoad guards (#37523) (d7dd295)

10.0.14 (2020-08-26)

10.0.12 (2020-08-24)

Bug Fixes

  • compiler-cli: adding references to const enums in runtime code (#38542) (814b436), closes #38513
  • core: remove closing body tag from inert DOM builder (#38454) (5528536)
  • localize: include the last placeholder in parsed translation text (#38452) (57d1a48)
  • localize: parse all parts of a translation with nested HTML (#38452) (07b99f5), closes #38422

Features

  • language-service: introduce hybrid visitor to locate AST node (#38540) (66d8c22)

10.0.11 (2020-08-19)

Bug Fixes

  • router: ensure routerLinkActive updates when associated routerLinks change (resubmit of #38349) (#38511) (0af9533), closes #18469

10.0.10 (2020-08-17)

Bug Fixes

  • common: Allow scrolling when browser supports scrollTo (#38468) (b32126c), closes #30630
  • core: detect DI parameters in JIT mode for downleveled ES2015 classes (#38500) (863acb6), closes #38453
  • core: error if CSS custom property in host binding has number in name (#38432) (cb83b8a), closes #37292
  • core: fix multiple nested views removal from ViewContainerRef (#38317) (d5e09f4), closes #38201
  • ngcc: detect synthesized delegate constructors for downleveled ES2015 classes (#38500) (f3dd6c2), closes #38453 #38453
  • router: ensure routerLinkActive updates when associated routerLinks change (#38349) (989e8a1), closes #18469

10.0.9 (2020-08-12)

Bug Fixes

  • common: ensure scrollRestoration is writable (#30630) (#38357) (58f4b3a), closes #30629
  • compiler: evaluate safe navigation expressions in correct binding order (#37911) (f5b9d87), closes #37194
  • compiler-cli: avoid creating value expressions for symbols from type-only imports (#38415) (ca2b4bc), closes #37912
  • compiler-cli: infer quote expressions as any type in type checker (#37917) (5b87c67), closes #36568
  • compiler-cli: mark eager NgModuleFactory construction as not side effectful (#38320) (016a41b), closes #38147
  • compiler-cli: match wrapHost parameter types within plugin interface (#38004) (df01a82)
  • compiler-cli: preserve quotes in class member names (#38387) (c9acb7b), closes #38311
  • core: prevent NgModule scope being overwritten in JIT compiler (#37795) (3acebdc), closes #37105
  • core: queries not matching string injection tokens (#38321) (32109dc), closes #38313 #38315
  • core: Store the currently selected ICU in LView (#38345) (ee5123f)
  • platform-server: remove styles added by ServerStylesHost on destruction (#38367) (7f11149)
  • router: prevent calling unsubscribe on undefined subscription in RouterPreloader (#38344) (4151314)
  • service-worker: fix the chrome debugger syntax highlighter (#38332) (f5d5bac)

10.0.8 (2020-08-04)

Bug Fixes

  • compiler: add PURE annotation to getInheritedFactory calls (#38291) (03d8e31)
  • compiler: update unparsable character reference entity error messages (#38319) (cea4678), closes #26067

10.0.7 (2020-07-30)

Bug Fixes

  • compiler: Metadata should not include methods on Object.prototype (#38292) (879ff08)

10.0.6 (2020-07-28)

Bug Fixes

  • compiler: share identical stylesheets between components in the same file (#38213) (264950b), closes #38204
  • compiler-cli: Add support for string literal class members (#38226) (b1e7775)
  • core: Attribute decorator attributeName is mandatory (#38131) (1c4fcce), closes #32658
  • core: unify the signature between ngZone and noopZone (#37581) (d5264f5)

10.0.5 (2020-07-22)

Bug Fixes

  • compiler: properly associate source spans for implicitly closed elements (#38126) (e80278c), closes #36118
  • compiler-cli: ensure file_system handles mixed Windows drives (#38030) (dba4023), closes #36777
  • core: Allow modification of lifecycle hooks any time before bootstrap (#38119) (14b4718), closes #30497
  • core: error due to integer overflow when there are too many host bindings (#38014) (7b6e73c), closes #37876 #37876
  • core: incorrectly validating properties on ng-content and ng-container (#37773) (17ddab9)

10.0.4 (2020-07-15)

Bug Fixes

  • bazel: ng_module rule does not expose flat module information in Ivy (#36971) (b76a2dc)
  • compiler: check more cases for pipe usage inside host bindings (#37883) (a94383f), closes #34655 #37610
  • language-service: non-existent module format in package output (#37778) (12f1773)
  • language-service: remove completion for string (#37983) (387e838)
  • ngcc: report a warning if ngcc tries to use a solution-style tsconfig (#38003) (e3b8010), closes #36386
  • service-worker: correctly handle relative base href (#37922) (b186db7), closes #25055 #25055
  • service-worker: correctly serve ngsw/state with a non-root SW scope (#37922) (dc42c97), closes #30505

Features

10.0.3 (2020-07-08)

Bug Fixes

  • core: handle spaces after select and plural ICU keywords (#37866) (790bb94)

9.1.12 (2020-07-08)

Bug Fixes

  • core: infinite loop if injectable using inheritance has a custom decorator (6c1ab47), closes #35733

10.0.2 (2020-06-30)

Bug Fixes

Performance Improvements

  • compiler-cli: fix memory leak in retained incremental state (#37835) (57a518a)

10.0.1 (2020-06-26)

Bug Fixes

Performance Improvements

  • compiler-cli: fix regressions in incremental program reuse (#37690) (96b96fb)

10.0.0 (2020-06-24)

Release Highlights & Update instructions

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

Features

  • bazel: expose explicit mapping from closure to devmode files (#36262) (ba796bb)
  • bazel: simplify ng_package by dropping esm5 and fesm5 (#36944) (9dbb30f)
  • compiler-cli: report error if undecorated class with Angular features is discovered (#36921) (4c92cf4)
  • compiler: Propagate value span of ExpressionBinding to ParsedProperty (#36133) (d714b95)
  • compiler: add dependency info and ng-content selectors to metadata (#35695) (32ce8b1)
  • compiler: add name spans for property reads and method calls (#36826) (eb34aa5)
  • core make generic mandatory for ModuleWithProviders (#36892) (20cc3ab)
  • core update to tslib 2.0 and move to direct dependencies (#37198), closes #37188
  • core: undecorated-classes migration should handle derived abstract classes (#35339) (c24ad56)
  • core: undecorated-classes-with-decorated-fields migration should handle classes with lifecycle hooks (#36921) (c6ecdc9)
  • language-service: Remove HTML entities autocompletion (#37515) (67bd88b)
  • language-service: TS references from template items (#37437) (bf2cb6f)
  • language-service: [ivy] Parse Angular compiler options (#36922) (dbd0f8e)
  • language-service: [ivy] wrap ngtsc to handle typecheck files (#36930) (1142c37)
  • localize: support merging multiple translation files (#36792) (72f534f)
  • ngcc: allow async locking timeouts to be configured (#36838) (38f805c)
  • ngcc: implement a program-based entry-point finder (#37075) (f3ccd29)
  • ngcc: support for new APF where module points to esm2015 output (#36944) (c98a4d6)
  • ngcc: support marking an in-progress task as unprocessed (#36626) (4665c35)
  • ngcc: support reverting a file written by FileWriter (#36626) (772ccf0)
  • platform-server: use absolute URLs from Location for HTTP (#37071) (9edea0b)
  • router: allow CanLoad guard to return UrlTree (#36610) (00e6cb1), closes #26521 #28306
  • service-worker: include CacheQueryOptions options in ngsw-config (#34663) (dc9f4b9), closes #28443
  • service-worker: support timeout in registerWhenStable SW registration strategy (#35870) (00efacf), closes #34464
  • service-worker: use ignoreVary: true when retrieving responses from cache (#34663) (ee35e22), closes #36638
  • remove TypeScript 3.6 and 3.7 support (#36329) (fbd281c)
  • remove support for TypeScript 3.8 (#37129) (6466fb2)

Bug Fixes

Code Refactoring

Performance Improvements

Dependency updates

@angular/compiler-cli now requires:

  • TypeScript 3.9

BREAKING CHANGES

  • TypeScript 3.6, 3.7 and 3.8 are no longer supported, please update to TypeScript 3.9.
  • core: Angular npm packages no longer contain jsdoc comments to support Closure Compiler's advanced optimizations

The support for Closure Compiler in Angular packages has been experimental and broken for quite some time.

As of TS3.9, Closure is unusable with the JavaScript emit. Please follow https://github.com/microsoft/TypeScript/issues/38374 for more information and updates.

If you used Closure Compiler with Angular in the past, you will likely be better off consuming Angular packages built from sources directly rather than consuming the version we publish on npm, which is primarily optimized for Webpack/Rollup + Terser build pipeline.

As a temporary workaround, you might consider using your current build pipeline with Closure flag --compilation_level=SIMPLE. This flag will ensure that your build pipeline produces buildable and runnable artifacts, at the cost of increased payload size due to advanced optimizations being disabled.

If you were affected by this change, please help us understand your needs by leaving a comment on https://github.com/angular/angular/issues/37234.

  • core: make generic mandatory for ModuleWithProviders

A generic type parameter has always been required for the ModuleWithProviders pattern to work with Ivy, but prior to this commit, View Engine allowed the generic type to be omitted (though support was officially deprecated). If you're using ModuleWithProviders without a generic type in your application code, a v10 migration will update your code for you.

However, if you are using View Engine and also depending on a library that omits the generic type, you will now get a build time error similar to:

error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

In this case, ngcc won't help you (because it's Ivy-only) and the migration only covers application code. You should contact the library author to fix their library to provide a type parameter when they use this class.

As a workaround, we suggest setting skipLibChecks to false in your tsconfig or updating your app to use Ivy.

  • forms: Number inputs no longer listen to the change event.

Tests which trigger change events need to be updated to trigger input events instead.

The change event was in place to support IE9, as we found that input events were not fired with backspace or cut actions. If you need to maintain IE9 support, you will need to add a change event listener to number inputs and call the onChange method of NumberValueAccessor manually.

Lastly, old versions of WebDriver would synthetically trigger the change event on WebElement.clear and WebElement.sendKeys. If you are using an old version of WebDriver, you may need to update tests to ensure input events are triggered. For example, you could use element.sendKeys(Keys.chord(Keys.CONTROL, "a"), Keys.BACK_SPACE); in place of element.clear().

  • forms: The minLength and maxLength validators now verify that the form control's value has a numeric length property, and only validate for length if that's the case.

Previously, falsey values without the length property (such as 0 or false values) were triggering validation errors. If your code relies on the old behavior, you can include other validators such as min or requiredTrue to the list of validators for a particular field.

  • bazel: esm5 and fesm5 format is no longer distributed in Angular's npm packages e.g. @angular/core

If you are not using Angular CLI to build your application or library, and you need to be able to build es5 artifacts, then you will need to downlevel the distributed Angular code to es5 on your own.

Angular CLI will automatically downlevel the code to es5 if differential loading is enabled in the Angular project, so no action is required from Angular CLI users.

  • core: Warnings about unknown elements are now logged as errors. This won't break your app, but it may trip up tools that expect nothing to be logged via console.error.
  • router: Any resolver which return EMPTY will cancel navigation. If you want to allow the navigation to continue, you will need to update the resolvers to emit some value, (i.e. defaultIfEmpty(...), of(...), etc).
  • service-worker: Previously, Vary headers would be taken into account when retrieving resources from the cache, completely preventing the retrieval of cached assets (due to ServiceWorker implementation details) and leading to unpredictable behavior due to inconsistent/buggy implementations in different browsers.

Now, Vary headers are ignored when retrieving resources from the ServiceWorker caches, which can result in resources being retrieved even when their headers are different. If your application needs to differentiate its responses based on request headers, please make sure the Angular ServiceWorker is configured to avoid caching the affected resources.

  • common: This change could result in ExpressionChangedAfterItHasBeenChecked errors that were not detected before. The error could previously have gone undetected because two WrappedValues are considered "equal" in all cases for the purposes of the check, even if their respective unwrapped values are not.

Additionally, [val]=(observable | async).someProperty will no longer trigger change detection if the value of someProperty is identical to the value in the previous emit. If you need to force change detection, either update the binding to use an object whose reference changes or subscribe to the observable and call markForCheck as needed.

  • common: format day-periods that cross midnight

    When formatting a time with the b or B format codes, the rendered string was not correctly handling day periods that spanned midnight. Instead the logic was falling back to the default case of AM.

    Now the logic has been updated so that it matches times that are within a day period that spans midnight, so it will now render the correct output, such as at night in the case of English.

    Applications that are using either formatDate() or DatePipe and any of the b or B format codes will be affected by this change.

  • router: UrlMatcher's type now reflects that it could always return null.

    If you implemented your own Router or Recognizer class, please update it to handle matcher returning null.

9.1.11 (2020-06-10)

Reverts

  • elements: fire custom element output events during component initialization (dc9da17)

9.1.10 (2020-06-09)

Bug Fixes

Performance Improvements

9.1.9 (2020-05-20)

This release contains a re-submit of the following 3 commits with fixes for TS 3.8.

Bug Fixes

9.1.8 (2020-05-20)

Bug Fixes

9.1.7 (2020-05-13)

This release contains various API docs improvements.

9.1.6 (2020-05-08)

Bug Fixes

  • compiler-cli: Revert "fix(compiler-cli): fix case-sensitivity issues in NgtscCompilerHost (#36968)" (#37003)

9.1.5 (2020-05-07)

Bug Fixes

  • compiler-cli: isCaseSensitive() returns correct value (#36968) (4becc1b)
  • compiler-cli: ensure getRootDirs() handles case-sensitivity (#36968) (5bddeea)
  • compiler-cli: ensure MockFileSystem handles case-sensitivity (#36968) (b6c042d)
  • compiler-cli: ensure LogicalFileSystem handles case-sensitivity (#36968) (65337fb)
  • compiler-cli: fix case-sensitivity issues in NgtscCompilerHost (#36968) (4abd603)
  • compiler-cli: normalize mock Windows file paths correctly (#36968) (654868f)
  • compiler-cli: use CompilerHost to ensure canonical file paths (#36968) (7e9d5f5)
  • core: handle pluralize functions that expect a number (#36901) (e5317d5), closes #36888
  • core: properly get root nodes from embedded views with (#36051) (a576852), closes #35967
  • core: Refresh transplanted views at insertion point only (#35968) (c8c2272), closes #35400 #21324
  • localize: ensure getLocation() works (#36920) (701016d)
  • ngcc: do not run in parallel mode if there are less than 3 CPU cores (#36626) (3800455)
  • ngcc: give up re-spawing crashed worker process after 3 attempts (#36626) (1863733)
  • ngcc: handle ENOMEM errors in worker processes (#36626) (901b980)
  • ngcc: support ModuleWithProviders functions that delegate (#36948) (9d13ee0), closes #36892
  • ngcc: support recovering when a worker process crashes (#36626) (f30307a), closes #36278
  • ngcc: partially support TS 3.9 wrapped ES2015 classes (#36884) (ebb4733)

Performance Improvements

  • ngcc: only compute basePaths in TargetedEntryPointFinder when needed (#36881) (5ea51b2), closes #36874
  • ngcc: speed up the getBasePaths() computation (#36881) (b6d0e21)

9.1.4 (2020-04-29)

Bug Fixes

  • core: attempt to recover from user errors during creation (#36381) (d743331), closes #31221
  • core: handle synthetic props in Directive host bindings correctly (#35568) (0f389fa), closes #35501
  • language-service: disable update the [@angular](https://github.com/angular)/core module (#36783) (d3a77ea)
  • localize: include legacy ids when describing messages (#36761) (aa94cd5)
  • ngcc: recognize enum declarations emitted in JavaScript (#36550) (c440165), closes #35584

9.1.3 (2020-04-22)

Bug Fixes

9.1.2 (2020-04-15)

Bug Fixes

  • compiler: handle type references to namespaced symbols correctly (#36106) (468cf69), closes #36006
  • core: undecorated-classes-with-decorated-fields migration should avoid error if base class has no value declaration (#36543) (3992341), closes #36522
  • ngcc: correctly detect external files from nested node_modules/ (#36559) (8c559ef), closes #36526
  • ngcc: display output from the unlocker process on Windows (#36569) (12266b2)
  • ngcc: do not spawn unlocker processes on cluster workers (#36569) (e385abc), closes #35861
  • ngcc: do not warn if paths mapping does not exist (#36525) (33eee43), closes #36518
  • ngcc: force ngcc to exit on error (#36622) (933cbfb), closes #36616
  • router: pass correct component to canDeactivate checks when using two or more sibling router-outlets (#36302) (8e7f903), closes #34614
  • upgrade: update $locationShim to handle Location changes before initialization (#36498) (a67afcc), closes #36492

Performance Improvements

9.1.1 (2020-04-07)

Bug Fixes

9.1.0 (2020-03-25)

Release Highlights

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

  • TypeScript 3.8 update
  • ngcc improvements
    • performance optimizations
    • concurrency & reliability improvements for monorepo use-cases (npm postinstall script no longer recommended)
  • i18n now supports RTL locale info
  • Ivy compatibility fixes

Features

  • bazel: enable ivy template type-checking in g3 (#35672) (8f5b7f3)
  • bazel: transform generated shims (in Ivy) with tsickle (#35975) (e3ecdc6), closes #35848
  • compiler-cli: implement NgTscPlugin on top of the NgCompiler API (#34792) (3c69442dbd)
  • compiler: Add sourceSpan and keySpan to TemplateBinding (#35897) (06779cf)
  • compiler: Propagate source span and value span to Variable AST (#36047) (31bec8c)
  • compiler: add dependency info and ng-content selectors to metadata (#35695) (fb70083)
  • language-service: improve non-callable error message (#35271) (acc483e)
  • language-service: modularize error messages (#35678) (47a1811), closes #32663
  • ngcc: implement source-map flattening (#35132) (df816c9)
  • ngcc: pause async ngcc processing if another process has the lockfile (#35131) (eef0753)
  • ngcc: support invalidating the entry-point manifest (#35931) (8ea61a1)
  • zone.js add a temp solution to support passive event listeners. (#34503) (f9d483e)
  • zone.js add an tickOptions parameter with property processNewMacroTasksSynchronously. (#33838) (17b862c), closes #33799
  • zone.js add interface definitions which zone extends EventTarget (#35304) (4acb676), closes #35173
  • zone.js support passive event options by defining global variables in zone.js config file (#34503) (d7d359e)
  • define all zone.js configurations to typescript interfaces (#35329) (03d88c7)
  • typescript 3.8 support (#35864) (95c729f)

Performance Improvements

  • core: add micro benchmark for destroy hook invocation (#35784) (0653db1)
  • core: adding micro benchmark for host bindings (#35705) (8fed1fe), closes #35568
  • core: avoid recursive scope recalculation when TestBed.overrideModule is used (#35454) (0a1a989)
  • core: use multiple directives in host bindings micro benchmark (#35736) (5bc39f8)
  • ivy: remove unused event argument in listener instructions (#35097) (9228d7f)
  • ngcc: link segment markers for faster traversal (#36027) (47025e0)
  • ngcc: only create tasks for non-processed formats (#35719) (d7efc45)
  • ngcc: reduce directory traversing (#35756) (e0a35e1), closes #35717
  • ngcc: spawn workers lazily (#35719) (dc40a93), closes #35717
  • ngcc: store the position of SegmentMarkers to avoid unnecessary computation (#36027) (772bb5e)
  • ngcc: use binary search when flattening mappings (#36027) (348ff0c)
  • ngcc: use line start positions for computing offsets in source-map flattening (#36027) (e890082)
  • ngcc: use the EntryPointManifest in DirectoryWalkerEntryPointFinder (#35931) (ec9f4d5)

Bug Fixes

  • animations: Remove ɵAnimationDriver from private exports (#35690) (ec789b0)
  • animations: allow computeStyle to work on elements created in Node (#35810) (17cf04e)
  • animations: false positive when detecting Node in Webpack builds (#35134) (dc4ae4b), closes #35117
  • animations: process shorthand margin and padding styles correctly (#35701) (35c9f0d), closes #35463
  • bazel: do not use manifest paths for generated imports within compilation unit (#35841) (9581658)
  • bazel: ng_package rule creates incorrect UMD module exports (#35792) (5c2a908), closes angular/components#18652
  • bazel: prod server doesn't serve files in windows (#35991) (96e3449)
  • bazel: update several packages for better windows support (#35991) (32f099a)
  • bazel: update typescript peer dependency range (#36013) (5e3a898)
  • common: let KeyValuePipe accept type unions with null (#36093) (407fa42), closes #35743
  • compiler-cli: TypeScript peer dependency range (#36008) (5f7d066)
  • compiler-cli: suppress extraRequire errors in Closure Compiler (#35737) (c296bfc)
  • compiler: Propagate value span of ExpressionBinding to ParsedProperty (#36133) (2ce5fa3)
  • compiler: do not recurse to find static symbols of same module (#35262) (e179c58)
  • compiler: record correct end of expression (#34690) (df890d7), closes #33477
  • compiler: support directive inputs with interpolations on <ng-template>s (#35984) (79659ee), closes #35752
  • compiler: support i18n attributes on <ng-template> tags (#35681) (40da51f)
  • compiler: type-checking error for duplicate variables in templates (#35674) (2c41bb8), closes #35186
  • compiler: use FatalDiagnosticError to generate better error messages (#35244) (646655d)
  • core: Add style="{{exp}}" based interpolation (#34202) (2562a3b), closes #33575
  • core: Remove debugger statement (#35763) (8f38eb7), closes #35470
  • core: Remove debugger statement when assert is thrown (#35763) (4003538), closes #35470
  • core: add noSideEffects() to make*Decorator() functions (#35769) (dc6a791)
  • core: add noSideEffects() to ɵɵdefineComponent() (#35769) (ba36127)
  • core: add strictLiteralTypes to align core + VE checking of literals (#35462) (4253662)
  • core: adhere to bootstrap options for JIT compiled components (#35534) (e342ffd), closes #35230
  • core: allow null / undefined values in query results (#35796) (5652fb1), closes #35673
  • core: better handing of ICUs outside of i18n blocks (#35347) (c013dd4)
  • core: better inference for circularly referenced directive types (#35622) (173a1ac), closes #35372 #35603 #35522
  • core: correctly concatenate static and dynamic binding to class when shadowed (#35350) (8c75f21), closes #35335
  • core: don't re-invoke pure pipes that throw and arguments are the same (#35827) (19cfaf7)
  • core: emulate a View Engine type-checking bug with safe navigation (#35462) (a61fe41)
  • core: error in AOT when pipe inherits constructor from injectable that uses DI (#35468) (e17bde9), closes #35277
  • core: error when accessing NgModuleRef.componentFactoryResolver in constructor (#35637) (835618c), closes #35580
  • core: handle <ng-template> with local refs in i18n blocks (#35758) (ef75875)
  • core: incorrectly generating shared pure function between null and object literal (#35481) (22786c8), closes #33705 #35298
  • core: injecting incorrect provider when re-providing injectable with useClass (#34574) (0bc35a7), closes #34110
  • core: log error instead of warning for unknown properties and elements (#35798) (00f3c58), closes #35699
  • core: make subclass inherit developer-defined data (#35105) (a756161)
  • core: provide a more detailed error message for NG6002/NG6003 (#35620) (2d89b5d)
  • core: remove side effects from ɵɵNgOnChangesFeature() (#35769) (9cf85d2)
  • core: remove side effects from ɵɵgetInheritedFactory() (#35769) (c195d22)
  • core: remove support for Map/Set in [class]/[style] bindings (#35392) (2ca7984)
  • core: support sanitizer value in the [style] bindings (#35564) (3af103a), closes #35476
  • core: treat [class] and [className] as unrelated bindings (#35668) (a153b61), closes #35577
  • core: unable to NgModuleRef.injector in module constructor (#35731) (1f8a243), closes #35677 #35639
  • core: undecorated-classes-with-di migration should handle libraries generated with CLI versions past v6.2.0 (#35824) (59607dc), closes #34985
  • core: use proper configuration to compile Injectable in JIT (#35706) (7b13977)
  • core: verify parsed ICU expression at runtime before executing it (#35923) (8c2d842), closes #35689
  • core: workaround Terser inlining bug (#36200) (f71d132)
  • elements: correctly handle setting inputs to undefined (#36140) (e066bdd)
  • elements: correctly set SimpleChange#firstChange for pre-existing inputs (#36140) (447a600), closes #36130
  • ivy: LFrame needs to release memory on leaveView() (#35156) (b9b512f), closes #35148
  • ivy: add attributes and classes to host elements based on selector (#34481) (f95b8ce)
  • ivy: error if directive with synthetic property binding is on same node as directive that injects ViewContainerRef (#35343) (d6bc63f), closes #35342
  • ivy: narrow NgIf context variables in template type checker (#35125) (40039d8), closes #34572
  • ivy: queries should match elements inside ng-container with the descendants: false option (#35384) (3f4e02b), closes #34768
  • ivy: support dynamic query tokens in AOT mode (#35307) (3e3a1ef), closes #34267
  • ivy: wrong context passed to ngOnDestroy when resolved multiple times (#35249) (5fbfe69), closes #35167
  • language-service: fix calculation of pipe spans (#35986) (406419b)
  • language-service: get the right 'ElementAst' in the nested HTML tag (#35317) (8e354da)
  • language-service: infer $implicit value for ngIf template contexts (#35941) (18b1bd4)
  • language-service: infer context type of structural directives (#35537) (#35561) (54fd33f)
  • language-service: provide completions for the structural directive that only injects the 'ViewContainerRef' (#35466) (66c06eb)
  • language-service: provide hover for interpolation in attribute value (#35494) (049f118), closes PR#34847
  • language-service: resolve the real path for symlink (#35895) (4e1d780)
  • language-service: resolve the variable from the template context first (#35982) (3d46a45)
  • localize: allow ICU expansion case to start with any character except } (#36123) (0767d37), closes #31586
  • localize: improve matching and parsing of XLIFF 1.2 translation files (#35793) (350ac11)
  • localize: improve matching and parsing of XLIFF 2.0 translation files (#35793) (08071e5)
  • localize: improve matching and parsing of XTB translation files (#35793) (0e2a577)
  • localize: improve placeholder mismatch error message (#35593) (53f059e)
  • localize: merge translation from all XLIFF <file> elements (#35936) (fc4c3c3), closes #35839
  • localize: show helpful error when providing an invalid cli option (#36010) (aad02e8)
  • localize: support minified ES5 $localize calls (#35562) (df75451), closes #35376
  • ngcc: add default config for angular2-highcharts (#35527) (3cc8127), closes #35399
  • ngcc: allow deep-import warnings to be ignored (#35683) (20b0c80), closes #35615
  • ngcc: capture path-mapped entry-points that start with same string (#35592) (71b5970), closes #35536
  • ngcc: consistently delegate to TypeScript host for typing files (#36089) (9e70bcb), closes #35078
  • ngcc: correctly detect emitted TS helpers in ES5 (#35191) (bd6a39c)
  • ngcc: correctly detect outer aliased class identifiers in ES5 (#35527) (fde8915), closes #35399
  • ngcc: do not crash on entry-point that fails to compile (#36083) (ff665b9)
  • ngcc: do not crash on overlapping entry-points (#36083) (c9f554c)
  • ngcc: handle imports in dts files when processing CommonJS (#35191) (b6e8847), closes #34356
  • ngcc: handle mappings outside the content when flattening source-maps (#35718) (73cf7d5), closes #35709
  • ngcc: handle missing sources when flattening source-maps (#35718) (72c4fda), closes #35709
  • ngcc: handle multiple original sources when flattening source-maps (#36027) (a40be00)
  • ngcc: introduce a new LockFile implementation that uses a child-process (#35861) (c55f900), closes #35761
  • ngcc: show helpful error when providing an invalid option (#36010) (1f89c61)
  • ngcc: use path-mappings from tsconfig in dependency resolution (#36180) (6defe96), closes #36119
  • ngcc: use preserve whitespaces from tsconfig if provided (#36189) (aef4323), closes #35871
  • platform-browser: add missing peerDependency on [@angular](https://github.com/angular)/animations (#35949) (64d6f13), closes #35888
  • router: removed unused ApplicationRef dependency (#35642) (c839c05), closes /github.com/angular/angular/commit/5a849829c42330d7e88e83e916e6e36380c97a97#diff-c0baae5e1df628e1a217e8dc38557
  • router: state data missing in routerLink (#33203) (de67978)
  • service-worker: treat 503 as offline (#35595) (96cdf03), closes #35571
  • fix flaky test cases of passive events (#35679) (8ef29b6)

9.0.7 (2020-03-18)

Bug Fixes

  • compiler: do not recurse to find static symbols of same module (#35262) (a52b568)
  • compiler: support directive inputs with interpolations on <ng-template>s (#35984) (a6bf31b), closes #35752
  • core: don't re-invoke pure pipes that throw and arguments are the same (#35827) (3fa632b)
  • core: verify parsed ICU expression at runtime before executing it (#35923) (9cd115d), closes #35689
  • language-service: infer $implicit value for ngIf template contexts (#35941) (f5e4410)
  • ngcc: a new LockFile implementation that uses a child-process (#35934) (743ce7b), closes #35761
  • ngcc: consistently delegate to TypeScript host for typing files (#36089) (76d7188), closes #35078
  • ngcc: handle multiple original sources when flattening source-maps (#36027) (e6167cf)

Performance Improvements

  • ngcc: link segment markers for faster traversal (#36027) (a0fa63b)
  • ngcc: store the position of SegmentMarkers to avoid unnecessary computation (#36027) (4ce9098)
  • ngcc: use binary search when flattening mappings (#36027) (8768fc4)
  • ngcc: use line start positions for computing offsets in source-map flattening (#36027) (daa2a08)

9.0.6 (2020-03-10)

Bug Fixes

  • bazel: do not use manifest paths for generated imports within compilation unit (#35841) (5ea9a61)
  • compiler: process imports first and declarations second while calculating scopes (#35850) (6f2fd6e), closes #35502
  • core: add noSideEffects() to make*Decorator() functions (#35769) (#35846) (4fe3f37)
  • core: add noSideEffects() to ɵɵdefineComponent() (#35769) (#35846) (68ca32f)
  • core: remove side effects from ɵɵgetInheritedFactory() (#35769) (#35846) (000c834)
  • core: remove side effects from ɵɵNgOnChangesFeature() (#35769) (#35846) (d24ce21)
  • core: undecorated-classes-with-di migration should handle libraries generated with CLI versions past v6.2.0 (#35824) (eaf5b58), closes #34985
  • language-service: resolve the variable from the template context first (#35982) (f882ff0)
  • localize: improve matching and parsing of XLIFF 1.2 translation files (#35793) (677d666)
  • localize: improve matching and parsing of XLIFF 2.0 translation files (#35793) (689964b)
  • localize: improve matching and parsing of XTB translation files (#35793) (9f68ff9)
  • localize: merge translation from all XLIFF <file> elements (#35936) (83d7819), closes #35839
  • platform-browser: add missing peerDependency on [@angular](https://github.com/angular)/animations (#35949) (db9704a), closes #35888
  • router: state data missing in routerLink (#33203) (773d7b8)

Performance Improvements

9.0.5 (2020-03-04)

Bug Fixes

Features

Performance Improvements

9.0.4 (2020-02-27)

Bug Fixes

9.0.3 (2020-02-27)

Bug Fixes

Features

  • ngcc: implement source-map flattening (#35132) (0a8e8cd)
  • zone.js add an tickOptions parameter with property processNewMacroTasksSynchronously. (#33838) (7d2ea93), closes #33799

Performance Improvements

  • core: avoid recursive scope recalculation when TestBed.overrideModule is used (#35454) (349539e)
  • core: remove unused event argument in listener instructions (#35097) (afc5b3e)

9.0.2 (2020-02-19)

Bug Fixes

  • core: better handing of ICUs outside of i18n blocks (#35347) (4fb5e21)
  • core: correctly concatenate static and dynamic binding to class when shadowed (#35350) (8220363), closes #35335
  • core: remove support for Map/Set in [class]/[style] bindings (#35392) (1797390)
  • ivy: LFrame needs to release memory on leaveView() (#35156) (4b1dcaf), closes #35148
  • ivy: add attributes and classes to host elements based on selector (#34481) (03a8b16)
  • ivy: error if directive with synthetic property binding is on same node as directive that injects ViewContainerRef (#35343) (a30fd29), closes #35342
  • ivy: queries should match elements inside ng-container with the descendants: false option (#35384) (fd4ce84), closes #34768
  • ivy: wrong context passed to ngOnDestroy when resolved multiple times (#35249) (0671e54), closes #35167

9.0.1 (2020-02-12)

Bug Fixes

  • bazel: devserver shows blank page in Windows (#35159) (727f92f)
  • bazel: spawn prod server using port 4200 (#35160) (829f506)
  • bazel: update ibazel to 0.11.1 (#35158) (4e6d237)
  • compiler: report errors for missing binding names (#34595) (d13cab7)
  • elements: schematics fail with schema.json not found error (#35211) (94d002b), closes #35154
  • forms: change Array.reduce usage to Array.forEach (#35349) (554c2cb)
  • ivy: ensure module imports are instantiated before the module being declared (#35172) (b6a3a73)
  • ivy: repeat template guards to narrow types in event handlers (#35193) (dea1b96), closes #35073
  • ivy: set namespace for host elements of dynamically created components (#35136) (480a4c3)
  • language-service: Suggest ? and ! operator on nullable receiver (#35200) (3cc24a9)
  • ngcc: ensure that path-mapped secondary entry-points are processed correctly (#35227) (c3c1140), closes #35188

9.0.0 (2020-02-06)

Release Highlights & Update instructions

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

Dependency updates

@angular/core now requires:

  • RxJS 6.5

@angular/compiler-cli now requires:

  • TypeScript 3.6 or 3.7

Bug Fixes

Code Refactoring

Features

Performance Improvements

  • ivy: remove unused argument in hostBindings function (#34969) (71a3c72)
  • ivy: add more styling use-cases to benchmarks (#34923) (ef70a89)
  • 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)
  • ivy: support simple generic type constraints in local type ctors (#34021) (88adc30)
  • 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)
  • ivy: chain listener instructions (#33720) (#34340) (d3ec306)
  • ivy: chain styling instructions (#33837) (#34340) (c66fd06)
  • add js-web-frameworks benchmark (#34034) (bf16b0e)
  • ivy: avoid duplicate state lookup and default function parameters (#34183) (00f7372)
  • 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)
  • 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)
  • core: Avoid unnecessary creating provider factory (#33742) (c315881)
  • 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
  • ivy: avoid generating selectors array for directives without a selector (#33431) (c3e9356)
  • 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)
  • ivy: avoid unnecessary i18n pass while processing a template (#33284) (7f7dc7c)
  • 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)
  • 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)
  • 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)
  • ivy: avoid repeat global state accesses in i18n instructions (#32916) (ffc34b3)
  • ivy: remove extra SafeStyle detection code (#32775) (52552b0)
  • 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)
  • 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)
  • 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)
  • ivy: minimise writes to the lView[BINDING_INDEX] / binding root (#32263) (e3422e0)
  • ivy: store binding metadata in the ngDevMode only (#32317) (0874bf4)
  • 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)
  • ivy: don't read global state when interpolated values don't change (#32093) (6eb9c2f)

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)
  • build: remove vendored Babel typings (#33176) (#33215) (e9ee685)
  • build: update webdriver-manager to support latest Chrome (#33216) (a914859)
  • build: use http caching on windows CI runs (#33238) (#33254) (117ca7c)
  • feat: add a flag in bootstrap to enable coalesce event change detection to improve performance (#30533) (#33230) (082aed6)
  • docs: create Issue and Pull Request markdown doc, explaining automatic locking policy (#32405) (43619fc)

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)
  • 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.
  • typescript 3.4 and 3.5 are no longer supported, please update to typescript 3.6
  • 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.
  • 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.
  • 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"
      ]
    }
  }
]
  • 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.
  • 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.

  • 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.
  • 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)

DEPRECATIONS

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

8.2.14 (2019-11-13)

Bug Fixes

8.2.13 (2019-10-30)

Bug Fixes

8.2.12 (2019-10-23)

Bug Fixes

8.2.11 (2019-10-15)

Bug Fixes

8.2.10 (2019-10-09)

This release contains various API docs improvements.

8.2.9 (2019-10-02)

Bug Fixes

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

8.2.8 (2019-09-25)

This release contains various API docs improvements.

8.2.7 (2019-09-18)

Bug Fixes

8.2.6 (2019-09-11)

This release contains various API docs improvements.

8.2.5 (2019-09-04)

This release contains various API docs improvements.

Bug Fixes

8.2.4 (2019-08-28)

This release contains various API docs improvements.

8.2.3 (2019-08-21)

Bug Fixes

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

8.2.2 (2019-08-12)

Bug Fixes

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

8.2.1 (2019-08-08)

Bug 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)
  • 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

  • use the correct WTF array to iterate over (#31208) (4aed480)
  • compiler-cli: Return original sourceFile instead of redirected sourceFile from getSourceFile (#26036) (13dbb98), closes #22524

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)

Release Highlights & Update instructions

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

Features

  • add support for TypeScript 3.4 (and drop older versions) (#29372) (ef85336)
  • 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)
  • common: add ability to watch for AngularJS URL updates through onUrlChange hook (#30466) (8022d36)
  • common: stricter types for SlicePipe (#30156) (722b2fa)
  • add support for TypeScript 3.3 (and drop older versions) (#29004) (75748d6)
  • core: update schematic to migrate to explicit query timing (#28983) (6215799)
  • service-worker: add JSON schema for service worker config (#27859) (3bee0f6), closes #19847
  • bazel: add ts_config extending support for ng_module (#21883) (edb6c2d)
  • upgrade domino to v2.1.2 (#28767) (fdca001)
  • compiler-cli: make enableIvy ngtsc/true equivalent (#28616) (1923c2f)
  • core: allow users to define timing of ViewChild/ContentChild queries (#28810) (19afb79)
  • router: add hash-based navigation option to setUpLocationSync (#28609) (71d0eeb), closes #24429 #21995
  • optionally save complete performance log in chrome benchpress tests (#27551) (d42f32c)
  • bazel: add dts bundler as action to ng_module (#28588) (3d39100)
  • compiler: support tokenizing a sub-section of an input string (#28055) (eeb560a)
  • compiler: support tokenizing escaped strings (#28055) (2424184)
  • compiler-cli: no longer re-export external symbols by default (#28633) (91b7152), closes #28594 #25644 #25644
  • compiler-cli: expose ngtsc as a TscPlugin (#28435) (a227c52)
  • bazel: Add support for SASS (#28167) (f59f18c)
  • compiler-cli: resolve generated Sass/Less files to .css inputs (#28166) (a58fd21)
  • forms: add markAllAsTouched() to AbstractControl (#26812) (45bf911), closes #19400
  • forms: export NumberValueAccessor & RangeValueAccessor directives (#27743) (ac15717)

Bug Fixes

Performance Improvements

Reverts

DEPRECATIONS

  • core: deprecate integration with the Web Tracing Framework (WTF) (#30642) (b408445)
  • platform-webworker: deprecate platform-webworker (#30642) (361f181) (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

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.

7.2.15 (2019-05-07)

Bug Fixes

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)

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

7.2.11 (2019-03-26)

This release contains various API docs improvements.

7.2.10 (2019-03-20)

Bug Fixes

7.2.9 (2019-03-12)

This release contains various API docs improvements.

7.2.8 (2019-03-06)

Bug Fixes

7.2.7 (2019-02-27)

Bug Fixes

7.2.6 (2019-02-20)

Bug Fixes

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

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

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

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)

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)

Features

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

  • service-worker: clean up caches from old SW versions (#26319) (2326b9c)

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

  • router: fix URL serialization so special characters are only encoded where needed (#22337) (789a47e), closes #10280

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)

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