You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Buffer is not available in the browser, when compiling...
This is an excellent point.
Looking at the typings, it seems that Buffer is used, unnecessarily in one place and for an input type in another. I think we can remove it from the typings and provide and example in the Readme to show how to use buffers instead of strings.
However, to make such a change would be a breaking change, not to the APIs but to the types.
This makes gray-matter difficult to use in Deno. It seems to work (without proper types) from https://jspm.dev, but fails from https://cdn.pika.dev (but types work).
Since Buffer is not available in the browser, when compiling without
node
types, this error is throw.The text was updated successfully, but these errors were encountered: