Skip to content

Commit 4dcb92f

Browse files
authored
Upgrade dependencies to address npm audit warnings; merge lodash dependencies (#575)
* Update Astro dependencies and remove lodash-es * Additional npm audit fixes * Add override to resolve remaining npm audit warning
1 parent 532530e commit 4dcb92f

File tree

7 files changed

+955
-1045
lines changed

7 files changed

+955
-1045
lines changed

astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import node from "@astrojs/node";
33
import { parseFrontmatter } from "@astrojs/markdown-remark";
44
import { load } from "cheerio";
55
import fg from "fast-glob";
6-
import difference from "lodash-es/difference";
6+
import difference from "lodash/difference";
77
import { remarkDefinitionList, defListHastHandlers } from "remark-definition-list";
88
import remarkDirective from "remark-directive";
99

package-lock.json

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

package.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,30 @@
1313
"postinstall": "patch-package"
1414
},
1515
"dependencies": {
16-
"@astrojs/markdown-remark": "^6.3.6",
17-
"@astrojs/node": "^9.4.3",
18-
"astro": "^5.13.7",
16+
"@astrojs/markdown-remark": "^6.3.10",
17+
"@astrojs/node": "^9.5.3",
18+
"astro": "~5.15.9",
1919
"cheerio": "^1.0.0",
2020
"fast-glob": "^3.3.3",
21-
"hast-util-to-html": "^9.0.4",
22-
"lodash-es": "^4.17.21",
21+
"hast-util-to-html": "^9.0.5",
22+
"lodash": "^4.17.23",
2323
"patch-package": "^8.0.0",
2424
"remark-definition-list": "^2.0.0",
2525
"remark-directive": "^3.0.1",
2626
"unist-util-visit": "^5.0.0",
2727
"vfile": "^6.0.3"
2828
},
2929
"devDependencies": {
30-
"@astrojs/check": "^0.9.4",
30+
"@astrojs/check": "^0.9.6",
3131
"@types/hast": "^3.0.4",
32-
"@types/lodash-es": "^4.17.12",
33-
"@types/node": "^20.17.14",
32+
"@types/lodash": "^4.17.23",
33+
"@types/node": "^20.19.33",
3434
"cspell": "^9.2.1",
3535
"typescript": "^5.8.2"
36+
},
37+
"overrides": {
38+
"@astrojs/check": {
39+
"lodash": "^4.17.23"
40+
}
3641
}
3742
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ index 04d0b74..7007630 100644
1212
/**
1313
* Loads multiple entries, using a glob pattern to match files.
1414
diff --git a/node_modules/astro/dist/content/loaders/glob.js b/node_modules/astro/dist/content/loaders/glob.js
15-
index 8689525..fcbf9f4 100644
15+
index 1448e64..0fbbb71 100644
1616
--- a/node_modules/astro/dist/content/loaders/glob.js
1717
+++ b/node_modules/astro/dist/content/loaders/glob.js
1818
@@ -156,7 +156,8 @@ function glob(globOptions) {

src/components/guidelines/GlossaryDefinitionList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import { getCollection } from "astro:content";
3-
import { sortBy } from "lodash-es";
3+
import sortBy from "lodash/sortBy";
44
55
import { computeTermTitle } from "@/lib/guidelines";
66
import GlossaryDefinition from "./GlossaryDefinition.astro";

src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineCollection, reference, z } from "astro:content";
22
import { file, glob } from "astro/loaders";
3-
import uniq from "lodash-es/uniq";
3+
import uniq from "lodash/uniq";
44

55
/** howto can be set to true to indicate the informative and normative slugs are identical */
66
const howtoSchema = z.boolean().or(z.string().regex(/^[\w-]+$/));

src/lib/guidelines.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getCollection, getEntry, type CollectionEntry, type CollectionKey } from "astro:content";
2-
import capitalize from "lodash-es/capitalize";
3-
import difference from "lodash-es/difference";
2+
import capitalize from "lodash/capitalize";
3+
import difference from "lodash/difference";
44

55
import { isDevOrPreview } from "./constants";
66

0 commit comments

Comments
 (0)