github angular/angular 16.0.0-next.3
v16.0.0-next.3

latest releases: 18.0.0-rc.0, 17.3.7, zone.js-0.14.5...
pre-release13 months ago

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:

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

    After:

    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

Don't miss a new angular release

NewReleases is sending notifications on new releases.