Releases: DuCanhGH/next-pwa
@ducanh2912/next-pwa@10.0.2
@ducanh2912/next-pwa@10.0.1
@ducanh2912/next-pwa@10.0.0
NOTE: If there's no specific reason to continue using @ducanh2912/next-pwa
, consider migrating to @serwist/next
. This version (10.0.0) is the LAST PLANNED major version for @ducanh2912/next-pwa
. It is now under maintenance mode and will not receive as many feature updates as it used to.
Major Changes
-
52d2390
Thanks @DuCanhGH! - chore(backporting): backported some changes from@serwist/next@8.0.0
- Removed
buildExcludes
.- Simply use
workboxOptions.exclude
as a replacement.
- Simply use
- Removed
customWorkerDir
.- Use
customWorkerSrc
instead.
- Use
- Removed
browserslist
,swcMinify
,watchWorkersInDev
.- We now create child compilers on Next.js's compiler instead of starting separate Webpack processes.
- This also means you don't need to have
@swc/core
installed anymore.
- Change the default value for
dest
from".next"
to"public"
.- You should change it to
".next"
in your project if there's demand, but I'd recommend using"public"
instead.
- You should change it to
- Fixed the custom worker and the fallback worker not working...
- This was caused by
next-pwa
'simportScripts
not being passed to Workbox. I'm seriously sorry...
- This was caused by
- Moved the minimum supported Next.js version from 11.0.0 to 14.0.0.
- This is to remove the appDir check.
- Removed
Patch Changes
- #115
974326e
Thanks @vlad-yakovlev! - fix(next-auth): allow users to use the application offline
@ducanh2912/next-pwa@9.7.2
Patch Changes
-
78ce4fb
Thanks @DuCanhGH! - fix(next-pwa): fixed InjectManifest crashing due tobabelPresetEnvTargets
being set- I'm still astonished that noone, including me, has noticed this issue all this time 💀. Really unfortunately speaks volumes about how popular this feature is among us, though.
- This also fixes our applying defaults for
GenerateSW
, so if there's any unexpected change that arises from this, I'm really sorry. This affects you if you useimportScripts
, which used to cause the custom worker and the fallback worker to not be imported into your service worker.
@ducanh2912/next-pwa@9.7.1
@ducanh2912/next-pwa@9.7.0
Minor Changes
-
#90
c24e175
Thanks @DuCanhGH! - feat: addedwatchWorkersInDev
- Note that this feature is disabled by default, and can be enabled by setting
PluginOptions.watchWorkersInDev
totrue
. After a change is detected andwebpack
rebuilds the custom worker, you have to reload the page for it to take effect.
- Note that this feature is disabled by default, and can be enabled by setting
-
#90
c24e175
Thanks @DuCanhGH! - feat: added.webm
todefaultCache
'sstatic-video-assets
- I think it'd be nice to support this extension as well, and this shouldn't cause a breaking change (if there is another entry that matches
.webm
files inworkboxOptions.runtimeCaching
andextendDefaultRuntimeCaching
, then Workbox will still pick that entry).
- I think it'd be nice to support this extension as well, and this shouldn't cause a breaking change (if there is another entry that matches
@ducanh2912/next-pwa@9.6.0
Minor Changes
-
#84
12a6542
Thanks @DuCanhGH! - feat: addedPluginOptions.browserslist
- This defaults to
"chrome >= 56"
, same with Workbox's default. - Note that
.browserslistrc
,package.json.browserslist
, etc. are not supported (yet), and the only way to pass the config tonext-pwa
isPluginOptions.browserslist
, but you can read the file yourself, parse it, then pass it tonext-pwa
. - This allows you to configure which browsers you want to target your workers for. This tells
next-pwa
to addPluginOptions.workboxOptions.babelPresetEnvTargets
if that option is not defined, which means that the service worker will, too, be bundled to target these browsers, but you can change that by adding the option.
- This defaults to
-
#84
12a6542
Thanks @DuCanhGH! - feat: support Next's new logging style- So Next changed its logging style again, and I'm wondering if trying to match its logging style is even a good idea.
@ducanh2912/next-pwa@9.5.0
Minor Changes
-
#74
158ebe1
Thanks @DuCanhGH! - refactor: removed'activated'
event listeners insw-entry.ts
- These listeners seem to be unnecessary as we already have
runtimeCaching
. Though, this is merely an assumption and might cause issues for some people.
Do open a new issue if you are one of them :) - This also updates every dependency to their latest versions.
- These listeners seem to be unnecessary as we already have
@ducanh2912/next-pwa@9.4.0
Minor Changes
-
#62
771de70
Thanks @DuCanhGH! - feat(next-pwa): addedcustomWorkerDest
,customWorkerPrefix
, use file hashing for workers' output filenames' suffixcustomWorkerPrefix
works like oursw
option, except that it is just a prefix and not the whole name to allow having a hash at the end of the custom worker's output filename.- This also deprecates
customWorkerDir
and replaces it withcustomWorkerSrc
to align withcustomWorkerDest
so as to avoid confusion. - We now use file hashing instead of
buildId
for our workers' output filenames' suffix.
@ducanh2912/next-pwa@9.3.0
Minor Changes
-
#58
b88526a
Thanks @DuCanhGH! - chore: revert addingwebpack
todependencies
- This version reverts that now that Next 13.4.10 has been released, which fixes the issue in which
workbox-webpack-plugin
fails to resolvewebpack
in
development mode. - Note: If you are using Next 13.4.9, you will need to install
webpack
as adevDependency
to avoid the aforementioned issue. This is quite a breaking
change, but it is due to a bug and I've decided against making a major jump. It is recommended to just upgrade to Next 13.4.10 (and still havewebpack
installed, as it is one of ourpeerDependencies
).
- This version reverts that now that Next 13.4.10 has been released, which fixes the issue in which