diff --git a/.changeset/thick-pans-agree.md b/.changeset/thick-pans-agree.md deleted file mode 100644 index 077da5ac..00000000 --- a/.changeset/thick-pans-agree.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@ducanh2912/next-pwa": patch ---- - -fix(core): fixed invalid precache manifest and scope with `basePath` - -- A fast backport of https://github.com/serwist/serwist/pull/56. -- This is caused by "/\_next/../public" in modifyURLPrefix not being matched when basePath is set, since the URL is actually "${basePath}/\_next/../public/\*\*/\*". We now use `manifestTransforms` instead of `modifyURLPrefix`. -- Also, with the refactor to using a context, we mistakenly changed `scope` from "${scope}" (suffixed with / if originally not) to "${basePath}/${scope}". This reverts that change. Sorry for the inconvenience! diff --git a/packages/next-pwa/CHANGELOG.md b/packages/next-pwa/CHANGELOG.md index f3baaf20..2c5fa90d 100644 --- a/packages/next-pwa/CHANGELOG.md +++ b/packages/next-pwa/CHANGELOG.md @@ -1,5 +1,15 @@ # @ducanh2912/next-pwa +## 10.2.3 + +### Patch Changes + +- [`e5f1d14`](https://github.com/DuCanhGH/next-pwa/commit/e5f1d14828d669e17e694e0a18bcfb2f8231a6b9) Thanks [@DuCanhGH](https://github.com/DuCanhGH)! - fix(core): fixed invalid precache manifest and scope with `basePath` + + - A fast backport of https://github.com/serwist/serwist/pull/56. + - This is caused by "/\_next/../public" in modifyURLPrefix not being matched when basePath is set, since the URL is actually "${basePath}/\_next/../public/\*\*/\*". We now use `manifestTransforms` instead of `modifyURLPrefix`. + - Also, with the refactor to using a context, we mistakenly changed `scope` from "${scope}" (suffixed with / if originally not) to "${basePath}/${scope}". This reverts that change. Sorry for the inconvenience! + ## 10.2.2 ### Patch Changes diff --git a/packages/next-pwa/package.json b/packages/next-pwa/package.json index a272c999..c5ece9a5 100644 --- a/packages/next-pwa/package.json +++ b/packages/next-pwa/package.json @@ -1,6 +1,6 @@ { "name": "@ducanh2912/next-pwa", - "version": "10.2.2", + "version": "10.2.3", "type": "module", "description": "PWA for Next.js, powered by Workbox.", "repository": "https://github.com/DuCanhGH/next-pwa",