From 4275381cbfdfe7836761323bae6e3dbab666f677 Mon Sep 17 00:00:00 2001 From: Blake Griffith Date: Wed, 24 Dec 2025 13:12:35 -0600 Subject: [PATCH 1/6] add release.toml --- release.toml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 release.toml diff --git a/release.toml b/release.toml new file mode 100644 index 0000000..c9266de --- /dev/null +++ b/release.toml @@ -0,0 +1,7 @@ +pre-release-replacements = [ + {file="CHANGELOG.md", search="Unreleased", replace="{{version}}"}, + {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1}, + {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"}, + {file="CHANGELOG.md", search="", replace="\n\n## [Unreleased] - ReleaseDate\n\n### Added\n\n### Changed\n\n### Removed\n\n", exactly=1}, + {file="CHANGELOG.md", search="", replace="\n[Unreleased]: https://github.com/datrs/hypercore/compare/{{tag_name}}...HEAD", exactly=1}, +] From 2c54ef3b39ec26e7ad73c7a59cb390babbccfd89 Mon Sep 17 00:00:00 2001 From: Blake Griffith Date: Wed, 24 Dec 2025 13:44:24 -0600 Subject: [PATCH 2/6] Update changelog --- CHANGELOG.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 728cef0..3ce6c2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,26 @@ -## 2024-10-25, Version v0.14.0 +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + + +## [Unreleased] - ReleaseDate + +### Added + +### Changed + +* New version of compact-encoding used + +### Removed + +* `HypercoreState` struct. It is obsolete with new compact-encoding version. + + + ### Commits - [[`5a1f98f8c7`](https://github.com/datrs/hypercore/commit/5a1f98f8c744a3635e34c95421d67809e154b71d)] fix: error message variable order (Timo Tiuraniemi) - [[`4f2f5fe3ec`](https://github.com/datrs/hypercore/commit/4f2f5fe3ec3d3e0e2dd012780bbc8948354d76cc)] Use tokio by default (Blake Griffith) From 5f4b7100c1f56a9cfe1364c30e6422a2060610e4 Mon Sep 17 00:00:00 2001 From: Blake Griffith Date: Wed, 24 Dec 2025 13:55:24 -0600 Subject: [PATCH 3/6] tweak release : --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ce6c2b..ad12e7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,9 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +* More impl's of `CompactEncoding`. + ### Changed -* New version of compact-encoding used +* New version of compact-encoding used. ### Removed @@ -21,6 +23,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +## [0.14.0] - 2024-10-25 + ### Commits - [[`5a1f98f8c7`](https://github.com/datrs/hypercore/commit/5a1f98f8c744a3635e34c95421d67809e154b71d)] fix: error message variable order (Timo Tiuraniemi) - [[`4f2f5fe3ec`](https://github.com/datrs/hypercore/commit/4f2f5fe3ec3d3e0e2dd012780bbc8948354d76cc)] Use tokio by default (Blake Griffith) @@ -474,3 +478,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 tests/storage.rs | 54 +++++++++++++++++++++++++++++++++++++++++++++++- 11 files changed, 197 insertions(+), 38 deletions(-) ``` + + +[Unreleased]: https://github.com/datrs/hypercore/compare/v0.14.0...HEAD +[0.14.0]: https://github.com/datrs/hypercore/compare/v0.14.0...v0.13.0 From c66e009c625b5983511edce6f91cccb340645b3f Mon Sep 17 00:00:00 2001 From: Blake Griffith Date: Wed, 24 Dec 2025 14:03:02 -0600 Subject: [PATCH 4/6] clippy --- src/common/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/node.rs b/src/common/node.rs index b152779..3ebf8f3 100644 --- a/src/common/node.rs +++ b/src/common/node.rs @@ -117,7 +117,7 @@ impl Display for Node { impl PartialOrd for Node { fn partial_cmp(&self, other: &Self) -> Option { - Some(self.index.cmp(&other.index)) + Some(self.cmp(other)) } } From 095e4e02a5014a16d99966a380dc5a3b3e95d408 Mon Sep 17 00:00:00 2001 From: Blake Griffith Date: Wed, 24 Dec 2025 14:05:30 -0600 Subject: [PATCH 5/6] fix deprecated --- benches/disk.rs | 2 +- examples/disk.rs | 2 +- examples/replication.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benches/disk.rs b/benches/disk.rs index a1ad5b7..12320d3 100644 --- a/benches/disk.rs +++ b/benches/disk.rs @@ -42,7 +42,7 @@ async fn create_hypercore(name: &str) -> Result { .prefix(name) .tempdir() .unwrap() - .into_path(); + .keep(); let storage = Storage::new_disk(&dir, true).await?; HypercoreBuilder::new(storage).build().await } diff --git a/examples/disk.rs b/examples/disk.rs index 9999089..d99b7a1 100644 --- a/examples/disk.rs +++ b/examples/disk.rs @@ -14,7 +14,7 @@ async fn main() { .prefix("examples_disk") .tempdir() .unwrap() - .into_path(); + .keep(); // Create a disk storage, overwriting existing values. let overwrite = true; diff --git a/examples/replication.rs b/examples/replication.rs index 0e658cd..19b393e 100644 --- a/examples/replication.rs +++ b/examples/replication.rs @@ -19,7 +19,7 @@ async fn main() { .prefix("examples_replication") .tempdir() .unwrap() - .into_path(); + .keep(); // Create a disk storage, overwriting existing values. let overwrite = true; From 4b91632a04c24e51571cb24f667b8cdecea69e73 Mon Sep 17 00:00:00 2001 From: Blake Griffith Date: Wed, 24 Dec 2025 14:15:42 -0600 Subject: [PATCH 6/6] more fix deprecated --- benches/disk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/disk.rs b/benches/disk.rs index 12320d3..e465dfc 100644 --- a/benches/disk.rs +++ b/benches/disk.rs @@ -28,7 +28,7 @@ async fn create_hypercore(name: &str) -> Result { .prefix(name) .tempdir() .unwrap() - .into_path(); + .keep(); let storage = Storage::new_disk(&dir, true).await?; HypercoreBuilder::new(storage) .node_cache_options(hypercore::CacheOptionsBuilder::new())