Skip to content

Releases: eemeli/yaml

v2.4.2

28 Apr 09:34
Compare
Choose a tag to compare
  • Restrict YAML 1.1 boolean strings to their explicit capitalization (#530)
  • Add sponsorship by Scipress (#536)

v2.4.1

06 Mar 11:54
Compare
Choose a tag to compare
  • cst: Do not drop trailing newline after line comment in block-map if followed by unindented block-seq value (#525)
  • Stringify flow collection comments in parent (#528)
  • Do not skip folding lines after the first in indented block scalars (#529)

v2.4.0

25 Feb 15:36
Compare
Choose a tag to compare
  • Add a command-line tool (#523)
  • Use the lineWidth option for line breaking in flow collections (#522)

v2.3.4

03 Nov 01:43
Compare
Choose a tag to compare
  • Do not throw for carriage return in tag shorthand (#501)

v2.3.3

14 Oct 08:37
Compare
Choose a tag to compare
  • Do not throw error on malformed URI escape in tag (#498)

v2.3.2

28 Aug 15:02
Compare
Choose a tag to compare
  • Fix docs typo (#489)
  • Do not require quotes for implicit keys with flow indicators (#494)
  • Update Prettier to v3 & update ESLint config

v2.3.1

26 May 10:40
Compare
Choose a tag to compare
  • Drop npm from package.json "engines" config (#476)

v2.3.0

23 May 11:36
Compare
Choose a tag to compare

This release corresponds with the release of yaml-types v0.2.0, an expanding library of custom tags or types for use with yaml.

This release contains no changes from v2.3.0-5, and the notes below include all changes from the v2.3.0-x prereleases.

Custom Tag Improvements

  • Add export of createNode() & createPair() to 'yaml/util' (#457)
  • Add static from() methods to simplify tag development, and otherwise make extending custom collections easier (#467)

TypeScript Improvements

  • Add a second optional generic type argument Strict to Document instances. (#441)
  • Add types exports for TypeScript (#463)
  • Export StringifyContext type from 'yaml/util' (#464)

Other New Features

  • Add a toJS(doc, options?) method to nodes (#451, #458)
  • Set explicit tag during createNode() for non-default tags (#464)

Bugfixes

  • Use correct argument order when stringifying flow collection comments (#443)
  • Improve first-line folding for block scalars (#422)

v2.3.0-5

06 May 17:42
Compare
Choose a tag to compare
v2.3.0-5 Pre-release
Pre-release
  • Make extending custom collections easier (#467)
  • Fix corner case failure in error pretty-printer (CVE-2023-2251)

v2.2.2

24 Apr 13:05
Compare
Choose a tag to compare

This patch release includes a fix for an error that could be thrown in parseDocument for degenerate input. Otherwise, it's a patch release uplifting a few fixes from the ongoing v2.3 work to v2.2:

  • Corner case failure in error pretty-printer (CVE-2023-2251)
  • Use correct argument order when stringifying flow collection comments (#443)
  • First-line folding for block scalars (#422)