ast-merge v3.1.0 released!
3.1.0 - 2026-01-08
- TAG: v3.1.0
- COVERAGE: 96.89% – 2465/2544 lines in 47 files
- BRANCH COVERAGE: 89.62% – 794/886 branches in 47 files
- 98.75% documented
Added
Ast::Merge::EmitterBase- Abstract base class for format-specific emitters- Provides common infrastructure for converting AST structures back to text
- Tracks indentation level with configurable
indent_size(default: 2 spaces) - Manages output lines collection with
#linesaccessor #emit_blank_line- Emit an empty line#emit_leading_comments- Emit comments from CommentTracker#emit_raw_lines- Emit lines without modification (preserves exact formatting)#to_s- Get output as a single string with trailing newline#clear- Reset emitter state#indent/#dedent- Increase/decrease indentation level- Subclass hooks:
#initialize_subclass_state,#clear_subclass_state,#emit_tracked_comment - Used by jsonc-merge, json-merge, bash-merge, toml-merge, and psych-merge emitters
Changed
- tree_haver v4.0.0
Many paths lead to being a sponsor or a backer of this project. Are you on such a path?