Angular: 16.0.0-next.3 Release

Release date:
March 17, 2023
Previous version:
16.0.0-next.2 (released March 8, 2023)
Magnitude:
2,420 Diff Delta
Contributors:
14 total committers
Data confidence:
Commits:

Top Contributors in 16.0.0-next.3

jessicajaniuk
AndrewKushnir
atscott
alan-agius4
trekladyone
alxhub
jsaguet
JiaLiPassion
crisbeto
devversion

Directory Browser for 16.0.0-next.3

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

<a name="16.0.0-next.3"></a>

16.0.0-next.3 (2023-03-16)

Breaking Changes

core

  • The APP_ID token value is no longer randomly generated. If you are bootstrapping multiple application on the same page you will need to set to provide the APP_ID yourself.
  bootstrapApplication(ComponentA, {
    providers: [
     { provide: APP_ID, useValue: 'app-a' },
     // ... other providers ...
    ]
  });

router

  • ComponentFactoryResolver has been removed from Router APIs. Component factories are not required to create an instance of a component dynamically. Passing a factory resolver via resolver argument is no longer needed and code can instead use ViewContainerRef.createComponent without the factory resolver. ## Deprecations ### core
  • EnvironmentInjector.runInContext is now deprecated, with runInInjectionContext functioning as a direct replacement:
  // Previous method version (deprecated):
  envInjector.runInContext(fn);
  // New standalone function:
  runInInjectionContext(envInjector, fn);

platform-browser

  • BrowserModule.withServerTransition has been deprecated. APP_ID should be used instead to set the application ID. NB: Unless, you render multiple Angular applications on the same page, setting an application ID is not necessary.

Before: ts imports: [ BrowserModule.withServerTransition({ appId: 'serverApp' }), ... ]

After: ts imports: [ BrowserModule, { provide: APP_ID, useValue: 'serverApp' }, ... ],

compiler

| Commit | Description | | -- | -- | | feat - 1a6ca68154 | add support for compile-time required inputs (#49304) |

core

| Commit | Description | | -- | -- | | feat - 0814f20594 | introduce runInInjectionContext and deprecate prior version (#49396) | | fix - 0e5f9ba6f4 | generate consistent component IDs (#48253) | | refactor - 82d6fbb109 | generate a static application ID (#49422) |

platform-browser

| Commit | Description | | -- | -- | | feat - 630af63fae | deprecate withServerTransition call (#49422) | | fix - 9165ff2517 | reuse server generated component styles (#48253) |

platform-server

| Commit | Description | | -- | -- | | feat - 056d68002f | add provideServerSupport function to provide server capabilities to an application (#49380) |

router

| Commit | Description | | -- | -- | | fix - c0b1b7becf | Remove deprecated ComponentFactoryResolver from APIs (#49239) |

service-worker

| Commit | Description | | -- | -- | | feat - 5e7fc259ea | add function to provide service worker (#48247) |

Special Thanks

Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Esteban Gehring, Jessica Janiuk, JiaLiPassion, Julien Saguet, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner and Virginia Dooley