npm yaml 2.0.0-9

latest releases: 2.6.0, 2.5.1, 2.5.0...
2 years ago

This version of yaml has been published to npm using the next dist-tag, so install it with:

npm install --save-exact yaml@next

Hopefully the breaking change for singleQuote: false won't cause anyone issues. Otherwise, small improvements only.

BREAKING CHANGES

Allow disabling single & block quotes completely (#326)

The options for representing scalar values are refactored, such that blockQuote (new) and singleQuote (expanded) allow setting a preference as well as preventing said styles from being used at all. This changes how singleQuote: false is handled. To retain the previous behaviour, use singleQuote: null or leave the option unset.

New Features

  • Add keepSoureToken parse option, adding srcToken values to Nodes (#309)
  • Allow for custom schema id, provided that customTags is defined (#325)
  • Expose tags & types required by custom composers (#325)

Bugfixes

  • cst: Specify resolveAsScalar return type
  • lexer: Reset flow-key flag on comma in flow collection (#316)
  • lexer: Allow unindented comment in flow collection
  • Support seq-of-maps merge key values (#321)
  • compose: Indent level of empty block scalars with keep chomping (#313)
  • Honor singleQuote option more widely
  • Get rid of extra whitespace around empty map values
  • Drop ...expansion from public TS interfaces (#334)

Don't miss a new yaml release

NewReleases is sending notifications on new releases.