Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzedge committed Dec 8, 2024
1 parent 18760e3 commit 6bb93dc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# CHANGELOG

## 2.6.0 [compare][compare_v2_5_1_and_main]
## 2.6.0 (in development) [compare][compare_v2_5_1_and_main]

### Enhancements

#### Major

- Allow `Nodes::Node`s to hold arbitrary values by [@gonzedge][github_user_gonzedge]
- Add `value` attribute to `Nodes::Node`
- Add optional, nilable `value` argument to `Container#add`, `Nodes::Node#add`
- Store given `value` in terminal node via `Nodes::Raw#add` and `Nodes::Raw#add_to_children_tree`, when present
- Update `Compressor#merge` and `Compressor#compress_children_and_copy` to store `value` from `Nodes::Raw` in the
terminal `Nodes::Compressed`, when present
- Add optional `values` array argument to `Container#concat` corresponding 1:1 to `words`, that passes each word and
value to `#add` when present
- Add `value` to `Inspectable#inspect` output, when present
- Add generic type `TValue` to `Nodes::Node` type signature
- Extract `_Nilable` interface to own top-level file
- Make `value` attribute in `Nodes::Node` use the new `TValue` generic type
- Allow `TValue` to be `nil` by default with `?`
- Require `TValue` to implement `_Inspect` built-in(!) interface, for `Inspectable` module
- Change all types that depend on `Nodes::Node` also have the generic type `TValue < _Inspect`
including static methods
- Add optional `TValue` argument to `Container#add`, `Nodes::Node#add`, and `Nodes::Raw#add_to_children_tree`
- Add optional `Array[TValue?]` argument to `Container#concat`
- Add new `|| raise`s because the inline type conversion to non-nil doesn't work anymore for `steep` check 🤷🏻‍♂️

## 2.5.1 [compare][compare_v2_5_0_and_v2_5_1]

Expand Down
7 changes: 4 additions & 3 deletions spec/integration/rambling/trie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
end

it 'is the version before the one at the top of the CHANGELOG' do
changelog_version = Gem::Version.new changelog_versions.first
lib_version = Gem::Version.new "#{Rambling::Trie::VERSION}.0"
expect(changelog_version).to eq lib_version.bump
top_changelog_version = Gem::Version.new changelog_versions.first
minor_version = Rambling::Trie::VERSION.split('.')[..1].join('.') # 1.2.3 => 1.2
next_versions = ["#{Rambling::Trie::VERSION}.0", Rambling::Trie::VERSION, minor_version]
expect(next_versions.map { |v| Gem::Version.new(v).bump }).to include top_changelog_version
end

it 'is included in the CHANGELOG diffs' do
Expand Down

0 comments on commit 6bb93dc

Please sign in to comment.