angular v14.0.0-next.2 Release Notes

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

    forms

    • Forms [email] input coercion: forms [email] input value will be considered as true if it is defined with any value rather than false and 'false'.
    • Objects with a length key set to zero will no longer validate as empty. This is technically a breaking change, since objects with a key length and value 0 will no longer validate as empty. This is a very minor change, and any reliance on this behavior is probably a bug anyway. ### ๐Ÿ’ป platform-browser
    • โœ… This change may cause a breaking change in unit tests that are implicitly depending on a specific number and sequence of change detections in order for their assertions to pass.
    • This tightens parameter types of TransferState usage, and is a minor breaking change which may reveal existing problematic calls. This may break invalid calls to TransferState methods. ### router
    • The type of initialUrl is set to string|UrlTree but in reality, the Router only sets it to a value that will always be UrlTree. initialUrl is documented as "The target URL passed into the Router#navigateByUrl() call before navigation" but the value actually gets set to something completely different. It's set to the current internal UrlTree of the Router at the time navigation occurs. With this change, there is no exact replacement for the old value of initialUrl because it was enver intended to be exposed. Router.url is likely the best replacement for this. In more specific use-cases, tracking the finalUrl between successful navigations can also be used as a replacement. ### animations | Commit | Type | Description | | -- | -- | -- | | e46b379204 | fix | implement missing transition delay (#44799) | ### common | Commit | Type | Description | | -- | -- | -- | ๐Ÿ‘ | 38c03a2035 | feat | support years greater than 9999 (#43622) | ### compiler | Commit | Type | Description | | -- | -- | -- | | db6cf7e7c1 | fix | allow banana-in-a-box bindings to end with non-null assertion (#37809) | ### compiler-cli | Commit | Type | Description | | -- | -- | -- | | 0072eb48ba | feat | initial implementation of standalone components (#44812) | ### core | Commit | Type | Description | | -- | -- | -- | | d5719c2e0f | fix | input coercion (#42803) | ### forms | Commit | Type | Description | | -- | -- | -- | | 8dd3f82f94 | fix | Correct empty validator to handle objects with a property length: 0. (#33729) | | ebf2fc5224 | fix | incorrectly keeping track of ngModel with ngFor inside a form (#40459) | ### http | Commit | Type | Description | | -- | -- | -- | ๐Ÿšš | 28393031b1 | perf | remove IE special status handling (#44354) | ### ๐Ÿ’ป platform-browser | Commit | Type | Description | | -- | -- | -- | | a01bcb8e7e | fix | do not run change detection when loading Hammer (#44921) | | b32647dc68 | fix | Make transfer state key typesafe. (#23020) | ### router | Commit | Type | Description | | -- | -- | -- | | 791bd31424 | feat | set stricter type for Route.title (#44939) | ๐Ÿ“š | 64f837d2c0 | fix | Update Navigation#initialUrl to match documentation and reality (#43863) | ### โฌ†๏ธ upgrade | Commit | Type | Description | | -- | -- | -- | | 202a1a5631 | fix | Do not trigger duplicate navigation events from Angular Router (#43441) | ## Special Thanks Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Daniel Dรญaz, Dario Piotrowicz, Doug Parker, Jayson Acosta, Joey Perrott, JoostK, Kristiyan Kostadinov, Olivier Capuozzo, Payam Shahidi, Pusztai Tibor, Ramzan, Ruslan Lekhman, Sergej Grilborzer, Shai Reznik, TANMAY SRIVASTAVA, arturovt, dario-piotrowicz, iRealNirmal, jhonyeduardo, markostanimirovic, mgechev and zuckjet

    <!-- CHANGELOG SPLIT MARKER -->