fumadocs-mdx 15.4.8 → 15.4.9

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.
@@ -1,5 +1,5 @@
1
1
  import { i as buildConfig, n as ValidationError } from "./core-DV3f7rXs.js";
2
- import { t as loadConfig } from "./load-from-file-Cp200K3r.js";
2
+ import { t as loadConfig } from "./load-from-file-DGFWQ0eg.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import fs from "node:fs/promises";
5
5
  import { fileURLToPath } from "node:url";
package/dist/bun/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as createMdxLoader } from "../mdx-D0Qtc99b.js";
2
2
  import { i as buildConfig, t as createCore } from "../core-DV3f7rXs.js";
3
3
  import { r as slash } from "../codegen-DfCJFqO-.js";
4
- import { a as createIntegratedConfigLoader, t as toBun } from "../adapter-CUvGnUav.js";
4
+ import { a as createIntegratedConfigLoader, t as toBun } from "../adapter-BUIa-1SI.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";
@@ -44,7 +44,7 @@ function createMdxPlugin(options = {}) {
44
44
  await core.init({ config: buildConfig(configExports, process.cwd()) });
45
45
  if (macroOptions) {
46
46
  const root = process.cwd();
47
- const { MacroCollector } = await import("../eval-DGn_JC7j.js").then((n) => n.r);
47
+ const { MacroCollector } = await import("../eval-Cnxpyc4j.js").then((n) => n.r);
48
48
  const pendingEvals = /* @__PURE__ */ new Map();
49
49
  core.macro = new MacroCollector({
50
50
  root,
@@ -57,7 +57,10 @@ function createNodeEvaluator(env) {
57
57
  }]
58
58
  });
59
59
  try {
60
- await import(pathToFileURL(outfile).href);
60
+ await import(
61
+ /* turbopackIgnore: true */
62
+ pathToFileURL(outfile).href
63
+ );
61
64
  } finally {
62
65
  await fs.rm(outfile, { force: true });
63
66
  }
@@ -46,7 +46,10 @@ async function loadConfig(core, build = false) {
46
46
  const url = pathToFileURL(core.getCompiledConfigPath());
47
47
  url.searchParams.set("hash", Date.now().toString());
48
48
  return {
49
- config: buildConfig(await import(url.href), process.cwd()),
49
+ config: buildConfig(await import(
50
+ /* turbopackIgnore: true */
51
+ url.href
52
+ ), process.cwd()),
50
53
  fromFile: true
51
54
  };
52
55
  }
@@ -1,5 +1,5 @@
1
1
  import { t as createCore } from "../core-DV3f7rXs.js";
2
- import { t as loadConfig } from "../load-from-file-Cp200K3r.js";
2
+ import { t as loadConfig } from "../load-from-file-DGFWQ0eg.js";
3
3
  import { i as metaLoaderQueryGlob, n as metaLoaderFileGlob, t as mdxLoaderGlob } from "../loaders-DWC_Uwqq.js";
4
4
  import { n as createMacroMatcher, r as resolveMacroOptions } from "../options-BNnYUjkM.js";
5
5
  import { t as indexFile } from "../index-file-C9-jDz59.js";
@@ -1,11 +1,11 @@
1
1
  import { t as createMdxLoader } from "../mdx-D0Qtc99b.js";
2
2
  import { t as createCore } from "../core-DV3f7rXs.js";
3
3
  import { r as slash } from "../codegen-DfCJFqO-.js";
4
- import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-CUvGnUav.js";
4
+ import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-BUIa-1SI.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";
8
- import { n as createNodeEvaluator, t as MacroCollector } from "../eval-DGn_JC7j.js";
8
+ import { n as createNodeEvaluator, t as MacroCollector } from "../eval-Cnxpyc4j.js";
9
9
  import path from "node:path";
10
10
  import { fileURLToPath } from "node:url";
11
11
  //#region src/node/_loader.ts
@@ -1,6 +1,6 @@
1
1
  import { t as createMdxLoader } from "../mdx-D0Qtc99b.js";
2
2
  import { t as createCore } from "../core-DV3f7rXs.js";
3
- import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-CUvGnUav.js";
3
+ import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-BUIa-1SI.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
@@ -1,2 +1 @@
1
- import { t as indexFile } from "../index-file-C9-jDz59.js";
2
- export { indexFile as default };
1
+ export { t as default } from "../index-file-C9-jDz59.js";
@@ -1,11 +1,11 @@
1
1
  import { t as createMdxLoader } from "../mdx-D0Qtc99b.js";
2
2
  import { i as buildConfig, t as createCore } from "../core-DV3f7rXs.js";
3
3
  import { r as slash } from "../codegen-DfCJFqO-.js";
4
- import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-CUvGnUav.js";
4
+ import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-BUIa-1SI.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";
8
- import { n as createNodeEvaluator, t as MacroCollector } from "../eval-DGn_JC7j.js";
8
+ import { n as createNodeEvaluator, t as MacroCollector } from "../eval-Cnxpyc4j.js";
9
9
  import fs from "node:fs/promises";
10
10
  import path from "node:path";
11
11
  //#region src/rolldown/index.ts
@@ -37,4 +37,5 @@ export declare function browser<Config, TC extends InternalTypeConfig>(): {
37
37
  doc<Name extends keyof Config & string>(_name: Name, glob: Record<string, () => Promise<unknown>>): Config[Name] extends DocCollection<infer Schema> | DocsCollection<infer Schema> ? DocCollectionEntry<Name, StandardSchemaV1.InferOutput<Schema>, TC> : never;
38
38
  };
39
39
  export declare function createClientLoader<Doc = CompiledMDXProperties, Props extends object | undefined = undefined>(globEntries: Record<string, () => Promise<Doc>>, options: ClientLoaderOptions<Doc, Props>): ClientLoader<Doc, Props>;
40
- //#endregion
40
+ //#endregion
41
+ export {};
@@ -107,4 +107,5 @@ export declare function docsAsync(args: BaseArgs & {
107
107
  body: LazyGlobEntries;
108
108
  meta: GlobEntries;
109
109
  }): Promise<MacroAsyncDocsCollection>;
110
- //#endregion
110
+ //#endregion
111
+ export {};
@@ -44,4 +44,5 @@ export declare function toFumadocsSource<Page extends DocMethods & PageData, Met
44
44
  pageData: Page;
45
45
  metaData: Meta;
46
46
  }>;
47
- //#endregion
47
+ //#endregion
48
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { t as createMdxLoader } from "../mdx-D0Qtc99b.js";
2
2
  import { i as buildConfig, t as createCore } from "../core-DV3f7rXs.js";
3
- import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-CUvGnUav.js";
3
+ import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-BUIa-1SI.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";
@@ -50,7 +50,7 @@ function mdx(forcedConfig, pluginOptions = {}) {
50
50
  const core = managed.core;
51
51
  const macroOptions = resolveMacroOptions(pluginOptions.macro);
52
52
  if (macroOptions) {
53
- const { MacroCollector } = await import("../eval-DGn_JC7j.js").then((n) => n.r);
53
+ const { MacroCollector } = await import("../eval-Cnxpyc4j.js").then((n) => n.r);
54
54
  core.macro = new MacroCollector({
55
55
  root: core.root,
56
56
  outDir: core.outDir,
@@ -1,6 +1,6 @@
1
1
  import { t as createMdxLoader } from "../mdx-D0Qtc99b.js";
2
- import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-CUvGnUav.js";
3
- import { t as getCore } from "../webpack-BgaNFImR.js";
2
+ import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-BUIa-1SI.js";
3
+ import { t as getCore } from "../webpack-BozYCamo.js";
4
4
  //#region src/webpack/mdx.ts
5
5
  let instance;
6
6
  const loader = function loader(source) {
@@ -1,6 +1,6 @@
1
- import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-CUvGnUav.js";
1
+ import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-BUIa-1SI.js";
2
2
  import { t as createMetaLoader } from "../meta-BR_rkCyY.js";
3
- import { t as getCore } from "../webpack-BgaNFImR.js";
3
+ import { t as getCore } from "../webpack-BozYCamo.js";
4
4
  //#region src/webpack/meta.ts
5
5
  const instances = /* @__PURE__ */ new Map();
6
6
  const loader = function(source) {
@@ -1,5 +1,5 @@
1
1
  import { t as createCore } from "./core-DV3f7rXs.js";
2
- import { n as createNodeEvaluator, t as MacroCollector } from "./eval-DGn_JC7j.js";
2
+ import { n as createNodeEvaluator, t as MacroCollector } from "./eval-Cnxpyc4j.js";
3
3
  //#region src/webpack/index.ts
4
4
  let core;
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "15.4.8",
3
+ "version": "15.4.9",
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.4.2",
63
+ "magic-string": "^1.4.3",
64
64
  "mdast-util-mdx": "^3.0.0",
65
65
  "picocolors": "^1.1.1",
66
66
  "picomatch": "^4.0.7",
@@ -70,31 +70,31 @@
70
70
  "unist-util-remove-position": "^5.0.0",
71
71
  "vfile": "^6.0.3",
72
72
  "yaml": "^2.9.1",
73
- "yuku-analyzer": "^0.17.0",
74
- "zod": "^4.6.5"
73
+ "yuku-analyzer": "^0.19.0",
74
+ "zod": "^4.6.7"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@fumadocs/satteri": "0.6.2",
78
78
  "@fumadocs/vite": "0.1.0",
79
- "@types/bun": "^1.4.2",
79
+ "@types/bun": "^1.4.3",
80
80
  "@types/mdast": "^4.0.4",
81
81
  "@types/mdx": "^2.0.14",
82
- "@types/node": "^26.6.4",
82
+ "@types/node": "^26.6.5",
83
83
  "@types/picomatch": "^4.0.3",
84
84
  "@types/react": "^19.3.0",
85
85
  "fumadocs-core": "16.17.7",
86
- "mdast-util-directive": "^3.1.0",
87
- "next": "^16.3.8",
88
- "react": "^19.3.0",
86
+ "mdast-util-directive": "^3.1.1",
87
+ "next": "^16.4.2",
88
+ "react": "^19.3.1",
89
89
  "remark": "^15.0.1",
90
90
  "remark-directive": "^4.0.0",
91
91
  "remark-mdx": "^3.1.1",
92
- "rolldown": "^1.2.12",
92
+ "rolldown": "^1.2.14",
93
93
  "satteri": "^0.10.5",
94
94
  "tsconfig": "0.0.0",
95
- "tsdown": "0.23.0",
96
- "vite": "^8.3.2",
97
- "webpack": "^5.111.1"
95
+ "tsdown": "0.23.1",
96
+ "vite": "^8.3.4",
97
+ "webpack": "^5.112.0"
98
98
  },
99
99
  "peerDependencies": {
100
100
  "@fumadocs/satteri": "0.x.x",