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 theAPP_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 useViewContainerRef.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:
imports: [ BrowserModule.withServerTransition({ appId: 'serverApp' }), ... ]
After:
imports: [ BrowserModule, { provide: APP_ID, useValue: 'serverApp' }, ... ],
compiler
Commit | Description |
---|---|
add support for compile-time required inputs (#49304) |
core
Commit | Description |
---|---|
introduce runInInjectionContext and deprecate prior version (#49396)
| |
generate consistent component IDs (#48253) | |
generate a static application ID (#49422) |
platform-browser
Commit | Description |
---|---|
deprecate withServerTransition call (#49422)
| |
reuse server generated component styles (#48253) |
platform-server
Commit | Description |
---|---|
add provideServerSupport function to provide server capabilities to an application (#49380)
|
router
Commit | Description |
---|---|
Remove deprecated ComponentFactoryResolver from APIs (#49239) |
service-worker
Commit | Description |
---|---|
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