| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| workbox-v4.0.0-rc.3.zip | 2019-02-19 | 347.4 kB | |
| workbox-v4.0.0-rc.3.tar.gz | 2019-02-19 | 271.6 kB | |
| README.md | 2019-02-19 | 1.6 kB | |
| Workbox v4.0.0-rc.3 source code.tar.gz | 2019-02-19 | 583.5 kB | |
| Workbox v4.0.0-rc.3 source code.zip | 2019-02-19 | 929.8 kB | |
| Totals: 5 Items | 2.1 MB | 0 | |
The latest RC release of Workbox v4 includes the following developer-visible changes, in addition to all the changes from the previous pre-releases.
🎉 What's New?
workbox-window
-
Lifecycle events dispatched by the
Workboxclass now include anisUpdateproperty. This property can be used to distinguish lifecycle events in the follow scenarios: 1) the very first service worker installation (isUpdate === undefined), 2) an update from a previous service worker version (isUpdate === true). -
The
waitingevent dispatched by theWorkboxclass will now include awasWaitingBeforeRegistrationflag in the event that there was already a service worker waiting when the current service worker was registered. When this is true, it typically means there are other open tabs preventing the service worker from activating (or the user is reloading the current tab). See The Service Worker Lifecycle: skip the waiting phase for more details on why this can happen. [#1905]
🐛 What's Fixed?
workbox-routing
- The
messageevent listener added viaaddCacheListener()now no longer requiresevent.data.metadatato equalworkbox-window. This allows developers not usingworkbox-windowto still be able to send cache messages to their service worker. [#1906]