Packages

@angular/common

22.2.6 · 12 Nov 2026MIT8.1M / weekRepositoryHomepagenpmAtom feed

Your version

22.0.1

10 Jun 2026Where it was published

22.3.0 is the newest release of 22.x.

In short

1 deprecated

  • Deprecated

    XHR support in @angular/platform-server is deprecated. Use standard fetch APIs instead. (cherry picked from commit 8446e46f8bc33bd4419fa7f6106b8d117ca2e099)

Security

Fixes 2 advisories that affected 22.0.0

Release note

Deprecations

platform-server

common

CommitTypeDescription
c4b5fa3c92fixescape CSS string-terminating characters in escapeCssUrl
dfff57ede9fixLimits date format string length
3c2892c8dffixprevent prototype pollution in formatDateTime
1d87c49f6efixuse cryptographically secure SHA-256 for transfer cache key generation

compiler

CommitTypeDescription
1ee224ca30fixdisallow i18n event attributes
a56f1cdf8ffixmore robust logic to check if regex can be optimized
5946c18275fixsanitize href/xlink:href attributes of any element of the MathML namespace
393b84caf8fixsanitize two-way properties

compiler-cli

CommitTypeDescription
3d9ca2f173fixbind switch exhaustive check expressions

core

CommitTypeDescription
669146b0e7fixdisable WebMCP during SSR
562a566eadfixHandle synchronous errors in PendingTasks.run function
fa546f382dfixharden TransferState restoration against DOM clobbering
29fdb98684fixprevent dangling prevConsumer reference from leaking destroyed views (#68681)
cdcea80327fixrequire WebMCP tool descriptions
4289c4c840fixupdate comment for Default change detection
3dd433b39afixuse Object.hasOwn to handle null-prototype objects in toStylingKeyValueArray
045bb736b3fixvalidate lowercase SVG animation attribute names

forms

CommitTypeDescription
11836a670afixdelay mcp reading the form model by a tick
85d2d100e3fixharden FormGroup control lookups against prototype shadowing
e51ad374eafixremove animationstart listener on component destroy to prevent memory leak
55b7b5a6b6fixset additionalProperties: false on generated WebMCP form

http

CommitTypeDescription
ffb06c0514fixensure query parameters are inserted before URL fragments
2dd65d21e6fixpass down the reportUploadProgress and reportDownloadProgress on post/patch requests
4254eb416cfixpreserve empty referrer option in HttpRequest
167bd4c162fixRejects non-HTTP(S) URLs in JSONP requests

language-service

CommitTypeDescription
43a0e28729fixprevent external template inlay hints from appearing in TS files

platform-server

CommitTypeDescription
ed48ca7f51fixharden platform location origin validation during SSR
1881ede3a7refactordeprecate ServerXhr

router

CommitTypeDescription
43edc8410ffixuse native URL object for navigation boundary and comparison

service-worker

CommitTypeDescription
cf97b1f828fixStrips sensitive headers on cross-origin redirects

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.