Skip to content
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

Upgrade to TypeScript v5.2 #6476

Merged
merged 17 commits into from
Oct 26, 2023
Merged

Upgrade to TypeScript v5.2 #6476

merged 17 commits into from
Oct 26, 2023

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Oct 19, 2023

Fixes #4342

✅ Prerequisites:

Changes proposed in this pull request:

Reviewers should focus on:

Notes

See TypeScript release notes:

Copy link
Contributor Author

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some documentation changes as a result of this major TypeDoc upgrade. Some are long-awaited fixes 🎉 while others are issues that need addressing ⚠️

🎉 interface extends clauses with type aliases and mapped types are mostly fixed

Before:

image

After:

image

⚠️ @default values have extra markup which needs to be parsed out

Before:

image

After:

image

⚠️ some jsdoc comments have poor markdown rendering

Before:

image

After:

image

packages/docs-data/compile-docs-data.mjs Outdated Show resolved Hide resolved
@adidahiya
Copy link
Contributor Author

update for latest Documentalist APIs

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya
Copy link
Contributor Author

no need to use commonjs in tests

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Comment on lines +79 to +82
`../{${LIBRARY_AND_DOCS_PACKAGES.join(",")}}/src/**/*.md`,
`../{${LIBRARY_PACKAGES.join(",")}}/src/**/*.scss`,
`../{${LIBRARY_PACKAGES.join(",")}}/src/index.ts`,
`../{${LIBRARY_PACKAGES}}/package.json`,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filtering to only the relevant packages saves a lot of time (about 70 seconds, or 40% on my machine)

@adidahiya
Copy link
Contributor Author

restore commonjs for test-commons

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya marked this pull request as ready for review October 25, 2023 14:15
@adidahiya adidahiya self-assigned this Oct 25, 2023
@adidahiya
Copy link
Contributor Author

The Documentalist changes have slowed down compile-docs-data quite a bit, I think I will need to adjust the CI workflow to better parallelize work now.

Before:

image

Now:

image

@adidahiya
Copy link
Contributor Author

[docs-theme] workaround multiline jsdoc bug

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Copy link
Contributor Author

@adidahiya adidahiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like my attempt to parallelize the CI job didn't work. docs-data needs all the libraries to be compiled so that it can create TS programs from all the output definition files. will need another approach.

*
* @param {any} value
*/
function interpolateClassNamespace(value) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this transformation got moved to the "marked" renderer hooks lifecycle, which I think is a better place for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, this turned out to cause a regression in rendering the CSS API examples because we need to transform the kss data in addition to the markdown data. will fix

@adidahiya
Copy link
Contributor Author

fix transform function return value

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya merged commit 3f0ba78 into develop Oct 26, 2023
12 checks passed
@adidahiya adidahiya deleted the ad/upgrade-typescript branch October 26, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HACKHACK: strict null checks issues
1 participant