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:
^17.3.6
->^18.0.0
^17.3.0
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.0.1
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.3.6
->^18.0.0
^17.0.0
->^18.0.0
^17.0.0
->^18.0.0
Release Notes
angular/angular-cli (@angular-devkit/build-angular)
v18.0.4
Compare Source
@angular/build
@angular/localize/init
v18.0.3
Compare Source
@angular/cli
schema.json
options to parsed command, also when a version is passed tong add <package>@​<version>
@angular/build
v18.0.2
Compare Source
@schematics/angular
assets
option correctly for new applications@angular/build
@warn
location@angular/pwa
icons
location to matchassets
builder optionv18.0.1
Compare Source
@schematics/angular
@angular/build
polyfills
option asstring
duringng serve
v18.0.0
Compare Source
Breaking Changes
@angular/cli
ng doc
command has been removed without a replacement. To perform searches, please visit www.angular.dev@angular-devkit/build-angular
By default, the index.html file is no longer emitted in the browser directory when using the application builder with SSR. Instead, an index.csr.html file is emitted. This change is implemented because in many cases server and cloud providers incorrectly treat the index.html file as a statically generated page. If you still require the old behavior, you can use the
index
option to specify theoutput
file name.The support for the legacy Sass build pipeline, previously accessible via
NG_BUILD_LEGACY_SASS
when utilizing webpack-based builders, has been removed.Deprecations
@angular-devkit/schematics
NodePackageLinkTask
in@angular-devkit/schematics
. A custom task should be created instead.@angular/cli
ng dev
alias tong serve
--version
option@angular/build
package to update group listng version
commandng doc
command@schematics/angular
assets
withpublic
directory@angular-devkit/architect
@angular-devkit/build-angular
poll
option in the library builderindex.html
file in the browser directory when using SSR.@angular-devkit/schematics
NodePackageLinkTask
@angular/build
ansi-colors
andpicomatch
dependenciesv17.3.8
Compare Source
@angular/cli
@angular-devkit/schematics
SchematicTestRunner.runExternalSchematic
fails with "The encoded data was not valid for encoding utf-8"v17.3.7
Compare Source
angular-eslint/angular-eslint (@angular-eslint/eslint-plugin)
v18.0.1
Compare Source
🩹 Fixes
❤️ Thank You
v18.0.0
Compare Source
🚀 Features
❤️ Thank You
17.5.2 (2024-05-28)
🩹 Fixes
17.5.1 (2024-05-23)
🩹 Fixes
17.5.0 (2024-05-22)
🚀 Features
🩹 Fixes
update dependency @angular/compiler to v17.3.9
update typescript-eslint packages to v7.10.0
eslint-plugin: [no-input-rename] incorrectly triggers on input transforms
❤️ Thank You
17.4.1 (2024-05-15)
🩹 Fixes
❤️ Thank You
17.4.0 (2024-05-07)
🚀 Features
🩹 Fixes
update dependency @angular/compiler to v17.3.4
update dependency eslint-scope to v8.0.1
update typescript-eslint packages to v7.6.0
update typescript-eslint packages to v7.7.0
update dependency @angular/compiler to v17.3.6
update typescript-eslint packages to v7.8.0
eslint-plugin: [sort-ngmodule-metadata-arrays] deprecate rule
❤️ Thank You
17.3.0 (2024-03-15)
🚀 Features
eslint-plugin: consistent-component-styles
eslint-plugin: add prefer-standalone rule for checking all directives
🩹 Fixes
update dependency tmp to v0.2.3
migrate to nx 18
update dependency ignore to v5.3.1
update dependency eslint to v8.57.0
update typescript-eslint packages to v7 (major)
update dependency @angular/compiler to v17.3.0
output declaration files in all packages
❤️ Thank You
17.2.1 (2024-01-20)
🩹 Fixes
update typescript-eslint packages to v6.18.1
update typescript-eslint packages to v6.19.0
update dependency @angular/compiler to v17.1.0
❤️ Thank You
17.2.0 (2024-01-06)
🚀 Features
🩹 Fixes
update dependency eslint to v8.56.0
update typescript-eslint packages to v6.18.0
update dependency @angular/compiler to v17.0.8
update dependency eslint-scope to v8
❤️ Thank You
17.1.1
🩹 Fixes
update nrwl monorepo to v17.1.3
update typescript-eslint packages to v6.12.0
update dependency ignore to v5.3.0
update dependency eslint to v8.54.0
update typescript-eslint packages to v6.13.0
update typescript-eslint packages to v6.13.1
eslint-plugin: fix max inline declarations rule for styles string
❤️ Thank You
17.1.0
This was a version bump only for eslint-plugin to align it with other projects, there were no code changes.
v17.5.2
Compare Source
🩹 Fixes
v17.5.1
Compare Source
🩹 Fixes
v17.5.0
Compare Source
🚀 Features
🩹 Fixes
update dependency @angular/compiler to v17.3.9
update typescript-eslint packages to v7.10.0
eslint-plugin: [no-input-rename] incorrectly triggers on input transforms
❤️ Thank You
v17.4.1
Compare Source
🩹 Fixes
❤️ Thank You
v17.4.0
Compare Source
🚀 Features
🩹 Fixes
update dependency @angular/compiler to v17.3.4
update dependency eslint-scope to v8.0.1
update typescript-eslint packages to v7.6.0
update typescript-eslint packages to v7.7.0
update dependency @angular/compiler to v17.3.6
update typescript-eslint packages to v7.8.0
eslint-plugin: [sort-ngmodule-metadata-arrays] deprecate rule
❤️ Thank You
angular/angular (@angular/animations)
v18.0.3
Compare Source
benchpress
core
localize
@angular/localize/init
as polyfill inangular.json
(#56300)migrations
v18.0.2
Compare Source
core
HttpClientModule
imports on components. (#56067)withI18nSupport()
call for components that use i18n blocks (#56175)migrations
v18.0.1
Compare Source
compiler
compiler-cli
core
migrations
v18.0.0
Compare Source
Blog post "Angular v18 is now available".
Breaking Changes
animations
matchesElement
method has been removed fromAnimationDriver
as it is unused.common
isPlatformWorkerUi
andisPlatformWorkerApp
have been removed without replacement, as they serve no purpose since the removal of the WebWorker platform.compiler
compiler-cli
core
OnPush
views at the root of the application need tobe marked dirty for their host bindings to refresh. Previously, the host
bindings were refreshed for all root views without respecting the
OnPush
change detection strategy.OnPush
views at the root of the application need tobe marked dirty for their host bindings to refresh. Previously, the host
bindings were refreshed for all root views without respecting the
OnPush
change detection strategy.The
ComponentFixture
autoDetect
feature will nolonger refresh the component's host view when the component is
OnPush
and not marked dirty. This exposes existing issues in components which
claim to be
OnPush
but do not correctly callmarkForCheck
when theyneed to be refreshed. If this change causes test failures, the easiest
fix is to change the component to
ChangeDetectionStrategy.Default
.ComponentFixture.whenStable
now matches theApplicationRef.isStable
observable. Prior to this change, stabilityof the fixture did not include everything that was considered in
ApplicationRef
.whenStable
of the fixture will now include unfinishedrouter navigations and unfinished
HttpClient
requests. This will causetests that
await
thewhenStable
promise to time out when there areincomplete requests. To fix this, remove the
whenStable
,instead wait for another condition, or ensure
HttpTestingController
mocks responses for all requests. Try adding
HttpTestingController.verify()
before your
await fixture.whenStable
to identify the open requests.Also, make sure your tests wait for the stability promise. We found many
examples of tests that did not, meaning the expectations did not execute
within the test body.
In addition,
ComponentFixture.isStable
would synchronously switch totrue in some scenarios but will now always be asynchronous.
Angular will ensure change detection runs, even when the state update originates from
outside the zone, tests may observe additional rounds of change
detection compared to the previous behavior.
This change will be more likely to impact existing unit tests.
This should usually be seen as more correct and the test should be updated,
but in cases where it is too much effort to debug, the test can revert to the old behavior by adding
provideZoneChangeDetection({schedulingMode: NgZoneSchedulingMode.NgZoneOnly})
to the
TestBed
providers.Similarly, applications which may want to update state outside the zone
and not trigger change detection can add
provideZoneChangeDetection({schedulingMode: NgZoneSchedulingMode.NgZoneOnly})
to the providers in
bootstrapApplication
or addschedulingMode: NgZoneSchedulingMode.NgZoneOnly
to theBootstrapOptions
ofbootstrapModule
.When Angular runs change detection, it will continue to
refresh any views attached to
ApplicationRef
that are still marked forcheck after one round completes. In rare cases, this can result in infinite
loops when certain patterns continue to mark views for check using
ChangeDetectorRef.detectChanges
. This will be surfaced as a runtimeerror with the
NG0103
code.async
has been removed, usewaitForAsync
instead.The
ComponentFixture.autoDetect
feature now executeschange detection for the fixture within
ApplicationRef.tick
. This moreclosely matches the behavior of how a component would refresh in
production. The order of component refresh in tests may be slightly
affected as a result, especially when dealing with additional components
attached to the application, such as dialogs. Tests sensitive to this
type of change (such as screenshot tests) may need to be updated.
Concretely, this change means that the component will refresh before
additional views attached to
ApplicationRef
(i.e. dialog components).Prior to this change, the fixture component would refresh after other
views attached to the application.
The exact timing of change detection execution when
using event or run coalescing with
NgZone
is now the first of eithersetTimeout
orrequestAnimationFrame
. Code which relies on thistiming (usually by accident) will need to be adjusted. If a callback
needs to execute after change detection, we recommend
afterNextRender
instead of something like
setTimeout
.Newly created and views marked for check and reattached
during change detection are now guaranteed to be refreshed in that same
change detection cycle. Previously, if they were attached at a location
in the view tree that was already checked, they would either throw
ExpressionChangedAfterItHasBeenCheckedError
or not be refreshed untilsome future round of change detection. In rare circumstances, this
correction can cause issues. We identified one instance that relied on
the previous behavior by reading a value on initialization which was
queued to be updated in a microtask instead of being available in the
current change detection round. The component only read this value during
initialization and did not read it again after the microtask updated it.
Testability methods
increasePendingRequestCount
,decreasePendingRequestCount
andgetPendingRequestCount
have beenremoved. This information is tracked with zones.
http
By default we now prevent caching of HTTP requests that require authorization . To opt-out from this behaviour use the
includeRequestsWithAuthHeaders
option inwithHttpTransferCache
.Example:
platform-browser
StateKey
,TransferState
andmakeStateKey
have been removed from@angular/platform-browser
, use the same APIs from@angular/core
.platform-browser-dynamic
RESOURCE_CACHE_PROVIDER
APIs have been removed.platform-server
deprecated
platformDynamicServer
has been removed. Add animport @​angular/compiler
and replace the usage withplatformServer
deprecated
ServerTransferStateModule
has been removed.TransferState
can be use without providing this module.deprecated
useAbsoluteUrl
andbaseUrl
been removed fromPlatformConfig
. Provide and absoluteurl
instead.Legacy handling or Node.js URL parsing has been removed from
ServerPlatformLocation
.The main differences are;
pathname
is always suffixed with a/
.port
is empty whenhttp:
protocol and port in url is80
port
is empty whenhttps:
protocol and port in url is443
router
RedirectCommand
for redirectsin addition to
UrlTree
. Code which expects only `booleanConfiguration
📅 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 is behind base branch, 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 Mend Renovate. View repository job log here.