angular/packages
arturovt 6adf022f0d fix(service-worker): prevent duplicate fetches during concurrent update checks (#61443)
Previously, multiple simultaneous calls to `checkForUpdate()` could result in redundant
fetches and hashing of the update manifest, leading to unnecessary network and CPU usage.

This change introduces a mechanism to track an in-progress update check using a cached
promise (`ongoingCheckForUpdate`). Subsequent calls to `checkForUpdate()` while a check
is in progress will return the same promise instead of triggering a new request.

Once the check completes (successfully or not), the cached promise is cleared,
allowing future update checks to proceed normally.

This improves efficiency and prevents overlapping update logic in applications that
may invoke `checkForUpdate()` from multiple sources (e.g. polling, manual triggers).

PR Close #61443
2025-06-03 15:57:30 -04:00
..
animations docs: update API examples to modern angular (#61688) 2025-05-29 17:53:28 -04:00
bazel build: remove npm_package rule for packages/bazel (#61826) 2025-06-03 11:41:52 +02:00
benchpress build: migrate benchpress to use rules_js (#61486) 2025-05-20 08:44:53 +00:00
common build: adjust bundling tests to use Angular CLI (#61566) 2025-05-29 14:39:11 -04:00
compiler refactor(compiler): replace output AST write nodes (#61682) 2025-06-03 11:08:50 -04:00
compiler-cli refactor(compiler): replace output AST write nodes (#61682) 2025-06-03 11:08:50 -04:00
core refactor(compiler): account for new assignment AST (#61682) 2025-06-03 11:08:50 -04:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements build: migrate packages/elements to ng_project (#61566) 2025-05-29 14:39:10 -04:00
examples fix(service-worker): update service worker to handle seeking better for videos (#60029) 2025-06-03 10:56:06 -04:00
forms docs: update API examples to modern angular (#61688) 2025-05-29 17:53:28 -04:00
language-service refactor(compiler): account for new assignment AST (#61682) 2025-06-03 11:08:50 -04:00
localize build: update dependency yargs to v18 (#61767) 2025-06-03 07:34:08 -04:00
misc/angular-in-memory-web-api release: bump version of in memory web api (#61731) 2025-05-28 10:53:17 -07:00
platform-browser build: adjust bundling tests to use Angular CLI (#61566) 2025-05-29 14:39:11 -04:00
platform-browser-dynamic build: rework benchmarks and examples in modules/ to new optimization rule (#61566) 2025-05-29 14:39:11 -04:00
platform-server fix(core): produce an error when incremental hydration is expected, but not configured (#61741) 2025-05-30 11:14:22 -04:00
private/testing build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00
router docs(router): Update view transition types to dev preview (#61787) 2025-06-02 12:42:19 -04:00
service-worker fix(service-worker): prevent duplicate fetches during concurrent update checks (#61443) 2025-06-03 15:57:30 -04:00
ssr refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
upgrade docs: update API examples to modern angular (#61688) 2025-05-29 17:53:28 -04:00
zone.js build: lock file maintenance (#61813) 2025-06-03 11:13:30 -04:00
BUILD.bazel build: use common macro to define tsconfig for service worker (#61341) 2025-05-14 10:43:25 -07:00
circular-deps-test.conf.js build: remove circular deps goldens (#60021) 2025-02-19 21:01:31 +00:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update license year (#59883) 2025-03-04 19:36:47 +00:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json build: migrate angular-in-memory-web-api to use rules_js (#61524) 2025-05-20 16:53:20 +00:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(compiler): remove empty empty string suffix from interpolation instructions (#60066) 2025-03-10 16:31:34 -07:00
tsconfig.json build: use es2022 lib (#61441) 2025-05-21 12:06:40 -07:00
tsec-exemption.json
types.d.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00: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