From db8d4d38776f1750bcb13138e578156e95428ebc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Jul 2025 11:04:22 +0200 Subject: [PATCH] [upd] web-client (simple): Bump vite from 6.3.5 to 7.0.0 in /client/simple (#4944) * [upd] web-client (simple): Bump vite in /client/simple --- updated-dependencies: - dependency-name: vite dependency-version: 7.0.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * [fix] theme/simple: api sync CSS sourcemap generation doesn't work right now anyway. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Gabaldon --- client/simple/package-lock.json | 31 ++++++++++++------------ client/simple/package.json | 2 +- client/simple/vite.config.js | 31 +++--------------------- searx/static/themes/simple/manifest.json | 15 +++++++++--- 4 files changed, 31 insertions(+), 48 deletions(-) diff --git a/client/simple/package-lock.json b/client/simple/package-lock.json index ae9460926..c8cf5b3d8 100644 --- a/client/simple/package-lock.json +++ b/client/simple/package-lock.json @@ -20,7 +20,7 @@ "stylelint-prettier": "^5.0.3", "svgo": "^4.0.0", "swiped-events": "^1.2.0", - "vite": "^6.3.5", + "vite": "^7.0.1", "vite-plugin-static-copy": "^3.1.0" } }, @@ -4313,24 +4313,23 @@ "license": "MIT" }, "node_modules/vite": { - "version": "6.3.5", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.5.tgz", - "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.0.1.tgz", + "integrity": "sha512-BiKOQoW5HGR30E6JDeNsati6HnSPMVEKbkIWbCiol+xKeu3g5owrjy7kbk/QEMuzCV87dSUTvycYKmlcfGKq3Q==", "dev": true, - "license": "MIT", "dependencies": { "esbuild": "^0.25.0", - "fdir": "^6.4.4", + "fdir": "^6.4.6", "picomatch": "^4.0.2", - "postcss": "^8.5.3", - "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" + "postcss": "^8.5.6", + "rollup": "^4.40.0", + "tinyglobby": "^0.2.14" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -4339,14 +4338,14 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", - "less": "*", + "less": "^4.0.0", "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" diff --git a/client/simple/package.json b/client/simple/package.json index 8589528f1..69f1cae2c 100644 --- a/client/simple/package.json +++ b/client/simple/package.json @@ -30,7 +30,7 @@ "stylelint-prettier": "^5.0.3", "svgo": "^4.0.0", "swiped-events": "^1.2.0", - "vite": "^6.3.5", + "vite": "^7.0.1", "vite-plugin-static-copy": "^3.1.0" } } diff --git a/client/simple/vite.config.js b/client/simple/vite.config.js index f389e9ffe..b2d409db9 100644 --- a/client/simple/vite.config.js +++ b/client/simple/vite.config.js @@ -48,45 +48,20 @@ export default defineConfig({ // - build.sourcemap // - esbuild.sourcemap // - css.preprocessorOptions.less.sourceMap - css: { - devSourcemap: true, - preprocessorOptions: { - less: { - // FIXME: missing CCS sourcemaps!! - sourceMap: { - outputSourceFiles: true, - sourceMapURL: (name) => { - const s = name.split("/"); - return `${s[s.length - 1]}.map`; - } - } - // env: 'development', - // relativeUrls: true, - // javascriptEnabled: true, - } - } + devSourcemap: true }, // end: css - esbuild: { - // FIXME: missing CCS sourcemaps!! - sourcemap: true - }, - build: { - target: "modules", + target: ["chrome87", "edge88", "firefox78", "safari14"], manifest: "manifest.json", emptyOutDir: true, assetsDir: "", outDir: PATH.dist, - // FIXME: missing CCS sourcemaps!! sourcemap: true, - - // https://vite.dev/config/build-options.html#build-cssminify - cssMinify: true, - // cssMinify: "esbuild", minify: "esbuild", + cssMinify: "esbuild", rollupOptions: { input: { diff --git a/searx/static/themes/simple/manifest.json b/searx/static/themes/simple/manifest.json index 19655e56a..44fb9600f 100644 --- a/searx/static/themes/simple/manifest.json +++ b/searx/static/themes/simple/manifest.json @@ -14,16 +14,25 @@ "less/rss.less": { "file": "css/rss.min.css", "src": "less/rss.less", - "isEntry": true + "isEntry": true, + "names": [ + "css/rss.min.css" + ] }, "less/style-ltr.less": { "file": "css/searxng.min.css", "src": "less/style-ltr.less", - "isEntry": true + "isEntry": true, + "names": [ + "css/searxng.min.css" + ] }, "less/style-rtl.less": { "file": "css/searxng-rtl.min.css", "src": "less/style-rtl.less", - "isEntry": true + "isEntry": true, + "names": [ + "css/searxng-rtl.min.css" + ] } } \ No newline at end of file