Packages

yaml

2.9.1 · 11 Sep 2026ISC330.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.1.0

11 Dec 2018Where it was published

1.10.3 is the newest release of 1.x.

In short

2 new4 fixed

Security

1 advisory affects 1.1.0; 1.10.3 fixes them

Release note

New Features

  • Support for JavaScript Set, Map and other iterable objects. When stringifying or creating nodes, this is automatic; Map and its descendants turn into YAML mappings, while other iterables become sequences. When parsing, a new option mapAsMap creates Maps rather than Objects from YAML mappings. (#46, #49, #50, #51)

  • Add a new public export at 'yaml/schema', providing easier-to-use stringifier options

Bugfixes

  • Stop including end comments in collections if next content is not sufficiently indented (#41, #54)

  • Stop folding more-indented lines at start of folded block scalars

  • cst/PlainValue: Allow :, to start a plain value in flow-out

  • Only advance to end of escape during double-quoted scalar folding

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.