Skip to content

Commit 65738ce

Browse files
authored
Merge pull request #146 from cowlicks/add-release-stuff
Update CHANGELOG.md and add a release.toml
2 parents a4d5752 + 4b91632 commit 65738ce

File tree

6 files changed

+43
-6
lines changed

6 files changed

+43
-6
lines changed

CHANGELOG.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
1-
## 2024-10-25, Version v0.14.0
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
<!-- next-header -->
9+
10+
## [Unreleased] - ReleaseDate
11+
12+
### Added
13+
14+
* More impl's of `CompactEncoding`.
15+
16+
### Changed
17+
18+
* New version of compact-encoding used.
19+
20+
### Removed
21+
22+
* `HypercoreState` struct. It is obsolete with new compact-encoding version.
23+
24+
25+
26+
## [0.14.0] - 2024-10-25
27+
228
### Commits
329
- [[`5a1f98f8c7`](https://github.com/datrs/hypercore/commit/5a1f98f8c744a3635e34c95421d67809e154b71d)] fix: error message variable order (Timo Tiuraniemi)
430
- [[`4f2f5fe3ec`](https://github.com/datrs/hypercore/commit/4f2f5fe3ec3d3e0e2dd012780bbc8948354d76cc)] Use tokio by default (Blake Griffith)
@@ -452,3 +478,7 @@
452478
tests/storage.rs | 54 +++++++++++++++++++++++++++++++++++++++++++++++-
453479
11 files changed, 197 insertions(+), 38 deletions(-)
454480
```
481+
482+
<!-- next-url -->
483+
[Unreleased]: https://github.com/datrs/hypercore/compare/v0.14.0...HEAD
484+
[0.14.0]: https://github.com/datrs/hypercore/compare/v0.14.0...v0.13.0

benches/disk.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async fn create_hypercore(name: &str) -> Result<Hypercore, HypercoreError> {
2828
.prefix(name)
2929
.tempdir()
3030
.unwrap()
31-
.into_path();
31+
.keep();
3232
let storage = Storage::new_disk(&dir, true).await?;
3333
HypercoreBuilder::new(storage)
3434
.node_cache_options(hypercore::CacheOptionsBuilder::new())
@@ -42,7 +42,7 @@ async fn create_hypercore(name: &str) -> Result<Hypercore, HypercoreError> {
4242
.prefix(name)
4343
.tempdir()
4444
.unwrap()
45-
.into_path();
45+
.keep();
4646
let storage = Storage::new_disk(&dir, true).await?;
4747
HypercoreBuilder::new(storage).build().await
4848
}

examples/disk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async fn main() {
1414
.prefix("examples_disk")
1515
.tempdir()
1616
.unwrap()
17-
.into_path();
17+
.keep();
1818

1919
// Create a disk storage, overwriting existing values.
2020
let overwrite = true;

examples/replication.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async fn main() {
1919
.prefix("examples_replication")
2020
.tempdir()
2121
.unwrap()
22-
.into_path();
22+
.keep();
2323

2424
// Create a disk storage, overwriting existing values.
2525
let overwrite = true;

release.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pre-release-replacements = [
2+
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}"},
3+
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
4+
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"},
5+
{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},
6+
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/datrs/hypercore/compare/{{tag_name}}...HEAD", exactly=1},
7+
]

src/common/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl Display for Node {
117117

118118
impl PartialOrd for Node {
119119
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
120-
Some(self.index.cmp(&other.index))
120+
Some(self.cmp(other))
121121
}
122122
}
123123

0 commit comments

Comments
 (0)