Releases: eemeli/yaml
v1.0.2
v1.0.1
v1.0.0
Whoa. It's like, ready? Just one minor bug has been reported in the last month, so now's as good a time as any to officially release this thing. A few small changes compared to the last RC:
v1.0.0-rc.8
More eyes reveal more bugs. Many of which have been fixed, thanks in particular to @ikatyang:
- schema/parseMap: Don't drop comments on empty value nodes (#19)
- cst/CollectionItem: Don't reset offset at end of document (#19)
- fix(document): add missing cstNode (#26)
- fix(document): add missing type (#27)
- fix(merge): no error when key is null (#29)
- fix(cst): correct document.valueRange.end (#30)
- Add
setOrigRanges()
to YAML.parseCST() output (#31) - fix(flowSeq): explicit key with empty value (#33)
- fix: empty blockValue as empty string (#35)
- fix: checkKeyLength false positive (#37)
- cst/Collection: Set atLineStart during lineStart reset (#38)
In addition to the above bugfixes, the opinions of the string stringifier have been updated (2ab3eab):
- Quote
"x"
as'"x"'
- Prefer quoted over block for single line values
- Prefer block style for multiline
- Prefer literal over folded block style for short lines
Finally, dev dependencies have been updated, including an update to Babel 7 rc.2 that drops @babel/preset-stage-3
in favor of the specific required plugins.
v1.0.0-rc.7
As the library is now passing practically all of the yaml-test-suite tests, along with any others I've been able to find, and there are no more required features that are missing, this might be the last release before 1.0.0
. Therefore, this version has been released on npm with the latest
tag, so from now on the install command is just:
npm install yaml
In terms of features, rc.7 has rather little to offer on top of rc.6:
parseCST
is now also included in the defaultYAML
export- Add a test harness for yaml-test-suite event tests,
yaml/dist/test-events
- Add a new default-false option,
keepCstNodes
- Bugfix: Encode & decode URI escapes in tag suffixes
v1.0.0-rc.6
- Add support for YAML 1.0 and YAML 1.1, renaming
extended
schema asyaml-1.1
(note: YAML 1.0 prefix tags are parsed and stringified, but are not resolved) - Refactor the API a bit again, adding
parseDocument
& renamingparseDocuments
asparseAllDocuments
. This more closely matches the naming pattern used by other libraries. - Add
type
andformat
to content nodes, allowing for stringification control. - Add
keepBlobsInJSON
andkeepNodeTypes
options, both defaulting totrue
. - Split default options in
YAML.defaultOptions
andYAML.Document.defaults
, depending on YAML version dependence - Update to latest yaml-test-suite (now only four tests are broken in the upstream repo: yaml/yaml-test-suite#25, yaml/yaml-test-suite#27, yaml/yaml-test-suite#38, yaml/yaml-test-suite#39)
- Various minor bugfixes
v1.0.0-rc.5
- Add doc.anchors
- Add
Alias
andMerge
nodes to AST (#12)
v1.0.0-rc.4
- Rename lowest API level more appropriately as a CST parser rather than an AST parser, so you'll now need to import
yaml/parse-cst
rather thanyaml/parse-ast
to use it. - Simplify the object-level API, dropping
Node#origTag
, skip setting empty values, and lettingPair
extendNode
. - Document the
YAML.Document
contents more clearly as an AST.
v1.0.0-rc.3
- Refactor
Document#resolveValue()
intoYAML.createNode()
. - Drop the internal
doc
reference from collections, and otherwise simplify theMap
andSeq
objects by separating out the parsing functions -- this should also make it easier to move or copy a collection between documents. Subsequently, directly calling.toString()
on aMap
orSeq
will now get you a JSON representation of the object; for YAML output you'll need to stringify the whole document. - Bug fixes, including in particular #18 (reported by @zoroaster00).
v1.0.0-rc.2
Switched from beta
to rc
because this really is nearly ready to publish.
- Documentation is now at https://eemeli.org/yaml/, rather than partly in README files and partly missing.
- Rethink semantic/syntax error boundary: Instead of classifying based on source API level, syntax errors now result in broken data while semantic errors "only" affect metadata.
- Add public re-exports: map, pair, parse-ast, scalar, seq, types/binary, types/timestamp
- Specify node ≥ 6 dependency (PR #11)
- Please ignore
rc.1
, it was missing a minor package.json update