🎉 What's New?
workbox-build
- When using the
generateSW
option to build your service worker, amessage
listener is now added to the service worker output, which allows you to invokeskipWaiting()
from the window viapostMessage()
[#1929].
🐛 What's Fixed?
workbox-window
- When calling
messageSW()
after an updated service worker is found, it would send the message to the service worker currently controlling the page. This has been fixed [#1941].
workbox-precaching
- Plugins implementing the
cacheDidUpdate
method were not properly bound, and would fail in some cases. This has been fixed [#1678].
workbox-background-sync
-
If requests were added to a
backgroundSync.Queue
queue due to server error rather than network error, those requests would be retried immediately, which could lead to an infinite loop. This has been fixed [#1943] -
The
backgroundSync.Queue
class used to storeRequest
bodies asBlob
objects in IndexedDB, but this does not work in Safari. All request bodies are now stored asArrayBuffer
objects [#1932].
workbox-broadcast-update
- If the the
BroadcastCacheUpdate
instance is passed aninstall
event (which happens when using it as a precache plugin) rather than afetch
event, it would error. This has been fixed [#1938].