fumadocs-mdx 11.0.0 → 11.1.0

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
  #!/usr/bin/env node
2
2
 
3
- import { postInstall } from './dist/next/index.mjs';
3
+ import { postInstall } from './dist/next/index.js';
4
4
 
5
5
  void postInstall(process.argv[2]);
@@ -1,5 +1,5 @@
1
- import { F as FileInfo, G as GlobalConfig, M as MarkdownProps, B as BaseCollectionEntry } from '../types-D11VoRzy.mjs';
2
- export { C as CollectionEntry, D as DefaultMDXOptions, b as GetOutput, I as InferSchema, a as InferSchemaType, g as getDefaultMDXOptions } from '../types-D11VoRzy.mjs';
1
+ import { F as FileInfo, G as GlobalConfig, M as MarkdownProps, B as BaseCollectionEntry } from '../types-D11VoRzy.js';
2
+ export { C as CollectionEntry, D as DefaultMDXOptions, b as GetOutput, I as InferSchema, a as InferSchemaType, g as getDefaultMDXOptions } from '../types-D11VoRzy.js';
3
3
  import { z, ZodTypeAny } from 'zod';
4
4
  import { ProcessorOptions } from '@mdx-js/mdx';
5
5
  import 'mdx/types';
@@ -5,7 +5,7 @@ import {
5
5
  frontmatterSchema,
6
6
  getDefaultMDXOptions,
7
7
  metaSchema
8
- } from "../chunk-FXIX4XBC.mjs";
8
+ } from "../chunk-YA4EPE5U.js";
9
9
  export {
10
10
  defineCollections,
11
11
  defineConfig,
@@ -1,6 +1,6 @@
1
1
  import { PageData, MetaData, Source } from 'fumadocs-core/source';
2
- import { F as FileInfo, B as BaseCollectionEntry } from './types-D11VoRzy.mjs';
3
- import { MetaFile } from './loader-mdx.mjs';
2
+ import { F as FileInfo, B as BaseCollectionEntry } from './types-D11VoRzy.js';
3
+ import { MetaFile } from './loader-mdx.js';
4
4
  import 'zod';
5
5
  import 'mdx/types';
6
6
  import 'fumadocs-core/mdx-plugins';
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getDefaultMDXOptions
3
- } from "./chunk-FXIX4XBC.mjs";
3
+ } from "./chunk-YA4EPE5U.js";
4
4
  import {
5
5
  getConfigHash,
6
6
  getManifestEntryPath,
7
7
  loadConfigCached
8
- } from "./chunk-KD74ZWYJ.mjs";
8
+ } from "./chunk-QYUB4AKH.js";
9
9
 
10
10
  // src/loader-mdx.ts
11
11
  import path2 from "node:path";
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  loadConfigCached,
7
7
  writeManifest
8
- } from "../chunk-KD74ZWYJ.mjs";
8
+ } from "../chunk-QYUB4AKH.js";
9
9
 
10
10
  // src/next/create.ts
11
11
  import path3 from "node:path";
@@ -145,7 +145,7 @@ async function start(dev, configPath, outDir2) {
145
145
  fs.writeFileSync(typeOut, generateTypes(configPath, config, typeOut));
146
146
  console.log("[MDX] initialized map file");
147
147
  if (dev) {
148
- const { watcher } = await import("../watcher-DL2NRJWG.mjs");
148
+ const { watcher } = await import("../watcher-7ALL6XOY.js");
149
149
  const instance = watcher(configPath, config);
150
150
  instance.on("ready", () => {
151
151
  if (!instance._readyEmitted) console.log("[MDX] started dev server");
@@ -1,8 +1,7 @@
1
- /* eslint-env node -- Node.js env */
2
-
3
1
  module.exports = function loader(code) {
4
2
  const callback = this.async();
5
- import('./dist/loader-mdx.mjs').then((mod) =>
3
+
4
+ import('./dist/loader-mdx.js').then((mod) =>
6
5
  mod.default.call(this, code, callback),
7
6
  );
8
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "11.0.0",
3
+ "version": "11.1.0",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -10,28 +10,29 @@
10
10
  "repository": "github:fuma-nama/fumadocs",
11
11
  "license": "MIT",
12
12
  "author": "Fuma Nama",
13
+ "type": "module",
13
14
  "exports": {
14
- "./loader-mdx": "./loader-mdx.js",
15
+ "./loader-mdx": "./loader-mdx.cjs",
15
16
  "./config": {
16
- "import": "./dist/config/index.mjs",
17
- "types": "./dist/config/index.d.mts"
17
+ "import": "./dist/config/index.js",
18
+ "types": "./dist/config/index.d.ts"
18
19
  },
19
20
  "./next": {
20
- "import": "./dist/next/index.mjs",
21
- "types": "./dist/next/index.d.mts"
21
+ "import": "./dist/next/index.js",
22
+ "types": "./dist/next/index.d.ts"
22
23
  },
23
24
  ".": {
24
- "import": "./dist/index.mjs",
25
- "types": "./dist/index.mts"
25
+ "import": "./dist/index.js",
26
+ "types": "./dist/index.d.ts"
26
27
  }
27
28
  },
28
- "main": "./dist/index.mjs",
29
- "types": "./dist/index.mts",
30
- "bin": "./bin.mjs",
29
+ "main": "./dist/index.js",
30
+ "types": "./dist/index.d.ts",
31
+ "bin": "./bin.js",
31
32
  "files": [
32
33
  "dist/*",
33
- "loader-mdx.js",
34
- "bin.mjs"
34
+ "loader-mdx.cjs",
35
+ "bin.js"
35
36
  ],
36
37
  "dependencies": {
37
38
  "@mdx-js/mdx": "^3.1.0",
@@ -50,13 +51,13 @@
50
51
  "@types/mdx": "^2.0.13",
51
52
  "@types/micromatch": "^4.0.9",
52
53
  "@types/react": "^18.3.11",
53
- "next": "15.0.0",
54
+ "next": "^15.0.1",
54
55
  "unified": "^11.0.5",
55
56
  "vfile": "^6.0.3",
56
57
  "webpack": "^5.95.0",
57
- "eslint-config-custom": "0.0.0",
58
- "fumadocs-core": "14.0.1",
59
- "tsconfig": "0.0.0"
58
+ "fumadocs-core": "14.0.2",
59
+ "tsconfig": "0.0.0",
60
+ "eslint-config-custom": "0.0.0"
60
61
  },
61
62
  "peerDependencies": {
62
63
  "fumadocs-core": "^14.0.0",
File without changes
File without changes
File without changes
File without changes
File without changes