Releases: DuCanhGH/next-pwa
Releases · DuCanhGH/next-pwa
@ducanh2912/next-pwa@10.2.9
@ducanh2912/next-pwa@10.2.8
@ducanh2912/next-pwa@10.2.7
@ducanh2912/next-pwa@10.2.5
@ducanh2912/next-pwa@10.2.4
Patch Changes
-
07c8861Thanks @DuCanhGH! - fix(core): fixed invalid precache manifest withassetPrefix- Turns out it is much more complex than we thought. To make this work with
assetPrefix,distDir, andbasePath, we now remove${publicPath}${publicDirRelativeToOutputPath}from public files inmanifestTransformsbecauseassetPrefixis not intended for files that are in the public directory and we also want to remove/_next/${publicDirRelativeToOutputPath}from the URL, since that is not how we resolve files in the public directory.
- Turns out it is much more complex than we thought. To make this work with
@ducanh2912/next-pwa@10.2.3
Patch Changes
-
e5f1d14Thanks @DuCanhGH! - fix(core): fixed invalid precache manifest and scope withbasePath- A fast backport of serwist/serwist#56.
- This was caused by "/_next/../public" in modifyURLPrefix not being matched when basePath was set, since the URL was actually "${basePath}/_next/../public/**/*". We now use
manifestTransformsinstead ofmodifyURLPrefix. - Also, with the refactor to using a context, we mistakenly changed
scopefrom "${scope}" (suffixed with / if originally not) to "${basePath}/${scope}". This reverts that change. Sorry for the inconvenience!
@ducanh2912/next-pwa@10.2.2
Patch Changes
-
e583be6Thanks @DuCanhGH! - fix(disable): fixeddisablenot working properly- In 10.2.0 and 10.2.1, when
disablewas set, certain unexpected parts were still processed, causing the resulting app to contain some erroneous JavaScript. - This has been fixed in 10.2.2. Although we still run
parseOptions, we only do so to get the default options.
- In 10.2.0 and 10.2.1, when
@ducanh2912/next-pwa@10.2.1
@ducanh2912/next-pwa@10.2.0
Minor Changes
-
f65e6abThanks @DuCanhGH! - refactor(core): create a context- We now leverage a context to share the user's options for Webpack, Next.js,
next-pwa, TypeScript, etc. across the codebase. This is better than the old approach, which was similar to props drilling, in that it is more readable and less error-prone.- I'd like to extend my thanks to the
vite-pwateam for this approach! Learned a lot through forkingvite-plugin-pwa, that's for sure.
- I'd like to extend my thanks to the
- Additionally, the codebase now leverages Biome.js instead of Prettier and ESLint. For now, pre-commit hooks using Husky are not available.
- Edit: Also, an age-old bug in
@ducanh2912/next-pwahas been fixed. If you don't provideadditionalManifestEntries,@ducanh2912/next-pwanow runsfast-globon your public folder for you. The oldnext-pwa, too, did this, but an extra?? []in our fork ruined that...
- We now leverage a context to share the user's options for Webpack, Next.js,
@ducanh2912/next-pwa@10.1.0
Minor Changes
-
#130
9ff6c29Thanks @DuCanhGH! - feat(next-pwa): re-adjustworkboxOptions.excludedefaults- This was long overdue, so here we are.
- Why?
- This proves to be more sensible than the old defaults.
- Would this incur a breaking change?
- Technically yes according to my definitions of a breaking change. It will cause a behavioural change in the built app, unexpectedly so for those who don't pinpoint their dependencies' versions. However, I don't believe this has an impact big enough. This... simply improves the user experience, and it won't cause any build to suddenly fail.