From 252576c2487d23fad3a8542571f4675d3b2637e7 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Thu, 6 Nov 2025 11:59:05 +0100 Subject: [PATCH 1/2] Release v0.44.0 Signed-off-by: Yuki Kishimoto --- snippets/csharp/Snippets.csproj | 2 +- snippets/flutter/pubspec.lock | 41 +++++++++----------------- snippets/js/package.json | 2 +- snippets/kotlin/build.gradle.kts | 2 +- snippets/python/requirements.txt | 2 +- snippets/python/src/messages/client.py | 2 +- snippets/rust/Cargo.toml | 6 ++-- snippets/rust/src/nip17.rs | 2 +- snippets/swift/Package.swift | 2 +- src/sdk/install.md | 16 +++++----- 10 files changed, 32 insertions(+), 45 deletions(-) diff --git a/snippets/csharp/Snippets.csproj b/snippets/csharp/Snippets.csproj index 3a121b3..eb4e6bd 100644 --- a/snippets/csharp/Snippets.csproj +++ b/snippets/csharp/Snippets.csproj @@ -8,7 +8,7 @@ - + diff --git a/snippets/flutter/pubspec.lock b/snippets/flutter/pubspec.lock index 0aa6699..c32532d 100644 --- a/snippets/flutter/pubspec.lock +++ b/snippets/flutter/pubspec.lock @@ -5,23 +5,18 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 + sha256: da0d9209ca76bde579f2da330aeb9df62b6319c834fa7baae052021b0462401f url: "https://pub.dev" source: hosted - version: "72.0.0" - _macros: - dependency: transitive - description: dart - source: sdk - version: "0.3.2" + version: "85.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 + sha256: "974859dc0ff5f37bc4313244b3218c791810d03ab3470a579580279ba971a48d" url: "https://pub.dev" source: hosted - version: "6.7.0" + version: "7.7.1" args: dependency: transitive description: @@ -58,18 +53,18 @@ packages: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.4.0" collection: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.1" convert: dependency: transitive description: @@ -195,14 +190,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" - macros: - dependency: transitive - description: - name: macros - sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" - url: "https://pub.dev" - source: hosted - version: "0.1.2-main.4" matcher: dependency: transitive description: @@ -223,10 +210,10 @@ packages: dependency: transitive description: name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c url: "https://pub.dev" source: hosted - version: "1.15.0" + version: "1.16.0" mime: dependency: transitive description: @@ -328,7 +315,7 @@ packages: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_map_stack_trace: dependency: transitive description: @@ -421,10 +408,10 @@ packages: dependency: transitive description: name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.2.0" vm_service: dependency: transitive description: @@ -482,5 +469,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.5.3 <4.0.0" + dart: ">=3.8.0-0 <4.0.0" flutter: ">=3.3.0" diff --git a/snippets/js/package.json b/snippets/js/package.json index b5f56eb..911baeb 100644 --- a/snippets/js/package.json +++ b/snippets/js/package.json @@ -5,7 +5,7 @@ "type": "module", "license": "MIT", "dependencies": { - "@rust-nostr/nostr-sdk": "0.43.0", + "@rust-nostr/nostr-sdk": "0.44.0", "bip39": "^3.1.0" }, "devDependencies": { diff --git a/snippets/kotlin/build.gradle.kts b/snippets/kotlin/build.gradle.kts index 0030317..242bf12 100644 --- a/snippets/kotlin/build.gradle.kts +++ b/snippets/kotlin/build.gradle.kts @@ -11,7 +11,7 @@ repositories { dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3") - implementation("org.rust-nostr:nostr-sdk-jvm:0.43.1") + implementation("org.rust-nostr:nostr-sdk-jvm:0.44.0") } tasks.test { diff --git a/snippets/python/requirements.txt b/snippets/python/requirements.txt index 5ee66b6..5be7884 100644 --- a/snippets/python/requirements.txt +++ b/snippets/python/requirements.txt @@ -1,3 +1,3 @@ mnemonic==0.21 -nostr-sdk==0.43.1 +nostr-sdk==0.44.0 pyright==1.1.399 diff --git a/snippets/python/src/messages/client.py b/snippets/python/src/messages/client.py index 3092631..0f07a7d 100644 --- a/snippets/python/src/messages/client.py +++ b/snippets/python/src/messages/client.py @@ -43,7 +43,7 @@ def client_message(): message = ClientMessage.from_json('["REQ","ABC123",{"#p":["421a4dd67be773903f805bcb7975b4d3377893e0e09d7563b8972ee41031f551"]}]') print(f" - ENUM: {message.as_enum()}") f = Filter().pubkey(keys.public_key()) - message = ClientMessage.from_enum(cast(ClientMessageEnum, ClientMessageEnum.REQ("ABC123", filter=f))) + message = ClientMessage.from_enum(cast(ClientMessageEnum, ClientMessageEnum.REQ("ABC123", filters=[f]))) print(f" - JSON: {message.as_json()}") # ANCHOR_END: parse-message diff --git a/snippets/rust/Cargo.toml b/snippets/rust/Cargo.toml index 1a9c4a3..7223a42 100644 --- a/snippets/rust/Cargo.toml +++ b/snippets/rust/Cargo.toml @@ -4,9 +4,9 @@ version = "0.1.0" edition = "2021" [dependencies] -nostr-sdk = { version = "0.43", features = ["all-nips"] } -nostr-relay-builder = "0.43" -nwc = "0.43" +nostr-sdk = { version = "0.44", features = ["all-nips"] } +nostr-relay-builder = "0.44" +nwc = "0.44" tokio = { version = "1", features = ["rt-multi-thread", "macros"] } [[bin]] diff --git a/snippets/rust/src/nip17.rs b/snippets/rust/src/nip17.rs index ae726ef..b151f52 100644 --- a/snippets/rust/src/nip17.rs +++ b/snippets/rust/src/nip17.rs @@ -3,7 +3,7 @@ use nostr_relay_builder::prelude::*; pub async fn run() -> Result<()> { let relay = MockRelay::run().await?; - let url = relay.url(); + let url = relay.url().await; // ANCHOR: nip17 // Sender diff --git a/snippets/swift/Package.swift b/snippets/swift/Package.swift index cbffb99..bf1c61a 100644 --- a/snippets/swift/Package.swift +++ b/snippets/swift/Package.swift @@ -7,7 +7,7 @@ let package = Package( name: "NostrSnippets", platforms: [.macOS(.v12)], dependencies: [ - .package(url: "https://github.com/rust-nostr/nostr-sdk-swift", from: "0.43.1") + .package(url: "https://github.com/rust-nostr/nostr-sdk-swift", from: "0.44.0") ], targets: [ .executableTarget( diff --git a/src/sdk/install.md b/src/sdk/install.md index 31ec5c3..08e1b43 100644 --- a/src/sdk/install.md +++ b/src/sdk/install.md @@ -9,14 +9,14 @@ Add the `nostr-sdk` dependency in your `Cargo.toml` file: ```toml [dependencies] -nostr-sdk = "0.43" +nostr-sdk = "0.44" ``` Alternatively, you can add it directly from `git` source: ```toml [dependencies] -nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.43.0" } +nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.44.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.43.1 +nostr-sdk==0.44.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.43.0" + "@rust-nostr/nostr-sdk": "0.44.0" } } ``` @@ -154,7 +154,7 @@ repositories { } dependencies { - implementation("org.rust-nostr:nostr-sdk:0.43.1") + implementation("org.rust-nostr:nostr-sdk:0.44.0") } ``` @@ -166,7 +166,7 @@ repositories { } dependencies { - implementation("org.rust-nostr:nostr-sdk-jvm:0.43.1") + implementation("org.rust-nostr:nostr-sdk-jvm:0.44.0") } ``` @@ -241,7 +241,7 @@ as a package dependency in Xcode. Add the following to the dependency array in your `Package.swift`: ``` swift -.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.43.1"), +.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.44.0"), ``` ### Supported platforms @@ -270,7 +270,7 @@ Are you interested in other platforms? Open an issue [here](https://github.com/r The `Nostr.Sdk` package is available on [nuget](https://www.nuget.org/packages/Nostr.Sdk): ```bash -dotnet add package Nostr.Sdk --version 0.43.1 +dotnet add package Nostr.Sdk --version 0.44.0 ``` ### Requirements and supported platforms From b837d2eafac50d343f021ac80ab9be1fb0a49e5a Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Fri, 22 Aug 2025 10:19:33 +0200 Subject: [PATCH 2/2] Update supported platforms for Kotlin Signed-off-by: Yuki Kishimoto --- src/sdk/install.md | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/src/sdk/install.md b/src/sdk/install.md index 08e1b43..0f2778c 100644 --- a/src/sdk/install.md +++ b/src/sdk/install.md @@ -170,6 +170,18 @@ dependencies { } ``` +### KMP + +```kotlin +repositories { + mavenCentral() +} + +dependencies { + implementation("org.rust-nostr:nostr-sdk-kmp:0.44.0") +} +``` + ### Import the library Import the library in your code: @@ -182,14 +194,15 @@ import rust.nostr.sdk.* The following OS and architectures are supported: -| OS | x86_64 | aarch64 | armv7 | i686 | riscv64 | Package | -|---------------|--------|---------|-------|------|---------|-----------------| -| Android | ✅ | ✅ | ✅ | ✅ | ❌ | `nostr-sdk` | -| Linux (GLIBC) | ✅ | ✅ | ✅ | ✅ | ✅ | `nostr-sdk-jvm` | -| Linux (MUSL) | ✅ | ✅ | ✅ | ✅ | ✅ | `nostr-sdk-jvm` | -| FreeBSD | ✅ | ❌ | ❌ | ❌ | ❌ | `nostr-sdk-jvm` | -| macOS | ✅ | ✅ | ❌ | ❌ | ❌ | `nostr-sdk-jvm` | -| Windows | ✅ | ✅ | ❌ | ✅ | ❌ | `nostr-sdk-jvm` | +| OS | x86_64 | aarch64 | armv7 | i686 | riscv64 | Package | +|---------------|--------|---------|-------|------|---------|-------------------------------------| +| Android | ✅ | ✅ | ✅ | ✅ | ❌ | `nostr-sdk` and `nostr-sdk-kmp` | +| iOS | ✅ | ✅ | ❌ | ❌ | ❌ | `nostr-sdk-kmp` | +| Linux (GLIBC) | ✅ | ✅ | ✅ | ✅ | ✅ | `nostr-sdk-jvm` and `nostr-sdk-kmp` | +| Linux (MUSL) | ✅ | ✅ | ✅ | ✅ | ✅ | `nostr-sdk-jvm` and `nostr-sdk-kmp` | +| FreeBSD | ✅ | ❌ | ❌ | ❌ | ❌ | `nostr-sdk-jvm` and `nostr-sdk-kmp` | +| macOS | ✅ | ✅ | ❌ | ❌ | ❌ | `nostr-sdk-jvm` and `nostr-sdk-kmp` | +| Windows | ✅ | ✅ | ❌ | ✅ | ❌ | `nostr-sdk-jvm` and `nostr-sdk-kmp` | Are you interested in other platforms? Open an issue [here](https://github.com/rust-nostr/nostr-sdk-ffi). @@ -281,7 +294,8 @@ The following OS and architectures are supported: | OS | x86_64 | aarch64 | armv7 | i686 | riscv64 | |---------------|--------|---------|-------|------|---------| -| Android | ❌ | ❌ | ❌ | ❌ | ❌ | +| Android | ✅ | ✅ | ✅ | ✅ | ❌ | +| iOS | ✅ | ✅ | ❌ | ❌ | ❌ | | Linux (GLIBC) | ✅ | ✅ | ✅ | ✅ | ✅ | | Linux (MUSL) | ✅ | ✅ | ✅ | ✅ | ✅ | | FreeBSD | ✅ | ❌ | ❌ | ❌ | ❌ |