jonschlinkert / gray-matter

Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert
https://github.com/jonschlinkert
MIT License
3.97k stars 138 forks source link

code moved to modern ESM format #150

Open yankeeinlondon opened 2 years ago

yankeeinlondon commented 2 years ago

I've updated the code as little as possible but moved to ES Module format for the core source code while using the popular tsup tooling to ensure the downstream users can choose between ESM and CJS. I also upgraded to all the latests versions and ensured that all tests still pass.

yankeeinlondon commented 2 years ago

Oh i have also updated README and CHANGELOG to reflect what would need to be a new major release (aka, v5.0.0)

yankeeinlondon commented 2 years ago

so that I may use this new build I have allowed the dist folder to be included in git so that I can link to it in the short term. in general most people remove this if they have a regular npm cadence but I can see both being useful here.