Skip to content

feat(kit): add safe background service worker updates - #93

Merged
rdlabo merged 1 commit into
mainfrom
feat/background-app-update
Aug 28, 2026
Merged

feat(kit): add safe background service worker updates#93
rdlabo merged 1 commit into
mainfrom
feat/background-app-update

Conversation

@rdlabo

@rdlabo rdlabo commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an opt-in provideKitAppUpdate({ strategy: 'background' }) mode without changing the existing blocking default
  • check for complete Angular service-worker versions without blocking bootstrap, and reload only before the first render completes
  • recover unrecoverable startup generations once while preserving history state and preventing reload loops
  • document the new app-update entry point and strategy

Safety

  • never calls activateUpdate(), avoiding mixed application generations
  • never reloads for a late update after the first render, protecting user input
  • retains a URL loop guard when session storage is unavailable
  • does not change package versions

Verification

  • npm run lint
  • npx ng test kit --watch=false (53 files, 982 tests)
  • npm run prebuild:kit
  • git diff --check

@rdlabo
rdlabo merged commit 5fcc90e into main Aug 28, 2026
13 checks passed
@rdlabo
rdlabo deleted the feat/background-app-update branch August 28, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant