Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: preemptly update pwa settings to avoid missing files in the service worker cache (#4344)

Akash K626b5fea7f42
diff --git a/packages/hoppscotch-selfhost-web/package.json b/packages/hoppscotch-selfhost-web/package.json
index 668259fea..35f561376 100644
--- a/packages/hoppscotch-selfhost-web/package.json
+++ b/packages/hoppscotch-selfhost-web/package.json
@@ -75,9 +75,9 @@
"vite-plugin-fonts": "0.7.0",
"vite-plugin-html-config": "1.0.11",
"vite-plugin-inspect": "0.7.42",
- "vite-plugin-pages": "0.31.0",
+ "vite-plugin-pages": "0.17.3",
"vite-plugin-pages-sitemap": "1.6.1",
- "vite-plugin-pwa": "0.17.3",
+ "vite-plugin-pwa": "0.20.5",
"vite-plugin-static-copy": "0.17.1",
"vite-plugin-vue-layouts": "0.8.0",
"vue-tsc": "1.8.24"
diff --git a/packages/hoppscotch-selfhost-web/vite.config.ts b/packages/hoppscotch-selfhost-web/vite.config.ts
index 94e63bcb9..0ce77efd4 100644
--- a/packages/hoppscotch-selfhost-web/vite.config.ts
+++ b/packages/hoppscotch-selfhost-web/vite.config.ts
@@ -208,7 +208,7 @@ export default defineConfig({
registerType: "prompt",
workbox: {
cleanupOutdatedCaches: true,
- maximumFileSizeToCacheInBytes: 4194304,
+ maximumFileSizeToCacheInBytes: 10485760,
navigateFallbackDenylist: [
/robots.txt/,
/sitemap.xml/,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c813b1df4..250bd2502 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -380,7 +380,7 @@ importers:
version: 3.2.5
tsup:
specifier: 8.0.2
typescript:
specifier: 5.3.3
version: 5.3.3
@@ -789,7 +789,7 @@ importers:
vite-plugin-checker:
specifier: 0.6.2
vite-plugin-fonts:
specifier: 0.7.0
@@ -908,7 +908,7 @@ importers:
version: 2.8.4
ts-jest:
specifier: 27.1.5
typescript:
specifier: 4.9.5
version: 4.9.5
@@ -1092,7 +1092,7 @@ importers:
version: 0.14.9(@vue/[email protected])([email protected])
unplugin-vue-components:
specifier: 0.21.0
vite:
specifier: 4.5.0
@@ -1101,7 +1101,7 @@ importers:
vite-plugin-inspect:
specifier: 0.7.38
vite-plugin-pages:
specifier: 0.26.0
@@ -1261,7 +1261,7 @@ importers:
version: 0.17.4(@vue/[email protected])([email protected])
unplugin-vue-components:
specifier: 0.25.2
vite:
specifier: 4.5.0
@@ -1273,7 +1273,7 @@ importers:
vite-plugin-inspect:
specifier: 0.7.42
vite-plugin-pages:
specifier: 0.31.0
@@ -1281,8 +1281,8 @@ importers:
specifier: 1.6.1
version: 1.6.1
vite-plugin-pwa:
- specifier: 0.17.3
+ specifier: 0.20.5
vite-plugin-static-copy:
specifier: 0.17.1
@@ -1315,7 +1315,7 @@ importers:
'@intlify/unplugin-vue-i18n':
specifier: 1.2.0
'@types/cors':
specifier: 2.8.13
version: 2.8.13
@@ -1381,7 +1381,7 @@ importers:
version: 0.14.9(@vue/[email protected])([email protected])
unplugin-vue-components:
specifier: 0.21.0
vue:
specifier: 3.3.9
version: 3.3.9([email protected])
@@ -6573,6 +6573,15 @@ packages:
supports-color:
optional: true
+ resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==}
engines: {node: '>=0.10.0'}
@@ -7537,6 +7546,14 @@ packages:
resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
+ resolution: {integrity: sha512-QOnuT+BOtivR77wYvCWHfGt9s4Pz1VIMbD463vegT5MLqNXy8rYFT/lPVEqf/bhYeT6qmqrNHhsX+rWwe3rOCQ==}
+ peerDependencies:
+ picomatch: ^3 || ^4
+ peerDependenciesMeta:
+ picomatch:
+ optional: true
+
resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==}
engines: {node: '>=8'}
@@ -9900,6 +9917,10 @@ packages:
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
engines: {node: '>=8.6'}
+ resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
+ engines: {node: '>=12'}
+
resolution: {integrity: sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==}
engines: {node: '>=0.10'}
@@ -11327,6 +11348,10 @@ packages:
resolution: {integrity: sha512-1/eK7zUnIklz4JUUlL+658n58XO2hHLQfSk1Zf2LKieUjxidN16eKFEoDEfjHc3ohofSSqK3X5yO6VGb6iW8Lw==}
+ resolution: {integrity: sha512-NbBoFBpqfcgd1tCiO8Lkfdk+xrA7mlLR9zgvZcZWQQwU63XAfUePyd6wZBaU93Hqw347lHnwFzttAkemHzzz4g==}
+ engines: {node: '>=12.0.0'}
+
resolution: {integrity: sha512-zSYNUlYSMhJ6Zdou4cJwo/p7w5nmAH17GRfU/ui3ctvjXFErXXkruT4MWW6poDeXgCaIBlGLrfU6TbTXxyGMww==}
engines: {node: '>=14.0.0'}
@@ -12052,6 +12077,18 @@ packages:
workbox-build: ^7.0.0
workbox-window: ^7.0.0
+ resolution: {integrity: sha512-aweuI/6G6n4C5Inn0vwHumElU/UEpNuO+9iZzwPZGTCH87TeZ6YFMrEY6ZUBQdIHHlhTsbMDryFARcSuOdsz9Q==}
+ engines: {node: '>=16.0.0'}
+ peerDependencies:
+ '@vite-pwa/assets-generator': ^0.2.6
+ vite: ^3.1.0 || ^4.0.0 || ^5.0.0
+ workbox-build: ^7.1.0
+ workbox-window: ^7.1.0
+ peerDependenciesMeta:
+ '@vite-pwa/assets-generator':
+ optional: true
+
resolution: {integrity: sha512-5a8hCjYJdf/rl8s7ct/YWt97gXdGPGNSOoJtkY5IYhbnSq04X1gTt5GpFHKfAxhHoed1Grfw3Ed13t7AjJi7gw==}
engines: {node: ^14.18.0 || >=16.0.0}
@@ -15962,11 +15999,11 @@ snapshots:
'@intlify/[email protected]': {}
dependencies:
'@intlify/bundle-utils': 7.5.1([email protected]([email protected]([email protected])))
'@intlify/shared': 9.13.1
- '@rollup/pluginutils': 5.1.0([email protected])
+ '@rollup/pluginutils': 5.1.0([email protected])
'@vue/compiler-sfc': 3.3.10
debug: 4.3.4([email protected])
fast-glob: 3.3.2
@@ -19816,6 +19853,10 @@ snapshots:
optionalDependencies:
supports-color: 9.4.0
+ dependencies:
+ ms: 2.1.3
+
dependencies:
decamelize: 1.2.0
@@ -21122,6 +21163,10 @@ snapshots:
dependencies:
pend: 1.2.0
+ optionalDependencies:
+ picomatch: 4.0.2
+
dependencies:
escape-string-regexp: 1.0.5
@@ -24392,6 +24437,8 @@ snapshots:
+
@@ -24499,12 +24546,12 @@ snapshots:
postcss: 8.4.32
dependencies:
lilconfig: 3.1.1
yaml: 2.4.2
optionalDependencies:
- postcss: 8.4.40
+ postcss: 8.4.32
@@ -26053,6 +26100,11 @@ snapshots:
+ dependencies:
+ fdir: 6.3.0([email protected])
+ picomatch: 4.0.2
+
@@ -26129,7 +26181,7 @@ snapshots:
dependencies:
bs-logger: 0.2.6
fast-json-stable-stringify: 2.1.0
@@ -26144,6 +26196,7 @@ snapshots:
optionalDependencies:
'@babel/core': 7.24.5
'@types/jest': 27.5.2
+ babel-jest: 29.7.0(@babel/[email protected])
dependencies:
@@ -26349,7 +26402,7 @@ snapshots:
dependencies:
bundle-require: 4.1.0([email protected])
cac: 6.7.14
@@ -26359,7 +26412,7 @@ snapshots:
execa: 5.1.1
globby: 11.1.0
joycon: 3.1.1
resolve-from: 5.0.0
rollup: 4.17.2
source-map: 0.8.0-beta.0
@@ -26367,7 +26420,7 @@ snapshots:
tree-kill: 1.2.2
optionalDependencies:
'@swc/core': 1.4.2
- postcss: 8.4.40
+ postcss: 8.4.32
typescript: 5.3.3
transitivePeerDependencies:
- supports-color
@@ -26588,7 +26641,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@antfu/utils': 0.5.2
'@rollup/pluginutils': 4.2.1
@@ -26599,7 +26652,7 @@ snapshots:
magic-string: 0.26.7
minimatch: 5.1.6
resolve: 1.22.8
vue: 3.3.9([email protected])
optionalDependencies:
'@babel/parser': 7.24.5
@@ -26610,7 +26663,7 @@ snapshots:
- vite
- webpack
dependencies:
'@antfu/utils': 0.5.2
'@rollup/pluginutils': 4.2.1
@@ -26621,7 +26674,7 @@ snapshots:
magic-string: 0.26.7
minimatch: 5.1.6
resolve: 1.22.8
vue: 3.3.9([email protected])
optionalDependencies:
'@babel/parser': 7.24.5
@@ -26632,6 +26685,25 @@ snapshots:
- vite
- webpack
+ dependencies:
+ '@antfu/utils': 0.7.7
+ '@rollup/pluginutils': 5.1.0([email protected])
+ chokidar: 3.6.0
+ debug: 4.3.4([email protected])
+ fast-glob: 3.3.2
+ local-pkg: 0.4.3
+ magic-string: 0.30.10
+ minimatch: 9.0.4
+ resolve: 1.22.8
+ unplugin: 1.10.1
+ vue: 3.3.9([email protected])
+ optionalDependencies:
+ '@babel/parser': 7.24.5
+ transitivePeerDependencies:
+ - rollup
+ - supports-color
+
dependencies:
'@antfu/utils': 0.7.7
@@ -26651,7 +26723,7 @@ snapshots:
- rollup
- supports-color
dependencies:
acorn: 8.11.3
chokidar: 3.6.0
@@ -26659,11 +26731,11 @@ snapshots:
webpack-virtual-modules: 0.4.6
optionalDependencies:
esbuild: 0.20.2
- rollup: 2.79.1
+ rollup: 3.29.4
webpack: 5.91.0(@swc/[email protected])([email protected])
dependencies:
acorn: 8.11.3
chokidar: 3.6.0
@@ -26671,7 +26743,7 @@ snapshots:
webpack-virtual-modules: 0.4.6
optionalDependencies:
esbuild: 0.20.2
- rollup: 2.79.1
+ rollup: 3.29.4
webpack: 5.91.0(@swc/[email protected])([email protected])
@@ -26816,7 +26888,7 @@ snapshots:
- supports-color
- terser
dependencies:
'@babel/code-frame': 7.24.2
ansi-escapes: 4.3.2
@@ -26838,6 +26910,7 @@ snapshots:
vscode-uri: 3.0.8
optionalDependencies:
eslint: 8.57.0
+ meow: 8.1.2
optionator: 0.9.4
typescript: 5.3.2
vue-tsc: 1.8.24([email protected])
@@ -26883,10 +26956,25 @@ snapshots:
dependencies:
dependencies:
'@antfu/utils': 0.7.7
- '@rollup/pluginutils': 5.1.0([email protected])
+ '@rollup/pluginutils': 5.1.0([email protected])
+ debug: 4.3.4([email protected])
+ error-stack-parser-es: 0.1.1
+ fs-extra: 11.2.0
+ open: 9.1.0
+ picocolors: 1.0.0
+ sirv: 2.0.4
+ transitivePeerDependencies:
+ - rollup
+ - supports-color
+
+ dependencies:
+ '@antfu/utils': 0.7.7
+ '@rollup/pluginutils': 5.1.0([email protected])
debug: 4.3.4([email protected])
error-stack-parser-es: 0.1.1
fs-extra: 11.2.0
@@ -26989,6 +27077,17 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ debug: 4.3.7
+ pretty-bytes: 6.1.1
+ tinyglobby: 0.2.6
+ workbox-build: 7.1.0(@types/[email protected])
+ workbox-window: 7.0.0
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
chokidar: 3.6.0