fumadocs-mdx 14.1.0 → 14.1.1

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 { BunPlugin } from 'bun';
2
- import { C as CoreOptions } from '../core-X5ggQtBM.js';
2
+ import { h as CoreOptions } from '../core-nagEel33.js';
3
3
  import '@mdx-js/mdx';
4
4
  import '@standard-schema/spec';
5
5
  import 'unified';
package/dist/bun/index.js CHANGED
@@ -11,13 +11,13 @@ import {
11
11
  import {
12
12
  createIntegratedConfigLoader,
13
13
  toBun
14
- } from "../chunk-WAAWFNDX.js";
14
+ } from "../chunk-WSQ23PNV.js";
15
15
  import "../chunk-4JSFLXXT.js";
16
16
  import {
17
17
  _Defaults,
18
18
  createCore
19
- } from "../chunk-VKSHE52K.js";
20
- import "../chunk-PW2AZGGD.js";
19
+ } from "../chunk-KWSETXYC.js";
20
+ import "../chunk-2PY3JUIC.js";
21
21
  import "../chunk-VWJKRQZR.js";
22
22
 
23
23
  // src/bun/index.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCore
3
- } from "./chunk-VKSHE52K.js";
3
+ } from "./chunk-KWSETXYC.js";
4
4
 
5
5
  // src/webpack/index.ts
6
6
  var core;
@@ -121,5 +121,6 @@ function ident(code, tab = 1) {
121
121
 
122
122
  export {
123
123
  createCodegen,
124
+ slash,
124
125
  ident
125
126
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ident
3
- } from "./chunk-PW2AZGGD.js";
3
+ } from "./chunk-2PY3JUIC.js";
4
4
 
5
5
  // src/utils/validation.ts
6
6
  var ValidationError = class extends Error {
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  createCodegen,
3
- ident
4
- } from "./chunk-PW2AZGGD.js";
3
+ ident,
4
+ slash
5
+ } from "./chunk-2PY3JUIC.js";
5
6
  import {
6
7
  fumaMatter
7
8
  } from "./chunk-VWJKRQZR.js";
@@ -293,7 +294,7 @@ async function generateBrowserIndexFile(ctx) {
293
294
  codegen.lines.push("};", "export default browserCollections;");
294
295
  }
295
296
  function getBase(collection) {
296
- return path2.relative(process.cwd(), collection.dir);
297
+ return slash(path2.relative(process.cwd(), collection.dir));
297
298
  }
298
299
  function generateDocCollectionFrontmatterGlob({ codegen, workspace }, collection, eager = false) {
299
300
  return codegen.generateGlobImport(collection.patterns, {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ValidationError
3
- } from "./chunk-VKSHE52K.js";
3
+ } from "./chunk-KWSETXYC.js";
4
4
 
5
5
  // src/loaders/adapter.ts
6
6
  import { fileURLToPath } from "url";
@@ -1,4 +1,4 @@
1
- export { A as AnyCollection, B as BaseCollection, a as CollectionSchema, f as DefaultMDXOptions, D as DocCollection, b as DocsCollection, G as GlobalConfig, g as MDXPresetOptions, M as MetaCollection, P as PostprocessOptions, h as applyMdxPreset, d as defineCollections, e as defineConfig, c as defineDocs } from '../core-X5ggQtBM.js';
1
+ export { A as AnyCollection, B as BaseCollection, C as CollectionSchema, e as DefaultMDXOptions, D as DocCollection, a as DocsCollection, G as GlobalConfig, f as MDXPresetOptions, M as MetaCollection, P as PostprocessOptions, g as applyMdxPreset, d as defineCollections, c as defineConfig, b as defineDocs } from '../core-nagEel33.js';
2
2
  import { Processor, Transformer } from 'unified';
3
3
  import { Root } from 'mdast';
4
4
  export { pageSchema as frontmatterSchema, metaSchema } from 'fumadocs-core/source/schema';
@@ -347,4 +347,4 @@ declare function createCore(options: CoreOptions): {
347
347
  };
348
348
  type Core = ReturnType<typeof createCore>;
349
349
 
350
- export { type AnyCollection as A, type BaseCollection as B, type CoreOptions as C, type DocCollection as D, type ExtractedReference as E, indexFile as F, type GlobalConfig as G, type IndexFilePlugin as H, type IndexFilePluginOptions as I, type MetaCollection as M, type PostprocessOptions as P, type ServerOptions as S, type TransformOptions as T, _Defaults as _, type CollectionSchema as a, type DocsCollection as b, defineDocs as c, defineCollections as d, defineConfig as e, type DefaultMDXOptions as f, type MDXPresetOptions as g, applyMdxPreset as h, type Plugin as i, type AsyncDocCollectionEntry as j, type AsyncDocsCollectionEntry as k, type EmitEntry as l, type PluginContext as m, type CompilationContext as n, type PluginOption as o, type ServerContext as p, type EmitOptions as q, type EmitOutput as r, createCore as s, type Core as t, type MetaCollectionEntry as u, type DocCollectionEntry as v, type DocsCollectionEntry as w, type ServerCreate as x, server as y, toFumadocsSource as z };
350
+ export { type AnyCollection as A, type BaseCollection as B, type CollectionSchema as C, type DocCollection as D, type ExtractedReference as E, indexFile as F, type GlobalConfig as G, type IndexFilePlugin as H, type IndexFilePluginOptions as I, type MetaCollection as M, type PostprocessOptions as P, type ServerOptions as S, type TransformOptions as T, _Defaults as _, type DocsCollection as a, defineDocs as b, defineConfig as c, defineCollections as d, type DefaultMDXOptions as e, type MDXPresetOptions as f, applyMdxPreset as g, type CoreOptions as h, type Plugin as i, type AsyncDocCollectionEntry as j, type AsyncDocsCollectionEntry as k, type EmitEntry as l, type PluginContext as m, type CompilationContext as n, type PluginOption as o, type ServerContext as p, type EmitOptions as q, type EmitOutput as r, createCore as s, type Core as t, type MetaCollectionEntry as u, type DocCollectionEntry as v, type DocsCollectionEntry as w, type ServerCreate as x, server as y, toFumadocsSource as z };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { n as CompilationContext, t as Core, C as CoreOptions, l as EmitEntry, q as EmitOptions, r as EmitOutput, E as ExtractedReference, i as Plugin, m as PluginContext, o as PluginOption, p as ServerContext, T as TransformOptions, _ as _Defaults, s as createCore } from './core-X5ggQtBM.js';
1
+ export { n as CompilationContext, t as Core, h as CoreOptions, l as EmitEntry, q as EmitOptions, r as EmitOutput, E as ExtractedReference, i as Plugin, m as PluginContext, o as PluginOption, p as ServerContext, T as TransformOptions, _ as _Defaults, s as createCore } from './core-nagEel33.js';
2
2
  import { createProcessor } from '@mdx-js/mdx';
3
3
  import { StructuredData } from 'fumadocs-core/mdx-plugins';
4
4
  import { TOCItemType } from 'fumadocs-core/toc';
@@ -965,7 +965,7 @@ async function generateBrowserIndexFile(ctx) {
965
965
  codegen.lines.push("};", "export default browserCollections;");
966
966
  }
967
967
  function getBase(collection) {
968
- return import_path.default.relative(process.cwd(), collection.dir);
968
+ return slash(import_path.default.relative(process.cwd(), collection.dir));
969
969
  }
970
970
  function generateDocCollectionFrontmatterGlob({ codegen, workspace }, collection, eager = false) {
971
971
  return codegen.generateGlobImport(collection.patterns, {
@@ -1,5 +1,5 @@
1
1
  import { NextConfig } from 'next';
2
- import { I as IndexFilePluginOptions } from '../core-X5ggQtBM.js';
2
+ import { I as IndexFilePluginOptions } from '../core-nagEel33.js';
3
3
  import '@mdx-js/mdx';
4
4
  import '@standard-schema/spec';
5
5
  import 'unified';
@@ -10,11 +10,11 @@ import {
10
10
  import {
11
11
  _Defaults,
12
12
  createCore
13
- } from "../chunk-VKSHE52K.js";
13
+ } from "../chunk-KWSETXYC.js";
14
14
  import {
15
15
  indexFile
16
- } from "../chunk-VITVHHR6.js";
17
- import "../chunk-PW2AZGGD.js";
16
+ } from "../chunk-STLEUNK7.js";
17
+ import "../chunk-2PY3JUIC.js";
18
18
  import "../chunk-VWJKRQZR.js";
19
19
 
20
20
  // src/next/index.ts
@@ -7,13 +7,13 @@ import {
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toNode
10
- } from "../chunk-WAAWFNDX.js";
10
+ } from "../chunk-WSQ23PNV.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
12
  import {
13
13
  _Defaults,
14
14
  createCore
15
- } from "../chunk-VKSHE52K.js";
16
- import "../chunk-PW2AZGGD.js";
15
+ } from "../chunk-KWSETXYC.js";
16
+ import "../chunk-2PY3JUIC.js";
17
17
  import "../chunk-VWJKRQZR.js";
18
18
 
19
19
  // src/node/loader.ts
@@ -1,4 +1,4 @@
1
- export { H as IndexFilePlugin, I as IndexFilePluginOptions, F as default } from '../core-X5ggQtBM.js';
1
+ export { H as IndexFilePlugin, I as IndexFilePluginOptions, F as default } from '../core-nagEel33.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  indexFile
3
- } from "../chunk-VITVHHR6.js";
4
- import "../chunk-PW2AZGGD.js";
3
+ } from "../chunk-STLEUNK7.js";
4
+ import "../chunk-2PY3JUIC.js";
5
5
  import "../chunk-VWJKRQZR.js";
6
6
  export {
7
7
  indexFile as default
@@ -1,4 +1,4 @@
1
- import { i as Plugin } from '../core-X5ggQtBM.js';
1
+ import { i as Plugin } from '../core-nagEel33.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
@@ -1,4 +1,4 @@
1
- import { i as Plugin } from '../core-X5ggQtBM.js';
1
+ import { i as Plugin } from '../core-nagEel33.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ident
3
- } from "../chunk-PW2AZGGD.js";
3
+ } from "../chunk-2PY3JUIC.js";
4
4
 
5
5
  // src/plugins/last-modified.ts
6
6
  import path from "path";
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, FC } from 'react';
2
2
  import { StandardSchemaV1 } from '@standard-schema/spec';
3
- import { D as DocCollection, b as DocsCollection } from '../core-X5ggQtBM.js';
3
+ import { D as DocCollection, a as DocsCollection } from '../core-nagEel33.js';
4
4
  import { CompiledMDXProperties } from '../index.js';
5
5
  import { InternalTypeConfig } from './types.js';
6
6
  import '@mdx-js/mdx';
@@ -1,5 +1,5 @@
1
1
  import * as fumadocs_core_source from 'fumadocs-core/source';
2
- import { C as CoreOptions, S as ServerOptions, D as DocCollection, b as DocsCollection, j as AsyncDocCollectionEntry, k as AsyncDocsCollectionEntry } from '../core-X5ggQtBM.js';
2
+ import { h as CoreOptions, S as ServerOptions, D as DocCollection, a as DocsCollection, j as AsyncDocCollectionEntry, k as AsyncDocsCollectionEntry } from '../core-nagEel33.js';
3
3
  import * as _standard_schema_spec from '@standard-schema/spec';
4
4
  import { FileInfo, InternalTypeConfig } from './types.js';
5
5
  import '@mdx-js/mdx';
@@ -11,8 +11,8 @@ import {
11
11
  import "../chunk-S7KOJHHO.js";
12
12
  import {
13
13
  createCore
14
- } from "../chunk-VKSHE52K.js";
15
- import "../chunk-PW2AZGGD.js";
14
+ } from "../chunk-KWSETXYC.js";
15
+ import "../chunk-2PY3JUIC.js";
16
16
  import {
17
17
  fumaMatter
18
18
  } from "../chunk-VWJKRQZR.js";
@@ -1,5 +1,5 @@
1
1
  import 'fumadocs-core/source';
2
- export { j as AsyncDocCollectionEntry, k as AsyncDocsCollectionEntry, v as DocCollectionEntry, w as DocsCollectionEntry, u as MetaCollectionEntry, x as ServerCreate, S as ServerOptions, y as server, z as toFumadocsSource } from '../core-X5ggQtBM.js';
2
+ export { j as AsyncDocCollectionEntry, k as AsyncDocsCollectionEntry, v as DocCollectionEntry, w as DocsCollectionEntry, u as MetaCollectionEntry, x as ServerCreate, S as ServerOptions, y as server, z as toFumadocsSource } from '../core-nagEel33.js';
3
3
  import '@standard-schema/spec';
4
4
  import './types.js';
5
5
  import '@mdx-js/mdx';
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from 'vite';
2
- import { I as IndexFilePluginOptions } from '../core-X5ggQtBM.js';
2
+ import { I as IndexFilePluginOptions } from '../core-nagEel33.js';
3
3
  import '@mdx-js/mdx';
4
4
  import '@standard-schema/spec';
5
5
  import 'unified';
@@ -11,17 +11,17 @@ import {
11
11
  import {
12
12
  createIntegratedConfigLoader,
13
13
  toVite
14
- } from "../chunk-WAAWFNDX.js";
14
+ } from "../chunk-WSQ23PNV.js";
15
15
  import "../chunk-4JSFLXXT.js";
16
16
  import {
17
17
  ValidationError,
18
18
  _Defaults,
19
19
  createCore
20
- } from "../chunk-VKSHE52K.js";
20
+ } from "../chunk-KWSETXYC.js";
21
21
  import {
22
22
  indexFile
23
- } from "../chunk-VITVHHR6.js";
24
- import "../chunk-PW2AZGGD.js";
23
+ } from "../chunk-STLEUNK7.js";
24
+ import "../chunk-2PY3JUIC.js";
25
25
  import "../chunk-VWJKRQZR.js";
26
26
 
27
27
  // src/vite/index.ts
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  getCore
3
- } from "../chunk-K7N6GD4M.js";
3
+ } from "../chunk-257RZJEQ.js";
4
4
  import {
5
5
  createMdxLoader
6
6
  } from "../chunk-T6G5VOED.js";
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toWebpack
10
- } from "../chunk-WAAWFNDX.js";
10
+ } from "../chunk-WSQ23PNV.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
- import "../chunk-VKSHE52K.js";
13
- import "../chunk-PW2AZGGD.js";
12
+ import "../chunk-KWSETXYC.js";
13
+ import "../chunk-2PY3JUIC.js";
14
14
  import "../chunk-VWJKRQZR.js";
15
15
 
16
16
  // src/webpack/mdx.ts
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  getCore
3
- } from "../chunk-K7N6GD4M.js";
3
+ } from "../chunk-257RZJEQ.js";
4
4
  import {
5
5
  createMetaLoader
6
6
  } from "../chunk-ZAYZWFWP.js";
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toWebpack
10
- } from "../chunk-WAAWFNDX.js";
10
+ } from "../chunk-WSQ23PNV.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
- import "../chunk-VKSHE52K.js";
13
- import "../chunk-PW2AZGGD.js";
12
+ import "../chunk-KWSETXYC.js";
13
+ import "../chunk-2PY3JUIC.js";
14
14
 
15
15
  // src/webpack/meta.ts
16
16
  var instance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "14.1.0",
3
+ "version": "14.1.1",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -76,28 +76,28 @@
76
76
  "zod": "^4.1.13"
77
77
  },
78
78
  "devDependencies": {
79
- "@types/bun": "^1.3.3",
79
+ "@types/bun": "^1.3.4",
80
80
  "@types/js-yaml": "^4.0.9",
81
81
  "@types/mdast": "^4.0.4",
82
82
  "@types/mdx": "^2.0.13",
83
- "@types/node": "^24.10.1",
83
+ "@types/node": "^24.10.2",
84
84
  "@types/picomatch": "^4.0.2",
85
85
  "@types/react": "^19.2.7",
86
- "astro": "^5.16.4",
86
+ "astro": "^5.16.5",
87
87
  "mdast-util-directive": "^3.1.0",
88
88
  "mdast-util-mdx-jsx": "^3.2.0",
89
- "next": "16.0.7",
90
- "react": "^19.2.1",
89
+ "next": "16.0.10",
90
+ "react": "^19.2.3",
91
91
  "remark": "^15.0.1",
92
92
  "remark-directive": "^4.0.0",
93
93
  "remark-stringify": "^11.0.0",
94
94
  "rollup": "^4.53.3",
95
- "vite": "^7.2.6",
95
+ "vite": "^7.2.7",
96
96
  "webpack": "^5.103.0",
97
97
  "@fumadocs/mdx-remote": "1.4.3",
98
98
  "eslint-config-custom": "0.0.0",
99
- "fumadocs-core": "16.2.3",
100
- "tsconfig": "0.0.0"
99
+ "tsconfig": "0.0.0",
100
+ "fumadocs-core": "16.2.5"
101
101
  },
102
102
  "peerDependencies": {
103
103
  "@fumadocs/mdx-remote": "^1.4.0",