Skip to content

Commit

Permalink
Release v0.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 18, 2024
1 parent 95b37aa commit ac7d5a9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion book/snippets/nostr/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nostr-protocol==0.7.1
nostr-protocol==0.8.0
6 changes: 3 additions & 3 deletions book/snippets/nostr/python/src/event/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ def event_builder():
custom_event = EventBuilder(1111, "", []).to_event(keys)

# Compose text note
textnote_event = EventBuilder.new_text_note("Hello", []).to_event(keys)
textnote_event = EventBuilder.text_note("Hello", []).to_event(keys)

# Compose reply to above text note
reply_event = EventBuilder.new_text_note("Reply to hello", [Tag.event(textnote_event.id())]).to_event(keys)
reply_event = EventBuilder.text_note("Reply to hello", [Tag.event(textnote_event.id())]).to_event(keys)

# Compose POW event
pow_event = EventBuilder.new_text_note("Another reply with POW", [Tag.event(textnote_event.id())]).to_pow_event(keys, 20)
pow_event = EventBuilder.text_note("Another reply with POW", [Tag.event(textnote_event.id())]).to_pow_event(keys, 20)
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.26"
nostr = "0.27"
6 changes: 3 additions & 3 deletions book/snippets/nostr/rust/src/event/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ pub fn event() -> Result<()> {
let custom_event = EventBuilder::new(Kind::Custom(1111), "", []).to_event(&keys)?;

// Compose text note
let textnote_event = EventBuilder::new_text_note("Hello", []).to_event(&keys)?;
let textnote_event = EventBuilder::text_note("Hello", []).to_event(&keys)?;

// Compose reply to above text note
let reply_event =
EventBuilder::new_text_note("Reply to hello", [Tag::event(textnote_event.id)])
EventBuilder::text_note("Reply to hello", [Tag::event(textnote_event.id)])
.to_event(&keys)?;

// Compose POW event
let pow_event =
EventBuilder::new_text_note("Another reply with POW", [Tag::event(textnote_event.id)])
EventBuilder::text_note("Another reply with POW", [Tag::event(textnote_event.id)])
.to_pow_event(&keys, 20)?;

Ok(())
Expand Down
10 changes: 5 additions & 5 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.26"
nostr-sdk = "0.27"
```

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

```toml
[dependencies]
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.26.0" }
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", tag = "v0.27.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.7.1
nostr-sdk==0.8.0
```

Import the library in your code:
Expand Down Expand Up @@ -140,7 +140,7 @@ repositories {
}

dependencies {
implementation("io.github.rust-nostr:nostr-sdk:<version>")
implementation("io.github.rust-nostr:nostr-sdk:0.8.0")
}
```

Expand Down Expand Up @@ -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.7.1"),
.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.8.0"),
```

</section>
Expand Down
10 changes: 5 additions & 5 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.26"
nostr = "0.27"
```

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

```toml,ignore
[dependencies]
nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.26.0" }
nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.27.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.7.1
nostr-protocol==0.8.0
```

Import the library in your code:
Expand Down Expand Up @@ -139,7 +139,7 @@ repositories {
}
dependencies {
implementation("io.github.rust-nostr:nostr:<version>")
implementation("io.github.rust-nostr:nostr:0.8.0")
}
```

Expand Down Expand Up @@ -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.7.1"),
.package(url: "https://github.com/rust-nostr/nostr-swift.git", from: "0.8.0"),
```

Import the library in your code:
Expand Down

0 comments on commit ac7d5a9

Please sign in to comment.