Packages

@angular/common

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

Your version

17.0.0

major8 Nov 2023Where it was published

17.3.12 is the newest release of 17.x.

In short

1 breaking

  • Breaking

    The NgSwitch directive now defaults to the === equality operator, migrating from the previously used ==. NgSwitch expressions and / or individual condition values need adjusting to this stricter equality check. The added warning message should help pinpointing NgSwitch usages where adjustements are needed.

Security

Release note

The section about @angular/common of a note shared by several packages.

common

CommitDescription
feat - fe2fd7e1a8make the warning for lazy-loaded lcp image an error (#51748)
feat - dde3fdabbdupgrade warning to logged error for lazy-loaded LCP images using NgOptimizedImage (#52004)
fix - da056a1fe2add missing types field for @angular/common/locales of exports in package.json (#52080)
fix - 85843e8212allow to specify only some properties of DatePipeConfig (#51287)
fix - 3bd85fb7b0apply fixed_srcset_width value only to fixed srcsets (#52459)
fix - 65b460448emissing space in ngSwitch equality warning (#52180)
fix - 86c5e34601remove code duplication between entry-points (#51500)
fix - 28a5925f53use === operator to match NgSwitch cases (#51504)

Breaking Changes

common

  • Breaking
  • Breaking

    The NgSwitch directive now defaults to the === equality operator,
    migrating from the previously used ==. NgSwitch expressions and / or
    individual condition values need adjusting to this stricter equality
    check. The added warning message should help pinpointing NgSwitch
    usages where adjustements are needed.

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.