Skip to content

Commit 7d76c8e

Browse files
committed
Release 2.2.0
Bump the gem version to 2.2.0 and record the 2.2.0 changes in the project history.
1 parent a7a0ab4 commit 7d76c8e

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
rubytree (2.1.2pre)
4+
rubytree (2.2.0)
55
json (~> 2.0, > 2.9)
66

77
GEM

History.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# History of Changes
22

3+
### 2.2.0 / 2026-02-06
4+
5+
* Prevent cycles by rejecting attempts to add an ancestor as a child.
6+
7+
* Ensure `remove_all!` detaches children by clearing their parent links.
8+
9+
* Raise on sibling name collisions in `rename_child`.
10+
11+
* Harden binary tree child assignment (`set_child_at`) with proper index errors
12+
and cleanup of parent/hash references.
13+
14+
* Make traversals resilient to missing children by skipping `nil` nodes in
15+
`postordered_each` and `breadth_each`.
16+
17+
* Return a level-wise enumerator from `each_level` when no block is given.
18+
19+
* Improve `to_s` formatting to show `<Empty>` for nil content.
20+
321
### 2.1.1 / 2024-12-19
422

523
* 2.1.1 is a minor update that updates all dependencies and updates the guard

lib/tree/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535

3636
module Tree
3737
# Rubytree Package Version
38-
VERSION = '2.1.2pre'
38+
VERSION = '2.2.0'
3939
end

0 commit comments

Comments
 (0)