gray-matter
gray-matter copied to clipboard
Update to js-yaml v4
trafficstars
Updating to js-yaml 4.1.0 will dramatically reduce bundle size (~70%) and only requires replacing two function names.
See #136 for more info
I published https://www.npmjs.com/package/@gr2m/gray-matter for the time being.
You also need to update test/parse-custom.js and examples/sections.js
This fixes a bug with numbers as well: currently, 024 would be treated as octal and result in 20, but according to the YAML spec this is not correct: 0o is the correct prefix. This was fixed in js-yaml v4.
@robertmassaioli any chance this could be merged?