Skip to content

Commit 996c49b

Browse files
committed
Release v0.31.0
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent d585c11 commit 996c49b

File tree

10 files changed

+28
-23
lines changed

10 files changed

+28
-23
lines changed

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
<!-- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), -->
66
<!-- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -->
77

8-
## [Unreleased]
8+
## [v0.31.0]
99

1010
### Summary
1111

12+
Reworked `Tag`, added `TagStandard` enum, simplified the way to subscribe and/or reconcile to subset of relays
13+
(respectively, `client.subscribe_to` and `client.reconcile_with`), added blacklist support to mute public keys or event IDs,
14+
removed zap split from `client.zap` method, many improvements and more!
15+
1216
### Changed
1317

1418
* Bump `uniffi` to `v0.27.1` ([Yuki Kishimoto])
@@ -168,5 +172,6 @@ added `nostrdb` storage backend, added NIP32 and completed NIP51 support and mor
168172
[Xiao Yu]: https://github.com/kasugamirai
169173

170174
<!-- Tags -->
171-
[Unreleased]: https://github.com/rust-nostr/nostr/compare/v0.30.0...HEAD
172-
[v0.30.0]: https://github.com/rust-nostr/nostr/compare/v0.30.0...HEAD
175+
[Unreleased]: https://github.com/rust-nostr/nostr/compare/v0.31.0...HEAD
176+
[v0.31.0]: https://github.com/rust-nostr/nostr/compare/v0.30.0...v0.31.0
177+
[v0.30.0]: https://github.com/rust-nostr/nostr/compare/v0.29.0...v0.30.0

book/snippets/nostr-sdk/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ edition = "2021"
88
members = ["."]
99

1010
[dependencies]
11-
nostr-sdk = "0.30"
11+
nostr-sdk = "0.31"
1212
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }

book/snippets/nostr/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"main": "index.js",
66
"license": "MIT",
77
"dependencies": {
8-
"@rust-nostr/nostr": "0.13.0"
8+
"@rust-nostr/nostr": "0.14.0"
99
}
1010
}

book/snippets/nostr/js/src/event/builder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ function eventBuilder() {
1414

1515
// Compose reply to above text note
1616
let replyEvent =
17-
EventBuilder.textNote("Reply to hello", [Tag.parse(["e", textnoteEvent.id.toHex()])])
17+
EventBuilder.textNote("Reply to hello", [Tag.event(textnoteEvent.id)])
1818
.toEvent(keys);
1919

2020
// Compose POW event
2121
let powEvent =
22-
EventBuilder.textNote("Another reply with POW", [Tag.parse(["e", textnoteEvent.id.toHex()])])
22+
EventBuilder.textNote("Another reply with POW", [Tag.event(textnoteEvent.id)])
2323
.toPowEvent(keys, 20);
2424

2525
// Compose note with custom timestamp

book/snippets/nostr/kotlin/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ agp = "8.1.4"
33
kotlin = "1.9.22"
44

55
[libraries]
6-
nostr = { module = "io.github.rust-nostr:nostr", version = "0.11.0" }
6+
nostr = { module = "io.github.rust-nostr:nostr", version = "0.12.0" }
77

88
[plugins]
99
androidLibrary = { id = "com.android.library", version.ref = "agp" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nostr-protocol==0.11.0
1+
nostr-protocol==0.12.0

book/snippets/nostr/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ edition = "2021"
88
members = ["."]
99

1010
[dependencies]
11-
nostr = "0.30"
11+
nostr = "0.31"

book/snippets/nostr/swift/NostrSnippets/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let package = Package(
77
name: "NostrSnippets",
88
platforms: [.macOS(.v13)],
99
dependencies: [
10-
.package(url: "https://github.com/rust-nostr/nostr-swift", from:"0.11.0")
10+
.package(url: "https://github.com/rust-nostr/nostr-swift", from:"0.12.0")
1111
],
1212
targets: [
1313
.executableTarget(

book/src/nostr-sdk/02-installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Add the `nostr-sdk` dependency in your `Cargo.toml` file:
99

1010
```toml
1111
[dependencies]
12-
nostr-sdk = "0.30"
12+
nostr-sdk = "0.31"
1313
```
1414

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

1717
```toml
1818
[dependencies]
19-
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.30.0" }
19+
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.31.0" }
2020
```
2121

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

4545
```
46-
nostr-sdk==0.11.0
46+
nostr-sdk==0.12.0
4747
```
4848

4949
Import the library in your code:
@@ -88,7 +88,7 @@ Alternatively, you can manually add the dependency in your `package.json` file:
8888
```json
8989
{
9090
"dependencies": {
91-
"@rust-nostr/nostr-sdk": "0.13.0"
91+
"@rust-nostr/nostr-sdk": "0.14.0"
9292
}
9393
}
9494
```
@@ -140,7 +140,7 @@ repositories {
140140
}
141141

142142
dependencies {
143-
implementation("io.github.rust-nostr:nostr-sdk:0.11.0")
143+
implementation("io.github.rust-nostr:nostr-sdk:0.12.0")
144144
}
145145
```
146146

@@ -190,7 +190,7 @@ as a package dependency in Xcode.
190190
Add the following to the dependencies array in your `Package.swift`:
191191

192192
``` swift
193-
.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.11.1"),
193+
.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.12.0"),
194194
```
195195

196196
</section>

book/src/nostr/02-installation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Add the `nostr` dependency in your `Cargo.toml` file:
99

1010
```toml,ignore
1111
[dependencies]
12-
nostr = "0.30"
12+
nostr = "0.31"
1313
```
1414

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

1717
```toml,ignore
1818
[dependencies]
19-
nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.30.0" }
19+
nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.31.0" }
2020
```
2121

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

4545
```
46-
nostr-protocol==0.11.0
46+
nostr-protocol==0.12.0
4747
```
4848

4949
Import the library in your code:
@@ -87,7 +87,7 @@ Alternatively, you can manually add the dependency in your `package.json` file:
8787
```json
8888
{
8989
"dependencies": {
90-
"@rust-nostr/nostr": "0.13.0"
90+
"@rust-nostr/nostr": "0.14.0"
9191
}
9292
}
9393
```
@@ -139,7 +139,7 @@ repositories {
139139
}
140140
141141
dependencies {
142-
implementation("io.github.rust-nostr:nostr:0.11.0")
142+
implementation("io.github.rust-nostr:nostr:0.12.0")
143143
}
144144
```
145145

@@ -188,7 +188,7 @@ as a package dependency in Xcode.
188188
Add the following to the dependencies array in your `Package.swift`:
189189

190190
``` swift
191-
.package(url: "https://github.com/rust-nostr/nostr-swift.git", from: "0.11.1"),
191+
.package(url: "https://github.com/rust-nostr/nostr-swift.git", from: "0.12.0"),
192192
```
193193

194194
Import the library in your code:

0 commit comments

Comments
 (0)