Skip to content

Releases: eemeli/yaml

v2.3.0-4

18 Apr 09:22
Compare
Choose a tag to compare
v2.3.0-4 Pre-release
Pre-release

New Features

  • Set explicit tag during createNode() for non-default tags (#464)
  • Export StringifyContext type from 'yaml/util' (#464)

v2.3.0-3

14 Apr 09:02
Compare
Choose a tag to compare
v2.3.0-3 Pre-release
Pre-release

Bugfixes

  • Improve missing-argument error on node .toJS() method (#458)
  • Add types exports for TypeScript (#463)
  • Drop incompatible/unnecessary typesVersions from package.json (#463)

v2.3.0-1

04 Apr 08:30
Compare
Choose a tag to compare
v2.3.0-1 Pre-release
Pre-release

New Features

  • Add a toJS(doc, options?) method to nodes (#451)
  • Add export of createNode() & createPair() to 'yaml/util' (#457)

Bugfixes

  • First-line folding for block scalars (#422)

v2.3.0-0

11 Mar 13:17
Compare
Choose a tag to compare
v2.3.0-0 Pre-release
Pre-release

This release is made available first as a prerelease to gauge the effects of the TypeScript changes, which add a second optional generic type argument Strict to Document instances. While this change appears to improve the TS usage experience at least with basic patterns, it's possible that it doesn't take into account some usage that would be negatively affected by the change.

Comments are requested, both for and against the change.

New Features

  • Improve TS developer experience (#441)

Bugfixes

  • Use correct argument order when stringifying flow collection comments (#443)

v2.2.1

30 Dec 09:59
Compare
Choose a tag to compare
  • Quote top-level map keys containing document markers (#431)

v2.2.0

21 Dec 12:36
Compare
Choose a tag to compare

New Features

  • Add flowCollectionPadding toString option (#420)
  • Use indicator line for props on block collection values of mappings (#425)

Bugfixes

  • Minor relaxation of types for custom tags (#429)

v2.1.3

05 Oct 07:33
Compare
Choose a tag to compare
  • Set correct node-end position for block collections with comments (#413)

v2.1.2

02 Oct 16:52
Compare
Choose a tag to compare
  • Set correct node-end position for empty values with comments (#413)

v2.1.1

29 May 22:33
Compare
Choose a tag to compare

No changes in executable code, only TS types.

  • Revert "Use TS named tuple for range (#385)" -- see #393
  • Fix types for compatibility with TS 4.2 and 4.7
  • Add CI workflow for testing published type in a range of TS versions

v2.1.0

14 May 09:47
Compare
Choose a tag to compare

Fixes for TypeScript users. Arguably this could've been a patch release as well.

  • Improve/specify/fix TS types for Document & collection access methods (#383)
  • Use TS named tuple for range (#385)
  • Rename internal Document option as _directives to resolve type conflict with ToString options (#389)
  • Update tsc target to ES2020 to match Node.js support
  • Update dev dependencies, including jest 28