Skip to content

Commit

Permalink
Release v0.34.0
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
  • Loading branch information
yukibtc committed Aug 15, 2024
1 parent 5c65e28 commit 8714d7e
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 22 deletions.
15 changes: 11 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,17 @@
-->

## [Unreleased]
## [v0.34.0]

### Summary

Add embedded tor client support, allow to open databases with a limited capacity (automatically discard old events when max capacity is reached),
add `Client::stream_events_of` as alternative method to `Client::get_events_of` (stream events instead of waiting for `EOSE` and collect into a list),
add search capability (NIP-50) support to `Filter::match_event` and databases, add NIP-31 and NIP-70 support,
add option to autoconnect relay on `Client::add_relay` method call (currently disabled by default), rework the `get_events_of` methods behaviour for
better consistency (`RelayPool::get_events_of` and `Relay::get_events_of` get events only from remote relay/s while
`Client::get_events_of` allow to choose the source of events: `database`, `relays` or `both`), bugs fix and more!

### Changed

* Bump MSRV to v1.70.0 ([Yuki Kishimoto])
Expand All @@ -44,7 +51,6 @@
* pool: better checks before perform queries or send messages to relays ([Yuki Kishimoto])
* pool: bump `async-wsocket` to `v0.7` ([Yuki Kishimoto])
* pool: get events only from remote relay when calling `get_events_of` or `get_events_from` ([Yuki Kishimoto])
* database: not match event if `Filter::search` field is set ([Yuki Kishimoto])
* database: avoid to copy `EventId` in `Event::decode` ([Yuki Kishimoto])
* database: use `Vec` instead of `BTreeSet` as inner value for `TagIndexValues` ([Yuki Kishimoto])
* database: rework `DatabaseIndexes` and rename to `DatabaseHelper` ([Yuki Kishimoto])
Expand Down Expand Up @@ -98,7 +104,7 @@
* database: remove `TempEvent` ([Yuki Kishimoto])
* database: remove `NostrDatabase::event_ids_by_filters` ([Yuki Kishimoto])
* sdk: remove `Client::send_direct_msg` ([Yuki Kishimoto])
* cli: remove `tracing-subscriber` dep
* cli: remove `tracing-subscriber` dep ([Yuki Kishimoto])

## [v0.33.0]

Expand Down Expand Up @@ -422,7 +428,8 @@ added `nostrdb` storage backend, added NIP32 and completed NIP51 support and mor
[reyamir]: https://github.com/reyamir

<!-- Tags -->
[Unreleased]: https://github.com/rust-nostr/nostr/compare/v0.33.0...HEAD
[Unreleased]: https://github.com/rust-nostr/nostr/compare/v0.34.0...HEAD
[v0.34.0]: https://github.com/rust-nostr/nostr/compare/v0.33.0...v0.34.0
[v0.33.0]: https://github.com/rust-nostr/nostr/compare/v0.32.0...v0.33.0
[v0.32.0]: https://github.com/rust-nostr/nostr/compare/v0.31.0...v0.32.0
[v0.31.0]: https://github.com/rust-nostr/nostr/compare/v0.30.0...v0.31.0
Expand Down
2 changes: 1 addition & 1 deletion book/snippets/nostr-sdk/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ edition = "2021"
members = ["."]

[dependencies]
nostr-sdk = "0.33"
nostr-sdk = "0.34"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
2 changes: 1 addition & 1 deletion book/snippets/nostr/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@rust-nostr/nostr": "0.33.0"
"@rust-nostr/nostr": "0.34.0"
}
}
2 changes: 1 addition & 1 deletion book/snippets/nostr/kotlin/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ agp = "8.1.4"
kotlin = "1.9.22"

[libraries]
nostr = { module = "org.rust-nostr:nostr", version = "0.33.0" }
nostr = { module = "org.rust-nostr:nostr", version = "0.34.0" }

[plugins]
androidLibrary = { id = "com.android.library", version.ref = "agp" }
Expand Down
2 changes: 1 addition & 1 deletion book/snippets/nostr/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nostr-protocol==0.33.0
nostr-protocol==0.34.0
mnemonic==0.21
2 changes: 1 addition & 1 deletion book/snippets/nostr/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2021"
members = ["."]

[dependencies]
nostr = "0.33"
nostr = "0.34"
2 changes: 1 addition & 1 deletion book/snippets/nostr/swift/NostrSnippets/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let package = Package(
name: "NostrSnippets",
platforms: [.macOS(.v13)],
dependencies: [
.package(url: "https://github.com/rust-nostr/nostr-swift", from:"0.33.0")
.package(url: "https://github.com/rust-nostr/nostr-swift", from:"0.34.0")
],
targets: [
.executableTarget(
Expand Down
12 changes: 6 additions & 6 deletions book/src/nostr-sdk/02-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Add the `nostr-sdk` dependency in your `Cargo.toml` file:

```toml
[dependencies]
nostr-sdk = "0.33"
nostr-sdk = "0.34"
```

Alternatively, you can add it directly from `git` source:

```toml
[dependencies]
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.33.0" }
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.34.0" }
```

```admonish info
Expand All @@ -43,7 +43,7 @@ pip install nostr-sdk
Alternatively, you can manually add the dependency in your `requrements.txt`, `setup.py`, etc.:

```
nostr-sdk==0.33.0
nostr-sdk==0.34.0
```

Import the library in your code:
Expand Down Expand Up @@ -100,7 +100,7 @@ Alternatively, you can manually add the dependency in your `package.json` file:
```json
{
"dependencies": {
"@rust-nostr/nostr-sdk": "0.33.0"
"@rust-nostr/nostr-sdk": "0.34.0"
}
}
```
Expand Down Expand Up @@ -152,7 +152,7 @@ repositories {
}

dependencies {
implementation("org.rust-nostr:nostr-sdk:0.33.0")
implementation("org.rust-nostr:nostr-sdk:0.34.0")
}
```

Expand Down Expand Up @@ -202,7 +202,7 @@ as a package dependency in Xcode.
Add the following to the dependencies array in your `Package.swift`:

``` swift
.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.33.0"),
.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.34.0"),
```

</section>
Expand Down
12 changes: 6 additions & 6 deletions book/src/nostr/02-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Add the `nostr` dependency in your `Cargo.toml` file:

```toml,ignore
[dependencies]
nostr = "0.33"
nostr = "0.34"
```

Alternatively, you can add it directly from `git` source:

```toml,ignore
[dependencies]
nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.33.0" }
nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.34.0" }
```

```admonish info
Expand All @@ -43,7 +43,7 @@ pip install nostr-protocol
Alternatively, you can manually add the dependency in your `requrements.txt`, `setup.py`, etc.:

```
nostr-protocol==0.33.0
nostr-protocol==0.34.0
```

Import the library in your code:
Expand Down Expand Up @@ -100,7 +100,7 @@ Alternatively, you can manually add the dependency in your `package.json` file:
```json
{
"dependencies": {
"@rust-nostr/nostr": "0.33.0"
"@rust-nostr/nostr": "0.34.0"
}
}
```
Expand Down Expand Up @@ -152,7 +152,7 @@ repositories {
}
dependencies {
implementation("org.rust-nostr:nostr:0.33.0")
implementation("org.rust-nostr:nostr:0.34.0")
}
```

Expand Down Expand Up @@ -201,7 +201,7 @@ as a package dependency in Xcode.
Add the following to the dependencies array in your `Package.swift`:

``` swift
.package(url: "https://github.com/rust-nostr/nostr-swift.git", from: "0.33.0"),
.package(url: "https://github.com/rust-nostr/nostr-swift.git", from: "0.34.0"),
```

Import the library in your code:
Expand Down

0 comments on commit 8714d7e

Please sign in to comment.