angular v14.0.0-next.15 Release Notes

Release Date: 2022-04-27 // about 2 years ago
  • ๐Ÿ’ฅ Breaking Changes

    common

    • โž• Adds new required class member that any implementors of the LocationStrategy will need to satisfy. Location does not depend on PlatformLocation anymore. ### compiler
    • ๐Ÿ›  Keyframes names are now prefixed with the component's "scope name". For example, the following keyframes rule in a component definition, whose "scope name" is host-my-cmp:

      @keyframes foo { ... }

    will become:

     @keyframes host-my-cmp_foo { ... }
    

    Any TypeScript/JavaScript code which relied on the names of keyframes rules will no longer match.

    The recommended solutions in this case are to either:

    • change the component's view encapsulation to the None or ShadowDom
    • define keyframes rules in global stylesheets (e.g styles.css)
    • define keyframes rules programmatically in code. ### router
      • โฑ When a guard returns a UrlTree, the router would previously schedule the redirect navigation within a setTimeout. This timeout is now removed, which can result in test failures due to incorrectly written tests. Tests which perform navigations should ensure that all timeouts are flushed before making assertions. Tests should ensure they are capable of handling all redirects from the original navigation. ### bazel | Commit | Type | Description | | -- | -- | -- | | 68597bb0ca | feat | speed up dev-turnaround by bundling types only when packaging (#45405) | | 970a3b5c70 | fix | add this_is_bazel marker (#45728) | ### common | Commit | Type | Description | | -- | -- | -- | | 31d7c3bd71 | feat | add getState method to LocationStrategy interface (#45648) | ### compiler | Commit | Type | Description | | -- | -- | -- | | 4d6a1d6722 | fix | scope css keyframes in emulated view encapsulation (#42608) | ### core | Commit | Type | Description | | -- | -- | -- | | 5771b18a98 | feat | add the bootstrapApplication function (#45674) | | 5a10fc4f82 | feat | implement standalone directives, components, and pipes (#45687) | ### localize | Commit | Type | Description | | -- | -- | -- | | a50e2da64a | fix | ensure transitively loaded compiler code is tree-shakable (#45405) | ### router | Commit | Type | Description | | -- | -- | -- | | dea8c86cd5 | feat | add ariaCurrentWhenActive input to RouterLinkActive directive (#45167) | | 4962a4a332 | feat | Allow loadChildren to return a Route array (#45700) | ๐Ÿ‘ | 50004c143b | feat | Support lazy loading standalone components with loadComponent (#45705) | ๐Ÿ”จ | 7b367d9d90 | refactor | Remove unnecessary setTimeout in UrlTree redirects (#45735) | ## Special Thanks Alex Rickabaugh, Andrew Kushnir, Andrew Scott, George Kalpakas, Joey Perrott, Michal Materowski, Paul Gschwendtner, Pawel Kozlowski, Sumit Arora and dario-piotrowicz

    <!-- CHANGELOG SPLIT MARKER -->