The latest beta release of Workbox v5 includes the following developer-visible changes, in addition to all the changes from the previous pre-release.
Installation of the latest pre-release version
We are using the next
tag in npm
for the current pre-release version. To install a given module use, e.g., npm install --save-dev workbox-webpack-plugin@next
.
🐛 What's Fixed?
TypeScript
All build tools
- If the
swSrc
file has an associated sourcemap, we now update that to account for the injected manifest. [#2239]
workbox-build
-
Fixed a bug that could lead to the output directory being prepended twice when writing the service worker to disk. [#2223]
-
Make sure that all
swSrc
andswDest
files are left out of the generated precache manifest. [#2232]
workbox-broadcast-update
- Added a check to wait for the resulting client to load on navigation requests before broadcasting any update messages. [#2210]
workbox-precaching
- Instead of adding the
__WB_REVISION__
query parameter to outgoing network requests that should be cache-busted, explicitly set thecache
mode to'reload'
if needed. When cache-busting is not needed, setcache
to'default'
. [#2222]
workbox-range-requests
- Fixed a bug causing an invalid
206 Partial Content
response to be used when the incoming request usedRange: bytes=0-
. [#2237]
workbox-webpack-plugin
- Fixed an edge case that could lead to build errors when other plugins generate assets. [#2219]
workbox-window
- The
message
event listener is now added earlier, inside of the constructor rather than theregister()
method. [#2211]
Thanks
Special thanks to @lukas2005 for their bug reports, and @azizhk for their contributions that went into this release!