angular/packages/service-worker/worker/test
Maximilian Köller 0dc45446fe feat(service-worker): expose more version update events (#43668)
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
2021-10-05 11:00:07 -07:00
..
BUILD.bazel test: setup circular dependency tests for all entry points (#34774) 2020-01-23 11:36:40 -08:00
data_spec.ts refactor(service-worker): make SwTestHarness.envIsSupported() a standalone function (#42736) 2021-07-08 10:28:22 -07:00
happy_spec.ts feat(service-worker): expose more version update events (#43668) 2021-10-05 11:00:07 -07:00
idle_spec.ts refactor(service-worker): make SwTestHarness.envIsSupported() a standalone function (#42736) 2021-07-08 10:28:22 -07:00
prefetch_spec.ts refactor(service-worker): move mock event classes to their own file (#42736) 2021-07-08 10:28:22 -07:00