@depup/fumadocs-core 16.14.3-depup.0 → 16.14.4-depup.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.
- package/README.md +3 -9
- package/changes.json +3 -8
- package/dist/i18n/middleware.js +1 -1
- package/dist/{loader-5zwcKTZH.js → loader-cKlyDdAK.js} +10 -6
- package/dist/mdx-plugins/index.js +1 -1
- package/dist/mdx-plugins/rehype-code.core.js +1 -1
- package/dist/mdx-plugins/rehype-code.js +1 -1
- package/dist/mdx-plugins/remark-image.js +3 -8
- package/dist/mdx-plugins/stringifier.js +5 -3
- package/dist/negotiation/index.js +1 -1
- package/dist/{negotiation-BmZGHDR5.js → negotiation-DAsKgSvF.js} +6 -4
- package/dist/{rehype-code.core-DwDF3yaw.js → rehype-code.core-CWlREGfK.js} +1 -1
- package/dist/{remove-markdown-Do94q-my.js → remove-markdown-DfKNMl9w.js} +4 -2
- package/dist/search/client/mixedbread.js +1 -1
- package/dist/search/flexsearch.d.ts +1 -1
- package/dist/search/mixedbread.d.ts +1 -1
- package/dist/search/mixedbread.js +1 -1
- package/dist/search/server.d.ts +1 -1
- package/dist/{server-DYMsTHMa.d.ts → server-fnyWR-fq.d.ts} +1 -1
- package/dist/source/dynamic.js +1 -1
- package/dist/source/index.js +1 -1
- package/package.json +15 -21
- package/dist/dist-DrR2d46_.js +0 -808
- package/dist/fromFile-DQPra6_l.js +0 -845
package/README.md
CHANGED
|
@@ -13,16 +13,10 @@ npm install @depup/fumadocs-core
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [fumadocs-core](https://www.npmjs.com/package/fumadocs-core) @ 16.14.
|
|
17
|
-
| Processed | 2026-08-
|
|
16
|
+
| Original | [fumadocs-core](https://www.npmjs.com/package/fumadocs-core) @ 16.14.4 |
|
|
17
|
+
| Processed | 2026-08-13 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
|
-
| Deps updated |
|
|
20
|
-
|
|
21
|
-
## Dependency Changes
|
|
22
|
-
|
|
23
|
-
| Dependency | From | To |
|
|
24
|
-
|------------|------|-----|
|
|
25
|
-
| shiki | ^4.4.1 | ^4.4.2 |
|
|
19
|
+
| Deps updated | 0 |
|
|
26
20
|
|
|
27
21
|
---
|
|
28
22
|
|
package/changes.json
CHANGED
package/dist/i18n/middleware.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getNegotiator } from "../negotiation-
|
|
1
|
+
import { t as getNegotiator } from "../negotiation-DAsKgSvF.js";
|
|
2
2
|
import { NextResponse } from "next/server.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@formatjs+fast-memoize@3.1.7/node_modules/@formatjs/fast-memoize/index.js
|
|
4
4
|
function memoize(fn, options) {
|
|
@@ -332,10 +332,12 @@ function createPageTreeBuilder(input, options) {
|
|
|
332
332
|
}
|
|
333
333
|
if (existing.priority >= priority) return false;
|
|
334
334
|
const folder = pathToNode.get(existing.owner);
|
|
335
|
-
if (folder && folder.type === "folder")
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
if (folder && folder.type === "folder") {
|
|
336
|
+
if (folder.index === node) delete folder.index;
|
|
337
|
+
else {
|
|
338
|
+
const idx = folder.children.indexOf(node);
|
|
339
|
+
if (idx !== -1) folder.children.splice(idx, 1);
|
|
340
|
+
}
|
|
339
341
|
}
|
|
340
342
|
existing.owner = ownerPath;
|
|
341
343
|
existing.priority = priority;
|
|
@@ -504,8 +506,10 @@ function createPageTreeBuilder(input, options) {
|
|
|
504
506
|
const outputArray = [];
|
|
505
507
|
const excludedPaths = /* @__PURE__ */ new Set();
|
|
506
508
|
for (const item of metadata.pages) resolveFolderItem(folderPath, item, outputArray, excludedPaths);
|
|
507
|
-
if (indexPath)
|
|
508
|
-
|
|
509
|
+
if (indexPath) {
|
|
510
|
+
if (excludedPaths.has(indexPath)) delete node.index;
|
|
511
|
+
else excludedPaths.add(indexPath);
|
|
512
|
+
}
|
|
509
513
|
for (const item of outputArray) {
|
|
510
514
|
if (item !== rest && item !== restReversed) {
|
|
511
515
|
node.children.push(item);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { remarkHeading } from "./remark-heading.js";
|
|
2
2
|
import { generateCodeBlockTabs, parseCodeBlockAttributes } from "./codeblock-utils.js";
|
|
3
3
|
import { remarkGfm } from "./remark-gfm.js";
|
|
4
|
-
import { r as transformerTab } from "../rehype-code.core-
|
|
4
|
+
import { r as transformerTab } from "../rehype-code.core-CWlREGfK.js";
|
|
5
5
|
import { transformerIcon } from "./transformer-icon.js";
|
|
6
6
|
import { rehypeCode, rehypeCodeDefaultOptions } from "./rehype-code.js";
|
|
7
7
|
import { remarkImage } from "./remark-image.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-
|
|
1
|
+
import { n as rehypeCodeDefaultOptions, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-CWlREGfK.js";
|
|
2
2
|
import { transformerIcon } from "./transformer-icon.js";
|
|
3
3
|
export { createRehypeCode, rehypeCodeDefaultOptions, transformerIcon, transformerTab };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defaultShikiFactory, wasmShikiFactory } from "../highlight/shiki/full.js";
|
|
2
|
-
import { n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-
|
|
2
|
+
import { n as rehypeCodeDefaultOptions$1, r as transformerTab, t as createRehypeCode } from "../rehype-code.core-CWlREGfK.js";
|
|
3
3
|
import { transformerIcon } from "./transformer-icon.js";
|
|
4
4
|
//#region src/mdx-plugins/rehype-code.ts
|
|
5
5
|
const rehypeCodeDefaultOptions = {
|
|
@@ -157,16 +157,11 @@ function parseSrc(src, publicDir, dir) {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
async function getImageSize(src, onExternal) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return imageSizeFromFile(src.file);
|
|
163
|
-
}
|
|
160
|
+
const { probe } = await import("@fumari/image-size");
|
|
161
|
+
if (src.type === "file") return probe(src.file);
|
|
164
162
|
if (onExternal === false) return;
|
|
165
163
|
const { timeout } = typeof onExternal === "object" ? onExternal : {};
|
|
166
|
-
|
|
167
|
-
if (!res.ok) throw new Error(`[Remark Image] Failed to fetch ${src.url} (${res.status}): ${await res.text()}`);
|
|
168
|
-
const { imageSize } = await import("../dist-DrR2d46_.js");
|
|
169
|
-
return imageSize(new Uint8Array(await res.arrayBuffer()));
|
|
164
|
+
return probe(src.url, { timeout });
|
|
170
165
|
}
|
|
171
166
|
//#endregion
|
|
172
167
|
export { remarkImage };
|
|
@@ -25,9 +25,11 @@ function defaultStringifier(config = {}) {
|
|
|
25
25
|
if (v) return v;
|
|
26
26
|
}
|
|
27
27
|
const extraInfo = node.data?._stringify;
|
|
28
|
-
if (extraInfo)
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
if (extraInfo) {
|
|
29
|
+
if (extraInfo === "children-only") visibility = "children-only";
|
|
30
|
+
else if ("text" in extraInfo) return extraInfo.text;
|
|
31
|
+
else node = extraInfo.node;
|
|
32
|
+
}
|
|
31
33
|
if (visibility === "children-only") {
|
|
32
34
|
if (!("children" in node)) return "";
|
|
33
35
|
switch (node.type) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-
|
|
1
|
+
import { n as isMarkdownPreferred, r as rewritePath, t as getNegotiator } from "../negotiation-DAsKgSvF.js";
|
|
2
2
|
export { getNegotiator, isMarkdownPreferred, rewritePath };
|
|
@@ -499,10 +499,12 @@ var require_mediaType = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
499
499
|
if (spec.subtype.toLowerCase() == p.subtype.toLowerCase()) s |= 2;
|
|
500
500
|
else if (spec.subtype != "*") return null;
|
|
501
501
|
var keys = Object.keys(spec.params);
|
|
502
|
-
if (keys.length > 0)
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
502
|
+
if (keys.length > 0) {
|
|
503
|
+
if (keys.every(function(k) {
|
|
504
|
+
return spec.params[k] == "*" || (spec.params[k] || "").toLowerCase() == (p.params[k] || "").toLowerCase();
|
|
505
|
+
})) s |= 1;
|
|
506
|
+
else return null;
|
|
507
|
+
}
|
|
506
508
|
return {
|
|
507
509
|
i: index,
|
|
508
510
|
o: spec.i,
|
|
@@ -115,7 +115,7 @@ function transformerAddLanguage(lang) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
|
-
//#region ../../node_modules/.pnpm/@shikijs+transformers@4.4.
|
|
118
|
+
//#region ../../node_modules/.pnpm/@shikijs+transformers@4.4.3/node_modules/@shikijs/transformers/dist/index.mjs
|
|
119
119
|
const RE_SPLIT_COMMENT = /(\s+\/\/)/;
|
|
120
120
|
const RE_V1_END_COMMENT_PREFIX = /(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/;
|
|
121
121
|
const RE_V3_END_COMMENT_PREFIX = /(?:\/\/|#|;{1,2}|%{1,2}|--)(\s*)$/;
|
|
@@ -15,8 +15,10 @@ var require_remove_markdown = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
15
15
|
var output = md || "";
|
|
16
16
|
output = output.replace(/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/gm, "");
|
|
17
17
|
try {
|
|
18
|
-
if (options.stripListLeaders)
|
|
19
|
-
|
|
18
|
+
if (options.stripListLeaders) {
|
|
19
|
+
if (options.listUnicodeChar) output = output.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm, options.listUnicodeChar + " $1");
|
|
20
|
+
else output = output.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm, "$1");
|
|
21
|
+
}
|
|
20
22
|
if (options.gfm) output = output.replace(/\n={2,}/g, "\n").replace(/~{3}.*\n/g, "").replace(/~~/g, "").replace(/```(?:.*)\n([\s\S]*?)```/g, (_, code) => code.trim());
|
|
21
23
|
if (options.abbr) output = output.replace(/\*\[.*\]:.*\n/, "");
|
|
22
24
|
let htmlReplaceRegex = /<[^>]*>/g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "../../rolldown-runtime-DC62tzP2.js";
|
|
2
|
-
import { t as require_remove_markdown } from "../../remove-markdown-
|
|
2
|
+
import { t as require_remove_markdown } from "../../remove-markdown-DfKNMl9w.js";
|
|
3
3
|
import Slugger from "github-slugger";
|
|
4
4
|
//#region src/search/client/mixedbread.ts
|
|
5
5
|
var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Awaitable } from "../types-D89QoQR-.js";
|
|
2
2
|
import { n as I18nConfig } from "../index-DydiXvgS.js";
|
|
3
3
|
import "../index-BM36H-xw.js";
|
|
4
|
-
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-
|
|
4
|
+
import { m as SharedIndex, n as SearchAPI, t as QueryOptions } from "../server-fnyWR-fq.js";
|
|
5
5
|
import { x as LoaderOutput, y as LoaderConfig } from "../index-ByMgvmTr2.js";
|
|
6
6
|
import { DocumentData, DocumentOptions } from "flexsearch";
|
|
7
7
|
//#region src/search/server/build-doc.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as SortedResult } from "../index-BM36H-xw.js";
|
|
2
|
-
import { n as SearchAPI } from "../server-
|
|
2
|
+
import { n as SearchAPI } from "../server-fnyWR-fq.js";
|
|
3
3
|
import Mixedbread from "@mixedbread/sdk";
|
|
4
4
|
import { StoreSearchResponse } from "@mixedbread/sdk/resources/stores";
|
|
5
5
|
//#region src/search/mixedbread.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __toESM } from "../rolldown-runtime-DC62tzP2.js";
|
|
2
2
|
import { t as createEndpoint } from "../endpoint-MyoBU5IC.js";
|
|
3
|
-
import { t as require_remove_markdown } from "../remove-markdown-
|
|
3
|
+
import { t as require_remove_markdown } from "../remove-markdown-DfKNMl9w.js";
|
|
4
4
|
import Slugger from "github-slugger";
|
|
5
5
|
//#region src/search/mixedbread.ts
|
|
6
6
|
var import_remove_markdown = /* @__PURE__ */ __toESM(require_remove_markdown(), 1);
|
package/dist/search/server.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AdvancedOptions, c as SimpleOptions, d as createSearchAPI, f as initAdvancedSearch, i as AdvancedIndex, l as createFromSource, n as SearchAPI, o as ExportedData, p as initSimpleSearch, r as SearchServer, s as Index, t as QueryOptions, u as createI18nSearchAPI } from "../server-
|
|
1
|
+
import { a as AdvancedOptions, c as SimpleOptions, d as createSearchAPI, f as initAdvancedSearch, i as AdvancedIndex, l as createFromSource, n as SearchAPI, o as ExportedData, p as initSimpleSearch, r as SearchServer, s as Index, t as QueryOptions, u as createI18nSearchAPI } from "../server-fnyWR-fq.js";
|
|
2
2
|
export { AdvancedIndex, AdvancedOptions, ExportedData, Index, QueryOptions, SearchAPI, SearchServer, SimpleOptions, createFromSource, createI18nSearchAPI, createSearchAPI, initAdvancedSearch, initSimpleSearch };
|
|
@@ -49,7 +49,7 @@ interface SharedIndex {
|
|
|
49
49
|
}
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/search/zbsearch/create-server.d.ts
|
|
52
|
-
type CreateInput = Parameters<typeof create>[0]
|
|
52
|
+
type CreateInput = NonNullable<Parameters<typeof create>[0]>;
|
|
53
53
|
interface SharedOptions extends Pick<CreateInput, 'sort' | 'components' | 'plugins'> {
|
|
54
54
|
/**
|
|
55
55
|
* Tokenizer language.
|
package/dist/source/dynamic.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isStaticSource, n as loader, r as isDynamicSource } from "../loader-
|
|
1
|
+
import { i as isStaticSource, n as loader, r as isDynamicSource } from "../loader-cKlyDdAK.js";
|
|
2
2
|
import { cache } from "react";
|
|
3
3
|
//#region src/source/dynamic.ts
|
|
4
4
|
function dynamicLoader(input, options) {
|
package/dist/source/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as path_exports } from "../path-1H5VzYiT.js";
|
|
2
|
-
import { a as multiple, c as FileSystem, n as loader, o as source, s as update, t as createGetUrl } from "../loader-
|
|
2
|
+
import { a as multiple, c as FileSystem, n as loader, o as source, s as update, t as createGetUrl } from "../loader-cKlyDdAK.js";
|
|
3
3
|
import { getSlugs } from "./plugins/slugs.js";
|
|
4
4
|
import { llms } from "./llms.js";
|
|
5
5
|
export { FileSystem, path_exports as PathUtils, createGetUrl, getSlugs, llms, loader, multiple, source, update };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/fumadocs-core",
|
|
3
|
-
"version": "16.14.
|
|
3
|
+
"version": "16.14.4-depup.0",
|
|
4
4
|
"description": "The React.js library for building a documentation website (with updated dependencies)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fumadocs-core",
|
|
@@ -119,13 +119,14 @@
|
|
|
119
119
|
"remark-gfm": "^4.0.1",
|
|
120
120
|
"remark-rehype": "^11.1.2",
|
|
121
121
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
122
|
-
"shiki": "^4.4.
|
|
122
|
+
"shiki": "^4.4.3",
|
|
123
123
|
"tinyglobby": "^0.2.17",
|
|
124
124
|
"unified": "^11.0.5",
|
|
125
125
|
"unist-util-visit": "^5.1.0",
|
|
126
126
|
"vfile": "^6.0.3",
|
|
127
127
|
"yaml": "^2.9.0",
|
|
128
|
-
"zbsearch": "^
|
|
128
|
+
"zbsearch": "^4.0.0",
|
|
129
|
+
"@fumari/image-size": "^0.1.0"
|
|
129
130
|
},
|
|
130
131
|
"devDependencies": {
|
|
131
132
|
"@formatjs/intl-localematcher": "^0.8.13",
|
|
@@ -133,19 +134,18 @@
|
|
|
133
134
|
"@mixedbread/sdk": "0.77.0",
|
|
134
135
|
"@orama/core": "^1.2.19",
|
|
135
136
|
"@oramacloud/client": "^2.1.4",
|
|
136
|
-
"@shikijs/transformers": "^4.4.
|
|
137
|
-
"@tanstack/react-router": "1.170.
|
|
137
|
+
"@shikijs/transformers": "^4.4.3",
|
|
138
|
+
"@tanstack/react-router": "1.170.27",
|
|
138
139
|
"@types/estree-jsx": "^1.0.5",
|
|
139
140
|
"@types/hast": "^3.0.5",
|
|
140
141
|
"@types/mdast": "^4.0.4",
|
|
141
|
-
"@types/negotiator": "^0.6.
|
|
142
|
-
"@types/node": "26.
|
|
142
|
+
"@types/negotiator": "^0.6.5",
|
|
143
|
+
"@types/node": "26.2.0",
|
|
143
144
|
"@types/react": "^19.2.18",
|
|
144
145
|
"@types/react-dom": "^19.2.4",
|
|
145
146
|
"algoliasearch": "5.56.0",
|
|
146
147
|
"flexsearch": "^0.8.212",
|
|
147
|
-
"
|
|
148
|
-
"lucide-react": "^1.28.0",
|
|
148
|
+
"lucide-react": "^1.31.0",
|
|
149
149
|
"negotiator": "^1.0.0",
|
|
150
150
|
"next": "16.3.0",
|
|
151
151
|
"path-to-regexp": "^8.4.2",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"remove-markdown": "^0.6.4",
|
|
156
156
|
"tsdown": "0.22.14",
|
|
157
157
|
"typescript": "^6.0.3",
|
|
158
|
-
"waku": "1.0.0-beta.
|
|
158
|
+
"waku": "1.0.0-beta.9",
|
|
159
159
|
"zod": "4.4.3",
|
|
160
160
|
"tsconfig": "0.0.0"
|
|
161
161
|
},
|
|
@@ -238,8 +238,7 @@
|
|
|
238
238
|
"inlinedDependencies": {
|
|
239
239
|
"@formatjs/fast-memoize": "3.1.7",
|
|
240
240
|
"@formatjs/intl-localematcher": "0.8.13",
|
|
241
|
-
"@shikijs/transformers": "4.4.
|
|
242
|
-
"image-size": "2.0.2",
|
|
241
|
+
"@shikijs/transformers": "4.4.3",
|
|
243
242
|
"negotiator": "1.0.0",
|
|
244
243
|
"path-to-regexp": "8.4.2",
|
|
245
244
|
"remove-markdown": "0.6.4"
|
|
@@ -252,16 +251,11 @@
|
|
|
252
251
|
"types:check": "tsc --noEmit"
|
|
253
252
|
},
|
|
254
253
|
"depup": {
|
|
255
|
-
"changes": {
|
|
256
|
-
|
|
257
|
-
"from": "^4.4.1",
|
|
258
|
-
"to": "^4.4.2"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"depsUpdated": 1,
|
|
254
|
+
"changes": {},
|
|
255
|
+
"depsUpdated": 0,
|
|
262
256
|
"originalPackage": "fumadocs-core",
|
|
263
|
-
"originalVersion": "16.14.
|
|
264
|
-
"processedAt": "2026-08-
|
|
257
|
+
"originalVersion": "16.14.4",
|
|
258
|
+
"processedAt": "2026-08-13T16:20:33.156Z",
|
|
265
259
|
"smokeTest": "failed"
|
|
266
260
|
}
|
|
267
261
|
}
|