Skip to content

Commit b7d53b8

Browse files
committed
Add TypeDoc 0.25 support
1 parent c8cb8f8 commit b7d53b8

File tree

4 files changed

+41
-31
lines changed

4 files changed

+41
-31
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 2.0.2 (2023-08-25)
2+
3+
- Added support for TypeDoc 0.25.x
4+
15
### 2.0.1 (2023-07-29)
26

37
- Fixed memory leak when running in watch mode / packages mode, TypeStrong/typedoc#2339

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typedoc-plugin-missing-exports",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Include non-exported types in TypeDoc documentation",
55
"main": "./index.js",
66
"exports": "./index.js",
@@ -9,8 +9,8 @@
99
"devDependencies": {
1010
"@types/node": "16",
1111
"prettier": "3.0.0",
12-
"typedoc": "^0.24.8",
13-
"typescript": "^5.1.6",
12+
"typedoc": "^0.25.0",
13+
"typescript": "^5.2.2",
1414
"vitest": "^0.33.0"
1515
},
1616
"repository": {
@@ -24,7 +24,7 @@
2424
"typedoc-plugin"
2525
],
2626
"peerDependencies": {
27-
"typedoc": "0.24.x"
27+
"typedoc": "0.24.x || 0.25.x"
2828
},
2929
"scripts": {
3030
"test": "vitest run test/packages.test.ts",

test/packages.test.ts

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,29 @@ import {
66
LogLevel,
77
TSConfigReader,
88
} from "typedoc";
9-
import { test, expect } from "vitest";
9+
import { test, expect, beforeAll } from "vitest";
1010
import { load } from "..";
1111

12-
const app = new Application();
13-
app.options.addReader(new TSConfigReader());
14-
app.bootstrap({
15-
tsconfig: join(__dirname, "packages", "tsconfig.json"),
16-
excludeExternals: true,
17-
excludeInternal: true,
18-
logLevel: LogLevel.Warn,
12+
let app: Application;
13+
let program: ts.Program;
14+
15+
beforeAll(async () => {
16+
app = await Application.bootstrap(
17+
{
18+
tsconfig: join(__dirname, "packages", "tsconfig.json"),
19+
excludeExternals: true,
20+
excludeInternal: true,
21+
logLevel: LogLevel.Warn,
22+
},
23+
[new TSConfigReader()],
24+
);
25+
load(app);
26+
27+
program = ts.createProgram(
28+
app.options.getFileNames(),
29+
app.options.getCompilerOptions(),
30+
);
1931
});
20-
load(app);
21-
22-
const program = ts.createProgram(
23-
app.options.getFileNames(),
24-
app.options.getCompilerOptions(),
25-
);
2632

2733
test("No missing exports", () => {
2834
const entry: DocumentationEntryPoint = {

yarn.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,10 @@ marked@^4.3.0:
374374
resolved "https://registry.yarnpkg.com/marked/-/marked-4.3.0.tgz#796362821b019f734054582038b116481b456cf3"
375375
integrity sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==
376376

377-
minimatch@^9.0.0:
378-
version "9.0.0"
379-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.0.tgz#bfc8e88a1c40ffd40c172ddac3decb8451503b56"
380-
integrity sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==
377+
minimatch@^9.0.3:
378+
version "9.0.3"
379+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825"
380+
integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==
381381
dependencies:
382382
brace-expansion "^2.0.1"
383383

@@ -567,20 +567,20 @@ type-detect@^4.0.0, type-detect@^4.0.5:
567567
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
568568
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
569569

570-
typedoc@^0.24.8:
571-
version "0.24.8"
572-
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.24.8.tgz#cce9f47ba6a8d52389f5e583716a2b3b4335b63e"
573-
integrity sha512-ahJ6Cpcvxwaxfu4KtjA8qZNqS43wYt6JL27wYiIgl1vd38WW/KWX11YuAeZhuz9v+ttrutSsgK+XO1CjL1kA3w==
570+
typedoc@^0.25.0:
571+
version "0.25.0"
572+
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.25.0.tgz#287f83d01c1c2186766884f4e04d698820d68115"
573+
integrity sha512-FvCYWhO1n5jACE0C32qg6b3dSfQ8f2VzExnnRboowHtqUD6ARzM2r8YJeZFYXhcm2hI4C2oCRDgNPk/yaQUN9g==
574574
dependencies:
575575
lunr "^2.3.9"
576576
marked "^4.3.0"
577-
minimatch "^9.0.0"
577+
minimatch "^9.0.3"
578578
shiki "^0.14.1"
579579

580-
typescript@^5.1.6:
581-
version "5.1.6"
582-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
583-
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==
580+
typescript@^5.2.2:
581+
version "5.2.2"
582+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
583+
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==
584584

585585
ufo@^1.1.1:
586586
version "1.1.1"

0 commit comments

Comments
 (0)