Skip to content

Commit f3766a5

Browse files
committedSep 18, 2024··
chore(deps)
[bump]
1 parent b405677 commit f3766a5

File tree

18 files changed

+1262
-2830
lines changed

18 files changed

+1262
-2830
lines changed
 

‎.changeset/olive-bobcats-clean.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@ducanh2912/next-pwa": patch
3+
---
4+
5+
chore(deps): updated all dependencies
6+
7+
- Monthly dependencies maintenance
8+
9+
- Not so monthly this time...

‎docs/package.json‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@
99
},
1010
"dependencies": {
1111
"@ducanh2912/next-pwa": "workspace:*",
12-
"@mantine/hooks": "7.11.2",
13-
"@tabler/icons-react": "3.11.0",
12+
"@mantine/hooks": "7.12.2",
13+
"@tabler/icons-react": "3.17.0",
1414
"client-only": "0.0.1",
1515
"contentlayer": "0.3.4",
1616
"highlight.js": "11.10.0",
17-
"next": "14.2.5",
17+
"next": "14.2.12",
1818
"next-contentlayer": "0.3.4",
19-
"react": "19.0.0-rc-01172397-20240716",
20-
"react-dom": "19.0.0-rc-01172397-20240716",
19+
"react": "19.0.0-rc-5dcb0097-20240918",
20+
"react-dom": "19.0.0-rc-5dcb0097-20240918",
2121
"server-only": "0.0.1",
22-
"tailwind-merge": "2.4.0",
22+
"tailwind-merge": "2.5.2",
2323
"uuid": "10.0.0",
24-
"zustand": "4.5.4"
24+
"zustand": "4.5.5"
2525
},
2626
"devDependencies": {
27-
"@shikijs/rehype": "1.10.3",
27+
"@shikijs/rehype": "1.17.7",
2828
"@types/extend": "3.0.4",
2929
"@types/hast": "3.0.4",
3030
"@types/mdast": "4.0.4",
3131
"@types/mdx": "2.0.13",
32-
"@types/node": "20.14.10",
33-
"@types/react": "18.3.3",
32+
"@types/node": "22.5.5",
33+
"@types/react": "18.3.7",
3434
"@types/react-dom": "18.3.0",
3535
"@types/uuid": "10.0.0",
36-
"autoprefixer": "10.4.19",
36+
"autoprefixer": "10.4.20",
3737
"extend": "3.0.2",
3838
"github-slugger": "2.0.0",
3939
"hast-util-has-property": "3.0.0",
@@ -42,13 +42,13 @@
4242
"mdast-util-mdx": "3.0.0",
4343
"mdast-util-to-markdown": "2.1.0",
4444
"mdast-util-to-string": "4.0.0",
45-
"mdx-bundler": "10.0.2",
46-
"postcss": "8.4.39",
45+
"mdx-bundler": "10.0.3",
46+
"postcss": "8.4.47",
4747
"rehype-highlight": "7.0.0",
4848
"rehype-sanitize": "6.0.0",
49-
"shiki": "1.10.3",
50-
"tailwindcss": "3.4.6",
51-
"typescript": "5.6.0-dev.20240716",
49+
"shiki": "1.17.7",
50+
"tailwindcss": "3.4.12",
51+
"typescript": "5.7.0-dev.20240918",
5252
"unified": "10.1.2",
5353
"unist-util-is": "6.0.0",
5454
"unist-util-visit": "5.0.0"

‎examples/basic/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
},
1212
"dependencies": {
1313
"@ducanh2912/next-pwa": "latest",
14-
"next": "14.2.5",
14+
"next": "14.2.12",
1515
"react": "18.3.1",
1616
"react-dom": "18.3.1"
1717
},
1818
"devDependencies": {
19-
"@types/node": "20.14.10",
20-
"@types/react": "18.3.3",
19+
"@types/node": "22.5.5",
20+
"@types/react": "18.3.7",
2121
"@types/react-dom": "18.3.0",
22-
"typescript": "5.5.3"
22+
"typescript": "5.6.2"
2323
}
2424
}

‎examples/custom-server/package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
},
1212
"dependencies": {
1313
"@ducanh2912/next-pwa": "latest",
14-
"@fastify/compress": "7.0.3",
14+
"@fastify/compress": "8.0.0",
1515
"cross-env": "7.0.3",
16-
"fastify": "4.28.1",
17-
"next": "14.2.5",
16+
"fastify": "5.0.0",
17+
"next": "14.2.12",
1818
"react": "18.3.1",
1919
"react-dom": "18.3.1"
2020
},
2121
"devDependencies": {
22-
"@swc/core": "1.6.13",
23-
"@types/node": "20.14.10",
24-
"@types/react": "18.3.3",
22+
"@swc/core": "1.7.26",
23+
"@types/node": "22.5.5",
24+
"@types/react": "18.3.7",
2525
"@types/react-dom": "18.3.0",
26-
"nodemon": "3.1.4",
26+
"nodemon": "3.1.5",
2727
"rimraf": "6.0.1",
2828
"ts-node": "10.9.2",
29-
"typescript": "5.5.3"
29+
"typescript": "5.6.2"
3030
}
3131
}

‎examples/custom-worker/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
},
1212
"dependencies": {
1313
"@ducanh2912/next-pwa": "latest",
14-
"next": "14.2.5",
14+
"next": "14.2.12",
1515
"react": "18.3.1",
1616
"react-dom": "18.3.1"
1717
},
1818
"devDependencies": {
19-
"@types/node": "20.14.10",
20-
"@types/react": "18.3.3",
19+
"@types/node": "22.5.5",
20+
"@types/react": "18.3.7",
2121
"@types/react-dom": "18.3.0",
22-
"typescript": "5.5.3"
22+
"typescript": "5.6.2"
2323
}
2424
}

‎examples/lifecycle/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
},
1212
"dependencies": {
1313
"@ducanh2912/next-pwa": "latest",
14-
"next": "14.2.5",
14+
"next": "14.2.12",
1515
"react": "18.3.1",
1616
"react-dom": "18.3.1"
1717
},
1818
"devDependencies": {
19-
"@types/node": "20.14.10",
20-
"@types/react": "18.3.3",
19+
"@types/node": "22.5.5",
20+
"@types/react": "18.3.7",
2121
"@types/react-dom": "18.3.0",
22-
"typescript": "5.5.3"
22+
"typescript": "5.6.2"
2323
}
2424
}

‎examples/next-i18next/package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
"dependencies": {
1313
"@ducanh2912/next-pwa": "latest",
1414
"cross-env": "7.0.3",
15-
"express": "4.19.2",
15+
"express": "4.21.0",
1616
"fastify-compress": "4.1.0",
17-
"i18next": "23.12.1",
18-
"next": "14.2.5",
19-
"next-i18next": "15.3.0",
17+
"i18next": "23.15.1",
18+
"next": "14.2.12",
19+
"next-i18next": "15.3.1",
2020
"react": "18.3.1",
2121
"react-dom": "18.3.1",
22-
"react-i18next": "14.1.3"
22+
"react-i18next": "15.0.2"
2323
},
2424
"devDependencies": {
25-
"@types/node": "20.14.10",
26-
"@types/react": "18.3.3",
25+
"@types/node": "22.5.5",
26+
"@types/react": "18.3.7",
2727
"@types/react-dom": "18.3.0",
28-
"typescript": "5.5.3"
28+
"typescript": "5.6.2"
2929
}
3030
}

‎examples/next-image/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
},
1212
"dependencies": {
1313
"@ducanh2912/next-pwa": "latest",
14-
"next": "14.2.5",
14+
"next": "14.2.12",
1515
"react": "18.3.1",
1616
"react-dom": "18.3.1"
1717
},
1818
"devDependencies": {
19-
"@types/node": "20.14.10",
20-
"@types/react": "18.3.3",
19+
"@types/node": "22.5.5",
20+
"@types/react": "18.3.7",
2121
"@types/react-dom": "18.3.0",
22-
"typescript": "5.5.3"
22+
"typescript": "5.6.2"
2323
}
2424
}

‎examples/offline-fallback-v2/package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
},
1212
"dependencies": {
1313
"@ducanh2912/next-pwa": "latest",
14-
"next": "14.2.5",
14+
"next": "14.2.12",
1515
"react": "18.3.1",
1616
"react-dom": "18.3.1",
17-
"sharp": "0.33.4"
17+
"sharp": "0.33.5"
1818
},
1919
"devDependencies": {
20-
"@types/node": "20.14.10",
21-
"@types/react": "18.3.3",
20+
"@types/node": "22.5.5",
21+
"@types/react": "18.3.7",
2222
"@types/react-dom": "18.3.0",
23-
"typescript": "5.5.3"
23+
"typescript": "5.6.2"
2424
}
2525
}

‎examples/reproduction-template/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"react-dom": "18.3.1"
1616
},
1717
"devDependencies": {
18-
"@types/node": "20.14.10",
19-
"@types/react": "18.3.3",
18+
"@types/node": "22.5.5",
19+
"@types/react": "18.3.7",
2020
"@types/react-dom": "18.3.0",
21-
"typescript": "5.5.3"
21+
"typescript": "5.6.2"
2222
}
2323
}

‎examples/web-push/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
},
1313
"dependencies": {
1414
"@ducanh2912/next-pwa": "latest",
15-
"next": "14.2.5",
15+
"next": "14.2.12",
1616
"react": "18.3.1",
1717
"react-dom": "18.3.1",
1818
"web-push": "3.6.7"
1919
},
2020
"devDependencies": {
21-
"@types/node": "20.14.10",
22-
"@types/react": "18.3.3",
21+
"@types/node": "22.5.5",
22+
"@types/react": "18.3.7",
2323
"@types/react-dom": "18.3.0",
2424
"@types/web-push": "3.6.3",
25-
"typescript": "5.5.3"
25+
"typescript": "5.6.2"
2626
}
2727
}

‎package.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@
2424
"typecheck": "FORCE_COLOR=1 turbo run typecheck"
2525
},
2626
"devDependencies": {
27-
"@biomejs/biome": "1.8.3",
27+
"@biomejs/biome": "1.9.1",
2828
"@changesets/changelog-github": "0.5.0",
29-
"@changesets/cli": "2.27.7",
29+
"@changesets/cli": "2.27.8",
3030
"@ducanh2912/next-pwa": "workspace:*",
31-
"@types/node": "20.14.10",
31+
"@types/node": "22.5.5",
3232
"@types/shell-quote": "1.7.5",
33-
"@typescript-eslint/eslint-plugin": "7.16.1",
34-
"@typescript-eslint/parser": "7.16.1",
33+
"@typescript-eslint/eslint-plugin": "8.6.0",
34+
"@typescript-eslint/parser": "8.6.0",
3535
"fast-glob": "3.3.2",
3636
"jest": "29.7.0",
37-
"npm-check-updates": "16.14.20",
37+
"npm-check-updates": "17.1.2",
3838
"rimraf": "6.0.1",
3939
"shell-quote": "1.8.1",
40-
"tslib": "2.6.3",
41-
"turbo": "2.0.6",
42-
"typescript": "5.6.0-dev.20240716"
40+
"tslib": "2.7.0",
41+
"turbo": "2.1.2",
42+
"typescript": "5.7.0-dev.20240918"
4343
}
4444
}

‎packages/configs/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"@rollup/plugin-alias": "5.1.0",
2121
"@rollup/plugin-json": "6.1.0",
2222
"@rollup/plugin-node-resolve": "15.2.3",
23-
"@rollup/plugin-swc": "0.3.1",
23+
"@rollup/plugin-swc": "0.4.0",
2424
"@rollup/plugin-typescript": "11.1.6",
25-
"@swc/core": "1.6.13",
25+
"@swc/core": "1.7.26",
2626
"rollup": "3.28.1",
2727
"rollup-plugin-dts": "6.0.2"
2828
}

‎packages/next-pwa/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Zero-config [PWA](https://web.dev/learn/pwa/) plugin for [Next.js](https://nextjs.org/)
1+
# [PWA](https://web.dev/learn/pwa/) for [Next.js](https://nextjs.org/), powered by [Workbox](https://developer.chrome.com/docs/workbox).
22

33
This plugin is powered by [Workbox](https://developer.chrome.com/docs/workbox/) and other good stuff.
44

55
[![Build Size](https://img.shields.io/bundlephobia/minzip/@ducanh2912/next-pwa?label=Bundle%20size&style=flat&color=success)](https://bundlephobia.com/result?p=@ducanh2912/next-pwa)
66
[![Version](https://img.shields.io/npm/v/@ducanh2912/next-pwa?style=flat&color=success)](https://www.npmjs.com/package/@ducanh2912/next-pwa)
77

8-
**NOTE:** If there's no specific reason to continue using `@ducanh2912/next-pwa`, consider migrating to [`@serwist/next`](https://github.com/serwist/serwist).
8+
**NOTE:** If there's no specific reason to continue using `@ducanh2912/next-pwa`, consider migrating to [`@serwist/next`](https://serwist.pages.dev/docs/next), a part of [Serwist](https://serwist.pages.dev) (a Workbox fork).
99

1010
---
1111

‎packages/next-pwa/__tests__/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"devDependencies": {
77
"@jest/globals": "29.7.0",
88
"@types/fs-extra": "11.0.4",
9-
"@types/jest": "29.5.12",
10-
"@types/react": "18.3.3",
9+
"@types/jest": "29.5.13",
10+
"@types/react": "18.3.7",
1111
"@types/react-dom": "18.3.0",
12-
"cheerio": "1.0.0-rc.12",
12+
"cheerio": "1.0.0",
1313
"fs-extra": "11.2.0",
1414
"glob": "11.0.0"
1515
}

‎packages/next-pwa/package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,24 @@
6363
},
6464
"dependencies": {
6565
"fast-glob": "3.3.2",
66-
"semver": "7.6.2",
66+
"semver": "7.6.3",
6767
"workbox-build": "7.1.1",
6868
"workbox-core": "7.1.0",
6969
"workbox-webpack-plugin": "7.1.0",
7070
"workbox-window": "7.1.0"
7171
},
7272
"devDependencies": {
7373
"@serwist/configs": "workspace:*",
74-
"@types/node": "20.14.10",
74+
"@types/node": "22.5.5",
7575
"@types/semver": "7.5.8",
7676
"chalk": "5.3.0",
77-
"next": "14.2.5",
77+
"next": "14.2.12",
7878
"rollup": "3.28.1",
79-
"react": "19.0.0-rc-01172397-20240716",
80-
"react-dom": "19.0.0-rc-01172397-20240716",
81-
"type-fest": "4.21.0",
82-
"typescript": "5.6.0-dev.20240716",
83-
"webpack": "5.93.0"
79+
"react": "19.0.0-rc-5dcb0097-20240918",
80+
"react-dom": "19.0.0-rc-5dcb0097-20240918",
81+
"type-fest": "4.26.1",
82+
"typescript": "5.7.0-dev.20240918",
83+
"webpack": "5.94.0"
8484
},
8585
"peerDependencies": {
8686
"next": ">=14.0.0",

‎packages/next-pwa/src/webpack/builders/get-fallback-envs.ts‎

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,30 @@ export const getFallbackEnvs = ({
1717
data = path.posix.join("/_next/data", buildId, data);
1818
}
1919

20-
const envs = {
21-
__PWA_FALLBACK_DOCUMENT__: fallbacks.document || false,
22-
__PWA_FALLBACK_IMAGE__: fallbacks.image || false,
23-
__PWA_FALLBACK_AUDIO__: fallbacks.audio || false,
24-
__PWA_FALLBACK_VIDEO__: fallbacks.video || false,
25-
__PWA_FALLBACK_FONT__: fallbacks.font || false,
26-
__PWA_FALLBACK_DATA__: data || false,
27-
};
20+
let envCount = 0;
2821

29-
if (Object.values(envs).filter((v) => !!v).length === 0) return;
22+
const envs = (
23+
[
24+
["DOCUMENT", fallbacks.document],
25+
["IMAGE", fallbacks.image],
26+
["AUDIO", fallbacks.audio],
27+
["VIDEO", fallbacks.video],
28+
["FONT", fallbacks.font],
29+
["DATA", data],
30+
] as const
31+
).reduce((prev, cur) => {
32+
if (cur[1]) {
33+
envCount++;
34+
prev[`__PWA_FALLBACK_${cur[0]}__`] = cur[1];
35+
}
36+
return prev;
37+
}, {} as Record<string, string>);
3038

31-
logger.info("This app will fallback to these precached routes when fetching from the cache and the network fails:");
39+
if (envCount === 0) return;
40+
41+
logger.info(
42+
"This app will fallback to these precached routes when fetching from the cache and the network fails:"
43+
);
3244

3345
if (envs.__PWA_FALLBACK_DOCUMENT__) {
3446
logger.info(` Documents (pages): ${envs.__PWA_FALLBACK_DOCUMENT__}`);
@@ -46,7 +58,9 @@ export const getFallbackEnvs = ({
4658
logger.info(` Fonts: ${envs.__PWA_FALLBACK_FONT__}`);
4759
}
4860
if (envs.__PWA_FALLBACK_DATA__) {
49-
logger.info(` Data (/_next/data/**/*.json): ${envs.__PWA_FALLBACK_DATA__}`);
61+
logger.info(
62+
` Data (/_next/data/**/*.json): ${envs.__PWA_FALLBACK_DATA__}`
63+
);
5064
}
5165

5266
return envs;

‎pnpm-lock.yaml‎

Lines changed: 1144 additions & 2735 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.