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

Update to Unified 11 #27

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

lishaduck
Copy link

@lishaduck lishaduck commented Jul 11, 2024

Hello! I decided to take a shot at this and just skip kevin940726/to-gatsby-remark-plugin#1 for now.
This updates:

Devtools:

  • Vitest
    • Node (Vitest requires Node 18)
  • Typescript

Unified:

  • unist-util-visit
  • mdast → @types/mdast
  • remark
  • vfile

These changes make this plugin support Unified 11.

I also updated the code to use async/await and node:fs/promises, as TS was complaining.
Vitest 1.0 also changed the snapshot format, so a test had a minor update there.

It made TS hard to wrangle with, and, anyway, should probably have been a separate function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant