Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update angular #22064

Merged
merged 1 commit into from
Nov 4, 2021
Merged

build: update angular #22064

merged 1 commit into from
Nov 4, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 3, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
@angular/animations dependencies digest e403007 -> 62b4e6d
@angular/animations devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/cdk dependencies digest 23d9361 -> 83d8f67
@angular/cdk devDependencies patch 13.0.0-rc.2 -> 13.0.0
@angular/common dependencies digest 69770cd -> 5fe836a
@angular/common peerDependencies major ^12.0.0 -> ^13.0.0
@angular/common devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/compiler dependencies digest f0ae363 -> 02bdde1
@angular/compiler devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/compiler-cli dependencies digest 70b270e -> 5755872
@angular/compiler-cli devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/core dependencies digest 28e28dd -> 75dd9fe
@angular/core peerDependencies major ^12.0.0 -> ^13.0.0
@angular/core devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/dev-infra-private devDependencies digest 047a95f -> e87c1a6
@angular/forms dependencies digest df4bee2 -> d183012
@angular/forms devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/language-service dependencies digest c5da52c -> db00ea9
@angular/localize dependencies digest cfbe509 -> da319fe
@angular/localize devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/material dependencies digest 7f3d92f -> 1bd28d1
@angular/material devDependencies patch 13.0.0-rc.2 -> 13.0.0
@angular/material-moment-adapter dependencies digest b78291f -> 5cf2198
@angular/platform-browser dependencies digest 7ee823b -> be86f7d
@angular/platform-browser devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/platform-browser-dynamic dependencies digest b4a9344 -> bfcce94
@angular/platform-browser-dynamic devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/platform-server dependencies digest 3b2d062 -> 4eb4afe
@angular/platform-server devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/router dependencies digest 0e3197d -> f5122a2
@angular/router devDependencies patch 13.0.0-rc.3 -> 13.0.0
@angular/service-worker dependencies digest 3aba343 -> 5cc726f
@angular/service-worker devDependencies patch 13.0.0-rc.3 -> 13.0.0
angular/dev-infra action digest d4a7620 -> a698f88

πŸ”‘ If you wish to disable git hash updates, add ":disableDigestUpdates" to the extends array in your config.


Release Notes

angular/angular

v13.0.0

Compare Source

Blog post "Angular v13 is now available".

Breaking Changes

common
  • The behavior of the SpyLocation used by the RouterTestingModule has changed
    to match the behavior of browsers. It no longer emits a 'popstate' event
    when Location.go is called. In addition, simulateHashChange now
    triggers both a hashchange and a popstate event.
    Tests which use location.go and expect the changes to be picked up by
    the Router should likely change to simulateHashChange instead.
    Each test is different in what it attempts to assert so there is no
    single change that works for all tests. Each test using the SpyLocation to
    simulate browser URL changes should be evaluated on a case-by-case basis.
core
  • TypeScript versions older than 4.4.2 are no longer supported.

  • NodeJS versions older than v12.20.0 are no longer
    supported due to the Angular packages using the NodeJS package exports
    feature with subpath patterns.

  • The WrappedValue class can no longer be imported from @angular/core,
    which may result in compile errors or failures at runtime if outdated
    libraries are used that are still using WrappedValue. The usage of
    WrappedValue should be removed as no replacement is available.

forms
  • A new type called FormControlStatus has been introduced, which is a union of all possible status strings for form controls. AbstractControl.status has been narrowed from string to FormControlStatus, and statusChanges has been narrowed from Observable<any> to Observable<FormControlStatus>. Most applications should consume the new types seamlessly. Any breakage caused by this change is likely due to one of the following two problems: (1) the app is comparing AbstractControl.status against a string which is not a valid status; or, (2) the app is using statusChanges events as if they were something other than strings.
router
  • The default url serializer would previously drop
    everything after and including a question mark in query parameters. That
    is, for a navigation to /path?q=hello?&other=123, the query
    params would be parsed to just {q: 'hello'}. This is
    incorrect because the URI spec allows for question mark characers in
    query data. This change will now correctly parse the params for the
    above example to be {v: 'hello?', other: '123'}.

  • Previously null and undefined inputs for routerLink were
    equaivalent to empty string and there was no way to disable the link's
    navigation.
    In addition, the href is changed from a property HostBinding() to an
    attribute binding (HostBinding('attr.href')). The effect of this
    change is that DebugElement.properties['href'] will now return the
    href value returned by the native element which will be the full URL
    rather than the internal value of the RouterLink href property.

  • The router will no longer replace the browser URL when a new navigation
    cancels an ongoing navigation. This often causes URL flicker and was
    only in place to support some AngularJS hybrid applications. Hybrid
    applications which rely on the navigationId being present on initial
    navigations that were handled by the Angular router should instead
    subscribe to NavigationCancel events and perform the
    location.replaceState themselves to add navigationId to the Router
    state.
    In addition, tests which assert urlChanges on the SpyLocation may
    need to be adjusted to account for the replaceState which is no longer
    triggered.

  • It is no longer possible to use Route.loadChildren using a string
    value. The following supporting classes were removed from
    @angular/core:

  • NgModuleFactoryLoader

  • SystemJsNgModuleFactoryLoader

The @angular/router package no longer exports these symbols:

  • SpyNgModuleFactoryLoader
  • DeprecatedLoadChildren

The signature of the setupTestingRouter function from
@angular/core/testing has been changed to drop its NgModuleFactoryLoader
parameter, as an argument for that parameter can no longer be created.

service-worker
  • The return type of SwUpdate#activateUpdate and SwUpdate#checkForUpdate changed to Promise<boolean>.

Although unlikely, it is possible that this change will cause TypeScript type-checking to fail in
some cases. If necessary, update your types to account for the new
return type.

Deprecations

core
  • Angular no longer requires component factories to dynamically create components. The factory-based signature of the ViewContainerRef.createComponent function is deprecated in favor of a different signature that allows passing component classes instead.

  • The getModuleFactory function is deprecated in favor of the getNgModuleById one. With Ivy it's possible to work with NgModule classes directly, without retrieving corresponding factories, so the getNgModuleById should be used instead.

  • Ivy made it possible to avoid the need to resolve Component and NgModule factories. Framework APIs allow to use Component and NgModule Types directly. As a result, the PlatformRef.bootstrapModuleFactory and a factory-based signature of the ApplicationRef.bootstrap method are now obsolete and are now deprecated. The PlatformRef.bootstrapModuleFactory calls can be replaced with PlatformRef.bootstrapModule ones. The ApplicationRef.bootstrap method allows to provide Component Type, so this can be used a replacement for the factory-based calls.

  • In ViewEngine, JIT compilation required special providers (like Compiler, CompilerFactory, etc) to be injected in the app and corresponding methods to be invoked. With Ivy, JIT compilation takes place implicitly if the Component, NgModule, etc have not already been AOT compiled. Those special providers were made available in Ivy for backwards-compatibility with ViewEngine to make the transition to Ivy smoother. Since ViewEngine is deprecated and will soon be removed, those symbols are now deprecated as well:

  • ModuleWithComponentFactories

  • Compiler

  • CompilerFactory

  • JitCompilerFactory

  • NgModuleFactory

Important note: this deprecation doesn't affect JIT mode in Ivy (JIT remains available with Ivy).

  • In Ivy, AOT summary files are unused in TestBed. Passing AOT summary files in TestBed has no effect, so the aotSummaries usage in TestBed is deprecated and will be removed in a future version of Angular.
platform-server
  • The renderModuleFactory symbol in @angular/platform-server is no longer necessary as of Angular v13.

The renderModuleFactory calls can be replaced with renderModule.

service-worker
  • The SwUpdate#activated observable is deprecated.

The SwUpdate#activated observable only emits values as a direct response to calling
SwUpdate#activateUpdate() and was only useful for determining whether the call resulted in an
update or not. Now, the return value of SwUpdate#activateUpdate() can be used to determine the
outcome of the operation and therefore using SwUpdate#activated does not offer any benefit.

  • The SwUpdate#availalbe observable is deprecated.

The new SwUpdate#versionUpdates observable provides the same information and more. Therefore, it
is possible to rebuild the same behavior as SwUpdate#availalbe using the events emitted by
SwUpdate#versionUpdates and filtering for VersionReadyEvent events.
As a result, the SwUpdate#availalbe observable is now redundant.

Commit Type Description
747553dd68 docs deprecate ViewEngine-based renderModuleFactory (#​43757)
bazel
Commit Type Description
62d7005a52 feat add strict_templates and experimental_extended_template_diagnostics to ng_module() rule (#​43582)
d977701a43 feat allow for custom conditions to be set in ng_package targets (#​43764)
4886585875 feat create transition for enabling partial compilation (#​43431)
cd1b52483e feat expose esm2020 and es2020 conditions in APF package exports (#​43740)
49b82ae561 feat implement partial compilation APF v13 for ng_package rule (#​43431)
274cb38e0b feat switch prodmode output to ES2020 (#​43431)
73ac50c447 feat wire up partial compilation build setting in ng_module (#​43431)
e0a72857cc fix construct a manifest file even when warnings are emitted (#​43582)
dbe656d1e0 fix ngc-wrapped should not rely on linker for external workspaces (#​43690)
common
Commit Type Description
adf4481211 feat add injection token for default date pipe timezone (#​43611)
c6a93001eb fix synchronise location mock behavior with the navigators (#​41730)
compiler
Commit Type Description
14b492df26 fix do not error if $any is used inside a listener (#​43866)
compiler-cli
Commit Type Description
bed121c34f feat inline resources when generating class metadata calls (#​43178)
263feba5c2 fix handle nullable expressions correctly in the nullish coalescing extended template diagnostic (#​43572)
8f7fdc59af fix not evaluating new signature for __spreadArray (#​43618)
426a3ecae7 fix updates ngc to pass the build when only warnings are emitted (#​43673)
core
Commit Type Description
a3960846da feat add createNgModuleRef function to create NgModuleRef based on NgModule class (#​43580)
fe1f6421d2 feat add getNgModuleById function to retrieve loaded NgModules by id (#​43580)
81c7eb813c feat add migration to opt out existing apps from new test module teardown behavior (#​43353)
e57691c9c5 feat Add migration to update empty routerLinks in templates (#​43176)
7dccbdd27b feat add support for Types in ViewContainerRef.createComponent (#​43022)
c14085e434 feat drop support for TypeScript 4.2 and 4.3 (#​43642)
94ba59bc9d feat enable test module teardown by default (#​43353)
ea61ec2562 feat support TypeScript 4.4 (#​43281)
e0a0d05d45 feat update node version support range to support v16 (#​43740)
7396021e4b fix avoid duplicating comments in TestBed teardown migration (#​43776)
7fd0428aae fix don't rethrow errors if test teardown has been disabled (#​43635)
66fb311d20 fix incorrect signature for initTestEnvironment (#​43615)
8ae99821d6 fix support InjectFlags argument in NodeInjector.get() (#​41592)
8878183521 perf remove support for the deprecated WrappedValue (#​43507)
elements
Commit Type Description
a468213f34 fix remove ng-add schematic (#​43975)
f544a53f5f fix remove incorrect @angular/platform-browser peer dependency (#​43975)
forms
Commit Type Description
d9d8f950e9 feat allow disabling min/max validators dynamically (by setting the value to null) (#​42978)
e49fc96ed3 feat Make Form Statuses use stricter types. (#​42952)
language-service
Commit Type Description
b10d90bef6 feat Add method for retrieving the component template at the cursor location (#​43208)
d5f9890c92 feat auto-apply optional chaining on nullable symbol (#​42995)
69957f72e2 feat provide snippets for attribute (#​43590)
fc3b50e427 fix exclude the SafePropertyRead when applying the optional chaining (#​43321)
migrations
Commit Type Description
95a68c5dc3 fix account for CRLF characters in template migrations (#​44013)
77bd2538cb fix apply individual expression edits to preserve newline characters (#​43519)
d849350c7b fix Ensure routerLink migration doesn't update unrelated files (#​43519)
2efc18e675 fix migration failed finding tsconfig file (#​43343)
b6f2a55147 fix prevent migrations from updating external templates multiple times (#​44013)
router
Commit Type Description
4f3beffdbf feat emit activate/deactivate events when an outlet gets attached/detached (#​43333)
faf9f5a3bc feat new output that would notify when link is activated (#​43280)
3c6b653089 feat Option to correctly restore history on failed navigation (#​43289)
784671597e fix Allow question marks in query param values (#​31187)
796da641f0 fix Do not modify parts of URL excluded from with 'eager' updates (#​43421)
772e08d14e fix fix Router's public API for canceledNavigationResolution (#​43842)
ccb09b4558 fix null/undefined routerLink should disable navigation (#​43087)
9e039ca68b fix Only trigger router navigation on popstate events from Location subscription (#​43328)
c5d0bd4966 fix Prevent URL flicker when new navigations cancel ongoing ones (#​43496)
adc68b100b fix reuse route strategy fix (#​43791)
361273fad5 refactor remove support for loadChildren string syntax (#​43591)
service-worker
Commit Type Description
59225f5586 feat SwUpdate#activeUpdate and SwUpdate#checkForUpdate should have a meaningful outcome (#​43668)
0dc45446fe feat expose more version update events (#​43668)

Special Thanks

Ahmed Ayed, Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bjarki, Charles Lyding, Dmitrij Kuba, Doug Parker, Dylan Hunn, George Kalpakas, Jessica Janiuk, Jochen Kraushaar, Joe Martin (Crowdstaffing), Joey Perrott, Jon Rimmer, JoostK, Kristiyan Kostadinov, Maximilian KΓΆller, Paul Gschwendtner, Pei Wang, Pete Bacon Darwin, Tomasz DomaΕ„ski, Willy Schott, anandtiwary, dario-piotrowicz, iRealNirmal, ivanwonder, krzysztof-grzybek, mgechev and vthinkxie

angular/components

v13.0.0

Compare Source

Breaking Changes

cdk
    • CKD_COPY_TO_CLIPBOARD_CONFIG has been removed. Use CDK_COPY_TO_CLIPBOARD_CONFIG instead.
    • ConnectedPositionStrategy has been removed. Use FlexibleConnectedPositionStrategy instead.
  • OverlayPositionBuilder.connectedTo has been removed. Use OverlayPositionBuilder.flexibleConnectedTo instead.
material
    • CanColorCtor is no longer necessary and has been removed.
  • CanDisableRippleCtor is no longer necessary and has been removed.
  • CanDisableCtor is no longer necessary and has been removed.
  • CanUpdateErrorStateCtor is no longer necessary and has been removed.
  • HasInitializedCtor is no longer necessary and has been removed.
  • HasTabIndexCtor is no longer necessary and has been removed.
    • Material now requires at least version 1.34.0 of Sass. Version 1.38.0 is recommended.
    • The _document and _dialog parameters have been removed from the MatDatepicker and MatDateRangePicker constructors.
    • MatFormFieldHarness.getHarnessLoaderForPrefix has been removed. Use MatFormFieldHarness.getPrefixText instead.
  • MatFormFieldHarness.getHarnessLoaderForSuffix has been removed. Use MatFormFieldHarness.getSuffixText instead.
  • The _labelOptions parameter of the MatFormField constructor has been removed.
  • MatFormField.underlineRef has been removed.
    • matTextareaAutosize has been removed. Use cdkTextareaAutosize from the @angular/cdk/text-field module instead.
    • MatTabHarness.getHarnessLoaderForContent has been removed. Use MatTabHarness.getRootHarnessLoader instead.
youtube-player
    • YouTubePlayer.createEventsBoundInZone has been removed.
material-date-fns-adapter
Commit Type Description
e8dd070bbd feat add date adapter for date-fns (#​23262)
2a358120f4 fix locale not passed into parse function (#​23653)
material-experimental
Commit Type Description
2789d8eb5f feat mdc-card: add DI token for configuring appearance (#​23302)
a4ae3b88c0 feat mdc-slide-toggle: switch to non-deprecated styles (#​23143)
e7a77edf1e fix mdc-tabs: update theming api (#​23855)
youtube-player
Commit Type Description
7539cf2837 refactor remove deprecated APIs for v13 (#​23520)
google-maps
Commit Type Description
7c16258cfb feat switch to non-deprecated typings (#​23350)
material
Commit Type Description
3dc5af4bfd feat dialog: add support for content sections in harness (#​23357)
e4b54aa2b7 feat progress-bar: add default options injection token (#​23363)
6c724c18a7 fix chips: show required asterisk when using required validator (#​23379)
728cf1c8eb fix dialog: improve screen reader support when opened (#​23085)
881edec3e6 fix icon: make icon-registry compatible with Trusted Types (#​23140)
1568b35972 fix input: show required asterisk when using required validator (#​23362)
64ba72f1fd fix select: show required asterisk when using required validator (#​23500)
01734b35af fix sidenav: restore focus with correct origin when closing via the backdrop (#​23492)
7bc9bfb9dc refactor core: remove deprecated APIs for v13 (#​23529)
40f0674e39 refactor core: update minimum required sass version and clean up workarounds (#​23414)
f8dc1770d1 refactor datepicker: remove deprecated APIs for v13 (#​23574)
700c0601c0 refactor form-field: remove deprecated APIs for version 13 (#​23389)
760b4564fa refactor input: remove deprecated autosize directive (#​23408)
3ad08940f1 refactor tabs: remove deprecated APIs for v13 (#​23426)
cdk
Commit Type Description
51796e1601 feat overlay: Extend cdkConnectedOverlayOrigin to support more types. (#​23253)
04b5a08190 feat schematics: add migration for removed symbols (#​23530)
b25283cda9 fix a11y: error on firefox (#​23395)
219e1f558a fix drag-drop: add conditional to scroll update (#​23337)
6e1f522d6a fix drag-drop: allow using cdkDragRootElement w/ comment tag (#​23596)
d70faa0018 fix drag-drop: sorted event emitted multiple times for single-item list (#​23589)
f2ff9e3142 fix schematics: drop tilde imports when updating to v13 (#​23732)
692ebafe7b fix testing: fake touch event does not set proper touch identifier
5833597a7a refactor clipboard: clean up deprecated APIs for v13 (#​23401)
8d39384770 refactor overlay: remove deprecated connected position strategy
multiple
Commit Type Description
769996ed3f feat add options to autoFocus field for dialogs (#​22780)
db18b4093f feat add support for TypeScript 4.4 (#​23646)
ng-add
Commit Type Description
5c22a1dbf0 fix syntax error due to ES2020 being used for ng-add with NodeJS 12.x (#​23744)

Special Thanks

Amy Sorto, Andrew Seguin, Charles, Jeremy Elbourn, Joey Perrott, Kristiyan Kostadinov, Md. Enzam Hossain, Michael Prentice, Miles Malerba, Paul Gschwendtner, Ruslan Lekhman, Suguru Inatomi, Wagner Maciel, Zach Arend, bjarkler and mmalerba

v13.0.0-rc.3

Compare Source

material-experimental
Commit Type Description
e7a77edf1e fix mdc-tabs: update theming api (#​23855)

Special Thanks

Andrew Seguin, Joey Perrott, Kristiyan Kostadinov, Paul Gschwendtner and Suguru Inatomi


Configuration

πŸ“… Schedule: "after 10pm every weekday,before 4am every weekday,every weekend" in timezone America/Tijuana.

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

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ‘» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, click this checkbox.

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

@renovate renovate bot added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Nov 3, 2021
@google-cla google-cla bot added the cla: yes label Nov 3, 2021
@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release and removed target: minor This PR is targeted for the next minor release labels Nov 3, 2021
@renovate renovate bot force-pushed the renovate/angular branch 4 times, most recently from 69fa431 to df24a6c Compare November 4, 2021 03:07
@clydin clydin added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Nov 4, 2021
@clydin clydin merged commit 0d864a4 into master Nov 4, 2021
@renovate renovate bot deleted the renovate/angular branch November 4, 2021 16:18
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants