18.2.14
Breaking Changes📦 angularView on GitHub →
⚠ 3 breaking✨ 1 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
- Update main.server.ts to accept and pass BootstrapContext to the bootstrapApplication call.
- Run the provided schematic to automatically update server bootstrap files.
- 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