Documentation changes for v5
See original GitHub issueThis is a master tracking issue for documentation changes we need to make along with releasing v5. We can update this issue as new breaking changes are introduced.
- The
makeRequest
method is not longer supported on strategy classes (docs page) -
registerNavigationRoute
is gone, and this docs page needs to be updated, along with a new recipe geared to the App Shell use case. - A ton of changes to the documentation page for the various build tools’ options.
- There’s a new, optional
integrity
field in the precache manifest. - Update the
workbox-broadcast-update
docs to point out it no longer uses theBroadcastChannel
API (and that it works in all browsers). - Update all Plugin docs to use the renamed names.
- Document a “disable logging” flag [#1619]
- Talk about using
revision: null
and the eventual deprecation ofstring
parameters in theworkbox-precaching
guide. - Update Getting Started guide(s) to prefer module imports syntax, with links to
workbox-sw
module page as an alternative. - Include a simpler standalone offline HTML fallback recipe that uses
workbox-navigation-preload
. - Remove existing include-based build cool config docs on https://developers.google.com/web/tools/workbox/modules/workbox-build and https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin, and link directly to the JSDoc-based docs instead.
- Update the Rollup bundling guide to mention https://www.npmjs.com/package/rollup-plugin-workbox and https://www.npmjs.com/package/rollup-plugin-workbox-inject
- Update the code labs to prefer module imports syntax.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Update documentation for v5 changes · Issue #868 - GitHub
With the changes happening in v5; we should thoroughly review the documentation provided to ensure all references are brought up to date for ......
Read more >(GEN-22-06) Changes to 2022-2023 Verification Requirements
Please note that Verification Tracking group V5 includes a combination of the verification of income/tax information (which is waived under this ...
Read more >Migrating to v5 - Bootstrap
Documentation changes. Redesigned homepage, docs layout, and footer. Added new Parcel guide. Added new Customize section, replacing v4's Theming page, with ...
Read more >Changes to the vehicle registration certificate (V5C)
Changes to the vehicle registration certificate (V5C) · The document reference number has moved to the top and the words 'Don't share, keep...
Read more >Change your address on your vehicle log book (V5C) - GOV.UK
Change your address ... You must update your vehicle log book (V5C) if you change your address. It's usually free to update it....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A couple of options:
Use
copy-webpack-plugin
to ensure that your files on disk are part of the webpack asset pipeline, and then rely on the v5 plugin’s ability to precache those known assets. You can customize which webpack assets are cached viainclude
/exclude
instead ofglob
patterns.Use
workbox-cli
orworkbox-build
in a separate build step, run after thewebpack
compilation, with similarglob
based options as before.Use
manifestTransforms
to make whatever changes you want to the manifest that thewebpack
plugin generates. This includes callingworkbox-build
’sgetManifest()
mode inside themanifestTransform
to construct the manifest via the same options as was previously supported, i.e.glob
patterns matching files on disk.Option 1 is probably the most “
webpack
-y”, and I’d imagine most folks would go with something like that.Option 2 is fairly easy to implement.
Option 3 is the most involved, but gives you the most control.
@evdama, if you want a starting point, here’s a sample project that uses Svelte and Workbox v5, with Rollup bundling the service worker and then
workbox-cli
to inject the manifest: https://github.com/GoogleChrome/samples/tree/721722c6044d3e1388e2c317aa4d45a2141f9ca3/web-shareFor folks who decide that they want to use v5 early, the main difference when switching from the CDN to consuming the bundles is that anything that used to look like
now looks like
(This existing guide covers some of that in more detail, but it will also need to be updated for v5.)
There are some renamings that happened between v4 and v5, specifically around the various
Plugin
classes, which all have their module name prefixed to the class name. Sohas a v5 equivalent of
And there a number of more involved changes to the build tools, especially the webpack plugin.
v5 is currently feature complete, and we’ve ironed out a couple of bugs since entering the release candidate phase. The last remaining task before making v5 final is doing the documentation overhaul, and as per your question, it’s going to be something much closer to 1 month than 6 months for that.