Closed tac0turtle closed 8 months ago
This update introduces significant changes to the cosmos/iavl
package, including new APIs, performance improvements, and bug fixes. It also modifies the handling of backporting patches in .mergify.yaml
and updates the Makefile and README.md. The codebase has been refactored for better concurrency and error handling, and several tests have been updated to reflect these changes.
File(s) | Summary |
---|---|
.mergify.yaml , README.md |
Removed backporting block for v0.21.x branch and updated information about the v0.21.x release. |
CHANGELOG.md |
Documented improvements and bug fixes to the cosmos/iavl package, including new APIs, performance enhancements, and breaking changes. |
Makefile |
Updated golangci_lint_cmd and added golangci_version . Removed tools target and updated lint and lint-fix targets. |
batch.go , batch_test.go |
Modified BatchWithFlusher struct and updated related tests. |
benchmarks/bench_test.go , export_test.go , proof_iavl_test.go , testutils_test.go , tree_random_test.go , tree_test.go |
Updated function calls to NewMutableTree and removed NewMutableTreeWithOpts . |
immutable_tree.go , mutable_tree.go , nodedb.go , options.go |
Introduced optional parameters to NewImmutableTree and NewMutableTree . Updated Options struct and related functions. |
import.go , import_test.go |
Updated Importer struct for better batch commit handling and added new benchmark function. |
iterator.go , iterator_test.go |
Modified NewNodeIterator function and updated related tests. |
migrate_test.go |
Updated legacyVersion value in TestLegacyReferenceNode function. |
nodedb_test.go |
Updated function calls and added new test cases. |
mutable_tree_test.go |
Updated test functions and minor changes to test cases. |
unsaved_fast_iterator.go |
Updated UnsavedFastIterator struct and related functions for better concurrency and error handling. |
As the leaves fall, so does the old code, 🍂🍁
Making way for the new, bold and gold. 💫
With each change, the project grows, 🌱
Like a rabbit hopping, on its toes. 🐇
Celebrate the season, celebrate the change, 🎉
In the world of code, nothing is strange. 💻
So here's to the updates, big and small, 🥂
To the cosmos/iavl package, standing tall. 🚀
Summary by CodeRabbit
New Features:
SaveChangeSet
API for saving changesets as new versions.NewCompressExporter
andNewCompressImporter
APIs for compact snapshot formats.KVPair
andChangeSet
serializable with protobuf.Bug Fixes:
Refactor:
BatchWithFlusher
struct for better batch size management.NewMutableTree
andNewImmutableTree
functions for more flexible configuration.Importer
struct for better batch commit tracking.Tests:
BenchmarkImportBatch
function.Chores:
Makefile
targets for bettergolangci-lint
usage.v0.21.x
release details from README.Breaking Changes:
NodeDB
,MutableTree
, andImmutableTree
.