fumadocs-core 13.4.3 → 13.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
getSingletonHighlighter,
|
|
23
23
|
createJavaScriptRegexEngine,
|
|
24
|
+
createWasmOnigEngine,
|
|
24
25
|
bundledLanguages
|
|
25
26
|
} from "shiki";
|
|
26
27
|
|
|
@@ -254,7 +255,7 @@ function rehypeCode(options = {}) {
|
|
|
254
255
|
themeItems = [codeOptions.theme];
|
|
255
256
|
}
|
|
256
257
|
const highlighter = getSingletonHighlighter({
|
|
257
|
-
engine: codeOptions.experimentalJSEngine ? createJavaScriptRegexEngine() :
|
|
258
|
+
engine: codeOptions.experimentalJSEngine ? createJavaScriptRegexEngine() : createWasmOnigEngine(import("shiki/wasm")),
|
|
258
259
|
themes: themeItems.filter(Boolean),
|
|
259
260
|
langs: codeOptions.langs ?? Object.keys(bundledLanguages)
|
|
260
261
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-core",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.5",
|
|
4
4
|
"description": "The library for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
],
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@formatjs/intl-localematcher": "^0.5.4",
|
|
130
|
-
"@shikijs/rehype": "^1.
|
|
131
|
-
"@shikijs/transformers": "^1.
|
|
130
|
+
"@shikijs/rehype": "^1.16.1",
|
|
131
|
+
"@shikijs/transformers": "^1.16.1",
|
|
132
132
|
"flexsearch": "0.7.21",
|
|
133
133
|
"github-slugger": "^2.0.0",
|
|
134
134
|
"image-size": "^1.1.1",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"remark-gfm": "^4.0.0",
|
|
140
140
|
"remark-mdx": "^3.0.1",
|
|
141
141
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
142
|
-
"shiki": "^1.
|
|
142
|
+
"shiki": "^1.16.1",
|
|
143
143
|
"swr": "^2.2.5",
|
|
144
144
|
"unist-util-visit": "^5.0.0"
|
|
145
145
|
},
|