Workbox v5.0.0-rc.0
Pre-release
Pre-release
The latest release candidate 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 New?
TypeScript
- All public workbox types are now exported directly from
workbox-core
[#2255] - All packages have switched to using
"strict": true
in their TypeScript config. [#2241, #2244, #2256 2246]
workbox-precaching
- Two new methods (
matchPrecache()
andcreateHandler()
) have been added to make it easier to manually access precached assets. [#2254]
🐛 What's Fixed?
workbox-webpack-plugin
-
Missing source map assets are is no longer treated as a fatal error. [#2251]
-
If the
swSrc
file has an associated sourcemap, we now update that to account for the injected manifest. [#2239]
⚠️ Breaking Changes
workbox-precaching
- The
createHandlerForURL()
method has been renamed tocreateHandlerBoundToURL()
to make its intended usage more clear. [#2254]