Skip to content

Commit 5877372

Browse files
committed
Fix dependency configurations
Revert unnecessary dependency changes. Remove @types/estree. Also remove an extraneous `mdast-util-mdxjs-esm` mention in `package.json`. Add swc/core to the list of dependencies with allowed licenses for the dependency review workflow. While the package uses the Apache 2.0 license, which is already configured as allowed in the workflow, the workflow also detects an unknown license that does not appear to be present in the package's code repository.
1 parent d6e33f5 commit 5877372

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/dependency-review.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ jobs:
1212
with:
1313
allow-additional-licenses: >
1414
LicenseRef-scancode-public-domain AND Unlicense
15+
# @swc/core@1.11.24 uses Apache-2.0, but
16+
# LicenseRef-scancode-unknown-license-reference is also detected.
17+
# https://www.npmjs.com/package/@swc/core/v/1.11.24?activeTab=code
18+
# https://scancode-licensedb.aboutcode.org/unknown-license-reference.html
1519
allow-dependencies-licenses: >
20+
pkg:npm/swc/core,
1621
pkg:npm/%40inkeep/cxkit-color-mode,
1722
pkg:npm/%40inkeep/cxkit-primitives,
1823
pkg:npm/%40inkeep/cxkit-react,

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,13 @@
5656
"@docusaurus/tsconfig": "^3.7.0",
5757
"@inkeep/cxkit-react": "^0.5.76",
5858
"@mdx-js/react": "^3.0.0",
59-
"@types/estree": "^1.0.7",
6059
"classnames": "^2.3.1",
6160
"clsx": "^2.1.1",
6261
"date-fns": "^4.1.0",
6362
"dotenv": "^16.5.0",
6463
"highlightjs-terraform": "https://github.com/highlightjs/highlightjs-terraform#eb1b9661e143a43dff6b58b391128ce5cdad31d4",
6564
"lowlight": "^3.1.0",
6665
"mdast-util-from-markdown": "^2.0.1",
67-
"mdast-util-mdxjs-esm": "^2.0.1",
6866
"nanoid": "^5.1.0",
6967
"postcss-preset-env": "^10.1.6",
7068
"prism-react-renderer": "^2.3.0",

server/remark-version-alias.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { ImportDeclaration } from "estree";
21
import type { MdxjsEsm } from "mdast-util-mdxjs-esm";
32
import type { Root, Paragraph, Literal } from "mdast";
43
import type { VFile } from "vfile";
@@ -35,7 +34,7 @@ export default function remarkVersionAlias(latestVersion: string): Transformer {
3534
version = versionedPathParts[1];
3635
}
3736

38-
const decl = esm.data.estree.body[0] as ImportDeclaration;
37+
const decl = esm.data.estree.body[0];
3938

4039
const newPath = (decl.source.value as string).replace(
4140
"@version",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3931,7 +3931,7 @@
39313931
dependencies:
39323932
"@types/estree" "*"
39333933

3934-
"@types/estree@*", "@types/estree@1.0.7", "@types/estree@^1.0.0", "@types/estree@^1.0.6", "@types/estree@^1.0.7":
3934+
"@types/estree@*", "@types/estree@1.0.7", "@types/estree@^1.0.0", "@types/estree@^1.0.6":
39353935
version "1.0.7"
39363936
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.7.tgz#4158d3105276773d5b7695cd4834b1722e4f37a8"
39373937
integrity sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==
@@ -9641,7 +9641,7 @@ mdast-util-mdxjs-esm@^1.0.0:
96419641
mdast-util-from-markdown "^1.0.0"
96429642
mdast-util-to-markdown "^1.0.0"
96439643

9644-
mdast-util-mdxjs-esm@^2.0.0, mdast-util-mdxjs-esm@^2.0.1:
9644+
mdast-util-mdxjs-esm@^2.0.0:
96459645
version "2.0.1"
96469646
resolved "https://registry.yarnpkg.com/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz#019cfbe757ad62dd557db35a695e7314bcc9fa97"
96479647
integrity sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==

0 commit comments

Comments
 (0)