unjs / confbox

Compact and high quality YAML, TOML, JSONC and JSON5 parsers
Other
220 stars 1 forks source link

switch from js-yaml to yaml #33

Open pi0 opened 1 week ago

pi0 commented 1 week ago

Context: Pointed out by @remcohaszing in x npm:yaml is much more spec-compliant than npm:js-yaml

The main reason for choosing js-yaml was that it is ~10x faster and it is important for recurring reads (especially for cases like markdown front matter) but if spec compliant is better I think switch would make sense.

remcohaszing commented 1 week ago

You can see some reasoning in https://github.com/orgs/remarkjs/discussions/1006#discussioncomment-2955255. Also js-yaml hasn’t been updated for a while. It appears to be abandoned.