diff --git a/CHANGELOG.md b/CHANGELOG.md index a40aba697..83751fabd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,10 +21,15 @@ --> -## [Unreleased] +## [v0.33.0] ### Summary +Better outputs for send/batch/reconcile methods (ex. you can now easily know where a message/event is successfully published and where/why failed), +allow to change NIP-42 option after client initialization, increase max stack size for JS bindings to prevent "memory access out of bounds" error, +expose more objects/methods for JS bindings, dry run option for negentropy reconciliation, get NIP-46 relay from NIP-05 profile, +bug fixes (NIP-42 auth not works correctly, NIP-46 "ACK" message not handled, ...) and more! + ### Changed * Bump `uniffi` to `v0.28.0` ([Yuki Kishimoto]) @@ -337,7 +342,8 @@ added `nostrdb` storage backend, added NIP32 and completed NIP51 support and mor [lnbc1QWFyb24]: https://github.com/lnbc1QWFyb24 -[Unreleased]: https://github.com/rust-nostr/nostr/compare/v0.32.0...HEAD +[Unreleased]: https://github.com/rust-nostr/nostr/compare/v0.33.0...HEAD +[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 [v0.30.0]: https://github.com/rust-nostr/nostr/compare/v0.29.0...v0.30.0 diff --git a/bindings/nostr-sdk-js/examples/webapp/package.json b/bindings/nostr-sdk-js/examples/webapp/package.json index 2637515aa..94ab64f3f 100644 --- a/bindings/nostr-sdk-js/examples/webapp/package.json +++ b/bindings/nostr-sdk-js/examples/webapp/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@rust-nostr/nostr-sdk": "^0.13.0", + "@rust-nostr/nostr-sdk": "^0.33.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", diff --git a/book/snippets/nostr-sdk/rust/Cargo.toml b/book/snippets/nostr-sdk/rust/Cargo.toml index 50ff3b620..0b0ace84a 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.32" +nostr-sdk = "0.33" 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 8e8b80ff8..1419fa027 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.32.0" + "@rust-nostr/nostr": "0.33.0" } } \ No newline at end of file diff --git a/book/snippets/nostr/kotlin/gradle/libs.versions.toml b/book/snippets/nostr/kotlin/gradle/libs.versions.toml index 2c196bfb5..1cf977328 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 = "org.rust-nostr:nostr", version = "0.32.1" } +nostr = { module = "org.rust-nostr:nostr", version = "0.33.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 d2c9771eb..f0771bc19 100644 --- a/book/snippets/nostr/python/requirements.txt +++ b/book/snippets/nostr/python/requirements.txt @@ -1,2 +1,2 @@ -nostr-protocol==0.32.1 +nostr-protocol==0.33.0 mnemonic==0.21 \ No newline at end of file diff --git a/book/snippets/nostr/python/src/nip05.py b/book/snippets/nostr/python/src/nip05.py index 1e45465e7..5ad6591ef 100644 --- a/book/snippets/nostr/python/src/nip05.py +++ b/book/snippets/nostr/python/src/nip05.py @@ -28,5 +28,5 @@ async def nip05(): print("Profile NIP-05:") nip_05 = "yuki@yukikishimoto.com" profile = await get_nip05_profile(nip_05) - print(f" {nip_05} Profile: {profile.to_bech32()}") + print(f" {nip_05} Public key: {profile.public_key().to_bech32()}") # ANCHOR_END: nip05-profile diff --git a/book/snippets/nostr/rust/Cargo.toml b/book/snippets/nostr/rust/Cargo.toml index 4a42c8f16..c41b28bef 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.32" +nostr = "0.33" diff --git a/book/snippets/nostr/swift/NostrSnippets/Package.swift b/book/snippets/nostr/swift/NostrSnippets/Package.swift index 43f3eec76..0f7d101e8 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.32.1") + .package(url: "https://github.com/rust-nostr/nostr-swift", from:"0.33.0") ], targets: [ .executableTarget( diff --git a/book/src/nostr-sdk/02-installation.md b/book/src/nostr-sdk/02-installation.md index 1c14b4eb0..ecd0448b1 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.32" +nostr-sdk = "0.33" ``` Alternatively, you can add it directly from `git` source: ```toml [dependencies] -nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.32.0" } +nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.33.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.32.2 +nostr-sdk==0.33.0 ``` Import the library in your code: @@ -100,7 +100,7 @@ Alternatively, you can manually add the dependency in your `package.json` file: ```json { "dependencies": { - "@rust-nostr/nostr-sdk": "0.32.1" + "@rust-nostr/nostr-sdk": "0.33.0" } } ``` @@ -152,7 +152,7 @@ repositories { } dependencies { - implementation("org.rust-nostr:nostr-sdk:0.32.2") + implementation("org.rust-nostr:nostr-sdk:0.33.0") } ``` @@ -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.32.2"), +.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.33.0"), ``` diff --git a/book/src/nostr-sdk/03-quickstart.md b/book/src/nostr-sdk/03-quickstart.md index 170cde319..dc020d5d4 100644 --- a/book/src/nostr-sdk/03-quickstart.md +++ b/book/src/nostr-sdk/03-quickstart.md @@ -36,14 +36,14 @@ Listen for notifications from the relays based on the subscribed filters and pro
Python
-TODO +Docs aren't ready yet, please check the examples at .
JavaScript
-TODO +Docs aren't ready yet, please check the examples at .
diff --git a/book/src/nostr/02-installation.md b/book/src/nostr/02-installation.md index db8c076e2..30b9d366f 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.32" +nostr = "0.33" ``` Alternatively, you can add it directly from `git` source: ```toml,ignore [dependencies] -nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.32.0" } +nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.33.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.32.1 +nostr-protocol==0.33.0 ``` Import the library in your code: @@ -100,7 +100,7 @@ Alternatively, you can manually add the dependency in your `package.json` file: ```json { "dependencies": { - "@rust-nostr/nostr": "0.32.1" + "@rust-nostr/nostr": "0.33.0" } } ``` @@ -152,7 +152,7 @@ repositories { } dependencies { - implementation("org.rust-nostr:nostr:0.32.1") + implementation("org.rust-nostr:nostr:0.33.0") } ``` @@ -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.32.1"), +.package(url: "https://github.com/rust-nostr/nostr-swift.git", from: "0.33.0"), ``` Import the library in your code: diff --git a/book/src/nostr/06-nip05.md b/book/src/nostr/06-nip05.md index 36cf90796..5275b6d10 100644 --- a/book/src/nostr/06-nip05.md +++ b/book/src/nostr/06-nip05.md @@ -31,7 +31,7 @@ For verification of NIP-05 identifiers associated with a given `PublicKey` objec {{#include ../../snippets/nostr/python/src/nip05.py:verify-nip05}} ``` -To retrieve a sharable profile identifier (as specified in NIP-19) the `get_nip05_profile()` function can be called with the NIP-05 value passed as an argument. +To get the NIP-05 profile data (ex. user public key and relays) the `get_nip05_profile()` function can be called: ```python,ignore {{#include ../../snippets/nostr/python/src/nip05.py:nip05-profile}}