-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update angular to v19 (major) #45
base: develop
Are you sure you want to change the base?
Conversation
|
@TIL-EBP @wendlans This will not work, because a lot of dependent packages are not updated yet (like ngx-tour, ngrx), so we are forced to wait. If it works, we also need to update zone.js and others; so this will be another manual update. Also note that they changed some things, so migrations do happen (e.g. the migration removes |
e3bf94c
to
3417f2e
Compare
@Tugark @TIL-EBP True. I usually see those big Angular updates from Renovate just as a reminder. We have to update major Angular updates manually anyway. |
3417f2e
to
244c71b
Compare
244c71b
to
0409fe5
Compare
This PR contains the following updates:
^18.2.12
->^19.0.0
^18.2.13
->^19.0.0
^18.2.14
->^19.0.0
^18.2.12
->^19.0.0
^18.2.13
->^19.0.0
^18.2.13
->^19.0.0
^18.2.13
->^19.0.0
^18.2.13
->^19.0.0
^18.2.13
->^19.0.0
^18.2.13
->^19.0.0
^18.2.14
->^19.0.0
^18.2.13
->^19.0.0
^18.2.13
->^19.0.0
^18.2.13
->^19.0.0
Release Notes
angular/angular-cli (@angular-devkit/build-angular)
v19.0.2
Compare Source
@schematics/angular
@angular/build
inject
to prevent code reorderinggetPrerenderParams
is undefined@angular/ssr
v19.0.1
Compare Source
@angular-devkit/build-angular
@angular/build
sha256
instead ofsha-256
as hash algorithm name@angular/ssr
./
v19.0.0
Compare Source
Breaking Changes
@schematics/angular
@angular-devkit/build-angular
The
browserTarget
option has been removed from the DevServer and ExtractI18n builders.buildTarget
is to be used instead.Protractor is no longer supported.
Protractor was marked end-of-life in August 2023 (see https://protractortest.org/). Projects still relying on Protractor should consider migrating to another E2E testing framework, several support solid migration paths from Protractor.
@angular-devkit/core
The deprecated
fileBuffer
function is no longer available. Update your code to usestringToFileBuffer
instead to maintain compatibility.Note: that this change does not affect application developers.
@angular/build
@angular/localize/init
polyfill will no longer be added automatically to projects. To prevent runtime issues, ensure that this polyfill is manually included in the "polyfills" section of your "angular.json" file if your application relies on Angular localization features.@angular/ssr
The
CommonEngine
API now needs to be imported from@angular/ssr/node
.Before
After
@angular-devkit/schematics-cli
@schematics/angular
withEventReplay()
inprovideClientHydration
for new SSR appsbrowser
builder@angular/ssr
featuredeclaration
andsourceMap
from default tsconfigexpress
@angular/cli
@angular-devkit/architect
@angular-devkit/build-angular
browser-sync
is not installedbrowserTarget
@angular-devkit/core
fileBuffer
function in favor ofstringToFileBuffer
@angular/build
sass
tostylePreprocessorOptions
in application builderoutputMode
option to the application builderssr.experimentalPlatform
optionssr.entry
during prerendering to enable access to local API routesssr.entry
in Vite dev-server when available--prerendering
or--app-shell
are no-opsindex.csr.html
is always generated when prerendering or SSR are enabled--import
from execArgv when spawning workersAPP_BASE_HREF
correctly in prerendered routesngServerMode
during vite prebundling--no-server
via command linereqHandler
for server.ts request handling@angular/localize/init
polyfill and related warnings@angular/ssr
createRequestHandler
andcreateNodeRequestHandler
utilitiesgetHeaders
Method toAngularAppEngine
andAngularNodeAppEngine
for handling pages static headersisMainModule
functionAngularAppEngine
as public APIwriteResponseToNodeResponse
andcreateWebRequestFromNodeRequest
in public APIAngularServerApp
AngularNodeAppEngine
API for Node.js integrationCommonEngine
API to/node
entry-point@angular/platform-server
provideServerRoutesConfig
in browser contextRESPONSE_INIT
,REQUEST
, andREQUEST_CONTEXT
tokensnull
to avoid requiring them to be set to optionalbootstrap is not a function
errorRenderMode.AppShell
angular/angular (@angular/animations)
v19.0.1
Compare Source
compiler-cli
core
forms
language-service
migrations
v19.0.0
Compare Source
Blog post: https://blog.angular.dev/meet-angular-v19-7b29dfd05b84
Breaking Changes
compiler
this.foo
property reads no longer refer to template context variables. If you intended to read the template variable, do not usethis.
.core
Angular directives, components and pipes are now standalone by default.
standalone: false
for declarations that are currently declared in@NgModule
s.ng update
for v19 will take care of this automatically.TypeScript versions less than 5.5 are no longer supported.
Timing changes for
effect
API (in developer preview):effects which are triggered outside of change detection run as part of
the change detection process instead of as a microtask. Depending on the
specifics of application/test setup, this can result in them executing
earlier or later (or requiring additional test steps to trigger; see below
examples).
effects which are triggered during change detection (e.g. by input
signals) run earlier, before the component's template.
ExperimentalPendingTasks
has been renamed toPendingTasks
.The
autoDetect
feature ofComponentFixture
will nowattach the fixture to the
ApplicationRef
. As a result, errors duringautomatic change detection of the fixture be reported to the
ErrorHandler
.This change may cause custom error handlers to observe new failures that were previously unreported.
createComponent
will now render default fallback with emptyprojectableNodes
.projectableNodes
in thecreateComponent
API, the default fallback contentof the
ng-content
will be rendered if present. To prevent rendering the default content, passdocument.createTextNode('')
as aprojectableNode
.Errors that are thrown during
ApplicationRef.tick
will now be rethrown when using
TestBed
. These errors should beresolved by ensuring the test environment is set up correctly to
complete change detection successfully. There are two alternatives to
catch the errors:
it synchronously and expect the error. For example, a jasmine test
could write
expect(() => TestBed.inject(ApplicationRef).tick()).toThrow()
TestBed
will reject any outstandingComponentFixture.whenStable
promises. A jasmine test,for example, could write
expectAsync(fixture.whenStable()).toBeRejected()
.As a last resort, you can configure errors to not be rethrown by
setting
rethrowApplicationErrors
tofalse
inTestBed.configureTestingModule
.The timers that are used for zone coalescing and hybrid
mode scheduling (which schedules an application state synchronization
when changes happen outside the Angular zone) will now run in the zone
above Angular rather than the root zone. This will mostly affect tests
which use
fakeAsync
: these timers will now be visible tofakeAsync
and can be affected by
tick
orflush
.The deprecated
factories
property inKeyValueDiffers
has been removed.elements
hybrid scheduler, timing of change detection around custom elements has
changed subtly. These changes make elements more efficient, but can cause
tests which encoded assumptions about how or when elements would be checked
to require updating.
localize
name
option in theng add
@localize`` schematic has been removed in favor of theproject
option.platform-browser
BrowserModule.withServerTransition
method has been removed. Please use theAPP_ID
DI token to set the application id instead.router
Router.errorHandler
property has been removed.Adding an error handler should be configured in either
withNavigationErrorHandler
withprovideRouter
or theerrorHandler
property in the extra options of
RouterModule.forRoot
. In addition,the error handler cannot be used to change the return value of the
router navigation promise or prevent it from rejecting. Instead, if you
want to prevent the promise from rejecting, use
resolveNavigationPromiseOnError
.Resolve
interface now includesRedirectCommand
.common
compiler
typeof
keyword in template expressions. (#58183)this.a
should always refer to class propertya
(#55183):host
parsing in pseudo-selectors (#58681):host:host-context(.foo)
(#58681)compiler-cli
core
standalone: false
. (#57643)run
method onExperimentalPendingTasks
(#56546)undefined
without needing to include it in the type argument ofinput
(#57621)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 has been generated by Renovate Bot.