Packages

@angular/common

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

Your version

15.0.0

major16 Nov 2022Where it was published

15.2.10 is the newest release of 15.x.

In short

1 deprecated

  • Deprecated

    The DATE_PIPE_DEFAULT_TIMEZONE token is now deprecated in favor of the DATE_PIPE_DEFAULT_OPTIONS token, which accepts an object as a value and the timezone can be defined as a field (called timezone) on that object.

Security

Release note

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

Deprecations

common

  • Deprecated

    The DATE_PIPE_DEFAULT_TIMEZONE token is now deprecated in favor
    of the DATE_PIPE_DEFAULT_OPTIONS token, which accepts an object
    as a value and the timezone can be defined as a field (called timezone)
    on that object.

common

CommitDescription
feat - c0c7efaf7cadd provideLocationMocks() function to provide Location mocks (#47674)
feat - 75e6297f09add <link> preload tag on server for priority img (#47343)
feat - 4fde292bb5Add automatic srcset generation to ngOptimizedImage (#47547)
feat - 9483343ebfAdd fill mode to NgOptimizedImage (#47738)
feat - bdb5371033add injection token for default DatePipe configuration (#47157)
fix - 449d29b701Add fetchpriority to ngOptimizedImage preloads (#48010)
fix - 4f52d4e474don't generate srcset if noopImageLoader is used (#47804)
fix - 3a18398d83Don't warn about image distortion is fill mode is enabled (#47824)
fix - edea15f2c6export the IMAGE_CONFIG token (#48051)
fix - 8abf1c844cfix formatting on oversized image error (#47188)
fix - ca7bf65933rename rawSrc -> ngSrc in NgOptimizedImage directive (#47362)
fix - b3879dbf14support density descriptors with 2+ decimals (#47197)
fix - fa4798095eupdate size error to mention 'fill' mode (#47797)
fix - 23f210c0abwarn if using supported CDN but not built-in loader (#47330)
fix - 945432e3faWarn on fill ngOptimizedImage without height (#48036)

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.