-
Notifications
You must be signed in to change notification settings - Fork 0
Update angular monorepo to v20 (major) #23
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
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/major-angular-monorepo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+433
−128
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4eac135
to
360c139
Compare
48c9cb8
to
dc91753
Compare
dc91753
to
f018ea4
Compare
2769ab8
to
58e7f92
Compare
a79b395
to
f6f0826
Compare
d8e3dfa
to
a1bb388
Compare
a1bb388
to
bef7e77
Compare
bef7e77
to
8bea60a
Compare
949d008
to
8aa4c0d
Compare
8aa4c0d
to
9722e69
Compare
9722e69
to
89865d5
Compare
89865d5
to
6ed1fc1
Compare
6ed1fc1
to
ec5b665
Compare
ec5b665
to
a387f40
Compare
a387f40
to
9b27fd2
Compare
9b27fd2
to
b3970ba
Compare
b3970ba
to
bcc27d0
Compare
64f1f87
to
fb6a190
Compare
fb6a190
to
1a1a12b
Compare
dd89d3f
to
acbc749
Compare
1bd9e7e
to
411ea33
Compare
43ec35a
to
c1f721e
Compare
c1f721e
to
1bb86d8
Compare
4942aad
to
949a4de
Compare
949a4de
to
8045380
Compare
02b8de7
to
d312acc
Compare
df466c8
to
95607fd
Compare
6e99096
to
cdfa30a
Compare
90e7f44
to
3d121ef
Compare
7e3eed2
to
aca4836
Compare
aca4836
to
aef697c
Compare
0346e7f
to
2b3094c
Compare
2b3094c
to
fbd2611
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
11.2.11
->20.1.0
11.2.11
->20.1.0
11.2.11
->20.1.0
11.2.11
->20.1.0
11.2.11
->20.1.0
11.2.11
->20.1.0
11.2.11
->20.1.0
11.2.11
->20.1.0
11.2.11
->20.1.0
Release Notes
angular/angular (@angular/animations)
v20.1.0
Compare Source
common
compiler
compiler-cli
core
destroyed
property onDestroyRef
(#61849)destroyed
property toEnvironmentInjector
(#61951)forms
FormGroup
/FormRecord
(#55860)http
language-service
router
loadComponent
andloadChildren
functions in the route's injection context (#62133)service-worker
v20.0.7
Compare Source
v20.0.6
Compare Source
v20.0.5
Compare Source
compiler-cli
core
ErrorHandler
from a destroyed injector (#61886)router
upgrade
v20.0.4
Compare Source
core
APP_ID
before injector is destroyed (#61885)migrations
v20.0.3
Compare Source
v20.0.2
Compare Source
core
onDestroy
inoutputToObservable
(#61882)v20.0.1
Compare Source
compiler
core
takeUntilDestroyed
completes immediately if DestroyRef already destroyed (#61847)onDestroy
inResourceImpl
whendestroy()
is called (#61870)onDestroy
when observable errors intoSignal
(#61596)migrations
service-worker
v20.0.0
Compare Source
Blog post: https://blog.angular.dev/announcing-angular-v20-b5c9c06cf301
Breaking Changes
common
Y
formatter (week-numbering year) without also includingw
(week number) is now detected as suspicious date pattern, asy
is typically intended.AsyncPipe
now directly catches unhandled errors insubscriptions and promises and reports them to the application's
ErrorHandler
. For Zone-based applications, these errors would havebeen caught by ZoneJS and reported to
ErrorHandler
so the result isgenerally the same. The change to the exact mechanism for reporting can
result in differences in test environments that will require test
updates.
compiler
'in' in an expression now refers to the operator
void
in an expression now refers to the operatorPreviously an expression in the template like
{{void}}
referred to aproperty on the component class. After this change it now refers to the
void
operator, which would make the above example invalid. If you haveexisting expressions that need to refer to a property named
void
,change the expression to use
this.void
instead:{{this.void}}
.Parenthesis are always respected.
This can lead to runtime breakages when a nullish coalescing operator is nested within parentheses.
eg.
{{ (foo?.bar).baz }}
will throw iffoo
is nullish. This is the same behavior as native JavaScript.core
TypeScript versions less than 5.8 are no longer supported.
the
TestBed.flushEffects()
was removed - usethe
TestBed.tick()
instead.provideExperimentalCheckNoChangesForDebug
has severalbreaking changes:
provideCheckNoChangesConfig
useNgZoneOnStable
option is removed. This wasn't found to be generallymore useful than
interval
provideExperimentalZonelessChangeDetection
isrenamed to
provideZonelessChangeDetection
as it is now "DeveloperPreview" rather than "Experimental".
InjectFlags
has been removed.inject
no longer acceptsInjectFlags
.Injector.get
no longer acceptsInjectFlags
.EnvironmentInjector.get
no longer acceptsInjectFlags
.TestBed.get
no longer acceptsInjectFlags
.TestBed.inject
no longer acceptsInjectFlags
.TestBed.get
has been removed. UseTestBed.inject
instead.afterRender was renamed to afterEveryRender.
Before upgrading to Angular v20, ensure the Node.js version is at least 20.11.1.
For the full list of supported versions, visit: https://angular.dev/reference/versions
PendingTasks.run
no longer returns the result of theasync function. If this behavior is desired, it can be re-implemented
manually with the
PendingTasks.add
. Be aware, however, that promise rejectionswill need to be handled or they can cause the node process to shut down
when using SSR.
Uncaught errors in listeners which were previously only reported to
ErrorHandler
are now also reported to Angular's internal errorhandling machinery. For tests, this means that the error will be
rethrown by default rather than only logging the error. Developers
should fix these errors, catch them in the test if the test is
intentionally covering an error case, or use
rethrowApplicationErrors: false
inconfigureTestingModule
as a last resort.The
any
overload has been removed frominjector.get
. It now only supportsProviderToken<T>
and (deprecatedsince v4)
string
.Animations are guaranteed to be flushed when Angular
runs automatic change detection or manual calls to
ApplicationRef.tick
.Prior to this change, animations would not be flushed in some situations
if change detection did not run on any views attached to the
application. This change can affect tests which may rely on the old
behavior, often by making assertions on DOM elements that should have
been removed but weren't because DOM removal is delayed until animations
are flushed.
ApplicationRef.tick
will no longer catch and reporterrors to the appplication
ErrorHandler
. Errors will instead be thrown out ofthe method and will allow callers to determine how to handle these
errors, such as aborting follow-up work or reporting the error and
continuing.
This commit deprecates
ng-reflect-*
attributes and updates the runtime to stop producing them by default. Please refactor application and test code to avoid relying onng-reflect-*
attributes.To enable a more seamless upgrade to v20, we've added the
provideNgReflectAttributes()
function (can be imported from the@angular/core
package), which enables the mode in which Angular would be producing those attribites (in dev mode only). You can add theprovideNgReflectAttributes()
function to the list of providers within the bootstrap call.router
RedirectFn
can now returnObservable
orPromise
. Any code that directly calls functions returning this typemay need to be adjusted to account for this.
required writable arrays have now been updated to accept readonly
arrays when no mutations are done.
Route
no longer includeany
inthe type union. The union includes functions for the functional guards
as well as a type matching
Injector.get
:ProviderToken<T>|string
.Note that string is still deprecated on both the route guards and
Injector.get
.Deprecations
core
ngIf
/ngFor
/ngSwitch
are deprecated. Use the control flow blocks instead (@for
/@if
/@switch
).platform-browser
@angular/platform-browser-dynamic
platform-server
@angular/platform-server/testing
Use e2e tests to verify SSR behavior instead.
common
updateLatestValue
if view is destroyed before promise resolves (#58041)NgOptimizedImage
exceeds the preload limit (#60879)compiler
@for
blocks (#60495)in
keyword in Binary expression (#58432)compiler-cli
core
Injector.destroy
onInjector
created withInjector.create
(#60054)toObservable
as stable (#60449)provideExperimentalCheckNoChangesForDebug
toprovideCheckNoChangesConfig
(#60906)PendingTasks.run
(#60044)withEventReplay()
is invoked (#61077)@Attribute
as optional (#60916)zone.js
as an optional peer dependency (#61616)hasPendingTasks
observers (#59723)forceRoot
flag for effects (#60535)rejectErrors
option encourages uncaught exceptions (#60397)CDR.detectChanges
(#60056)ApplicationRef.prototype.bootstrap
inNgZone
(#60720)ApplicationRef.tick
to callsite (#60102)ngIf
/ngFor
/ngSwitch
. (#60492)ng-reflect
attributes by default (#60973)forms
http
platform-browser
platform-browser-dynamic
package (#61043)platform-server
router
v19.2.14
Compare Source
compiler
migrations
v19.2.13
Compare Source
common
service-worker
v19.2.12
Compare Source
common
Configuration
📅 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.