tree_haver v4.0.2 released!
4.0.2 - 2026-01-08
- TAG: v4.0.2
- COVERAGE: 95.27% – 2033/2134 lines in 28 files
- BRANCH COVERAGE: 84.07% – 802/954 branches in 28 files
- 95.49% documented
Added
- FFI Backend: Implemented
missing?method onTreeHaver::Backends::FFI::Node- Added
ts_node_is_missingFFI function attachment - This method was missing entirely, causing
NoMethodErrorwhen checking for MISSING nodes
- Added
Changed
- TreeHaver::Node: Removed defensive
respond_to?checks fromhas_error?andmissing?methods- All tree-sitter backends (MRI, Rust, FFI, Java) must implement these methods on their inner nodes
- This enforces proper backend API compliance rather than silently masking missing implementations
Fixed
- FFI Backend: Added explicit boolean conversion (
!!) tohas_error?return value- FFI
:boolreturn type may behave inconsistently across Ruby versions and platforms - Ensures
has_error?always returnstrueorfalse, not truthy/falsy values
- FFI
Many paths lead to being a sponsor or a backer of this project. Are you on such a path?