fumadocs-core 16.8.2 → 16.8.3

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.
@@ -585,6 +585,7 @@ function createPageIndexer({ url }) {
585
585
  page = pages.get(`${lang}.${slugs.map(decodeURI).join("/")}`);
586
586
  if (page) return page;
587
587
  },
588
+ /** do not filter by language if `lang` is not specified */
588
589
  getPages(lang) {
589
590
  const out = [];
590
591
  for (const [key, value] of pages.entries()) if (lang === void 0 || key.startsWith(`${lang}.`)) out.push(value);
@@ -16,6 +16,9 @@ const processor = remark();
16
16
  function createContentHighlighter(query) {
17
17
  const regex = typeof query === "string" ? buildRegexFromQuery(query) : query;
18
18
  return {
19
+ /**
20
+ * @deprecated use `highlightMarkdown()` instead.
21
+ */
19
22
  highlight(content) {
20
23
  if (!regex) return [{
21
24
  type: "text",
@@ -41,6 +44,9 @@ function createContentHighlighter(query) {
41
44
  });
42
45
  return out;
43
46
  },
47
+ /**
48
+ * @param content - Markdown, it assumes the content is already sanitized & safe, no escape is performed.
49
+ */
44
50
  highlightMarkdown(content) {
45
51
  if (!regex) return content;
46
52
  const tree = processor.parse(content);
@@ -1,4 +1,4 @@
1
- import { i as isStaticSource, n as loader, r as isDynamicSource } from "../loader-B6mFh9dX.js";
1
+ import { i as isStaticSource, n as loader, r as isDynamicSource } from "../loader-Bgbc6kDz.js";
2
2
  import { cache } from "react";
3
3
  //#region src/source/dynamic.ts
4
4
  function dynamicLoader(input, options) {
@@ -1,5 +1,5 @@
1
1
  import { a as path_exports } from "../path-F_GnlBmT.js";
2
- import { a as multiple, c as FileSystem, i as isStaticSource, n as loader, o as source, r as isDynamicSource, s as update, t as createGetUrl } from "../loader-B6mFh9dX.js";
2
+ import { a as multiple, c as FileSystem, i as isStaticSource, n as loader, o as source, r as isDynamicSource, s as update, t as createGetUrl } from "../loader-Bgbc6kDz.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, isDynamicSource, isStaticSource, llms, loader, multiple, source, update };
@@ -53,7 +53,15 @@ function llms(loader, config = {}) {
53
53
  return out.join("\n");
54
54
  }
55
55
  return {
56
+ /**
57
+ * generate `llms.txt` content in Markdown format.
58
+ *
59
+ * use `indexNode(node)` instead for more control (e.g. add extra sections to output).
60
+ */
56
61
  index,
62
+ /**
63
+ * generate `llms.txt` content for a single page tree node.
64
+ */
57
65
  indexNode(node, lang) {
58
66
  return formatNode(node, 0, { lang });
59
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.8.2",
3
+ "version": "16.8.3",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",
@@ -115,7 +115,7 @@
115
115
  "devDependencies": {
116
116
  "@formatjs/intl-localematcher": "^0.8.3",
117
117
  "@mdx-js/mdx": "^3.1.1",
118
- "@mixedbread/sdk": "^0.61.0",
118
+ "@mixedbread/sdk": "^0.62.0",
119
119
  "@orama/core": "^1.2.19",
120
120
  "@oramacloud/client": "^2.1.4",
121
121
  "@shikijs/transformers": "^4.0.2",
@@ -128,21 +128,21 @@
128
128
  "@types/node": "25.6.0",
129
129
  "@types/react": "^19.2.14",
130
130
  "@types/react-dom": "^19.2.3",
131
- "algoliasearch": "5.50.2",
131
+ "algoliasearch": "5.51.0",
132
132
  "flexsearch": "^0.8.212",
133
133
  "image-size": "^2.0.2",
134
- "lucide-react": "^1.8.0",
134
+ "lucide-react": "^1.9.0",
135
135
  "negotiator": "^1.0.0",
136
136
  "next": "16.2.4",
137
137
  "npm-to-yarn": "^3.0.1",
138
138
  "path-to-regexp": "^8.4.2",
139
- "react-router": "^7.14.1",
139
+ "react-router": "^7.14.2",
140
140
  "remark-directive": "^4.0.0",
141
141
  "remark-mdx": "^3.1.1",
142
142
  "remove-markdown": "^0.6.3",
143
- "tsdown": "0.21.9",
143
+ "tsdown": "0.21.10",
144
144
  "typescript": "^6.0.3",
145
- "waku": "1.0.0-alpha.7",
145
+ "waku": "1.0.0-alpha.8",
146
146
  "zod": "^4.3.6",
147
147
  "tsconfig": "0.0.0"
148
148
  },