Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
## 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).

<!-- next-header -->

## [Unreleased] - ReleaseDate

### Added

* More impl's of `CompactEncoding`.

### Changed

* New version of compact-encoding used.

### Removed

* `HypercoreState` struct. It is obsolete with new compact-encoding version.



## [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)
Expand Down Expand Up @@ -452,3 +478,7 @@
tests/storage.rs | 54 +++++++++++++++++++++++++++++++++++++++++++++++-
11 files changed, 197 insertions(+), 38 deletions(-)
```

<!-- next-url -->
[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
4 changes: 2 additions & 2 deletions benches/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn create_hypercore(name: &str) -> Result<Hypercore, HypercoreError> {
.prefix(name)
.tempdir()
.unwrap()
.into_path();
.keep();
let storage = Storage::new_disk(&dir, true).await?;
HypercoreBuilder::new(storage)
.node_cache_options(hypercore::CacheOptionsBuilder::new())
Expand All @@ -42,7 +42,7 @@ async fn create_hypercore(name: &str) -> Result<Hypercore, HypercoreError> {
.prefix(name)
.tempdir()
.unwrap()
.into_path();
.keep();
let storage = Storage::new_disk(&dir, true).await?;
HypercoreBuilder::new(storage).build().await
}
Expand Down
2 changes: 1 addition & 1 deletion examples/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/replication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions release.toml
Original file line number Diff line number Diff line change
@@ -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="<!-- next-header -->", replace="<!-- next-header -->\n\n## [Unreleased] - ReleaseDate\n\n### Added\n\n### Changed\n\n### Removed\n\n", exactly=1},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/datrs/hypercore/compare/{{tag_name}}...HEAD", exactly=1},
]
2 changes: 1 addition & 1 deletion src/common/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Display for Node {

impl PartialOrd for Node {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.index.cmp(&other.index))
Some(self.cmp(other))
}
}

Expand Down
Loading