Change8

18.2.14

Breaking Changes
📦 angularView on GitHub →
3 breaking1 features🔧 5 symbols

Summary

This release refactors server-side bootstrapping to use a localized BootstrapContext instead of a global platform injector, improving isolation and security.

⚠️ Breaking Changes

  • Server-side bootstrapping no longer relies on a global platform injector. The bootstrap function now requires a BootstrapContext argument.
  • getPlatform() now returns null in server environments.
  • destroyPlatform() is now a no-op in server environments.

Migration Steps

  1. Update main.server.ts to accept and pass BootstrapContext to the bootstrapApplication call.
  2. Run the provided schematic to automatically update server bootstrap files.
  3. Audit code for reliance on getPlatform() or destroyPlatform() in server-side logic.

✨ New Features

  • Introduced BootstrapContext to improve server-side bootstrapping efficiency and isolation.

🔧 Affected Symbols

BootstrapContextbootstrapApplicationgetPlatformdestroyPlatformmain.server.ts