angular v13.0.0-next.5 Release Notes
Release Date: 2021-09-08 // over 2 years ago-
๐ฅ Breaking Changes
common
- โ
The behavior of the
SpyLocation
used by theRouterTestingModule
has changed ๐ป to match the behavior of browsers. It no longer emits a 'popstate' event whenLocation.go
is called. In addition,simulateHashChange
now triggers both ahashchange
and apopstate
event. โ Tests which uselocation.go
and expect the changes to be picked up by theRouter
should likely change tosimulateHashChange
instead. โ Each test is different in what it attempts to assert so there is no โ single change that works for all tests. Each test using theSpyLocation
to ๐ป simulate browser URL changes should be evaluated on a case-by-case basis. ### common | Commit | Type | Description | | -- | -- | -- | ๐ | c6a93001eb | fix | synchronise location mock behavior with the navigators (#41730) | ### language-service | Commit | Type | Description | | -- | -- | -- | | fc3b50e427 | fix | exclude theSafePropertyRead
when applying the optional chaining (#43321) | ### migrations | Commit | Type | Description | | -- | -- | -- | | 2efc18e675 | fix | migration failed finding tsconfig file (#43343) | ### router | Commit | Type | Description | | -- | -- | -- | โช | 3c6b653089 | feat | Option to correctly restore history on failed navigation (#43289) | | 95f3aecc29 | fix | add more context toUnhandled Navigation Error
(#43291) | ## Special Thanks Ahmed Ayed, Alan Agius, Andrew Scott, Charles Barnes, Enea Jahollari, George Kalpakas, Ikko Ashimine, Paul Gschwendtner, Pete Bacon Darwin, William Sedlacek, dario-piotrowicz and ivanwonder
<!-- CHANGELOG SPLIT MARKER -->
- โ
The behavior of the