npm yaml 1.0.0-rc.8

latest releases: 2.4.2, 2.4.1, 2.4.0...
5 years ago

More eyes reveal more bugs. Many of which have been fixed, thanks in particular to @ikatyang:

  • schema/parseMap: Don't drop comments on empty value nodes (#19)
  • cst/CollectionItem: Don't reset offset at end of document (#19)
  • fix(document): add missing cstNode (#26)
  • fix(document): add missing type (#27)
  • fix(merge): no error when key is null (#29)
  • fix(cst): correct document.valueRange.end (#30)
  • Add setOrigRanges() to YAML.parseCST() output (#31)
  • fix(flowSeq): explicit key with empty value (#33)
  • fix: empty blockValue as empty string (#35)
  • fix: checkKeyLength false positive (#37)
  • cst/Collection: Set atLineStart during lineStart reset (#38)

In addition to the above bugfixes, the opinions of the string stringifier have been updated (2ab3eab):

  • Quote "x" as '"x"'
  • Prefer quoted over block for single line values
  • Prefer block style for multiline
  • Prefer literal over folded block style for short lines

Finally, dev dependencies have been updated, including an update to Babel 7 rc.2 that drops @babel/preset-stage-3 in favor of the specific required plugins.

Don't miss a new yaml release

NewReleases is sending notifications on new releases.