YAWN v3.0.0 - Complete Rewrite
This is a major release with a complete rewrite of YAWN using the modern yaml package's CST (Concrete Syntax Tree) model.
Highlights
- Robust comment preservation - Comments are now first-class citizens in the AST
- Scalar style preservation - Quoted strings, block scalars, and other formatting preserved
- Reduced bundle size - ~32KB (down from ~300KB)
- New API methods -
getCommentBefore()andsetCommentBefore()
Bug Fixes
Fixes all 11 open GitHub issues: #2, #6, #8, #10, #18, #19, #24, #25, #53, #68, #78
Install
npm install yawn-yaml@3See CHANGELOG.md for full details.