fumadocs-mdx 15.0.7 → 15.0.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.
@@ -62,9 +62,11 @@ function toVite(loader) {
62
62
  async transform(value, id) {
63
63
  const [file, query = ""] = id.split("?", 2);
64
64
  try {
65
+ const parsedQuery = parse(query);
66
+ if ("raw" in parsedQuery) return null;
65
67
  const result = await loader.load({
66
68
  filePath: file,
67
- query: parse(query),
69
+ query: parsedQuery,
68
70
  getSource() {
69
71
  return value;
70
72
  },
@@ -1,4 +1,4 @@
1
- import { r as CoreOptions } from "../core-BFnJKNy5.js";
1
+ import { r as CoreOptions } from "../core-DA3neriE.js";
2
2
  import { BunPlugin } from "bun";
3
3
 
4
4
  //#region src/bun/index.d.ts
package/dist/bun/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { t as createMdxLoader } from "../mdx-C6JG017v.js";
1
+ import { t as createMdxLoader } from "../mdx-ChVjC5lc.js";
2
2
  import { i as buildConfig, n as createCore, t as _Defaults } from "../core-DlDe_Eze.js";
3
- import { a as createIntegratedConfigLoader, t as toBun } from "../adapter-BSlBR-2Y.js";
3
+ import { a as createIntegratedConfigLoader, t as toBun } from "../adapter-DczNebwe.js";
4
4
  import { t as createMetaLoader } from "../meta-_7-eciVa.js";
5
5
  import { pathToFileURL } from "node:url";
6
6
  //#region src/bun/index.ts
@@ -1,2 +1,2 @@
1
- import { A as DocCollection, B as MDXPresetOptions, D as AnyCollection, E as remarkInclude, F as defineConfig, I as defineDocs, M as GlobalConfig, N as MetaCollection, O as BaseCollection, P as defineCollections, R as PostprocessOptions, T as metaSchema, V as applyMdxPreset, j as DocsCollection, k as CollectionSchema, w as frontmatterSchema, z as DefaultMDXOptions } from "../core-BFnJKNy5.js";
1
+ import { A as DocCollection, B as MDXPresetOptions, D as AnyCollection, E as remarkInclude, F as defineConfig, I as defineDocs, M as GlobalConfig, N as MetaCollection, O as BaseCollection, P as defineCollections, R as PostprocessOptions, T as metaSchema, V as applyMdxPreset, j as DocsCollection, k as CollectionSchema, w as frontmatterSchema, z as DefaultMDXOptions } from "../core-DA3neriE.js";
2
2
  export { AnyCollection, BaseCollection, CollectionSchema, DefaultMDXOptions, DocCollection, DocsCollection, GlobalConfig, MDXPresetOptions, MetaCollection, PostprocessOptions, applyMdxPreset, defineCollections, defineConfig, defineDocs, frontmatterSchema, metaSchema, remarkInclude };
@@ -193,6 +193,7 @@ declare const frontmatterSchema: _$zod.ZodObject<{
193
193
  declare const metaSchema$1: _$zod.ZodObject<{
194
194
  title: _$zod.ZodOptional<_$zod.ZodString>;
195
195
  pages: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
196
+ pagesIndex: _$zod.ZodOptional<_$zod.ZodString>;
196
197
  description: _$zod.ZodOptional<_$zod.ZodString>;
197
198
  root: _$zod.ZodOptional<_$zod.ZodBoolean>;
198
199
  defaultOpen: _$zod.ZodOptional<_$zod.ZodBoolean>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { L as ExtractedReference, a as EmitOptions, c as PluginContext, d as TransformOptions, i as EmitEntry, l as PluginOption, n as Core, o as EmitOutput, r as CoreOptions, s as Plugin, t as CompilationContext, u as ServerContext } from "./core-BFnJKNy5.js";
1
+ import { L as ExtractedReference, a as EmitOptions, c as PluginContext, d as TransformOptions, i as EmitEntry, l as PluginOption, n as Core, o as EmitOutput, r as CoreOptions, s as Plugin, t as CompilationContext, u as ServerContext } from "./core-DA3neriE.js";
2
2
  import { t as CompiledMDXProperties } from "./build-mdx-CDcIdtZ2.js";
3
3
  export { type CompilationContext, type CompiledMDXProperties, type Core, type CoreOptions, type EmitEntry, type EmitOptions, type EmitOutput, type ExtractedReference, type Plugin, type PluginContext, type PluginOption, type ServerContext, type TransformOptions };
@@ -29,7 +29,7 @@ function createMdxLoader({ getCore }) {
29
29
  if (!isDevelopment && experimentalBuildCache) {
30
30
  const cacheDir = experimentalBuildCache;
31
31
  const cacheKey = `${collectionName ?? "global"}_${generateCacheHash(filePath)}`;
32
- const cached = await fs.readFile(path.join(cacheDir, cacheKey)).then((content) => cacheEntry.parse(JSON.parse(content.toString()))).catch(() => null);
32
+ const cached = await fs.readFile(path.join(cacheDir, cacheKey), "utf-8").then((content) => cacheEntry.parse(JSON.parse(content))).catch(() => null);
33
33
  if (cached && cached.hash === generateCacheHash(value)) return cached;
34
34
  after = async () => {
35
35
  await fs.mkdir(cacheDir, { recursive: true });
@@ -1,4 +1,4 @@
1
- import { p as IndexFilePluginOptions } from "../core-BFnJKNy5.js";
1
+ import { p as IndexFilePluginOptions } from "../core-DA3neriE.js";
2
2
  import { NextConfig } from "next";
3
3
 
4
4
  //#region src/next/index.d.ts
@@ -1,6 +1,6 @@
1
- import { t as createMdxLoader } from "../mdx-C6JG017v.js";
1
+ import { t as createMdxLoader } from "../mdx-ChVjC5lc.js";
2
2
  import { n as createCore, t as _Defaults } from "../core-DlDe_Eze.js";
3
- import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-BSlBR-2Y.js";
3
+ import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-DczNebwe.js";
4
4
  import { t as createMetaLoader } from "../meta-_7-eciVa.js";
5
5
  //#region src/node/_loader.ts
6
6
  let cachedLoaders;
@@ -1,4 +1,4 @@
1
- import { r as CoreOptions } from "../core-BFnJKNy5.js";
1
+ import { r as CoreOptions } from "../core-DA3neriE.js";
2
2
 
3
3
  //#region src/node/index.d.ts
4
4
  interface NodeLoaderOptions extends Partial<CoreOptions> {
@@ -1,6 +1,6 @@
1
- import { t as createMdxLoader } from "../mdx-C6JG017v.js";
1
+ import { t as createMdxLoader } from "../mdx-ChVjC5lc.js";
2
2
  import { n as createCore, t as _Defaults } from "../core-DlDe_Eze.js";
3
- import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-BSlBR-2Y.js";
3
+ import { n as toNode, o as createStandaloneConfigLoader } from "../adapter-DczNebwe.js";
4
4
  import { t as createMetaLoader } from "../meta-_7-eciVa.js";
5
5
  //#region src/node/loader.ts
6
6
  const configLoader = createStandaloneConfigLoader({
@@ -1,2 +1,2 @@
1
- import { f as IndexFilePlugin, m as indexFile, p as IndexFilePluginOptions } from "../core-BFnJKNy5.js";
1
+ import { f as IndexFilePlugin, m as indexFile, p as IndexFilePluginOptions } from "../core-DA3neriE.js";
2
2
  export { IndexFilePlugin, IndexFilePluginOptions, indexFile as default };
@@ -1,4 +1,4 @@
1
- import { s as Plugin } from "../core-BFnJKNy5.js";
1
+ import { s as Plugin } from "../core-DA3neriE.js";
2
2
 
3
3
  //#region src/plugins/json-schema.d.ts
4
4
  interface JSONSchemaOptions {
@@ -1,4 +1,4 @@
1
- import { s as Plugin } from "../core-BFnJKNy5.js";
1
+ import { s as Plugin } from "../core-DA3neriE.js";
2
2
 
3
3
  //#region src/plugins/last-modified.d.ts
4
4
  type VersionControlFn = (filePath: string) => Promise<Date | null | undefined>;
@@ -1,7 +1,7 @@
1
1
  import { i as metaLoaderGlob, r as mdxLoaderGlob } from "../load-from-file-CiyxzRPF.js";
2
- import { t as createMdxLoader } from "../mdx-C6JG017v.js";
2
+ import { t as createMdxLoader } from "../mdx-ChVjC5lc.js";
3
3
  import { i as buildConfig, n as createCore, t as _Defaults } from "../core-DlDe_Eze.js";
4
- import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-BSlBR-2Y.js";
4
+ import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-DczNebwe.js";
5
5
  import { t as createMetaLoader } from "../meta-_7-eciVa.js";
6
6
  import fs from "node:fs/promises";
7
7
  //#region src/rolldown/index.ts
@@ -1,4 +1,4 @@
1
- import { A as DocCollection, j as DocsCollection } from "../core-BFnJKNy5.js";
1
+ import { A as DocCollection, j as DocsCollection } from "../core-DA3neriE.js";
2
2
  import { i as InternalTypeConfig } from "../types-BRJOx-ji.js";
3
3
  import { t as CompiledMDXProperties } from "../build-mdx-CDcIdtZ2.js";
4
4
  import { FC, ReactNode } from "react";
@@ -1,4 +1,4 @@
1
- import { A as DocCollection, g as AsyncDocsCollectionEntry, h as AsyncDocCollectionEntry, j as DocsCollection, r as CoreOptions, x as ServerOptions } from "../core-BFnJKNy5.js";
1
+ import { A as DocCollection, g as AsyncDocsCollectionEntry, h as AsyncDocCollectionEntry, j as DocsCollection, r as CoreOptions, x as ServerOptions } from "../core-DA3neriE.js";
2
2
  import { i as InternalTypeConfig, r as FileInfo } from "../types-BRJOx-ji.js";
3
3
  import * as _$_standard_schema_spec0 from "@standard-schema/spec";
4
4
  import * as _$fumadocs_core_source0 from "fumadocs-core/source";
@@ -1,2 +1,2 @@
1
- import { C as toFumadocsSource, S as server, _ as DocCollectionEntry, b as ServerCreate, g as AsyncDocsCollectionEntry, h as AsyncDocCollectionEntry, v as DocsCollectionEntry, x as ServerOptions, y as MetaCollectionEntry } from "../core-BFnJKNy5.js";
1
+ import { C as toFumadocsSource, S as server, _ as DocCollectionEntry, b as ServerCreate, g as AsyncDocsCollectionEntry, h as AsyncDocCollectionEntry, v as DocsCollectionEntry, x as ServerOptions, y as MetaCollectionEntry } from "../core-DA3neriE.js";
2
2
  export { AsyncDocCollectionEntry, AsyncDocsCollectionEntry, DocCollectionEntry, DocsCollectionEntry, MetaCollectionEntry, ServerCreate, ServerOptions, server, toFumadocsSource };
@@ -1,4 +1,4 @@
1
- import { p as IndexFilePluginOptions } from "../core-BFnJKNy5.js";
1
+ import { p as IndexFilePluginOptions } from "../core-DA3neriE.js";
2
2
  import { Plugin } from "vite";
3
3
 
4
4
  //#region src/vite/index.d.ts
@@ -1,6 +1,6 @@
1
- import { t as createMdxLoader } from "../mdx-C6JG017v.js";
1
+ import { t as createMdxLoader } from "../mdx-ChVjC5lc.js";
2
2
  import { i as buildConfig, n as createCore, t as _Defaults } from "../core-DlDe_Eze.js";
3
- import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-BSlBR-2Y.js";
3
+ import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-DczNebwe.js";
4
4
  import { t as createMetaLoader } from "../meta-_7-eciVa.js";
5
5
  import { t as indexFile } from "../index-file-DBypGEp7.js";
6
6
  import { runnerImport } from "vite";
@@ -16,7 +16,8 @@ async function mdx(_config, pluginOptions = {}) {
16
16
  return [
17
17
  {
18
18
  name: "fumadocs-mdx",
19
- async config() {
19
+ async config(config) {
20
+ if ("_fumadocs_skipViteConfig" in config && config._fumadocs_skipViteConfig) return;
20
21
  if (!options.updateViteConfig) return;
21
22
  const { getConfig } = await import("../dist-AsMH2g66.js");
22
23
  return getConfig({ root: process.cwd() });
@@ -1,5 +1,5 @@
1
- import { t as createMdxLoader } from "../mdx-C6JG017v.js";
2
- import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-BSlBR-2Y.js";
1
+ import { t as createMdxLoader } from "../mdx-ChVjC5lc.js";
2
+ import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-DczNebwe.js";
3
3
  import { t as getCore } from "../webpack-C4iZ7HjD.js";
4
4
  //#region src/webpack/mdx.ts
5
5
  let instance;
@@ -1,4 +1,4 @@
1
- import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-BSlBR-2Y.js";
1
+ import { i as toWebpack, o as createStandaloneConfigLoader } from "../adapter-DczNebwe.js";
2
2
  import { t as createMetaLoader } from "../meta-_7-eciVa.js";
3
3
  import { t as getCore } from "../webpack-C4iZ7HjD.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.0.7",
3
+ "version": "15.0.9",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "Docs",
@@ -53,7 +53,7 @@
53
53
  "mdast-util-mdx": "^3.0.0",
54
54
  "picocolors": "^1.1.1",
55
55
  "picomatch": "^4.0.4",
56
- "tinyexec": "^1.1.2",
56
+ "tinyexec": "^1.2.2",
57
57
  "tinyglobby": "^0.2.16",
58
58
  "unified": "^11.0.5",
59
59
  "unist-util-remove-position": "^5.0.0",
@@ -66,21 +66,21 @@
66
66
  "@types/js-yaml": "^4.0.9",
67
67
  "@types/mdast": "^4.0.4",
68
68
  "@types/mdx": "^2.0.13",
69
- "@types/node": "^25.8.0",
69
+ "@types/node": "^25.9.1",
70
70
  "@types/picomatch": "^4.0.3",
71
- "@types/react": "^19.2.14",
71
+ "@types/react": "^19.2.15",
72
72
  "mdast-util-directive": "^3.1.0",
73
73
  "next": "16.2.6",
74
74
  "react": "^19.2.6",
75
75
  "remark": "^15.0.1",
76
76
  "remark-directive": "^4.0.0",
77
77
  "remark-mdx": "^3.1.1",
78
- "rolldown": "^1.0.1",
78
+ "rolldown": "^1.0.2",
79
79
  "tsdown": "0.22.0",
80
- "vite": "^8.0.13",
81
- "webpack": "^5.106.2",
80
+ "vite": "^8.0.14",
81
+ "webpack": "^5.107.1",
82
+ "fumadocs-core": "16.9.1",
82
83
  "@fumadocs/vite": "0.0.2",
83
- "fumadocs-core": "16.8.12",
84
84
  "tsconfig": "0.0.0"
85
85
  },
86
86
  "peerDependencies": {