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

Remove the language module dependency on TypeScript #368

Merged
merged 3 commits into from
Dec 17, 2023

Conversation

remcohaszing
Copy link
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

TypeScript isn’t needed to parse MDX into virtual files. The removal of this dependency, means that the language module could later be used in places where TypeScript is unavailable.

TypeScript isn’t needed to parse MDX into virtual files. The removal of
this dependency, means that the language module could later be used in
places where TypeScript is unavailable.
@remcohaszing remcohaszing added 🗄 area/interface This affects the public interface 💬 type/discussion This is a request for comments 🤞 phase/open Post is being triaged manually labels Dec 14, 2023
Copy link

changeset-bot bot commented Dec 14, 2023

🦋 Changeset detected

Latest commit: 82b5125

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@mdx-js/language-service Minor
@mdx-js/language-server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@remcohaszing
Copy link
Member Author

@johnsoncodehk I would love your opinion on this

@remcohaszing remcohaszing marked this pull request as ready for review December 14, 2023 13:42
@remcohaszing remcohaszing merged commit 98d71d6 into main Dec 17, 2023
8 checks passed
@remcohaszing remcohaszing deleted the remove-typescript-dependency branch December 17, 2023 19:18
Copy link
Contributor

Hi! This was closed. Team: If this was merged, please describe when this is likely to be released. Otherwise, please add one of the no/* labels.

@github-actions github-actions bot mentioned this pull request Dec 17, 2023
@johnsoncodehk
Copy link
Contributor

Sorry for the late reply, this looks great! To further improve type safety, you can also choose to make similar modifications:

+ import type * as ts from 'typescript'

        typescript: {
-           scriptKind: 2
+           scriptKind: 2 satisfies typeof ts.ScriptKind.JSX
        },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface 🤞 phase/open Post is being triaged manually 💬 type/discussion This is a request for comments
Development

Successfully merging this pull request may close these issues.

None yet

2 participants