While considering solutions for #46, I ran across https://npmx.dev/package/js-yaml that suggests using https://npmx.dev/package/yaml instead because it's smaller and has no dependencies.
And since we now use remark and friends, it uses toml and yaml packages so it's probably worth replacing both.
I tried this. With
js-yamlthe entry point is 3.67MB. Withyamlit's 3.82MB. That said, the community saysjs-yamlappears unmaintained: https://e18e.dev/docs/replacements/js-yaml#replacements-for-js-yamlThat doesn't seem to be the case, though. According to npmx,
js-yamlwas last published 2026-05-31.yamlwas last published 2026-05-11.But the community also said
js-yamlhas spec issues. Seems good enough for our case. I'm going to go ahead and publish the branch - even make a PR - but will close this issue. @stevedylan.dev, if you want to take it or not, it's all good. Figured it's at least worth having as a PR for posterity if nothing else. There were a couple small changes to call sites, but tests were unchanged.