Skip to content

Commit

Permalink
chore(deps) & removed 'activated' event listeners in sw-entry.ts (#…
Browse files Browse the repository at this point in the history
…74)

[bump]
  • Loading branch information
DuCanhGH authored Aug 22, 2023
1 parent edac606 commit 158ebe1
Show file tree
Hide file tree
Showing 25 changed files with 1,470 additions and 1,279 deletions.
9 changes: 9 additions & 0 deletions .changeset/lucky-rivers-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@ducanh2912/next-pwa": minor
---

refactor: removed `'activated'` event listeners in `sw-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.
13 changes: 7 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ module.exports = {
"no-extra-boolean-cast": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"turbo/no-undeclared-env-vars": [
"error",
{
allowList: ["^__PWA_FALLBACK_(.*)__+$", "^NEXT_PWA_(.*)+$"],
},
],
"turbo/no-undeclared-env-vars": "off",
},
settings: {
"import/parsers": {
Expand Down Expand Up @@ -106,6 +101,12 @@ module.exports = {
packageDir: [__dirname, ...packageDirs],
},
],
"turbo/no-undeclared-env-vars": [
"error",
{
allowList: ["^__PWA_FALLBACK_(.*)__+$", "^NEXT_PWA_(.*)+$"],
},
],
},
},
{
Expand Down
28 changes: 14 additions & 14 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,46 @@
},
"dependencies": {
"@ducanh2912/next-pwa": "workspace:*",
"@mantine/hooks": "6.0.17",
"@tabler/icons-react": "2.26.0",
"bright": "0.8.3",
"@mantine/hooks": "6.0.19",
"@tabler/icons-react": "2.32.0",
"bright": "0.8.4",
"client-only": "0.0.1",
"contentlayer": "0.3.4",
"highlight.js": "11.8.0",
"next": "13.4.10",
"next": "13.4.19",
"next-contentlayer": "0.3.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-wrap-balancer": "1.0.0",
"react-wrap-balancer": "1.1.0",
"server-only": "0.0.1",
"tailwind-merge": "1.14.0",
"uuid": "9.0.0",
"zustand": "4.3.9"
"zustand": "4.4.1"
},
"devDependencies": {
"@types/extend": "3.0.1",
"@types/hast": "3.0.0",
"@types/mdast": "4.0.0",
"@types/mdx": "2.0.5",
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/mdx": "2.0.6",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"@types/uuid": "9.0.2",
"autoprefixer": "10.4.14",
"autoprefixer": "10.4.15",
"extend": "3.0.2",
"github-slugger": "2.0.0",
"hast-util-has-property": "2.0.1",
"hast-util-heading-rank": "2.1.1",
"hast-util-has-property": "3.0.0",
"hast-util-heading-rank": "3.0.0",
"hast-util-to-string": "2.0.0",
"mdast-util-mdx": "3.0.0",
"mdast-util-to-markdown": "2.1.0",
"mdast-util-to-string": "4.0.0",
"mdx-bundler": "9.2.1",
"postcss": "8.4.26",
"postcss": "8.4.28",
"rehype-highlight": "6.0.0",
"rehype-sanitize": "5.0.1",
"tailwindcss": "3.3.3",
"typescript": "5.2.0-dev.20230718",
"typescript": "5.3.0-dev.20230822",
"unified": "10.1.2",
"unist-util-is": "6.0.0",
"unist-util-visit": "5.0.0"
Expand Down
6 changes: 3 additions & 3 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"dependencies": {
"@ducanh2912/next-pwa": "latest",
"next": "13.4.10",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"typescript": "5.1.6"
}
Expand Down
10 changes: 5 additions & 5 deletions examples/custom-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"@ducanh2912/next-pwa": "latest",
"@fastify/compress": "6.4.0",
"cross-env": "7.0.3",
"fastify": "4.20.0",
"next": "13.4.10",
"fastify": "4.21.0",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@swc/core": "1.3.69",
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@swc/core": "1.3.78",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"nodemon": "3.0.1",
"rimraf": "5.0.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/custom-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"dependencies": {
"@ducanh2912/next-pwa": "latest",
"next": "13.4.10",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"typescript": "5.1.6"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/lifecycle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"dependencies": {
"@ducanh2912/next-pwa": "latest",
"next": "13.4.10",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"typescript": "5.1.6"
}
Expand Down
10 changes: 5 additions & 5 deletions examples/next-i18next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"cross-env": "7.0.3",
"express": "4.18.2",
"fastify-compress": "4.1.0",
"i18next": "23.2.11",
"next": "13.4.10",
"i18next": "23.4.4",
"next": "13.4.19",
"next-i18next": "14.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-i18next": "13.0.2"
"react-i18next": "13.1.2"
},
"devDependencies": {
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"typescript": "5.1.6"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/next-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"dependencies": {
"@ducanh2912/next-pwa": "latest",
"next": "13.4.10",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"typescript": "5.1.6"
}
Expand Down
8 changes: 4 additions & 4 deletions examples/offline-fallback-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"dependencies": {
"@ducanh2912/next-pwa": "latest",
"next": "13.4.10",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"sharp": "0.32.3"
"sharp": "0.32.5"
},
"devDependencies": {
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"typescript": "5.1.6"
}
Expand Down
20 changes: 0 additions & 20 deletions examples/turbo.json

This file was deleted.

8 changes: 4 additions & 4 deletions examples/web-push/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
},
"dependencies": {
"@ducanh2912/next-pwa": "latest",
"next": "13.4.10",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"web-push": "3.6.3"
"web-push": "3.6.4"
},
"devDependencies": {
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"@types/web-push": "3.3.2",
"typescript": "5.1.6"
Expand Down
6 changes: 3 additions & 3 deletions examples/workboxless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
},
"dependencies": {
"@ducanh2912/next-sw": "latest",
"next": "13.4.10",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "20.4.2",
"@types/react": "18.2.15",
"@types/node": "20.5.1",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"typescript": "5.1.6"
}
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"docs:build": "cross-env FORCE_COLOR=1 turbo run build --filter=./docs",
"docs:lint": "cross-env FORCE_COLOR=1 turbo run lint --parallel --filter=./docs",
"empty-chset": "changeset --empty",
"examples:build": "cross-env FORCE_COLOR=1 turbo run build --filter=./examples/*",
"examples:build": "cross-env FORCE_COLOR=1 turbo run build --filter=./examples/* --concurrency=50%",
"examples:dev": "cross-env FORCE_COLOR=1 turbo run dev --parallel --filter=./examples/*",
"examples:lint": "cross-env FORCE_COLOR=1 turbo run lint --parallel --filter=./examples/*",
"format": "prettier --write",
Expand All @@ -34,29 +34,29 @@
"@changesets/cli": "2.26.2",
"@ducanh2912/next-pwa": "workspace:*",
"@ducanh2912/next-sw": "workspace:*",
"@types/node": "20.4.2",
"@types/node": "20.5.1",
"@types/shell-quote": "1.7.1",
"@typescript-eslint/eslint-plugin": "6.1.0",
"@typescript-eslint/parser": "6.1.0",
"@typescript-eslint/eslint-plugin": "6.4.1",
"@typescript-eslint/parser": "6.4.1",
"cross-env": "7.0.3",
"eslint": "8.45.0",
"eslint-config-next": "13.4.10",
"eslint-config-prettier": "8.8.0",
"eslint-config-turbo": "1.10.8",
"eslint-plugin-import": "2.27.5",
"eslint": "8.47.0",
"eslint-config-next": "13.4.19",
"eslint-config-prettier": "9.0.0",
"eslint-config-turbo": "1.10.12",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-simple-import-sort": "10.0.0",
"fast-glob": "3.3.0",
"fast-glob": "3.3.1",
"husky": "8.0.3",
"jest": "29.6.1",
"lint-staged": "13.2.3",
"npm-check-updates": "16.10.16",
"prettier": "3.0.0",
"prettier-plugin-tailwindcss": "0.4.1",
"jest": "29.6.3",
"lint-staged": "14.0.1",
"npm-check-updates": "16.12.3",
"prettier": "3.0.2",
"prettier-plugin-tailwindcss": "0.5.3",
"rimraf": "5.0.1",
"shell-quote": "1.8.1",
"tslib": "2.6.0",
"turbo": "1.10.8",
"typescript": "5.2.0-dev.20230718"
"tslib": "2.6.2",
"turbo": "1.10.12",
"typescript": "5.3.0-dev.20230822"
},
"packageManager": "[email protected].2"
"packageManager": "[email protected].12"
}
2 changes: 1 addition & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
}
},
"devDependencies": {
"@swc/core": "1.3.69"
"@swc/core": "1.3.78"
}
}
2 changes: 1 addition & 1 deletion packages/next-pwa/__tests__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"devDependencies": {
"@types/jest": "29.5.3",
"@types/react": "18.2.15",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"tests-utils": "workspace:*"
}
Expand Down
16 changes: 8 additions & 8 deletions packages/next-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"dependencies": {
"clean-webpack-plugin": "4.0.0",
"fast-glob": "3.3.0",
"fast-glob": "3.3.1",
"semver": "7.5.4",
"terser-webpack-plugin": "5.3.9",
"workbox-build": "7.0.0",
Expand All @@ -71,19 +71,19 @@
"@ducanh2912/utils": "workspace:*",
"@rollup/plugin-alias": "5.0.0",
"@rollup/plugin-json": "6.0.0",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-node-resolve": "15.2.1",
"@rollup/plugin-swc": "0.1.1",
"@rollup/plugin-typescript": "11.1.2",
"@types/node": "20.4.2",
"@types/node": "20.5.1",
"@types/semver": "7.5.0",
"chalk": "5.3.0",
"next": "13.4.10",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "3.26.3",
"rollup-plugin-dts": "5.3.0",
"type-fest": "4.0.0",
"typescript": "5.2.0-dev.20230718",
"rollup": "3.28.1",
"rollup-plugin-dts": "6.0.0",
"type-fest": "4.2.0",
"typescript": "5.3.0-dev.20230822",
"webpack": "5.88.2"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 158ebe1

Please sign in to comment.