Open bluwy opened 2 months ago
Use fs api and js-yaml directly to load yaml file instead of load-yaml-file package. The difference switching to this is:
js-yaml
load-yaml-file
strip-bom
safeLoad
load
NOTE: I also noticed that we could use read-yaml-file from this monorepo, but I feel like using fs + js-yaml directly is simpler.
read-yaml-file
Use fs api and
js-yaml
directly to load yaml file instead ofload-yaml-file
package. The difference switching to this is:strip-bom
is no longer called. In my tests, having the BOM didn't really affect yaml parsing and it worked fine as before.js-yaml
v3 to v4. The migration guide is here. The main difference is that thesafeLoad
API is renamed toload
NOTE: I also noticed that we could use
read-yaml-file
from this monorepo, but I feel like using fs +js-yaml
directly is simpler.