Skip to content

0.6.0

Compare
Choose a tag to compare
@westonruter westonruter released this 19 Jan 19:23
· 1198 commits to develop since this release
a9213f0

This release includes 12 closed issues and 18 merged pull requests (aside from dependency updates including updating Workbox to v5.1.4).

For a full list of issues and pull requests, see the 0.6 milestone. Compare all changes in 0.5.0...0.6.0.

Changelog

Service Worker

  • ✨ Add default caching strategies for navigations and assets from core, themes, plugins, and uploaded images. This, along with the UI to opt-in for offline browsing (below), eliminates the need for having a separate helper plugin (e.g. Basic Site Caching) to make a site available offline. The default caching strategy configurations are informed by data from HTTP Archive, although there are new filters to customize them (such as increasing the number of assets stored in cache). See the pull request description for full details. #338, #265, #176, #264
  • ✨ Provide means of opting-in to offline browsing via a new toggle on the Reading Settings screen.
    #344, #365 image
  • ✨ Add offline.php template for the Twenty Twenty-One theme. #361
  • Use pretty permalink for frontend service worker, using /wp.serviceworker instead of /?wp_service_worker=1. #287, #289
  • Fix support for serving 304 Not Modified service worker script responses. #291
  • Update wording of the server offline message. #314
  • Avoid constructing asset versions with HTML entities in context of SW. #325
  • Correct version handling for precached assets. #317
  • Eliminate use of wp_service_worker_json_encode(). #341, #359
  • Update the way a navigation route is registered (for single page apps). #319, #320
  • Add X-Robots-Tag to service worker response for good measure. #300, #330
  • Guard against scripts and styles being erroneously printed in service worker at the wp_enqueue_scripts action. #293, #336

Web App Manifest

  • Serve Web App Manifest with a Content-Type of application/manifest+json. #306, #349
  • Add helper function to obtain the URL for the Web App Manifest. #305

HTTPS

  • Allow HTTPS detection and UI to be disabled. #308

Misc

  • Mark all classes as final. #340, #360
  • Eliminate Travis in favor of GitHub Actions for linting and testing. #197, #354
  • Migrate default branch name from master to develop. #296

Props

Alberto Medina (@amedina), Alejandro Vargas (@avargaz), Daniel Olson (@emaildano), Derek Herman (@derekherman), Erick Hitter (@ethitter), Felix Arntz (@felixarntz), Gary Jones (@GaryJones), Hidetaka Okamoto (@hideokamoto), Ian Dunn (@iandunn), Jeffrey Posnick (@jeffposnick), Jono Alderson (@jono-alderson), Koen Van den Wijngaert (@vdwijngaert), Kurt Zenisek (@KZeni), Pascal Birchler (@swissspidy), Piotr Delawski (@delawski), Weston Ruter (@westonruter)

Installation

Now available to install via WordPress.org.

You can also install the pwa.zip build linked below by uploading it in the WordPress admin.