Sourced from js-yaml's changelog.
4.3.0, 3.15.0 - 2026-06-27
Security
- Backported
maxTotalMergeKeysoption.[5.2.0] - 2026-06-26
Added
- Added
maxTotalMergeKeys(10000) loader option to limit the total number of keys processed by YAML merge (<<) across oneload()/loadAll()call.- Added
maxAliases(-1) loader option to limit the number of YAML aliases per document.Removed
maxMergeSeqLengthreplaced withmaxTotalMergeKeysfor limiting YAML merge processing.Fixed
- Round-trip of integers with exponential form (>=
1e21)[5.1.0] - 2026-06-23
Added
- Collection tags can finalize an incrementally populated carrier into a different result value.
Changed
- [breaking]
quoteStylenow selects the preferred quote style; use the restoredforceQuotesoption to force quoting non-key strings.[5.0.0] - 2026-06-20
Added
- Added named exports for schemas, tags, parser events and AST utilities.
- Reworked
JSON_SCHEMAandCORE_SCHEMAwith spec-compliant scalar resolution rules, and addedYAML11_SCHEMA.- Added
realMapTagfor lossless mappings with non-string and complex keys. Object-based mappings now reject complex keys instead of stringifying them.- Added
dump()transformoption for changing the generated AST before rendering.- Added
dump()optionsseqInlineFirst,flowBracketPadding,flowSkipCommaSpace,flowSkipColonSpace,quoteFlowKeys,quoteStyleandtagBeforeAnchor.- Added formal data layers (events and AST) for modular data pipelines.
- Added low-level parser (to events), presenter and visitor APIs.
- Added the YAML Test Suite to the test set.
Changed
- See the migration guide for upgrade notes.
- Rewritten in TypeScript and reorganized the public API around flat named exports.
... (truncated)
33d05b5
4.3.0 released663bfab
Drop demo publish, to not override new v5 one.1cb8c7b
Add v4-legacy tag for publish02f27af
Restore umd builds back to es58be84ed
Fix es5 compatibility59423c6
Replace maxMergeSeqLength option with
maxTotalMergeKeys (more robust). Ba...6842ef6
doc polish