prism-merge v2.0.2 released!
2.0.2 - 2026-02-22
- TAG: v2.0.2
- COVERAGE: 98.80% β 823/833 lines in 12 files
- BRANCH COVERAGE: 85.61% β 452/528 branches in 12 files
- 93.51% documented
Fixed
- Fix node duplication when merging files with inline trailing comments (e.g.,
gemspec
add_dependencylines with# ruby >= 3.2.0).add_node_to_resultoutput the full source line (which already includes inline comments viaanalysis.line_at), then also iteratedtrailing_commentsand re-emitted any comment on the same line β duplicating the entire line. Now skips trailing comments whosestart_linefalls within the nodeβs own line range. This was the root cause of everyadd_dependency/add_development_dependencybeing duplicated in gemspec and gemfile merges when inline comments were present. - Prevent potential double-wrapping in
merge_node_body_recursivelyβ store the raw (unwrapped)signature_generatoras@raw_signature_generatorand pass it (instead of the already-effective generator) to innerSmartMergerinstances. This ensuresbuild_effective_signature_generatorwraps it only once whennode_typingis also configured.
Many paths lead to being a sponsor or a backer of this project. Are you on such a path?