-
Notifications
You must be signed in to change notification settings - Fork 0
Update angular monorepo to v21 (major) #16
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
base: master
Are you sure you want to change the base?
Conversation
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: package-lock.json |
f41d02e to
6def733
Compare
6def733 to
104b9b3
Compare
104b9b3 to
f26dea7
Compare
7b8e58f to
b437a12
Compare
3e2dc78 to
133e0fa
Compare
7a485e8 to
022aac8
Compare
8794a0d to
02c647c
Compare
be7f481 to
2e9e664
Compare
5148065 to
dfc910d
Compare
dfc910d to
8d5dbf8
Compare
7eb2dc7 to
1c10256
Compare
b15abe4 to
05fef75
Compare
05fef75 to
ff59c35
Compare
8422617 to
f5acc4e
Compare
f5acc4e to
a751944
Compare
9d910e9 to
988b033
Compare
988b033 to
d3c75c0
Compare
d3c75c0 to
6750d48
Compare
8c77d93 to
3a5458c
Compare
5e20581 to
96cf50a
Compare
96cf50a to
3546b8f
Compare
5662b16 to
52d96ee
Compare
52d96ee to
0599e9f
Compare
0599e9f to
f723766
Compare
f723766 to
b2225d2
Compare
b2225d2 to
342ae07
Compare
342ae07 to
7dffac5
Compare
7dffac5 to
006f4d3
Compare
006f4d3 to
c1bc786
Compare
|
c1bc786 to
c8a8de8
Compare
c8a8de8 to
1863600
Compare
1863600 to
c0e0254
Compare
This PR contains the following updates:
^13.0.1→^21.0.0^13.0.1→^21.0.0^13.0.1→^21.0.0^13.0.1→^21.0.0^13.0.1→^21.0.0^13.0.1→^21.0.0^13.0.1→^21.0.0^13.0.1→^21.0.0^13.0.1→^21.0.0Release Notes
angular/angular (@angular/animations)
v21.1.0Compare Source
Deprecations
upgrade
VERSIONfrom@angular/upgradeis deprecated. Please use the entry from@angular/upgrade/staticinstead.common
compiler
core
StaticProviderforprovidePlatformInitializerforms
platform-browser
contexttocreateApplicationcreateApplicationrouter
upgrade
VERSIONexportv21.0.9Compare Source
forms
migrations
v21.0.8Compare Source
core
v21.0.7Compare Source
compiler
compiler-cli
importsexpressiontypeoftype referencescore
forms
[formField]directivedirtyinputhiddeninputpendinginputrouter
queryParamsHandlingupdateCallbackDonepromisev21.0.6Compare Source
Breaking Changes (affecting only experimental features)
forms
The shape of
SignalFormsConfig.classeshas changedPreviously each function in the
classesmap took aFieldState. Nowit takes a
Fielddirective.For example if you previously had:
You would need to update to:
(cherry picked from commit
348f149)(cherry picked from commit
ae0c590)core
forms
language-service
v21.0.5Compare Source
core
InjectionTokenwith factory onlyforms
v21.0.4Compare Source
compiler
compiler-cli
forms
Fielddirectivev21.0.3Compare Source
compiler-cli
core
[field]binding instructions (#65599)forms
FormUiControlsignals[field]bindings (#65599)http
router
v21.0.2Compare Source
compiler
attributeNameand MathML/SVG URLsv21.0.1Compare Source
compiler-cli
core
platformBrowserDynamicDOCUMENTforCSP_NONCEforms
Fielddirectivetypebindings on signal form controlshttp
migrations
v21.0.0Compare Source
Blog post "Announcing Angular v21".
Breaking Changes
common
TestBednow provides a fakePlatformLocationimplementation that supports the Navigation API. This may break some
tests, though we have not observed any failures internally. You can revert to the
old default for
TestBedby providing theMockPlatformLocationfrom@angular/common/testingin your providers:{provide: PlatformLocation, useClass: MockPlatformLocation}ngComponentOutletContentis now of typeNode[][] | undefinedinstead ofany[][] | undefined.compiler-cli
"typeCheckHostBindings": falsein theangularCompilerOptionssection of your tsconfig.the
emitDeclarationOnlyTS compiler option is enabled as this mode isnot supported.
core
The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.
Before:
After:
A schematic is provided to automatically update
main.server.tsfiles to pass theBootstrapContextto thebootstrapApplicationcall.In addition,
getPlatform()anddestroyPlatform()will now returnnulland be a no-op respectively when running in a server environment.Using a combination of
provideZoneChangeDetectionwhile also removing ZoneJS polyfills will no longer result in the
internal scheduler being disabled. All Angular applications now
consistenly use the same scheduler, and those with the Zone change detection
provider include additional automatic scheduling behaviors based on
NgZone stabilization.
(test only) - Using
provideZoneChangeDetectionin theTestBed providers would previously prevent
TestBedfrom rethrowingerrors as it should. Errors in the test will now be rethrown, regardless
of the usage of
provideZoneChangeDetection. Tests should be adjusted toprevent or account for these errors. As in previous major versions,
this behavior can be disabled with
rethrowApplicationErrors: falseinconfigureTestingModuleas a last resort.ignoreChangesOutsideZoneis no longer available as anoption for configuring ZoneJS change detection behavior.
Angular no longer provides a change detection scheduler
for ZoneJS-based change detection by default. Add
provideZoneChangeDetectionto the providers of yourbootstrapApplicationfunction or yourAppModule(if usingbootstrapModule). This provider addition will be covered by anautomated migration.
moduleIdwas removed fromComponentmetadata.The
interpolationoption on Components has been removed. Only the default{{ ... }}is now supported.elements
Fix signal input getter behavior in custom elements.
Before this change, signal inputs in custom elements required function calls to access their values (
elementRef.newInput()), while decorator inputs were accessed directly (elementRef.oldInput). This inconsistency caused confusion and typing difficulties.The getter behavior has been standardized so signal inputs can now be accessed directly, matching the behavior of decorator inputs:
Before:
elementRef.oldInputelementRef.newInput()After:
elementRef.oldInputelementRef.newInputforms
platform-browser
ApplicationConfigexport from@angular/platform-browserhas been removed.Please import
ApplicationConfigfrom@angular/coreinstead.router
lastSuccessfulNavigationis now a signal and needs to be invokedmicrotasks to complete. Tests have been found to often be highly
dependent on the exact timing of navigation completions with respect to
the microtask queue. The most common fix for tests is to ensure all
navigations have been completed before making assertions. On rare
occasions, this can also affect production applications. This can be
caused by multiple subscriptions to router state throughout the application,
both of which trigger navigations that happened to not conflict with the
previous timing.
upgrade
UpgradeAdapteris no longer available. Useupgrade/staticinsteadzone.js
Deprecations
http
HttpResponseBase.statusTextis deprecatedcommon
ngComponentOutletContent(#63674)ngModuleFactoryinput ofNgComponentOutlet(#62838)compiler
compiler-cli
@defertriggers (#64069)emitDeclarationOnlyTS compiler option enabled (#61609)core
bootstrapModuleoptions (#64354)BootstrapContextfor improved server bootstrapping (#63562)@foriteration over field is reactive (#64113)moduleIdfrom Component metadata (#63482)interpolationoption on Components. (#63474)elements
forms
debounce()rule for signal formsConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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.
This PR was generated by Mend Renovate. View the repository job log.