Skip to content

Releases: eemeli/yaml

v1.9.2

20 Apr 09:29
Compare
Choose a tag to compare
  • ts: Fix Node.toJSON() type (#154)

v1.9.1

18 Apr 12:03
Compare
Choose a tag to compare
  • Add onAnchor callback arg to doc.toJSON()
  • Use a Map for anchors in doc.toJSON()
  • Update dependencies

v1.9.0

17 Apr 16:46
Compare
Choose a tag to compare

New Features

  • Add custom ES module exports for browsers (#145)
  • Drop __esModule markers from CJS transpilation (#145)
  • Support BigInt values (#146)
  • Add YAML.scalarOptions (#146)
  • Add indent option: number of spaces (default: 2) (#147)
  • Add indentSeq option: if false, consider - as indentation (default: true) (#147)
  • Add TypeScript typings, based on @types/yaml by @ikatyang, with contributions from @ColinBradley and @shirk3y (#153)

Bugfixes

  • Only use named exports internally (#145)
  • Clean up & document warning silencing, also supporting process.env (Fixes #148)
  • Fix typo in flow collection parsing (Fixes #149)
  • Accept that multiple blank lines generate multiple nodes (Closes #150)
  • Use cross-env to enable building on Windows (#152 by @shirk3y)
  • Specify Document.cstNode type
  • Add Pair.Type enum
  • Export YAMLError from 'yaml/util'

v1.8.3

21 Mar 00:53
Compare
Choose a tag to compare
  • Add "browser" mappings for types.mjs & util.mjs (#142)
  • Fix parsing of floats like .8 and 00.4 in the core schema (#144)
  • Fix !!binary resolution on IE 11
  • Add Jest workaround to file deprecation tests

v1.8.2

11 Mar 05:54
Compare
Choose a tag to compare
  • Add a "./": "./" export target
  • Add fallback export targets for Node 13.0-13.6

v1.8.0

07 Mar 19:57
Compare
Choose a tag to compare

New Features

  • Add ES module exports + set type in package.json (Fixes #138)
  • Add custom identifiers for core tags
  • Add sortMapEntries option (#44)
  • Use ES modules in browser build (supported by all modern bundlers and other packagers)

Bugfixes

  • Create missing intermediate collections in addIn & setIn (Fixes #131)
  • Account for initial indentation when stringifying values (Fixes #133)
  • Use a Map for prevObjects in createNode (#137)
  • YAML.createNode sets tag in the result, if explicitly given
  • Drop Node 6 tests due to incompatibility with Jest 25 (transpilation remains as Node 6)
  • cst: Minor refactoring to improve legibility, add some comments
  • cst: Drop Node.atCollectionItem as unused since 93a8a44
  • cst: Drop Directive.endOfDirective as unused since 307df17
  • Clean up YAML 1.1 & JSON boolean tag objects
  • Add tests to improve code coverage
  • Update dependencies

v1.7.2

15 Oct 11:25
Compare
Choose a tag to compare
  • During schema.createNode, accept Nodes as input (#128)
  • Update dependencies

v1.7.1

07 Oct 12:41
Compare
Choose a tag to compare
  • Empty collection items only grab inline comments (#125, #126)
  • Set CST Node#context as non-enumerable, to simplify logging

v1.7.0

25 Sep 13:21
Compare
Choose a tag to compare

New Features

  • Add optional id, customTags arguments to Document#setSchema()
  • Keep explicit keys with block scalar values as such
  • Add simpleKeys option (#122)

Improved Errors & Warnings

  • Add more context to pretty error messages
  • Improve error for missing flow collection terminator char
  • Use offset when prettifying flow collection character errors
  • Add warning when stringifying map/seq-valued keys for JS Object
  • Use process.emitWarning rather than console.warn in YAML.parse if possible

Bugfixes

  • Fix aliased anchors on null-value nodes (6KGN)
  • Fix stringification of timestamp-like strings in a YAML 1.1 context (fixes #119)
  • Consider input ending after implicit map key : as valid (Fixes #120)

v1.6.0

23 May 14:10
Compare
Choose a tag to compare
  • Allow same-column end for flow collections (#108, #113, #114)
  • Add Document#directivesEndMarker (#112)
  • Add directives-end and document-end marker ranges to CST Document during parse