| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| workbox-v4.0.0-rc.1.zip | 2019-02-13 | 337.6 kB | |
| workbox-v4.0.0-rc.1.tar.gz | 2019-02-13 | 257.1 kB | |
| README.md | 2019-02-13 | 1.6 kB | |
| Workbox v4.0.0-rc.1 source code.tar.gz | 2019-02-13 | 581.1 kB | |
| Workbox v4.0.0-rc.1 source code.zip | 2019-02-13 | 928.0 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
- The
workbox-windowpackage now ships with a few different build options, to help make it as easy as possible for people to include it in to their existing tool chain [#1895, [#1899]]. Here's what's currently supported:
1) Requiring workbox-window in node (or any or environment that doesn't support native modules):
:::js
// Imports a UMD version with ES5 syntax
const {Workbox} = require('workbox-window');
2) Importing workbox-window via webpack or Rollup in a context where your build does not automatically transpile anything in node_modules:
:::js
// Imports the module version with ES5 syntax
import {Workbox} from 'workbox-window';
3) Importing workbox-window via webpack or Rollup in a context where you can handle transpiling yourself (or you don't need to transpile to ES5):
:::js
// Imports the module version with ES2015+ syntax
import {Workbox} from 'workbox-window/Workbox.mjs';
Note: option 3 above will usually result in the smallest file size, so it's recommend to do that if your build supports it.
🐛 What's Fixed?
workbox-routing
- The
setCatchHandler()andsetDefaultHandler()methods were not properly migrated as part of the bundling changes in [#1831]. This has been fixed, and these method now work as they did before [#1898].