yaml
2.9.1 · 11 Sep 2026ISC330.2M / weekRepositoryHomepagenpmAtom feed
Upgrading yaml From 1.3.1 to 1.10.3
19 releases in betweennotes for 17
Counted from 17 of 19 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.4.0
- Deprecated1.4.0
Security
Fixes 1 advisory affecting 1.3.1
- yaml is vulnerable to Stack Overflow via deeply nested YAML collectionsmoderate · GHSA-48c2-rrv3-qjmp
Release by release
1.10.3no release note
- New
Allow for unindented comment after node props (prettier/prettier#10510)
- New
- New
Support for
__proto__as mapping key & anchor identifier - New
Add missing type for CST
Node.rangeAsLinePos - New
Allow for empty lines after node props
- Fixed
Fix broken TS type for BigInt toggle
- Fixed
Fix
YAML.stringify()for certain null values - Fixed
Do not break escaped chars with escaped newlines (#237, awslabs/cdk8s#494)
- New
- New
Use Rollup for Node.js & browser builds
- New
Document
Schema.createPair()& make itsctxarg optional - New
Always indent top-level scalars with lines starting with document markers or % directives
- New
Use double-space when forcing top-level block scalar indent, for clarity
- New
- Fixed
ts: Fix
Node.toJSON()type
- Fixed
- New
Add
onAnchorcallback arg todoc.toJSON()
- New
- New
Add custom ES module exports for browsers
- New
Drop
__esModulemarkers from CJS transpilation - New
Support
BigIntvalues - New
Add
YAML.scalarOptions
- New
- New
Add
"browser"mappings for types.mjs & util.mjs - New
Add Jest workaround to file deprecation tests
- Fixed
Fix parsing of floats like
.8and00.4in the core schema - Fixed
Fix
!!binaryresolution on IE 11
- New
20 other lines we could not sort, mostly version bumps
- 1.10.1
Dump long keys properly
- 1.10.1
When folding highly indented lines, require at least
minContentWidthchars on the first line - 1.10.1
Set
type: "module"within browser/dist/ - 1.10.1
Use CommonJS for the browser endpoints
yaml/types&yaml/util - 1.10.1
Always stringify non-Node object keys using explicit notation
- 1.10.1
Specify node type of
Document.Parsed.contents - 1.10.1
Prefer literal over folded block scalar when
lineWidth=0is set - 1.10.1
Update dev dependencies
- 1.10.0
Throw more helpful error when setting Pair.commentBefore incorrectly
- 1.10.0
Better errors for bad indents
6 internal lines (docs, tests, tooling) left out.
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.