Releases

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

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

Features

  • offlineAnalytics (#55) (4c4d3ff)
  • workboxExtensions and extension reading fixes (5c56484)

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

Features

  • icon: allow reading icon from assetc/icon.png (#29) (9e0fde3)
  • add HMR test suit (ff3d502)
  • use better regexes (318228e)

v3.0.0-beta.0 2/4/2019

This is a beta version which can be installed using yarn add @nuxtjs/pwa@3.0.0-beta

NOTE: If you are using one signal, don't forget to update it too.

Features

Bug Fixes

  • Handle ogImage as url (#121) (d6dc82b)
  • Routing order for default offline route /.* must be last (#100) (1c829d0)

Code Refactoring

BREAKING CHANGES

  • Only nuxt 2+ supported (854d826)
  • webpack >= 4 is required
  • Workbox and One signal using CDN by default
  • /_nuxt/* assets are not cached during service worker registration but smartly cached on the fly.

v2.4.0 8/28/2018

Bug Fixes

  • icon: temporary use jimp@0.3.4 (#84) (3f0e718)
  • workbox: infer default value of globDirectory from webpack config. fixes #83. (c7102fd)
  • workbox: more fixes regarding nuxt 2 dist directory changes. fixes #83. (7a8bb3b)

Features

v2.3.2 8/24/2018

Bug Fixes

  • workbox: staleWhileRevalidate() -> networkOnly() for offline pages (832d60f)