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-pluginhas 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
forceSyncFallbackparameter has been added toworkbox-background-sync, without changing the default behavior. WhenforceSyncFallbackis explicitly set totrue,workbox-background-syncwill always attempt to replay queued requests when the service worker starts up and never rely on thesyncevent 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-syncwhich could lead to errors when run through with certain aggressive minifiers. [#3012] - A
waitUntil()was added to theStaleWhileRevalidatestrategy, ensuring that it works properly with navigation preload responses. [#3015] - Removed the dependency on the deprecated
source-map-urlpackage. [#3031]
New Contributors
Thank you to @roikoren755 for their contributions to the workbox-webpack-plugin TypeScript migration!