@types/yaml
1.9.7 · 23 Apr 2020MIT119.4k / weekRepositorynpmAtom feed
1.9.7 is the newest release of 1.x.
In short
5 new7 fixed
Release note
New Features
Support blank lines
Add
BLANK_LINEnodes to the CSTAdd a boolean property
spaceBeforefor all AST nodescst: Assign comments & blank lines at end of collection to parent unless sufficiently indented
Always separate document comments from the rest by a blank line
Add missing YAML 1.1 collections:
!!omap,!!pairs, and!!setAdd
tagargument forcreateNode(), along with its refactored schema-specific implementationAdd optional
createNodeandnodeClassproperties to tag objects (bcb8d9c, 3ae63bc)Add property based tests using fast-check, thanks to @dubzzz
Bugfixes
Fix parsing of minimal strings: '', '-', '?', ':'
Revert earlier fix for #48, which is now properly handled thanks to the fix for #57
cst/ParseContext: Stop advancing node.range.end past newline
cst/PlainValue: Limit
valueRange.endto actual value endcst: Stop breaking the spec by allowing tab indents for map values
Stop aliasing Pair comment to the comment of its value (9b49ddb, 6d3cb36):
key: # this is now a pair comment value
Render maps with all null values as
? a\n? b\nor{ a, b }
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.