Skip to content

feat: implement foreign service worker controller detection and recovery - #16

Merged
mike-doctorina merged 1 commit into
masterfrom
fix-skip-waiting
Apr 22, 2026
Merged

feat: implement foreign service worker controller detection and recovery#16
mike-doctorina merged 1 commit into
masterfrom
fix-skip-waiting

Conversation

@mike-doctorina

Copy link
Copy Markdown
Collaborator
  • Add reloadIfForeignController function to handle cases where a foreign service worker is controlling the page, preventing stale cache issues.
  • Introduce activateWaitingAtBootstrap to auto-activate a waiting service worker during the bootstrap phase.
  • Enhance registerServiceWorker to include logic for activating waiting workers.
  • Add tests for reloadIfForeignController and related functionalities to ensure proper behavior in various scenarios.
  • Update version to 0.1.4 in pubspec.yaml.

- Add `reloadIfForeignController` function to handle cases where a foreign service worker is controlling the page, preventing stale cache issues.
- Introduce `activateWaitingAtBootstrap` to auto-activate a waiting service worker during the bootstrap phase.
- Enhance `registerServiceWorker` to include logic for activating waiting workers.
- Add tests for `reloadIfForeignController` and related functionalities to ensure proper behavior in various scenarios.
- Update version to 0.1.4 in pubspec.yaml.
@mike-doctorina
mike-doctorina merged commit c076a39 into master Apr 22, 2026
3 checks passed
@mike-doctorina
mike-doctorina deleted the fix-skip-waiting branch April 22, 2026 11:03
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