rehypejs / rehype-minify

plugins to minify HTML
https://unifiedjs.com
MIT License
90 stars 16 forks source link

Upgrade @types/hast to 3 #48

Closed crutchcorn closed 1 year ago

crutchcorn commented 1 year ago

Initial checklist

Problem

When using these with other newer packages that use Hast 3, we get errors due to typing mismatches.

Solution

Upgrade @types/hast to 3. However, I'm not sure if this also requires us to migrate runtime packages as well.

Alternatives

Not alternative, but a volunteer message from me that I'd be happy to work on upgrading deps wherever makes sense in this library. We depends on hast-util-to-string so anything we can do to help; let us know.

wooorm commented 1 year ago

Hey! Everything’s being released. But it takes time to go through 700+ packages. This is also a types-only change, so you can ts-ignore/ts-expect-error and continue. You can follow me or occasionally check https://github.com/wooorm to see where it’s currently at.

wooorm commented 1 year ago

Done https://github.com/rehypejs/rehype-minify/releases/tag/7.0.0

crutchcorn commented 1 year ago

You're a legend @wooorm, thanks a million for all of your work