yaml
2.9.1 · 11 Sep 2026ISC330.2M / weekRepositoryHomepagenpmAtom feed
1.10.3 is the newest release of 1.x.
In short
12 new5 fixed3 changed1 internal
Security
1 advisory affects 1.10.0; 1.10.3 fixes them
- Moderateyaml is vulnerable to Stack Overflow via deeply nested YAML collectionsGHSA-48c2-rrv3-qjmp · 25 Mar 2026Fixed in 1.10.3
Release note
This will probably be the last minor release of yaml@1. I'm aiming to release yaml@2 within a few months; prereleases of that will be published using the next dist-tag on npm. Patch releases for 1.10 may still happen, if necessary.
New Features
Use Rollup for Node.js & browser builds
This removes most of the internal
dist/paths from the release. If you want/need to use a class or function that is no longer public, please file an issue and we can add it to the exports.Drop dependency on
@babel/runtime. After this, the package has 0 runtime dependencies. 🎉Add exports
{ Alias, Collection, Merge, Node }to 'yaml/types'
Document
Schema.createPair()& make itsctxarg optionalAlways indent top-level scalars with lines starting with document markers or % directives
Use double-space when forcing top-level block scalar indent, for clarity
Add
getNodes(): stringmethod to AnchorsRefactor Jest config, adding tests for compiled
dist/endpointsRename & refactor source files. This should have no effect on the results, but lots of stuff moved around
Improved Errors & Warnings
Throw more helpful error when setting Pair.commentBefore incorrectly
Better errors for bad indents
Drop incorrect error for flow mapping keys with length > 1024 chars
Add errors for plain scalars that start with reserved indicators
Add more explicit errors for block scalar values with bad indents
Enable log prints during
npm startdebugging
Improved TypeScript declarations
Fix/simplify export mapping of 'yaml/types' and 'yaml/util'
Fix types, dropping
AST.{AstNode,ScalarNode,CollectionNode}Add missing
toString()methods to AST nodesAdd directivesEndMarker to Document type
Bugfixes
Use CommonJS for top-level default-exporting browser endpoints
Update dev & playground dependencies, including eslint 7 & jest 26
Update yaml-test-suite, fixing errors in remaining invalid-input tests
Add explicit error for block scalars with more-indented leading empty lines (S98Z)
Properly add error for tab-indented map values (4EJS)
Add error for multiline implicit flow sequence pair key (DK4H & ZXT5)
Require space after comma before comment in flow collections (CVW2)
Use
mapAsMap: truefor out.yaml tests (4FJ6)
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.