js-yaml
5.5.0 · 15 Oct 2026MIT322.7M / weekRepositoryHomepagenpmAtom feed
5.5.0 is the newest release of 5.x.
In short
1 breaking1 deprecated3 new2 fixed2 changed
- breaking
Removed the
MERGE_KEYexport (not used anymore after last fixes). - deprecated
Deprecated flat constant exports. Use grouped ones instead.
Security
1 advisory affects 5.3.0; 5.4.1 fixes them
- Moderatejs-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sourcesGHSA-r3ph-w7gj-g6xm · 29 Sep 2026Fixed in 5.4.1
Release note
This release focuses on reworking the documentation and making small
architectural improvements before moving forward.
Added
Added completely new documentation.
Exported
DUMP_SCHEMA, the default schema used by the dumper.Added
YAMLException.throwAt()for throwing an error at a source position.
Changed
Changed flat constant exports to grouped exports:
EVENT_ID,SCALAR_STYLE,COLLECTION_STYLE, andCHOMPING_MODE, along with their value types. The old
exports are still preserved, but deprecated.Made
identifymandatory for custom tag definitions. Useidentify: () => falsefor load-only tags.
Deprecated
- deprecated
Deprecated flat constant exports. Use grouped ones instead.
Removed
- breaking
Removed the
MERGE_KEYexport (not used anymore after last fixes).
Fixed
Validate
<<sequence items at merge time, so aliased merge sources are
checked too.Resolve
<<outside of a mapping key as the plain string'<<', matching
v4, instead of leaking an internal symbol into the result.