Packages

@angular/platform-server

22.2.6 · 12 Nov 2026MIT1M / weekRepositoryHomepagenpmAtom feed

Your version

18.2.14

10 Sep 2025Where it was published

In short

1 breaking1 security

  • Breaking

    The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.

Security

Fixes 1 advisory that affected 18.2.13

11 advisories affect 18.2.14; 20.3.33 fixes them

6 more

Release note

core

CommitDescription
fix - 9d1fb33f5eintroduce BootstrapContext for improved server bootstrapping (#63640)

Breaking Changes

core

  • Breaking

    The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.

    Before:

    const bootstrap = () => bootstrapApplication(AppComponent, config);

    After:

    const bootstrap = (context: BootstrapContext) =>
      bootstrapApplication(AppComponent, config, context);

    A schematic is provided to automatically update main.server.ts files to pass the BootstrapContext to the bootstrapApplication call.

    In addition, getPlatform() and destroyPlatform() will now return null and be a no-op respectively when running in a server environment.

For more information please see: github.com/angular/angular/security/advisories/…

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.