Workbox v6.5.0
The Workbox v6.5.0 release includes a number of smaller fixes, as well as a major rewrite of the workbox-webpack-plugin
to TypeScript.
A full changelog is available at v6.4.2...v6.5.0
What's New
workbox-webpack-plugin
has been rewritten in TypeScript, and has public TypeScript definitions for its interfaces published as part of this release. We do not anticipate any changes in the underlying functionality as part of this rewrite. [#2882]- A
forceSyncFallback
parameter has been added toworkbox-background-sync
, without changing the default behavior. WhenforceSyncFallback
is explicitly set totrue
,workbox-background-sync
will always attempt to replay queued requests when the service worker starts up and never rely on thesync
event listener. Most developers will not need this behavior, but it can be useful when targeting environments that have a non-functional Background Sync implementation, like some Electron runtimes. [#3020]
What's Fixed
- A more informative message is returned when an opaque response is erroneously used in
workbox-streams
. [#3001] - Removed a dynamic method call in
workbox-background-sync
which could lead to errors when run through with certain aggressive minifiers. [#3012] - A
waitUntil()
was added to theStaleWhileRevalidate
strategy, ensuring that it works properly with navigation preload responses. [#3015] - Removed the dependency on the deprecated
source-map-url
package. [#3031]
New Contributors
Thank you to @roikoren755 for their contributions to the workbox-webpack-plugin
TypeScript migration!