fumadocs-typescript 5.1.1 → 5.1.2

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as GeneratorOptions, c as Cache, d as createProject, i as Generator, l as BaseTypeTableProps, n as GenerateOptions, o as RawTag, r as GeneratedDoc, s as createGenerator, t as DocEntry, u as GenerateTypeTableOptions } from "./base-Dvhn4vZx.js";
1
+ import { a as GeneratorOptions, c as Cache, d as createProject, i as Generator, l as BaseTypeTableProps, n as GenerateOptions, o as RawTag, r as GeneratedDoc, s as createGenerator, t as DocEntry, u as GenerateTypeTableOptions } from "./base-BVIaJVDA.js";
2
2
  import { ResolvedShikiConfig } from "fumadocs-core/highlight/config";
3
3
  import { Nodes } from "hast";
4
4
  import { Root } from "mdast";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as markdownRenderer, t as parseTags } from "./parse-tags-B09hzgIX.js";
1
+ import { n as markdownRenderer, t as parseTags } from "./parse-tags-D9KSwbHI.js";
2
2
  import * as ts$1 from "ts-morph";
3
3
  import { Project, ts } from "ts-morph";
4
4
  import * as fs$1 from "node:fs/promises";
@@ -70,11 +70,11 @@ function getSimpleForm(type, checker, noUndefined = false, location) {
70
70
  return type.getText(location, ts$1.TypeFormatFlags.UseAliasDefinedOutsideCurrentScope);
71
71
  }
72
72
  function dedupe(arr) {
73
- const dedupe$1 = /* @__PURE__ */ new Set();
73
+ const dedupe = /* @__PURE__ */ new Set();
74
74
  const out = [];
75
- for (const item of arr) if (!dedupe$1.has(item)) {
75
+ for (const item of arr) if (!dedupe.has(item)) {
76
76
  out.push(item);
77
- dedupe$1.add(item);
77
+ dedupe.add(item);
78
78
  }
79
79
  return out;
80
80
  }
@@ -90,7 +90,7 @@ function createGenerator(config) {
90
90
  return instance;
91
91
  }
92
92
  return {
93
- async generateDocumentation(file, name, options$1) {
93
+ async generateDocumentation(file, name, options) {
94
94
  const content = file.content ?? (await fs.readFile(path.resolve(file.path))).toString();
95
95
  const cacheKey = `${file.path}:${name}:${content}`;
96
96
  if (cache) {
@@ -102,13 +102,13 @@ function createGenerator(config) {
102
102
  for (const [k, d] of sourceFile.getExportedDeclarations()) {
103
103
  if (name && name !== k) continue;
104
104
  if (d.length > 1) console.warn(`export ${k} should not have more than one type declaration.`);
105
- out.push(generate(getProject(), k, d[0], options$1));
105
+ out.push(generate(getProject(), k, d[0], options));
106
106
  }
107
107
  cache?.write(cacheKey, out);
108
108
  return out;
109
109
  },
110
- generateTypeTable(props, options$1) {
111
- return getTypeTableOutput(this, props, options$1);
110
+ generateTypeTable(props, options) {
111
+ return getTypeTableOutput(this, props, options);
112
112
  }
113
113
  };
114
114
  }
@@ -1,4 +1,4 @@
1
- import { i as Generator, l as BaseTypeTableProps, u as GenerateTypeTableOptions } from "../base-Dvhn4vZx.js";
1
+ import { i as Generator, l as BaseTypeTableProps, u as GenerateTypeTableOptions } from "../base-BVIaJVDA.js";
2
2
  import * as runtime from "react/jsx-runtime";
3
3
  import "server-only";
4
4
  import { ResolvedShikiConfig } from "fumadocs-core/highlight/config";
package/dist/ui/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as markdownRenderer, t as parseTags } from "../parse-tags-B09hzgIX.js";
1
+ import { n as markdownRenderer, t as parseTags } from "../parse-tags-D9KSwbHI.js";
2
2
  import { TypeTable } from "fumadocs-ui/components/type-table";
3
3
  import { toJsxRuntime } from "hast-util-to-jsx-runtime";
4
4
  import * as runtime from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-typescript",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Typescript Integration for Fumadocs",
5
5
  "keywords": [
6
6
  "Docs",
@@ -46,17 +46,20 @@
46
46
  "@types/estree": "^1.0.8",
47
47
  "@types/hast": "^3.0.4",
48
48
  "@types/mdast": "^4.0.4",
49
- "@types/node": "25.1.0",
50
- "@types/react": "^19.2.10",
49
+ "@types/node": "25.2.1",
50
+ "@types/react": "^19.2.13",
51
51
  "@types/react-dom": "^19.2.3",
52
- "tsdown": "^0.19.0",
52
+ "tsdown": "^0.20.3",
53
53
  "typescript": "^5.9.3",
54
54
  "eslint-config-custom": "0.0.0",
55
- "fumadocs-core": "16.5.0",
56
- "fumadocs-ui": "16.5.0",
55
+ "fumadocs-core": "16.5.2",
56
+ "fumadocs-ui": "16.5.2",
57
57
  "tsconfig": "0.0.0"
58
58
  },
59
59
  "peerDependencies": {
60
+ "@types/estree": "*",
61
+ "@types/hast": "*",
62
+ "@types/mdast": "*",
60
63
  "@types/react": "*",
61
64
  "fumadocs-core": "^16.5.0",
62
65
  "fumadocs-ui": "^16.5.0",
@@ -64,6 +67,15 @@
64
67
  "typescript": "*"
65
68
  },
66
69
  "peerDependenciesMeta": {
70
+ "@types/estree": {
71
+ "optional": true
72
+ },
73
+ "@types/hast": {
74
+ "optional": true
75
+ },
76
+ "@types/mdast": {
77
+ "optional": true
78
+ },
67
79
  "fumadocs-ui": {
68
80
  "optional": true
69
81
  },
File without changes