diff --git a/CHANGELOG.md b/CHANGELOG.md index 92fea6c14..ed74fa67b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,14 @@ -## [Unreleased] +## [v0.31.0] ### Summary +Reworked `Tag`, added `TagStandard` enum, simplified the way to subscribe and/or reconcile to subset of relays +(respectively, `client.subscribe_to` and `client.reconcile_with`), added blacklist support to mute public keys or event IDs, +removed zap split from `client.zap` method, many improvements and more! + ### Changed * Bump `uniffi` to `v0.27.1` ([Yuki Kishimoto]) @@ -168,5 +172,6 @@ added `nostrdb` storage backend, added NIP32 and completed NIP51 support and mor [Xiao Yu]: https://github.com/kasugamirai -[Unreleased]: https://github.com/rust-nostr/nostr/compare/v0.30.0...HEAD -[v0.30.0]: https://github.com/rust-nostr/nostr/compare/v0.30.0...HEAD +[Unreleased]: https://github.com/rust-nostr/nostr/compare/v0.31.0...HEAD +[v0.31.0]: https://github.com/rust-nostr/nostr/compare/v0.30.0...v0.31.0 +[v0.30.0]: https://github.com/rust-nostr/nostr/compare/v0.29.0...v0.30.0 diff --git a/book/snippets/nostr-sdk/rust/Cargo.toml b/book/snippets/nostr-sdk/rust/Cargo.toml index 4fc79aba1..2c43a6941 100644 --- a/book/snippets/nostr-sdk/rust/Cargo.toml +++ b/book/snippets/nostr-sdk/rust/Cargo.toml @@ -8,5 +8,5 @@ edition = "2021" members = ["."] [dependencies] -nostr-sdk = "0.30" +nostr-sdk = "0.31" tokio = { version = "1", features = ["rt-multi-thread", "macros"] } \ No newline at end of file diff --git a/book/snippets/nostr/js/package.json b/book/snippets/nostr/js/package.json index 4d694e9f1..0f3bdcd2d 100644 --- a/book/snippets/nostr/js/package.json +++ b/book/snippets/nostr/js/package.json @@ -5,6 +5,6 @@ "main": "index.js", "license": "MIT", "dependencies": { - "@rust-nostr/nostr": "0.13.0" + "@rust-nostr/nostr": "0.14.0" } } \ No newline at end of file diff --git a/book/snippets/nostr/js/src/event/builder.js b/book/snippets/nostr/js/src/event/builder.js index 1542f5f42..6e3221862 100644 --- a/book/snippets/nostr/js/src/event/builder.js +++ b/book/snippets/nostr/js/src/event/builder.js @@ -14,12 +14,12 @@ function eventBuilder() { // Compose reply to above text note let replyEvent = - EventBuilder.textNote("Reply to hello", [Tag.parse(["e", textnoteEvent.id.toHex()])]) + EventBuilder.textNote("Reply to hello", [Tag.event(textnoteEvent.id)]) .toEvent(keys); // Compose POW event let powEvent = - EventBuilder.textNote("Another reply with POW", [Tag.parse(["e", textnoteEvent.id.toHex()])]) + EventBuilder.textNote("Another reply with POW", [Tag.event(textnoteEvent.id)]) .toPowEvent(keys, 20); // Compose note with custom timestamp diff --git a/book/snippets/nostr/kotlin/gradle/libs.versions.toml b/book/snippets/nostr/kotlin/gradle/libs.versions.toml index a3a8b0f31..bbb474fa6 100644 --- a/book/snippets/nostr/kotlin/gradle/libs.versions.toml +++ b/book/snippets/nostr/kotlin/gradle/libs.versions.toml @@ -3,7 +3,7 @@ agp = "8.1.4" kotlin = "1.9.22" [libraries] -nostr = { module = "io.github.rust-nostr:nostr", version = "0.11.0" } +nostr = { module = "io.github.rust-nostr:nostr", version = "0.12.0" } [plugins] androidLibrary = { id = "com.android.library", version.ref = "agp" } diff --git a/book/snippets/nostr/python/requirements.txt b/book/snippets/nostr/python/requirements.txt index c1f70d89c..1cf4e6eac 100644 --- a/book/snippets/nostr/python/requirements.txt +++ b/book/snippets/nostr/python/requirements.txt @@ -1 +1 @@ -nostr-protocol==0.11.0 \ No newline at end of file +nostr-protocol==0.12.0 \ No newline at end of file diff --git a/book/snippets/nostr/rust/Cargo.toml b/book/snippets/nostr/rust/Cargo.toml index 9d4b1ef32..42556fe30 100644 --- a/book/snippets/nostr/rust/Cargo.toml +++ b/book/snippets/nostr/rust/Cargo.toml @@ -8,4 +8,4 @@ edition = "2021" members = ["."] [dependencies] -nostr = "0.30" +nostr = "0.31" diff --git a/book/snippets/nostr/swift/NostrSnippets/Package.swift b/book/snippets/nostr/swift/NostrSnippets/Package.swift index 4cd70de93..f373dc35f 100644 --- a/book/snippets/nostr/swift/NostrSnippets/Package.swift +++ b/book/snippets/nostr/swift/NostrSnippets/Package.swift @@ -7,7 +7,7 @@ let package = Package( name: "NostrSnippets", platforms: [.macOS(.v13)], dependencies: [ - .package(url: "https://github.com/rust-nostr/nostr-swift", from:"0.11.0") + .package(url: "https://github.com/rust-nostr/nostr-swift", from:"0.12.0") ], targets: [ .executableTarget( diff --git a/book/src/nostr-sdk/02-installation.md b/book/src/nostr-sdk/02-installation.md index ef3d622bf..9f0559a5b 100644 --- a/book/src/nostr-sdk/02-installation.md +++ b/book/src/nostr-sdk/02-installation.md @@ -9,14 +9,14 @@ Add the `nostr-sdk` dependency in your `Cargo.toml` file: ```toml [dependencies] -nostr-sdk = "0.30" +nostr-sdk = "0.31" ``` Alternatively, you can add it directly from `git` source: ```toml [dependencies] -nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.30.0" } +nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.31.0" } ``` ```admonish info @@ -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.11.0 +nostr-sdk==0.12.0 ``` Import the library in your code: @@ -88,7 +88,7 @@ Alternatively, you can manually add the dependency in your `package.json` file: ```json { "dependencies": { - "@rust-nostr/nostr-sdk": "0.13.0" + "@rust-nostr/nostr-sdk": "0.14.0" } } ``` @@ -140,7 +140,7 @@ repositories { } dependencies { - implementation("io.github.rust-nostr:nostr-sdk:0.11.0") + implementation("io.github.rust-nostr:nostr-sdk:0.12.0") } ``` @@ -190,7 +190,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.11.1"), +.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.12.0"), ``` diff --git a/book/src/nostr/02-installation.md b/book/src/nostr/02-installation.md index 2c9879654..89b768f06 100644 --- a/book/src/nostr/02-installation.md +++ b/book/src/nostr/02-installation.md @@ -9,14 +9,14 @@ Add the `nostr` dependency in your `Cargo.toml` file: ```toml,ignore [dependencies] -nostr = "0.30" +nostr = "0.31" ``` Alternatively, you can add it directly from `git` source: ```toml,ignore [dependencies] -nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.30.0" } +nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.31.0" } ``` ```admonish info @@ -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.11.0 +nostr-protocol==0.12.0 ``` Import the library in your code: @@ -87,7 +87,7 @@ Alternatively, you can manually add the dependency in your `package.json` file: ```json { "dependencies": { - "@rust-nostr/nostr": "0.13.0" + "@rust-nostr/nostr": "0.14.0" } } ``` @@ -139,7 +139,7 @@ repositories { } dependencies { - implementation("io.github.rust-nostr:nostr:0.11.0") + implementation("io.github.rust-nostr:nostr:0.12.0") } ``` @@ -188,7 +188,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.11.1"), +.package(url: "https://github.com/rust-nostr/nostr-swift.git", from: "0.12.0"), ``` Import the library in your code: