Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Update angular monorepo to v12 (major)#15

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-angular-monorepo
Open

Update angular monorepo to v12 (major)#15
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-angular-monorepo

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Apr 6, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@angular/animations 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/common 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/compiler 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/compiler-cli 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/core 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/forms 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/language-service 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/platform-browser 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/platform-browser-dynamic 10.2.5 -> 12.0.1 age adoption passing confidence
@angular/router 10.2.5 -> 12.0.1 age adoption passing confidence

Release Notes

angular/angular

v12.0.1

Compare Source

benchpress
Commit Description
28ee986 fix(benchpress): update the check for start and end events (#​42085)
compiler
Commit Description
52c07e4 fix(compiler): unclear lexer error when using private identifier in expressions (#​42027)
core
Commit Description
3a46ad9 fix(core): global listeners not being bound on non-node host elements (#​42014)
forms
Commit Description
9b90c03 fix(forms): registerOnValidatorChange should be called for ngModelGroup. (#​41971)

Special Thanks:

Alex Rickabaugh, Daniel Díaz, David Shevitz, Dylan Hunn, Front-end developer, George Kalpakas, Joey Perrott, Kristiyan Kostadinov, Lars Gyrup Brink Nielsen, MrJithil, Paul Gschwendtner, Renovate Bot, Sam Severance, Sumit Arora, iRealNirmal, iron, mgechev, rachid Oussanaa and wagnermaciel

v12.0.0

Compare Source

Blog post "Angular v12 is now available".

Bug Fixes
Build System
Features
Performance Improvements
BREAKING CHANGES
  • Minified UMD bundles are no longer included in the distributed NPM packages.
  • animations: DOM elements are now correctly removed when the root view is removed.
    If you are using SSR and use the app's HTML for rendering, you will need
    to ensure that you save the HTML to a variable before destorying the
    app.
    It is also possible that tests could be accidentally relying on the old behavior by
    trying to find an element that was not removed in a previous test. If
    this is the case, the failing tests should be updated to ensure they
    have proper setup code which initializes elements they rely on.
  • common: Methods of the PlatformLocation class, namely onPopState and onHashChange,
    used to return void. Now those methods return functions that can be called
    to remove event handlers.
  • common: The methods of the HttpParams class now accept string | number | boolean
    instead of string for the value of a parameter.
    If you extended this class in your application,
    you'll have to update the signatures of your methods to reflect these changes.
  • compiler-cli: Linked libraries no longer generate legacy i18n message ids. Any downstream
    application that provides translations for these messages, will need to
    migrate their message ids using the localize-migrate command line tool.
  • core: Angular no longer maintains support for node v10
  • core: Previously the ng.getDirectives function threw an error in case a
    given DOM node had no Angular context associated with it (for example
    if a function was called for a DOM element outside of an Angular app).
    This behavior was inconsistent with other debugging utilities under ng
    namespace, which handled this situation without raising an exception.
    Now calling the ng.getDirectives function for such DOM nodes would
    result in an empty array returned from that function.
  • core: Switching default of emitDistinctChangesOnlyDefaultValue
    which changes the default behavior and may cause some applications which
    rely on the incorrect behavior to fail.

emitDistinctChangesOnly flag has also been deprecated and will be
removed in a future major release.

The previous implementation would fire changes QueryList.changes.subscribe
whenever the QueryList was recomputed. This resulted in an artificially
high number of change notifications, as it is possible that recomputing
QueryList results in the same list. When the QueryList gets recomputed
is an implementation detail, and it should not be the thing that determines
how often change event should fire.

Unfortunately, fixing the behavior outright caused too many existing
applications to fail. For this reason, Angular considers this fix a
breaking fix and has introduced a flag in @ContentChildren and
@ViewChildren, that controls the behavior.

export class QueryCompWithStrictChangeEmitParent {
  @​ContentChildren('foo', {
    // This option is the new default with this change.
    emitDistinctChangesOnly: true,
  })
  foos!: QueryList<any>;
}

For backward compatibility before v12
emitDistinctChangesOnlyDefaultValue was set to false. This change
changes the default to true.

  • core: The type of the APP_INITIALIZER token has been changed to more accurately
    reflect the types of return values that are handled by Angular. Previously,
    each initializer callback was typed to return any, this is now
    Promise<unknown> | Observable<unknown> | void. In the unlikely event that
    your application uses the Injector.get or TestBed.inject API to inject
    the APP_INITIALIZER token, you may need to update the code to account for
    the stricter type.

Additionally, TypeScript may report the TS2742 error if the APP_INITIALIZER
token is used in an expression of which its inferred type has to be emitted
into a .d.ts file. To workaround this, an explicit type annotation is needed,
which would typically be Provider or Provider[].

  • core: Minimum supported zone.js version is 0.11.4

  • forms: The emitEvent option was added to the following FormArray and FormGroup methods:

  • FormGroup.addControl

  • FormGroup.removeControl

  • FormGroup.setControl

  • FormArray.push

  • FormArray.insert

  • FormArray.removeAt

  • FormArray.setControl

  • FormArray.clear

If your app has custom classes that extend FormArray or FormGroup classes and override the
above-mentioned methods, you may need to update your implementation to take the new options into
account and make sure that overrides are compatible from a types perspective.

  • forms: Previously min and max attributes defined on the <input type="number">
    were ignored by Forms module. Now presence of these attributes would
    trigger min/max validation logic (in case formControl, formControlName
    or ngModel directives are also present on a given input) and
    corresponding form control status would reflect that.
  • platform-browser: XhrFactory has been moved from @angular/common/http to @angular/common.

Before

import {XhrFactory} from '@&#8203;angular/common/http';

After

import {XhrFactory} from '@&#8203;angular/common';
  • router: Strict null checks will report on fragment potentially being null.
    Migration path: add null check.
  • router: The type of the RouterLinkActive.routerLinkActiveOptions input was
    expanded to allow more fine-tuned control. Code that previously read
    this property may need to be updated to account for the new type.

v11.2.14

Compare Source

core
Commit Description
5bb7c0e fix(core): do not retain dynamically compiled components and modules (#​42003)
40cc29a fix(core): invoke profiler around ngOnDestroy lifecycle hooks (#​41969)
platform-browser
Commit Description
f66c9ae fix(platform-browser): prevent memory leak of style nodes if shadow DOM encapsulation is used (#​42005)

Special Thanks:

Alex Rickabaugh, Andrew J Asche, Georgii Dolzhykov, Joey Perrott, Joost Koehoorn, Julien Marcou, Kapunahele Wong, Pete Bacon Darwin, Richard Sithole, Teri Glover, iRealNirmal, Minko Gechev, profanis and va-stefanek

v11.2.13

Compare Source

Bug Fixes

v11.2.12

Compare Source

Bug Fixes
  • compiler: strip scoped selectors from [@font-face](https://togithub.com/font-face) rules (#​41815) (de39b49), closes #​41751
  • upgrade: preserve $interval.flush when ngMocks is being used (#​30229) (dd46b87)

v11.2.11

Compare Source

Bug Fixes

v11.2.10

Compare Source

Bug Fixes
  • compiler-cli: prevent eliding default imports in incremental recompilations (#​41586) (43050a1), closes #​41377
  • compiler-cli: show a more specific error for Ivy NgModules (#​41534) (09eb125)
  • core: error if DebugRenderer2.destroyNode is called twice in a row (#​41565) (419c189)
  • language-service: bound attributes should not break directive matching ([#​41597](https://togithub

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate Bot force-pushed the renovate/major-angular-monorepo branch 3 times, most recently from 26f7b90 to 87e45e2 Compare April 8, 2021 00:49
@renovate renovate Bot force-pushed the renovate/major-angular-monorepo branch 3 times, most recently from fdd1156 to b34490e Compare April 21, 2021 17:27
@renovate renovate Bot force-pushed the renovate/major-angular-monorepo branch 2 times, most recently from 8d758d7 to 5c17603 Compare April 28, 2021 19:47
@renovate renovate Bot force-pushed the renovate/major-angular-monorepo branch 2 times, most recently from e40814e to 67a6224 Compare May 6, 2021 00:48
@renovate renovate Bot force-pushed the renovate/major-angular-monorepo branch from 67a6224 to 01a3649 Compare May 12, 2021 23:31
@renovate renovate Bot changed the title Update angular monorepo to v11 (major) Update angular monorepo to v12 (major) May 12, 2021
@renovate renovate Bot force-pushed the renovate/major-angular-monorepo branch from 01a3649 to 2cc350d Compare May 19, 2021 18:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant