gray-matter icon indicating copy to clipboard operation
gray-matter copied to clipboard

Update to js-yaml v4

Open pelleknaap opened this issue 3 years ago • 7 comments
trafficstars

Updating to js-yaml 4.1.0 will dramatically reduce bundle size (~70%) and only requires replacing two function names.

pelleknaap avatar Feb 06 '22 20:02 pelleknaap

See #136 for more info

pelleknaap avatar Feb 06 '22 20:02 pelleknaap

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

gr2m avatar Feb 18 '22 06:02 gr2m

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?

cloudhead avatar Mar 11 '22 16:03 cloudhead