Skip to content

If hast is deprecated, why types are there? #105

Discussion options

You must be logged in to vote

There is a distinction between hast the implementation, which now is known as rehype https://github.com/rehypejs/rehype
And hast the standard for AST nodes https://github.com/syntax-tree/hast

The implementation, formerly hosted at https://www.npmjs.com/package/hast is deprecated, only https://www.npmjs.com/package/rehype should be used.
https://www.npmjs.com/package/@types/hast is a types only package, which represents the standard https://github.com/syntax-tree/hast in TypeScript notation, and is leveraged by all hast-util-* and rehype-* packages as part of their typings.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@felixsanz
Comment options

Answer selected by felixsanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants