Skip to content

Update to Unified 11 - #27

Open
lishaduck wants to merge 3 commits into
kevin940726:masterfrom
lishaduck:update
Open

lishaduck wants to merge 3 commits into
kevin940726:masterfrom
lishaduck:update

Conversation

@lishaduck

@lishaduck lishaduck commented Jul 11, 2024 •

Copy link
Copy Markdown

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