yarn @angular/common 14.0.0-next.15
v14.0.0-next.15

latest releases: 18.0.0-rc.0, 17.3.7, 18.0.0-next.6...
2 years ago

14.0.0-next.15 (2022-04-27)

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 Description
feat - 68597bb0ca speed up dev-turnaround by bundling types only when packaging (#45405)
fix - 970a3b5c70 add this_is_bazel marker (#45728)

common

Commit Description
feat - 31d7c3bd71 add getState method to LocationStrategy interface (#45648)

compiler

Commit Description
fix - 4d6a1d6722 scope css keyframes in emulated view encapsulation (#42608)

core

Commit Description
feat - 5771b18a98 add the bootstrapApplication function (#45674)
feat - 5a10fc4f82 implement standalone directives, components, and pipes (#45687)

localize

Commit Description
fix - a50e2da64a ensure transitively loaded compiler code is tree-shakable (#45405)

router

Commit Description
feat - dea8c86cd5 add ariaCurrentWhenActive input to RouterLinkActive directive (#45167)
feat - 4962a4a332 Allow loadChildren to return a Route array (#45700)
feat - 50004c143b Support lazy loading standalone components with loadComponent (#45705)
refactor - 7b367d9d90 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

Don't miss a new common release

NewReleases is sending notifications on new releases.