Releases

v3.3.4 1/7/2021

Bug Fixes

  • types: mark module options fields as optional (#420) (7d75c28)

v3.3.3 12/20/2020

Bug Fixes

  • workbox: add additional details for uncaught errors and fix chromium cors (#417) (f20489c)
  • workbox: deepClone options to avoid cross-build mutation (e39027e)

Update Notes

If you was previously using workbox.clientsClaim: false option in nuxt.config to handle uncaught error, you have to revert it because disabling makes caching issues

v3.3.2 12/20/2020

Bug Fixes

  • avoid adding revision to start_url (1c44cff)

v3.3.1 12/20/2020

Bug Fixes

  • append to start_url without query param (fixes #403) (054b8a2)

v3.3.0 11/28/2020

Features

  • manifest: add revision to start_url (ad26827)

Bug Fixes

  • manifest: invalidate start_url cache (240d4a1)
  • add revision to precache assets (#386) (872dce1)

v3.2.2 10/13/2020

Bug Fixes

  • serve static webpack assets from disk in dev mode (fixes #373) (8298f95)

v3.2.1 10/13/2020

Bug Fixes

  • workbox: precache start_url (resolves #372) (27e19a0)

image

v3.2.0 10/13/2020

Changes

v3.1.2 10/7/2020

Bug Fixes

  • meta: avoid unnecessary log for meta.json (de8e039)
  • meta: fix issues regarding favicon.ico fallback (7a1e773)

v3.1.1 10/7/2020

Bug Fixes

  • meta: load meta when ssr is disable and using nuxt dev (fixes #219) (b6a5ead)
  • workbox: handle offlinePage options (fixes #365) (2b9856e)

v3.1.0 10/6/2020

Features

  • meta: merge head at runtime (#363) (c0d86ea) (resolves #341)
  • workbox: Support strategyPlugins (#337)

Bug Fixes

  • icon: fork without original process args (#343) (8b1f19f) (resolves #218)
  • manifest: do not use nuxt loading bar color as default theme_color (#344) (a18a79f) (resolves #223)
  • meta: add missing router.base prefix to favicon (#354) (3e910ae)
  • meta: allow setting appleStatusBarStyle without mobileAppIOS (b0f226a) (resolves #338)
  • meta: prevent build failure for ios splash image when no icon is used (#362) (494eed5) (resolves #355 and #334)

Thanks to

  • @Yihao-G
  • @1ed
  • @maybebot
  • @DraftProducts

v3.0.2 8/26/2020

Bug Fixes

  • workbox: missing required parameter request for handle() (#335) (eedf23f)

v3.0.1 8/17/2020

Bug Fixes

v3.0.0 8/16/2020

⭐ What's new?

  • Using workbox 5
  • Support purpose option and defaulting to any maskable
  • Brand new docs powered by nuxt/content

🚀 Features

  • Update to workbox 5.x
  • Add types (#323) (8723d07)
  • icon: Support for icon purpose (#246) (9248174)
  • icon: Default purpose to any maskable (30f0f63)
  • icon: Expose options.cacheDir (f8dbf1d)
  • icon: Use favicon.ico when available with warning (#258) (7a48d2a)
  • icon: Rename accessibleIcons to iconPlugin (3e175f9)
  • icon Rename iconSrc, iconFileName, iconPlugin and iconProperty to source, fileName, plugin and pluginName
  • icon: Support for iOS splash screens (#308) (f4eeda7)
  • module: Allow disabling sub-modules with top-level options (65800f9)
  • workbox: Support enabled option and self destroying sw (c64226c)
  • Support manifest.fileName with template (f05353b), closes #193
  • Use integraty file to invalidate icon cache (6661a09)
  • manifest: Add useWebmanifestExtension option and improve docs (#241) (4484e6c)

📝 Docs

  • Fix a typo on icon (#235)
  • Add tip for pwa.manifest.display: 'browser' (#249)
  • Fix typo in icon.md (#253)
  • Use CacheFirst instead of cacheFirst (#251)
  • Fix wrong position of a description (#270)
  • Add an example for refresh to update implementation (#271)
  • Document workbox.swDest (#285)
  • Add title to external links (#288)
  • Migrate to nuxt content (#313)

🐛 Bug Fixes

  • icon: Clean cacheDir when generating icons (1e6eb19)

⚠ BREAKING CHANGES

  • Requeires Node 10.x
  • Updated to workbox 5.x (optional: migration guide)
  • Icon options renamed: iconSrc, iconFileName, iconPlugin, iconProperty, accessibleIcons (see docs)
  • Icon purpose is now any maskable by default which means you have to consider minimum safe-zone (read more)

💖 Contributors

  • @alperbicer
  • @danbeneventano
  • @danielroe
  • @daniel-tikken
  • @DCsunset
  • @debs-obrien
  • @dvarnai
  • @gangsthub
  • @Gomah
  • @hans00
  • @Hxmic
  • @jefrydco
  • @jeremy21212121
  • @jsulpis
  • @ricardogobbosouza
  • @s-pace
  • @svale
  • @Timibadass
  • @Wisdom132
  • @zachjharris

v3.0.0-beta.19 9/11/2019

Bug Fixes

  • expose modified pwa context to the config (c325e44)
  • truncate manifest hash (5c74621)

v3.0.0-beta.18 9/9/2019

Bug Fixes

  • Fix option handling regressions of beta.17 (#231) (3c19baebc0a1dba5e8b7ef20c7230e81ce6a8e95, 38485af547401c2336be97082bac1dd8d514744c)

v3.0.0-beta.17 9/5/2019

Summary

This release contains LOTS of internal improvements!

  • Starting with this release, PWA module is a single package (no longer depending on @nuxtjs/meta, ...)
  • Package install size reduced from 17.1MB to 1.42MB thanks to https://github.com/nuxt-community/jimp-compact
  • Now you can provide all module related options under pwa key in nuxt.config.js: (except one signal module) and older option may be deprecated in future versions.
export default {
  modules: [
    '@nuxtjs/pwa'
  ],
  pwa: {
    icon: {},
    manifest: {},
    meta: {},
    workbox: {},
  }
}

Bug Fixes

  • icon: handle situation where the iconSrc is null or undefined (#187) (66be874)

v3.0.0-beta.16 5/7/2019

Bug Fixes

  • icon: handle situation where the iconSrc is null or undefined (#187) (66be874)

v3.0.0-beta.15 5/7/2019

Bug Fixes

  • workbox: disable cacheAssets for dev (dbf6d67)
  • workbox: use NetworkFirst for dev (9a67580)

Features

  • workbox: support offlineStrategy (e377436)
  • icon: rewrite icon with async image resizer (#171)

Reverts

  • workbox: revert unnecessary HMR regex (1ac5f5c)

BREAKING CHANGES

  • workbox: default offlineStrategy changed from NetworkOnly to NetworkFirst when offlinePage is enabled

v3.0.0-beta.14 3/17/2019

Bug Fixes

  • onesignal: ensure no duplicate script is added (#161) (89c1a1d)

Features

  • workbox: make plugin fully asynchronous (1eb1190)
  • workbox: improve computed cacheId (cd6c9cc)
  • workbox: improve sw.register error handling (9aa76f8)

v3.0.0-beta.13 3/17/2019

Features

  • workbox: improve sw.register (c35f610)
  • workbox: sync workbox version with workbox-cdn
  • workbox: Upgrade workbox to 4.1.1

v3.0.0-beta.12 3/5/2019

Bug Fixes

  • pwa-utils: don't combine with esm (fddfa7a), closes #147

v3.0.0-beta.11 3/5/2019

Bug Fixes

  • workbox: always prepend routerBase to swURL (d3a52b6), closes #157

Features

  • workbox: allow cache names to be configured (#154) (2d7ed53)
  • workbox: workbox-window support (2e356d0)

v3.0.0-beta.10 2/27/2019

Features

  • workbox: use workbox 4.0.0-0 (70813ef)

v3.0.0-beta.9 2/27/2019

Bug Fixes

  • pwa-utils: handle non-strings in startCase (#150) (782217a) (@alexkcollier)

Workbox

v3.0.0-beta.8 2/18/2019

Bug Fixes

  • manifest: remove publicPath field (b03dc14)

v3.0.0-beta.7 2/17/2019

Bug Fixes

  • module: handle readJSFiles for string param (#143) (4f06479)

Features

  • workbox: bump to 4.0.0-rc.2 (7e278f0)

v3.0.0-beta.6 2/17/2019

Bug Fixes

  • relax pages regex for workbox 4 compatiblity (04e74a7)

Features

  • cleanupOutdatedCaches (9167013)
  • workbox: assetsURLPattern, pagesURLPattern (5fc3d66)
  • workbox: preCaching option (67f1c3d)
  • workbox: upgrade workboxVersion to 4.0.0-rc.0 (b364572)

v3.0.0-beta.5 2/17/2019

Bug Fixes

v3.0.0-beta.3 2/17/2019

Bug Fixes

  • onesignal: add cache query to sw.js (33f8f61)
  • pwa-utils: ensure joinUrl not modifying scheme part (09a465a)

Features