Releases: eemeli/yaml
Releases · eemeli/yaml
v1.9.2
v1.9.1
v1.9.0
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
v1.8.2
v1.8.0
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
v1.7.1
v1.7.0
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