Releases: DuCanhGH/next-pwa
@ducanh2912/[email protected]
Minor Changes
-
d166a7...fa08192
Thanks @DuCanhGH! - feat(next-pwa, experimental): aggressiveFrontEndNavCaching-
This feature, combined with
cacheOnFrontEndNav
, will cache<link rel="stylesheet" href="" />
and<script src="" />
on frontend navigation. This allows
pages which have only been visited through that method to work offline when directly visited. -
Frontend navigation caching has also been offloaded to a separate worker with this feature.
-
@ducanh2912/[email protected]
@ducanh2912/[email protected]
Patch Changes
-
9045662: fix(next-pwa,compatibility): remove
node:
protocol from imports- We currently don't have a clear version requirement for Node.js, and as such we should support as many versions as possible. It seems that only Node.js 16 and later support
node:
protocol imports for CJS, so we remove this protocol by using@rollup/plugin-alias
. This compatibility patch might be removed in the future though.
- We currently don't have a clear version requirement for Node.js, and as such we should support as many versions as possible. It seems that only Node.js 16 and later support
@ducanh2912/[email protected]
Minor Changes
-
286f347: feat(next-pwa): better offline support for
app
- This update helps improve offline support for App Router by caching RSC prefetches separately from other RSC requests.
-
286f347: feat(next-pwa): added support for extending the default
runtimeCaching
array-
To use this feature you can add
extendDefaultRuntimeCaching
to your configuration. -
This feature helps you easily extend the default
runtimeCaching
array without having to copy the whole thing to your config. YourruntimeCaching
has priority over the default runtime caching array, so its entries will override the defaultruntimeCaching
's entries should any of them sharecacheName
.
-
-
0ab9a7a: Update SETUP.md
- Add "/" to declare self-closing tags
Thank @vegancat for helping!
@ducanh2912/[email protected]
Patch Changes
- 5c37579: fix(next-pwa): removed ignoreVary for pages-rsc
@ducanh2912/[email protected]
(manually created because changesets screwed up, gotta do something later...)
Minor Changes
-
6f73e23: feat: change logging style based on Next's version
- If your Next version is older than
13.4.1
thennext-pwa
will use the old logging style.
- If your Next version is older than
@ducanh2912/[email protected]
(manually created because changesets screwed up, gotta do something later...)
Minor Changes
@ducanh2912/[email protected]
Minor Changes
-
8421d6d: feat(fallbackRoutes): enable the fallback worker when
app/~offline/page.js
is found- This also adds a warning about Next.js appDir ignoring folders prefixed by underscore and suggests migrating to /~offline when /_offline is found.
@ducanh2912/[email protected]
Patch Changes
- 7e5a838: refactor(core): use .swcrc instead of Next's webpack.config.resolve for path aliases.
@ducanh2912/[email protected]
Minor Changes
-
172eebf: feat(deps):
next-pwa
no longer requiresswc-loader
to be manually installed- This package now installs
swc-loader
on its own, and then resolve it usingrequire.resolve
.
- This package now installs
-
172eebf: chore(docs): isolated parts of README.md into SETUP.md for better docs maintenance
- I found scrolling through README.md to be quite a pain, so I've isolated parts of it into a new file again.
Patch Changes
-
172eebf: chore(deps): monthly dependencies maintenance
-
Though I've been quite busy recently with Next.js itself (tons of typedRoutes PRs) and my own stuff, I've promised to always perform a monthly dependencies maintenance.
-
examples/basic
has migrated from<head />
to metadata with this.
-