Change8

21.0.0-next.3

Breaking Changes
📦 angularView on GitHub →
4 breaking2 features🐛 2 fixes🔧 5 symbols

Summary

This release introduces a new server bootstrapping mechanism using BootstrapContext and enables host binding type checking by default. It also bumps the minimum required TypeScript version to 5.9.

⚠️ Breaking Changes

  • Type checking of host bindings is now enabled by default. Previously hidden type issues may cause build failures. Fix the types or set "typeCheckHostBindings": false in angularCompilerOptions.
  • Server-side bootstrapping no longer relies on a global platform injector. The bootstrap function now requires a BootstrapContext argument.
  • In server environments, getPlatform() now returns null and destroyPlatform() is a no-op.
  • TypeScript versions older than 5.9 are no longer supported.

Migration Steps

  1. Run the provided schematic to automatically update main.server.ts files to pass BootstrapContext to bootstrapApplication.
  2. If host binding type errors occur, either fix the underlying type issues or disable the check in tsconfig via "typeCheckHostBindings": false.

✨ New Features

  • compiler-cli: Enable type checking of host bindings by default.
  • core: Introduce BootstrapContext for improved server bootstrapping.

🐛 Bug Fixes

  • core: Remove refresh button from transfer state tab.
  • migrations: Fix bug in ngclass-to-class migration.

🔧 Affected Symbols

BootstrapContextbootstrapApplicationgetPlatformdestroyPlatformangularCompilerOptions.typeCheckHostBindings