angular/packages
George Kalpakas e131540f71 fix(service-worker): do not unassign clients from a broken version (#43518)
Previously, when a version was found to be broken, any clients assigned
to that version were unassigned (and either assigned to the latest
version or to none if the latest version was the broken one). A version
could be considered broken for several reasons, but most often it is a
response for a hashed asset that eiher does not exist or contains
different content than the SW expects. See
https://github.com/angular/angular/issues/28114#issuecomment-923122967
for more details.

However, assigning a client to a different version (or the network) in
the middle of a session, turned out to be more risky than keeping it on
the same version. For angular.io, for example, it has led to #28114.

This commit avoids making things worse when identifying a broken version
by keeping existing clients to their assigned version (but ensuring that
no new clients are assigned to the broken version).

NOTE:
Reloading the page generates a new client ID, so it is like a new client
for the SW, even if the tab and URL are the same.

PR Close #43518
2021-09-24 10:54:21 -07:00
..
animations feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
bazel feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
benchpress feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
common docs: add new internationalization links (#43245) 2021-09-23 15:40:33 -07:00
compiler feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
compiler-cli feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
core docs: add new internationalization links (#43245) 2021-09-23 15:40:33 -07:00
docs docs: remove/update broken links in resources appearing on aio (#42232) 2021-05-26 14:21:12 -07:00
elements feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
examples feat(forms): allow minLength/maxLength validator to be bound to null (#42565) 2021-07-21 22:35:59 +00:00
forms feat(forms): allow disabling min/max validators dynamically (by setting the value to null) (#42978) 2021-09-24 10:35:31 -07:00
language-service feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
localize docs: add new internationalization links (#43245) 2021-09-23 15:40:33 -07:00
misc/angular-in-memory-web-api feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
platform-browser feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
platform-browser-dynamic feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
platform-server feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
private/testing docs: convert the last my-app components to app-root (#42256) 2021-05-25 22:13:36 +00:00
router feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
service-worker fix(service-worker): do not unassign clients from a broken version (#43518) 2021-09-24 10:54:21 -07:00
upgrade feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
zone.js feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
BUILD.bazel build: Auto-gen tsec tsconfig files (#43440) 2021-09-17 17:17:34 +00:00
circular-deps-test.conf.js fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt docs: update year (#40925) 2021-02-22 12:37:40 -08:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build.json feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
tsconfig-legacy-saucelabs.json build: enable noImplicitOverride in project (#42512) 2021-07-12 13:11:14 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig-tsec-base.json build: Auto-gen tsec tsconfig files (#43440) 2021-09-17 17:17:34 +00:00
tsconfig.json feat(core): support TypeScript 4.4 (#43281) 2021-09-23 14:49:19 -07:00
tsec-exemption.json build: Enable tsec checks for critical packages. (#43108) 2021-09-13 14:45:57 -07:00
types.d.ts build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT