fumadocs-mdx 14.0.3 → 14.0.4
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/bun/index.js +7 -7
- package/dist/{chunk-Q5OSGLJL.js → chunk-CGGDM5F3.js} +1 -1
- package/dist/{chunk-GB4W3YCZ.js → chunk-K4KWUM3J.js} +2 -1
- package/dist/{chunk-OLL7FM7W.js → chunk-NKIL543T.js} +1 -1
- package/dist/next/index.cjs +2 -1
- package/dist/next/index.js +4 -4
- package/dist/node/loader.js +3 -3
- package/dist/plugins/index-file.js +2 -2
- package/dist/plugins/last-modified.d.ts +1 -1
- package/dist/plugins/last-modified.js +4 -3
- package/dist/runtime/dynamic.js +3 -3
- package/dist/vite/index.js +8 -8
- package/dist/webpack/mdx.js +4 -4
- package/dist/webpack/meta.js +3 -3
- package/package.json +3 -3
- package/dist/{chunk-DKA3EWZH.js → chunk-ED3ON275.js} +3 -3
package/dist/bun/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildConfig
|
|
3
|
+
} from "../chunk-6RPNS75C.js";
|
|
4
|
+
import "../chunk-S7KOJHHO.js";
|
|
1
5
|
import {
|
|
2
6
|
createMdxLoader
|
|
3
7
|
} from "../chunk-USWQVJWR.js";
|
|
@@ -7,18 +11,14 @@ import {
|
|
|
7
11
|
import {
|
|
8
12
|
createIntegratedConfigLoader,
|
|
9
13
|
toBun
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import {
|
|
12
|
-
buildConfig
|
|
13
|
-
} from "../chunk-6RPNS75C.js";
|
|
14
|
+
} from "../chunk-NKIL543T.js";
|
|
14
15
|
import "../chunk-4JSFLXXT.js";
|
|
15
16
|
import {
|
|
16
17
|
_Defaults,
|
|
17
18
|
createCore
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-S7KOJHHO.js";
|
|
20
|
-
import "../chunk-VWJKRQZR.js";
|
|
19
|
+
} from "../chunk-K4KWUM3J.js";
|
|
21
20
|
import "../chunk-WBIHDYMN.js";
|
|
21
|
+
import "../chunk-VWJKRQZR.js";
|
|
22
22
|
|
|
23
23
|
// src/bun/index.ts
|
|
24
24
|
import { pathToFileURL } from "url";
|
|
@@ -13,7 +13,8 @@ ${issues.map((issue) => ` ${issue.path}: ${issue.message}`).join("\n")}`
|
|
|
13
13
|
this.issues = issues;
|
|
14
14
|
}
|
|
15
15
|
async toStringFormatted() {
|
|
16
|
-
const
|
|
16
|
+
const picocolorsModule = await import("picocolors");
|
|
17
|
+
const picocolors = picocolorsModule.default ?? picocolorsModule;
|
|
17
18
|
return [
|
|
18
19
|
picocolors.bold(`[MDX] ${this.title}:`),
|
|
19
20
|
...this.issues.map(
|
package/dist/next/index.cjs
CHANGED
|
@@ -267,7 +267,8 @@ ${issues.map((issue) => ` ${issue.path}: ${issue.message}`).join("\n")}`
|
|
|
267
267
|
this.issues = issues;
|
|
268
268
|
}
|
|
269
269
|
async toStringFormatted() {
|
|
270
|
-
const
|
|
270
|
+
const picocolorsModule = await import("picocolors");
|
|
271
|
+
const picocolors = picocolorsModule.default ?? picocolorsModule;
|
|
271
272
|
return [
|
|
272
273
|
picocolors.bold(`[MDX] ${this.title}:`),
|
|
273
274
|
...this.issues.map(
|
package/dist/next/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
loadConfig
|
|
3
3
|
} from "../chunk-LPX7ZO66.js";
|
|
4
4
|
import "../chunk-6RPNS75C.js";
|
|
5
|
+
import "../chunk-S7KOJHHO.js";
|
|
5
6
|
import {
|
|
6
7
|
mdxLoaderGlob,
|
|
7
8
|
metaLoaderGlob
|
|
@@ -10,13 +11,12 @@ import {
|
|
|
10
11
|
ValidationError,
|
|
11
12
|
_Defaults,
|
|
12
13
|
createCore
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-S7KOJHHO.js";
|
|
14
|
+
} from "../chunk-K4KWUM3J.js";
|
|
15
15
|
import {
|
|
16
16
|
indexFile
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-VWJKRQZR.js";
|
|
17
|
+
} from "../chunk-ED3ON275.js";
|
|
19
18
|
import "../chunk-WBIHDYMN.js";
|
|
19
|
+
import "../chunk-VWJKRQZR.js";
|
|
20
20
|
|
|
21
21
|
// src/next/index.ts
|
|
22
22
|
import * as path from "path";
|
package/dist/node/loader.js
CHANGED
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
createStandaloneConfigLoader,
|
|
9
9
|
toNode
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-NKIL543T.js";
|
|
11
11
|
import "../chunk-4JSFLXXT.js";
|
|
12
12
|
import {
|
|
13
13
|
_Defaults,
|
|
14
14
|
createCore
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-VWJKRQZR.js";
|
|
15
|
+
} from "../chunk-K4KWUM3J.js";
|
|
17
16
|
import "../chunk-WBIHDYMN.js";
|
|
17
|
+
import "../chunk-VWJKRQZR.js";
|
|
18
18
|
|
|
19
19
|
// src/node/loader.ts
|
|
20
20
|
var core = createCore({
|
|
@@ -13,7 +13,7 @@ import 'fumadocs-core/toc';
|
|
|
13
13
|
import 'mdast';
|
|
14
14
|
import 'mdx/types';
|
|
15
15
|
|
|
16
|
-
type VersionControlFn = (filePath: string) => Promise<Date | undefined>;
|
|
16
|
+
type VersionControlFn = (filePath: string) => Promise<Date | null | undefined>;
|
|
17
17
|
interface LastModifiedPluginOptions {
|
|
18
18
|
/**
|
|
19
19
|
* Version control to obtain the last modified time.
|
|
@@ -49,7 +49,7 @@ function lastModified(options = {}) {
|
|
|
49
49
|
async vfile(file) {
|
|
50
50
|
if (!filter(this.collection.name)) return;
|
|
51
51
|
const timestamp = await fn(this.filePath);
|
|
52
|
-
if (timestamp
|
|
52
|
+
if (timestamp) {
|
|
53
53
|
file.data["mdx-export"] ??= [];
|
|
54
54
|
file.data["mdx-export"].push({
|
|
55
55
|
name: "lastModified",
|
|
@@ -71,10 +71,11 @@ async function getGitTimestamp(file) {
|
|
|
71
71
|
throwOnError: true
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
const date = new Date(out.stdout);
|
|
75
|
+
return isNaN(date.getTime()) ? null : date;
|
|
75
76
|
})();
|
|
76
77
|
cache.set(file, timePromise);
|
|
77
|
-
return timePromise.catch(() =>
|
|
78
|
+
return timePromise.catch(() => null);
|
|
78
79
|
}
|
|
79
80
|
export {
|
|
80
81
|
lastModified as default
|
package/dist/runtime/dynamic.js
CHANGED
|
@@ -8,14 +8,14 @@ import "../chunk-FBLMK4RS.js";
|
|
|
8
8
|
import {
|
|
9
9
|
buildConfig
|
|
10
10
|
} from "../chunk-6RPNS75C.js";
|
|
11
|
+
import "../chunk-S7KOJHHO.js";
|
|
11
12
|
import {
|
|
12
13
|
createCore
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-K4KWUM3J.js";
|
|
15
|
+
import "../chunk-WBIHDYMN.js";
|
|
15
16
|
import {
|
|
16
17
|
fumaMatter
|
|
17
18
|
} from "../chunk-VWJKRQZR.js";
|
|
18
|
-
import "../chunk-WBIHDYMN.js";
|
|
19
19
|
|
|
20
20
|
// src/runtime/dynamic.ts
|
|
21
21
|
import { executeMdx } from "@fumadocs/mdx-remote/client";
|
package/dist/vite/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildConfig
|
|
3
|
+
} from "../chunk-6RPNS75C.js";
|
|
4
|
+
import "../chunk-S7KOJHHO.js";
|
|
1
5
|
import {
|
|
2
6
|
createMdxLoader
|
|
3
7
|
} from "../chunk-USWQVJWR.js";
|
|
@@ -7,22 +11,18 @@ import {
|
|
|
7
11
|
import {
|
|
8
12
|
createIntegratedConfigLoader,
|
|
9
13
|
toVite
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import {
|
|
12
|
-
buildConfig
|
|
13
|
-
} from "../chunk-6RPNS75C.js";
|
|
14
|
+
} from "../chunk-NKIL543T.js";
|
|
14
15
|
import "../chunk-4JSFLXXT.js";
|
|
15
16
|
import {
|
|
16
17
|
ValidationError,
|
|
17
18
|
_Defaults,
|
|
18
19
|
createCore
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-S7KOJHHO.js";
|
|
20
|
+
} from "../chunk-K4KWUM3J.js";
|
|
21
21
|
import {
|
|
22
22
|
indexFile
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-VWJKRQZR.js";
|
|
23
|
+
} from "../chunk-ED3ON275.js";
|
|
25
24
|
import "../chunk-WBIHDYMN.js";
|
|
25
|
+
import "../chunk-VWJKRQZR.js";
|
|
26
26
|
|
|
27
27
|
// src/vite/index.ts
|
|
28
28
|
import { mergeConfig } from "vite";
|
package/dist/webpack/mdx.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CGGDM5F3.js";
|
|
4
4
|
import {
|
|
5
5
|
createMdxLoader
|
|
6
6
|
} from "../chunk-USWQVJWR.js";
|
|
7
7
|
import {
|
|
8
8
|
createStandaloneConfigLoader,
|
|
9
9
|
toWebpack
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-NKIL543T.js";
|
|
11
11
|
import "../chunk-4JSFLXXT.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-VWJKRQZR.js";
|
|
12
|
+
import "../chunk-K4KWUM3J.js";
|
|
14
13
|
import "../chunk-WBIHDYMN.js";
|
|
14
|
+
import "../chunk-VWJKRQZR.js";
|
|
15
15
|
|
|
16
16
|
// src/webpack/mdx.ts
|
|
17
17
|
var instance;
|
package/dist/webpack/meta.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CGGDM5F3.js";
|
|
4
4
|
import {
|
|
5
5
|
createMetaLoader
|
|
6
6
|
} from "../chunk-TYJDYTKH.js";
|
|
7
7
|
import {
|
|
8
8
|
createStandaloneConfigLoader,
|
|
9
9
|
toWebpack
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-NKIL543T.js";
|
|
11
11
|
import "../chunk-4JSFLXXT.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-K4KWUM3J.js";
|
|
13
13
|
import "../chunk-WBIHDYMN.js";
|
|
14
14
|
|
|
15
15
|
// src/webpack/meta.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@mdx-js/mdx": "^3.1.1",
|
|
61
61
|
"@standard-schema/spec": "^1.0.0",
|
|
62
|
-
"chokidar": "^
|
|
62
|
+
"chokidar": "^5.0.0",
|
|
63
63
|
"esbuild": "^0.27.0",
|
|
64
64
|
"estree-util-value-to-estree": "^3.5.0",
|
|
65
65
|
"js-yaml": "^4.1.1",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"webpack": "^5.102.1",
|
|
98
98
|
"@fumadocs/mdx-remote": "1.4.3",
|
|
99
99
|
"eslint-config-custom": "0.0.0",
|
|
100
|
-
"fumadocs-core": "16.0
|
|
100
|
+
"fumadocs-core": "16.2.0",
|
|
101
101
|
"tsconfig": "0.0.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|