Packages

@angular/platform-server

22.2.6 · 12 Nov 2026MIT1M / weekRepositoryHomepagenpmAtom feed

Your version

19.2.15

10 Sep 2025Where it was published

19.2.25 is the newest release of 19.x.

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 19.2.14

11 advisories affect 19.2.15; 20.3.33 fixes them

6 more

Release note

core

CommitDescription
fix - 70d0639bc1introduce BootstrapContext for improved server bootstrapping (#63639)

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.