Packages

@angular/platform-server

22.2.6 · 12 Nov 2026MIT1M / weekRepositoryHomepagenpmAtom feed

Your version

18.0.0

major22 May 2024Where it was published

18.2.14 is the newest release of 18.x.

In short

1 breaking3 deprecated

  • Breaking

    Legacy handling or Node.js URL parsing has been removed from ServerPlatformLocation.

  • Deprecated

    Deprecated platformDynamicServer has been removed. Add an import @angular/compiler and replace the usage with platformServer

  • Deprecated

    Deprecated ServerTransferStateModule has been removed. TransferState can be use without providing this module.

  • Deprecated

    Deprecated useAbsoluteUrl and baseUrl been removed from PlatformConfig. Provide and absolute url instead.

Security

12 advisories affect 18.0.0; 20.3.33 fixes them

7 more

Release note

The section about @angular/platform-server of a note shared by several packages.

platform-server

CommitDescription
fix - 5674c644abadd nonce attribute to event record script (#55495)
fix - e71e869112remove event dispatch script from HTML when hydration is disabled (#55681)
refactor - 07ac017731remove deprecated platformDynamicServer API (#54874)
refactor - e8b588d8b7remove deprecated ServerTransferStateModule API (#54874)
refactor - 3b1967ca64remove deprecated useAbsoluteUrl and baseUrl from PlatformConfig (#54874)
refactor - 2357d3566cremove legacy URL handling logic (#54874)

Breaking Changes

platform-server

  • Deprecated

    Deprecated platformDynamicServer has been removed. Add an import @angular/compiler and replace the usage with platformServer

  • Deprecated

    Deprecated ServerTransferStateModule has been removed. TransferState can be use without providing this module.

  • Deprecated

    Deprecated useAbsoluteUrl and baseUrl been removed from PlatformConfig. Provide and absolute url instead.

  • Breaking

    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 when http: protocol and port in url is 80

    • port is empty when https: protocol and port in url is 443

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.