fumadocs-typescript 4.0.2 → 4.0.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.
@@ -58,6 +58,7 @@ interface DocEntry {
58
58
  type: string;
59
59
  tags: Record<string, string>;
60
60
  required: boolean;
61
+ deprecated: boolean;
61
62
  }
62
63
  interface EntryContext {
63
64
  program: Project;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { G as GenerateOptions, a as GeneratedDoc, D as DocEntry, b as Generator, c as GenerateTypeTableOptions } from './base-ze7ajmJT.js';
2
- export { d as createGenerator, e as generateDocumentation, g as getProject } from './base-ze7ajmJT.js';
1
+ import { G as GenerateOptions, a as GeneratedDoc, D as DocEntry, b as Generator, c as GenerateTypeTableOptions } from './base-Xy2dq1Yw.js';
2
+ export { d as createGenerator, e as generateDocumentation, g as getProject } from './base-Xy2dq1Yw.js';
3
3
  import fg from 'fast-glob';
4
4
  import { Nodes } from 'hast';
5
5
  import { Root } from 'mdast';
package/dist/index.js CHANGED
@@ -141,7 +141,8 @@ function getDocEntry(prop, context) {
141
141
  ),
142
142
  tags,
143
143
  type: typeName,
144
- required: !prop.isOptional()
144
+ required: !prop.isOptional(),
145
+ deprecated: prop.getJsDocTags().some((tag) => tag.getName() === "deprecated")
145
146
  };
146
147
  transform == null ? void 0 : transform.call(context, entry, subType, prop);
147
148
  return entry;
@@ -1,6 +1,6 @@
1
1
  import * as runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { B as BaseTypeTableProps, b as Generator, c as GenerateTypeTableOptions } from '../base-ze7ajmJT.js';
3
+ import { B as BaseTypeTableProps, b as Generator, c as GenerateTypeTableOptions } from '../base-Xy2dq1Yw.js';
4
4
  import 'ts-morph';
5
5
 
6
6
  type AutoTypeTableProps = BaseTypeTableProps;
package/dist/ui/index.js CHANGED
@@ -34,7 +34,8 @@ function AutoTypeTable(_a) {
34
34
  type: entry.type,
35
35
  description: yield renderMarkdown(entry.description),
36
36
  default: entry.tags.default || entry.tags.defaultValue,
37
- required: entry.required
37
+ required: entry.required,
38
+ deprecated: entry.deprecated
38
39
  }
39
40
  ];
40
41
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-typescript",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Typescript Integration for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -28,13 +28,13 @@
28
28
  "dist/*"
29
29
  ],
30
30
  "dependencies": {
31
- "estree-util-value-to-estree": "^3.3.2",
31
+ "estree-util-value-to-estree": "^3.3.3",
32
32
  "fast-glob": "^3.3.3",
33
33
  "hast-util-to-estree": "^3.1.3",
34
34
  "hast-util-to-jsx-runtime": "^2.3.6",
35
35
  "remark": "^15.0.1",
36
36
  "remark-rehype": "^11.1.2",
37
- "shiki": "^3.2.1",
37
+ "shiki": "^3.3.0",
38
38
  "ts-morph": "^25.0.1",
39
39
  "unist-util-visit": "^5.0.0"
40
40
  },
@@ -43,14 +43,14 @@
43
43
  "@types/estree": "^1.0.7",
44
44
  "@types/hast": "^3.0.4",
45
45
  "@types/mdast": "^4.0.3",
46
- "@types/node": "22.14.0",
47
- "@types/react": "19.1.0",
48
- "@types/react-dom": "19.1.1",
49
- "typescript": "^5.8.2",
46
+ "@types/node": "22.14.1",
47
+ "@types/react": "19.1.2",
48
+ "@types/react-dom": "19.1.2",
49
+ "typescript": "^5.8.3",
50
50
  "unified": "^11.0.5",
51
51
  "eslint-config-custom": "0.0.0",
52
- "fumadocs-core": "15.2.2",
53
- "fumadocs-ui": "15.2.2",
52
+ "fumadocs-core": "15.2.10",
53
+ "fumadocs-ui": "15.2.10",
54
54
  "tsconfig": "0.0.0"
55
55
  },
56
56
  "peerDependencies": {