Skip to content

Commit 7ed0fc4

Browse files
committed
Frontend: Drop unused "escape-string-regexp" dep, refresh tooling
Removes the top-level "escape-string-regexp" dependency, which has no direct consumer in our source. The v4 line lives on as a transitive dep of "eslint" and "sanitize-html"; "webpack-bundle-analyzer" keeps its nested v5 copy. Net dep-tree shape is unchanged. Also bumps "@vue/language-server" to ^3.3.0, adds "vuln" and "tools" phony aliases in the Makefile, and aligns the frontend "audit" target with the root one (--no-fund --no-audit). Signed-off-by: Michael Mayer <michael@photoprism.app>
1 parent 74569ba commit 7ed0fc4

7 files changed

Lines changed: 41 additions & 44 deletions

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,10 @@ dep-list:
276276
go list -u -m -json all | go-mod-outdated -direct
277277
dep-list-all:
278278
go list -u -m -json all | go-mod-outdated
279+
vuln: audit
279280
audit: audit-frontend audit-backend
280281
audit-frontend:
281-
$(MAKE) -C frontend audit
282+
npm audit --ignore-scripts --no-fund --no-audit --no-update-notifier
282283
audit-backend: dep-vuln
283284
dep-audit: dep-vuln
284285
dep-vuln:
@@ -302,6 +303,7 @@ dep-npm:
302303
fi
303304
dep-js:
304305
npm ci --ignore-scripts --no-update-notifier --no-audit
306+
tools: gh claude codex
305307
codex: dep-codex codex-version codex-skills
306308
codex-version:
307309
@echo "🤖 Installed $$(codex --version)."

NOTICE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following 3rd-party software packages may be used by or distributed with
99
PhotoPrism. Any information relevant to third-party vendors listed below are
1010
collected using common, reasonable means.
1111

12-
Date generated: 2026-05-18
12+
Date generated: 2026-05-19
1313

1414
================================================================================
1515

@@ -9638,7 +9638,6 @@ core-js MIT Denis Pushkarev zloirock@zloiroc
96389638
cross-env MIT Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
96399639
css-loader MIT Tobias Koppers @sokra
96409640
cssnano MIT Ben Briggs beneb.info@gmail.com http://beneb.info
9641-
escape-string-regexp MIT Sindre Sorhus sindresorhus@gmail.com https://sindresorhus.com
96429641
eslint MIT Nicholas C. Zakas <nicholas+npm@nczconsulting.com>
96439642
eslint-config-prettier MIT Simon Lydell
96449643
eslint-formatter-pretty MIT Sindre Sorhus sindresorhus@gmail.com https://sindresorhus.com

frontend/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ watch:
6666
build:
6767
npm run build
6868
audit:
69-
npm audit --ignore-scripts --no-update-notifier
69+
npm audit --ignore-scripts --no-fund --no-audit --no-update-notifier
7070
lint:
7171
npm run lint || true
7272
fmt:

frontend/NOTICE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ core-js MIT Denis Pushkarev zloirock@zloiroc
2828
cross-env MIT Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
2929
css-loader MIT Tobias Koppers @sokra
3030
cssnano MIT Ben Briggs beneb.info@gmail.com http://beneb.info
31-
escape-string-regexp MIT Sindre Sorhus sindresorhus@gmail.com https://sindresorhus.com
3231
eslint MIT Nicholas C. Zakas <nicholas+npm@nczconsulting.com>
3332
eslint-config-prettier MIT Simon Lydell
3433
eslint-formatter-pretty MIT Sindre Sorhus sindresorhus@gmail.com https://sindresorhus.com

frontend/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ Some major upgrades are blocked by config-file module style. The configs referen
5454
|-------------------------------|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
5555
| `postcss-preset-env` 11.x | ESM | `frontend/postcss.config.js` is CommonJS (`module.exports = { plugins: [require("postcss-preset-env"), ...] }`). |
5656
| `webpack-manifest-plugin` 6.x | ESM | `frontend/webpack.config.js` is CommonJS (`require("webpack-manifest-plugin")`). Webpack accepts ESM configs, but the migration is non-trivial. |
57-
| `escape-string-regexp` 5.x | ESM | v5 is ESM-only; verify every consumer (including transitive build-time tooling) before bumping. |
5857
| `vuetify` 4.x || See the `vuetify` row in [Currently Pinned Packages](#currently-pinned-packages); also a separate v3 → v4 migration project. |
5958
| `vue-router` 5.x || Major release with breaking changes across `frontend/src/app/routes.js` and dynamic imports. Needs its own evaluation pass with TestCafe verification. |
6059

frontend/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@vitest/coverage-v8": "^3.2.4",
5252
"@vitest/ui": "^3.2.4",
5353
"@vue/compiler-sfc": "^3.5.34",
54-
"@vue/language-server": "^3.2.9",
54+
"@vue/language-server": "^3.3.0",
5555
"@vue/test-utils": "^2.4.10",
5656
"@vvo/tzdb": "^6.198.0",
5757
"axios": "1.16.1",
@@ -64,7 +64,6 @@
6464
"cross-env": "^10.1.0",
6565
"css-loader": "^7.1.4",
6666
"cssnano": "^7.1.9",
67-
"escape-string-regexp": "^4.0.0",
6867
"eslint": "^9.39.4",
6968
"eslint-config-prettier": "^10.1.8",
7069
"eslint-formatter-pretty": "^6.0.1",

package-lock.json

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

0 commit comments

Comments
 (0)