chore: update marked-shiki, remove patch (#1653)

This commit is contained in:
Aiden Cline
2025-08-06 08:47:53 -05:00
committed by GitHub
parent 7210db19e9
commit 7b6d5b1429
5 changed files with 5 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
import { Plugin } from "./index"
import { Plugin } from "../../packages/plugin/src/index"
export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
return {

View File

@@ -120,7 +120,7 @@
"lang-map": "0.4.0",
"luxon": "3.6.1",
"marked": "15.0.12",
"marked-shiki": "1.2.0",
"marked-shiki": "1.2.1",
"rehype-autolink-headings": "7.1.0",
"remeda": "2.26.0",
"sharp": "0.32.5",
@@ -139,9 +139,6 @@
"sharp",
"esbuild",
],
"patchedDependencies": {
"marked-shiki@1.2.0": "patches/marked-shiki@1.2.0.patch",
},
"catalog": {
"@tsconfig/node22": "22.0.2",
"@types/node": "22.13.9",
@@ -1174,7 +1171,7 @@
"marked": ["marked@15.0.12", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA=="],
"marked-shiki": ["marked-shiki@1.2.0", "", { "peerDependencies": { "marked": ">=7.0.0", "shiki": ">=1.0.0" } }, "sha512-N924hp8veE6Mc91g5/kCNVoTU7TkeJfB2G2XEWb+k1fVA0Bck2T0rVt93d39BlOYH6ohP4Q9BFlPk+UkblhXbg=="],
"marked-shiki": ["marked-shiki@1.2.1", "", { "peerDependencies": { "marked": ">=7.0.0", "shiki": ">=1.0.0" } }, "sha512-yHxYQhPY5oYaIRnROn98foKhuClark7M373/VpLxiy5TrDu9Jd/LsMwo8w+U91Up4oDb9IXFrP0N1MFRz8W/DQ=="],
"math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],

View File

@@ -43,7 +43,5 @@
"protobufjs",
"sharp"
],
"patchedDependencies": {
"marked-shiki@1.2.0": "patches/marked-shiki@1.2.0.patch"
}
"patchedDependencies": {}
}

View File

@@ -25,7 +25,7 @@
"lang-map": "0.4.0",
"luxon": "3.6.1",
"marked": "15.0.12",
"marked-shiki": "1.2.0",
"marked-shiki": "1.2.1",
"rehype-autolink-headings": "7.1.0",
"remeda": "2.26.0",
"sharp": "0.32.5",

View File

@@ -1,16 +0,0 @@
diff --git a/node_modules/marked-shiki/.bun-tag-5eae3435af8a0229 b/.bun-tag-5eae3435af8a0229
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/dist/index.js b/dist/index.js
index 535885e8569626d08f205e76c4944e4ebd0decab..92b5695c1b05fc7db5d26128c8f948d43c91f88a 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -4,7 +4,7 @@ function o(s = {}) {
async: !0,
async walkTokens(t) {
if (t.type !== "code" || typeof e != "function") return;
- const [a = "text", ...i] = t.lang.split(" "), { text: c } = t, r = await e(c, a, i), l = n ? n.replace("%l", String(a).toUpperCase()).replace("%s", r).replace("%t", c) : r;
+ const [a = "text", ...i] = t.lang?.split(" "), { text: c } = t, r = await e(c, a, i), l = n ? n.replace("%l", String(a).toUpperCase()).replace("%s", r).replace("%t", c) : r;
Object.assign(t, {
type: "html",
block: !0,