Skip to content

v2.0.0-3

Compare
Choose a tag to compare
@eemeli eemeli released this 31 Jan 21:31

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

npm install --save-exact yaml@next

This is the last release before the CST parser rewrite (#203), and some of the changes here are in preparation for that.

The preceding prerelease (2.0.0-2) had a visit() bug that was identified immediately after release, and is fixed here.

BREAKING CHANGES

Drop 'yaml/parse-cst' endpoint (#223)

Users will need to update their code:

-import parseCST from 'yaml/parse-cst'
+import YAML from 'yaml'
+const parseCST = YAML.parseCST

Update build configs & minimum supported versions (#224)

  • Drop IE 11 support
  • Switch minimum Node.js target from 6.5 to 10.0
  • Refactor browser exports as pure ES modules rather than CommonJS (#208)
  • Add "default" fields to package.json "exports"
  • Add preserveModules: true & treeshake config to Rollup configs

New Features

  • Refactor logging control, adding logLevel option (#215)
  • Add visit(node, visitor) to 'yaml' (#225)

Bugfixes

  • Remember source string for boolean scalars (#199)
  • Add missing extension to Document.js import path (#210)
  • Do not break escaped chars with escaped newlines (cdk8s-team/cdk8s#494)
  • Always stringify non-Node object keys using explicit notation (#218)
  • Add missing type for CST Node.rangeAsLinePos (#222)
  • Specify node type of Document.Parsed.contents (#221)

Internal Stuff

  • Add issue templates (#219)
  • Update dev dependencies
  • Include Babel plugin for nullish coalescing operator
  • Update playground to Webpack 5