From 8d9aff2ccc651c403fe3b28d4f1d732032c8df21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Mon, 22 Jun 2026 19:07:14 +0200 Subject: [PATCH] chore(deps): drop unused direct dependency lodash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `lodash` was declared as a direct dependency and imported in `ext-antora/generate-index.js` (`const _ = require('lodash')`) but never actually used — there is no `_.` call anywhere in that file or the rest of the project; the only `_` occurrences are in comments and string literals. Remove the stray import and the dependency. `lodash` has no transitive dependencies, so the lockfile change is limited to its own entry. Co-Authored-By: Claude Opus 4.8 Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com> --- ext-antora/generate-index.js | 1 - package-lock.json | 9 +-------- package.json | 3 +-- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/ext-antora/generate-index.js b/ext-antora/generate-index.js index 02ae7fb..c9c5c1a 100644 --- a/ext-antora/generate-index.js +++ b/ext-antora/generate-index.js @@ -2,7 +2,6 @@ // Antora extension to create a new and clean search index based on ElasticSearch -const _ = require('lodash') const cheerio = require('cheerio') const Entities = require('html-entities') const { Client } = require('@elastic/elasticsearch') diff --git a/package-lock.json b/package-lock.json index 6a78781..e9eaeb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,8 +14,7 @@ "asciidoctor-kroki": "^0.18.1", "cheerio": "^1.2.0", "html-entities": "2.6.0", - "js-yaml": "^5.0.0", - "lodash": "^4.18.1" + "js-yaml": "^5.0.0" }, "devDependencies": { "broken-link-checker": "^0.7.8", @@ -2321,12 +2320,6 @@ "node": ">= 0.10" } }, - "node_modules/lodash": { - "version": "4.18.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", - "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", - "license": "MIT" - }, "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", diff --git a/package.json b/package.json index 3060844..0b0ae1b 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,7 @@ "asciidoctor-kroki": "^0.18.1", "cheerio": "^1.2.0", "html-entities": "2.6.0", - "js-yaml": "^5.0.0", - "lodash": "^4.18.1" + "js-yaml": "^5.0.0" }, "devDependencies": { "broken-link-checker": "^0.7.8",