-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
break: upgrade to typescript 5.2, typedoc 0.25 #156
Conversation
"no-invalid-this": false, | ||
"no-shadowed-variable": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these lint rules are not compatible with TypeScript v5.x since they use deprecated APIs 🤷🏽 I'll migrate to eslint in a separate PR
This comment was marked as outdated.
This comment was marked as outdated.
"sourceUrl": "https://github.com/palantir/documentalist/blob/develop/packages/compiler/src/__tests__/__fixtures__/classes.ts#L53", | ||
}, | ||
"Food": Object { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-exported symbols are no longer documented. I think that's OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this was actually sort of a regression in #144, so removing Food
here is a good thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, we can get this back if we add https://www.npmjs.com/package/typedoc-plugin-missing-exports. so we will have options after this upgrade.
packages/compiler/src/__tests__/__snapshots__/typescript.test.ts.snap
Outdated
Show resolved
Hide resolved
"documentation": Object { | ||
"contents": Array [ | ||
"<p>Exported function.</p> | ||
"name": "MyFunc", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these functions are still documented correctly, but their order got moved around in the snapshot
packages/compiler/src/__tests__/__snapshots__/typescript.test.ts.snap
Outdated
Show resolved
Hide resolved
"metadata": Object {}, | ||
}, | ||
"indexSignature": { | ||
"documentation": undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this index signature jsdoc got dropped - not sure why 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is a bug in typedoc, filed this issue: TypeStrong/typedoc#2414
But I don't think we need to block on this; this is an uncommonly used feature.
packages/compiler/src/__tests__/__snapshots__/typescript.test.ts.snap
Outdated
Show resolved
Hide resolved
packages/compiler/src/__tests__/__snapshots__/typescript.test.ts.snap
Outdated
Show resolved
Hide resolved
Build preview link for commit "Merge remote-tracking branch 'origin/develop' into ad/upgrade-typescript": documentation This is an automated comment from the deploy-preview CircleCI job. |
Build preview link for commit "remove missing exports plugin": documentation This is an automated comment from the deploy-preview CircleCI job. |
@@ -46,6 +47,10 @@ const argv = yargs | |||
desc: "use KssPlugin for .(css|less|scss) files", | |||
type: "boolean", | |||
}) | |||
.option("out", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding this option allows us to log things to the console and still use the CLI to output a JSON file (previously, we were just using stdout in the docs package of this repo)
Build preview link for commit "fix lint again": documentation This is an automated comment from the deploy-preview CircleCI job. |
Build preview link for commit "Handle @deprecated tag better": documentation This is an automated comment from the deploy-preview CircleCI job. |
Build preview link for commit "Fix interface property signatures": documentation This is an automated comment from the deploy-preview CircleCI job. |
Build preview link for commit "fix lint": documentation This is an automated comment from the deploy-preview CircleCI job. |
Build preview link for commit "update more snapshots": documentation This is an automated comment from the deploy-preview CircleCI job. |
Build preview link for commit "remove extraneous type definitions": documentation This is an automated comment from the deploy-preview CircleCI job. |
Build preview link for commit "address minor review comments": documentation This is an automated comment from the deploy-preview CircleCI job. |
Build preview link for commit "don't capitalize TypeScript in public API": documentation This is an automated comment from the deploy-preview CircleCI job. |
This change will enable us to upgrade Blueprint to TypeScript v5.2 in palantir/blueprint#6476
✅ Prerequisites:
Changes proposed:
Object
,Array
prefixes on literals are no longer there)Add typedoc-plugin-missing-exports plugin to bring back some functionality that existed before typedoc v0.20edit: I will consider doing this in a separate PRReferences