fumadocs-mdx 15.4.1 → 15.4.3
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.
- package/dist/{adapter-CaofLLZB.js → adapter-BnLfjgEy.js} +1 -1
- package/dist/{build-BPukCt-X.js → build-JzZIalDH.js} +1 -1
- package/dist/{build-default-gg93ZIqY.js → build-default-BYsCF-c1.js} +7 -1
- package/dist/bun/index.js +2 -2
- package/dist/{mdx-20MMF76V.js → mdx-d_f7mjEH.js} +3 -6
- package/dist/node/_loader.js +2 -2
- package/dist/node/loader.js +2 -2
- package/dist/rolldown/index.js +2 -2
- package/dist/runtime/dynamic.js +1 -1
- package/dist/vite/index.js +2 -2
- package/dist/webpack/mdx.js +2 -2
- package/dist/webpack/meta.js +1 -1
- package/package.json +16 -16
|
@@ -6,7 +6,7 @@ async function buildMDX(core, collection, options) {
|
|
|
6
6
|
const { buildSatteriMDX } = await import("./build-satteri-DUjpwpvb.js");
|
|
7
7
|
return buildSatteriMDX(core, collection, options);
|
|
8
8
|
}
|
|
9
|
-
const { buildJSMDX } = await import("./build-default-
|
|
9
|
+
const { buildJSMDX } = await import("./build-default-BYsCF-c1.js");
|
|
10
10
|
return buildJSMDX(core, collection, options);
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
@@ -38,7 +38,13 @@ function remarkPostprocess({ includeProcessedMarkdown = false, includeMDAST = fa
|
|
|
38
38
|
}
|
|
39
39
|
if (includeProcessedMarkdown) remarkLLMs.call(this, typeof includeProcessedMarkdown === "object" ? includeProcessedMarkdown : void 0)(tree, file, () => void 0);
|
|
40
40
|
if (includeMDAST) {
|
|
41
|
-
const
|
|
41
|
+
const options = includeMDAST === true ? {} : includeMDAST;
|
|
42
|
+
let serialized = tree;
|
|
43
|
+
if (options.removePosition) {
|
|
44
|
+
serialized = structuredClone(tree);
|
|
45
|
+
removePosition(serialized);
|
|
46
|
+
}
|
|
47
|
+
const mdast = JSON.stringify(serialized);
|
|
42
48
|
file.data["mdx-export"].push({
|
|
43
49
|
name: "_mdast",
|
|
44
50
|
value: mdast
|
package/dist/bun/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-d_f7mjEH.js";
|
|
2
2
|
import { i as buildConfig, t as createCore } from "../core-BHawVsTm.js";
|
|
3
3
|
import { r as slash } from "../codegen-BYYNMDsX.js";
|
|
4
|
-
import { a as createIntegratedConfigLoader, t as toBun } from "../adapter-
|
|
4
|
+
import { a as createIntegratedConfigLoader, t as toBun } from "../adapter-BnLfjgEy.js";
|
|
5
5
|
import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
|
|
6
6
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-DWC_Uwqq.js";
|
|
7
7
|
import { r as resolveMacroOptions } from "../options-BNnYUjkM.js";
|
|
@@ -25,7 +25,7 @@ function createMdxLoader({ getCore }) {
|
|
|
25
25
|
if (workspace) core = core.getWorkspaces().get(workspace) ?? core;
|
|
26
26
|
let after;
|
|
27
27
|
const { experimentalBuildCache = false } = core.getConfig().global;
|
|
28
|
-
if (!isDevelopment && experimentalBuildCache) {
|
|
28
|
+
if (!isDevelopment && experimentalBuildCache && only === "all") {
|
|
29
29
|
const cacheDir = experimentalBuildCache;
|
|
30
30
|
const cacheKey = `${(macroId ?? collectionName ?? "global").replace(/[^a-zA-Z0-9_-]/g, "_")}_${generateCacheHash(filePath)}`;
|
|
31
31
|
const cached = await fs.readFile(path.join(cacheDir, cacheKey), "utf-8").then((content) => cacheEntry.parse(JSON.parse(content))).catch(() => null);
|
|
@@ -59,11 +59,8 @@ function createMdxLoader({ getCore }) {
|
|
|
59
59
|
filePath,
|
|
60
60
|
source: value
|
|
61
61
|
}, matter.data);
|
|
62
|
-
if (only === "frontmatter") return {
|
|
63
|
-
|
|
64
|
-
map: null
|
|
65
|
-
};
|
|
66
|
-
const { buildMDX } = await import("./build-BPukCt-X.js").then((n) => n.n);
|
|
62
|
+
if (only === "frontmatter") return { code: `export const frontmatter = ${JSON.stringify(matter.data)}` };
|
|
63
|
+
const { buildMDX } = await import("./build-JzZIalDH.js").then((n) => n.n);
|
|
67
64
|
const compiled = await buildMDX(core, docCollection, {
|
|
68
65
|
isDevelopment,
|
|
69
66
|
source: "\n".repeat(countLines(matter.matter)) + matter.content,
|
package/dist/node/_loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-d_f7mjEH.js";
|
|
2
2
|
import { t as createCore } from "../core-BHawVsTm.js";
|
|
3
3
|
import { r as slash } from "../codegen-BYYNMDsX.js";
|
|
4
|
-
import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-
|
|
4
|
+
import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-BnLfjgEy.js";
|
|
5
5
|
import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
|
|
6
6
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-DWC_Uwqq.js";
|
|
7
7
|
import { n as createMacroMatcher, r as resolveMacroOptions } from "../options-BNnYUjkM.js";
|
package/dist/node/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-d_f7mjEH.js";
|
|
2
2
|
import { t as createCore } from "../core-BHawVsTm.js";
|
|
3
|
-
import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-
|
|
3
|
+
import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-BnLfjgEy.js";
|
|
4
4
|
import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
|
|
5
5
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-DWC_Uwqq.js";
|
|
6
6
|
//#region src/node/loader.ts
|
package/dist/rolldown/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-d_f7mjEH.js";
|
|
2
2
|
import { i as buildConfig, t as createCore } from "../core-BHawVsTm.js";
|
|
3
3
|
import { r as slash } from "../codegen-BYYNMDsX.js";
|
|
4
|
-
import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-
|
|
4
|
+
import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-BnLfjgEy.js";
|
|
5
5
|
import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
|
|
6
6
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-DWC_Uwqq.js";
|
|
7
7
|
import { r as resolveMacroOptions, t as MacroModuleId } from "../options-BNnYUjkM.js";
|
package/dist/runtime/dynamic.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as buildConfig, t as createCore } from "../core-BHawVsTm.js";
|
|
2
|
-
import { t as buildMDX } from "../build-
|
|
2
|
+
import { t as buildMDX } from "../build-JzZIalDH.js";
|
|
3
3
|
import { server } from "./server.js";
|
|
4
4
|
import { frontmatter } from "fumadocs-core/content/md/frontmatter";
|
|
5
5
|
import fs from "node:fs/promises";
|
package/dist/vite/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-d_f7mjEH.js";
|
|
2
2
|
import { i as buildConfig, t as createCore } from "../core-BHawVsTm.js";
|
|
3
|
-
import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-
|
|
3
|
+
import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-BnLfjgEy.js";
|
|
4
4
|
import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
|
|
5
5
|
import { r as metaLoaderGlob, t as mdxLoaderGlob } from "../loaders-DWC_Uwqq.js";
|
|
6
6
|
import { r as resolveMacroOptions, t as MacroModuleId } from "../options-BNnYUjkM.js";
|
package/dist/webpack/mdx.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createMdxLoader } from "../mdx-
|
|
2
|
-
import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-
|
|
1
|
+
import { t as createMdxLoader } from "../mdx-d_f7mjEH.js";
|
|
2
|
+
import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-BnLfjgEy.js";
|
|
3
3
|
import { t as getCore } from "../webpack-CNi1ZUjq.js";
|
|
4
4
|
//#region src/webpack/mdx.ts
|
|
5
5
|
let instance;
|
package/dist/webpack/meta.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-
|
|
1
|
+
import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-BnLfjgEy.js";
|
|
2
2
|
import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
|
|
3
3
|
import { t as getCore } from "../webpack-CNi1ZUjq.js";
|
|
4
4
|
//#region src/webpack/meta.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "15.4.
|
|
3
|
+
"version": "15.4.3",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"esbuild": "^0.28.2",
|
|
61
61
|
"estree-util-value-to-estree": "^3.5.0",
|
|
62
62
|
"github-slugger": "^2.0.0",
|
|
63
|
-
"magic-string": "^1.
|
|
63
|
+
"magic-string": "^1.4.1",
|
|
64
64
|
"mdast-util-mdx": "^3.0.0",
|
|
65
65
|
"picocolors": "^1.1.1",
|
|
66
66
|
"picomatch": "^4.0.7",
|
|
@@ -70,32 +70,32 @@
|
|
|
70
70
|
"unist-util-remove-position": "^5.0.0",
|
|
71
71
|
"unist-util-visit": "^5.1.0",
|
|
72
72
|
"vfile": "^6.0.3",
|
|
73
|
-
"yaml": "^2.9.
|
|
74
|
-
"yuku-analyzer": "^0.
|
|
75
|
-
"zod": "^4.5
|
|
73
|
+
"yaml": "^2.9.1",
|
|
74
|
+
"yuku-analyzer": "^0.10.2",
|
|
75
|
+
"zod": "^4.6.5"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
+
"@fumadocs/satteri": "0.5.1",
|
|
79
|
+
"@fumadocs/vite": "0.1.0",
|
|
78
80
|
"@types/bun": "^1.4.2",
|
|
79
81
|
"@types/mdast": "^4.0.4",
|
|
80
82
|
"@types/mdx": "^2.0.14",
|
|
81
|
-
"@types/node": "^26.
|
|
83
|
+
"@types/node": "^26.6.1",
|
|
82
84
|
"@types/picomatch": "^4.0.3",
|
|
83
|
-
"@types/react": "^19.
|
|
85
|
+
"@types/react": "^19.3.0",
|
|
86
|
+
"fumadocs-core": "16.15.12",
|
|
84
87
|
"mdast-util-directive": "^3.1.0",
|
|
85
|
-
"next": "^16.3.
|
|
86
|
-
"react": "^19.
|
|
88
|
+
"next": "^16.3.5",
|
|
89
|
+
"react": "^19.3.0",
|
|
87
90
|
"remark": "^15.0.1",
|
|
88
91
|
"remark-directive": "^4.0.0",
|
|
89
92
|
"remark-mdx": "^3.1.1",
|
|
90
|
-
"rolldown": "^1.2.
|
|
93
|
+
"rolldown": "^1.2.9",
|
|
91
94
|
"satteri": "^0.10.5",
|
|
95
|
+
"tsconfig": "0.0.0",
|
|
92
96
|
"tsdown": "0.23.0",
|
|
93
|
-
"vite": "^8.
|
|
94
|
-
"webpack": "^5.
|
|
95
|
-
"@fumadocs/satteri": "0.5.1",
|
|
96
|
-
"@fumadocs/vite": "0.1.0",
|
|
97
|
-
"fumadocs-core": "16.15.11",
|
|
98
|
-
"tsconfig": "0.0.0"
|
|
97
|
+
"vite": "^8.3.0",
|
|
98
|
+
"webpack": "^5.111.1"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
101
|
"@fumadocs/satteri": "0.x.x",
|