Skip to content

fix(hive): type service worker runtime deps and add E2E envelope test#12

Merged
lucor merged 1 commit intomainfrom
fix/hive-sw-e2e-envelope
Apr 30, 2026
Merged

fix(hive): type service worker runtime deps and add E2E envelope test#12
lucor merged 1 commit intomainfrom
fix/hive-sw-e2e-envelope

Conversation

@lucor
Copy link
Copy Markdown
Owner

@lucor lucor commented Apr 30, 2026

This gives the service worker's runtime deps an explicit type so the compiler validates the handler wiring instead of trusting an untyped object. The fetch dependency is now also explicit: it delegates to self.fetch rather than falling through to an ambient global.

It also adds a test for the E2E envelope path — where a push payload contains a beebuzz envelope with an attachment token, the worker fetches the ciphertext, decrypts it, and shows the notification. This documents the flow and protects it from regressions.

This gives the service worker's runtime deps an explicit type so the
compiler validates the handler wiring instead of trusting an untyped
object. The fetch dependency is now also explicit: it delegates to
self.fetch rather than falling through to an ambient global.

It also adds a test for the E2E envelope path — where a push payload
contains a beebuzz envelope with an attachment token, the worker fetches
the ciphertext, decrypts it, and shows the notification. This documents
the flow and protects it from regressions.
@lucor lucor merged commit c803233 into main Apr 30, 2026
3 checks passed
@lucor lucor deleted the fix/hive-sw-e2e-envelope branch April 30, 2026 18:15
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