mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
0dc45446fe
This commit introduces a new `SwUpdate#versionUpdates` observalbe, which provides more granular information about Service Worker version updates than the already existing `SwUpdate#available` observable. The new events emitted by `SwUpdate#versionUpdates` basically add the possibility for application to get notified if a new version is available on the server (not yet downloaded) and if an installation of a new version failed. Closes #39840 DEPRECATED: The `SwUpdate#availalbe` observable is deprecated. The new `SwUpdate#versionUpdates` observable provides the same information and more. Therefore, it is possible to rebuild the same behavior as `SwUpdate#availalbe` using the events emitted by `SwUpdate#versionUpdates` and filtering for `VersionReadyEvent` events. As a result, the `SwUpdate#availalbe` observable is now redundant. PR Close #43668