Releases: rust-nostr/nostr
Release v0.36.0
Many, many improvements to Relay
and RelayPool
performance (reduced atomic operations and switched to async concurrency), add NostrSigner
trait, better methods and struct names (fetch_events
instead of get_events_of
, sync
instead of reconcile
, NostrConnect
instead of Nip46Signer
and so on), add LocalRelay
and allow to easily serve it as hidden onion service with the embedded tor client, allow to keep track of negentropy sync progress, almost halved the weight of JavaScript SDK bindings (from ~6.3MB to ~3.6MB), some fixes and many more!
Note for Python, Kotlin, Swift and JavaScript devs: unfortunately I can't mark things as deprecated in bindings, so this release have many breaking changes, sorry :(
Note for devs who are using nostr-protocol
(Python), org.rust-nostr:nostr
(Kotlin), nostr-swift
(Swift) or @rust-nostr/nostr
(JavaScript) libraries: these packages are now deprecated. Only the nostr-sdk
library will be released, which include everything that was in those libraries.
Full changelog: https://rust-nostr.org/changelog
Release v0.35.0
Add gossip model support, deprecate SQLite
database in favor of LMDB
(fork of pocket database), add support to negentropy v1 (old version is still supported!), add MockRelay
(a local disposable relay for tests), allow usage of embedded tor client on mobile devices, many improvements, bugs fix and more!
Full changelog: https://rust-nostr.org/changelog
Release v0.34.0
Add embedded tor client support, allow to open databases with a limited capacity (automatically discard old events when max capacity is reached), add Client::stream_events_of
as alternative method to Client::get_events_of
(stream events instead of waiting for EOSE
and collect into a list), add search capability (NIP-50) support to Filter::match_event
and databases, add NIP-31 and NIP-70 support, add option to autoconnect relay on Client::add_relay
method call (currently disabled by default), rework the get_events_of
methods behaviour for better consistency (RelayPool::get_events_of
and Relay::get_events_of
get events only from remote relay/s while Client::get_events_of
allow to choose the source of events: database
, relays
or both
), bugs fix and more!
Full changelog: https://rust-nostr.org/changelog
Release v0.33.0
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!
Full changelog: https://rust-nostr.org/changelog
Release v0.32.0
Added async
/future
support to Python, Kotlin and Swift, added automatic authentication to relays (NIP-42, can be deactivated in client options), improvements to relay limits, many bug fixes (relays not auto reconnect, wrong query order for SQLite, tokio panic when using SQLite database in bindings) and more!
Note for kotlin devs: from this release the packages will be published at org.rust-nostr
instead of io.github.rust-nostr
.
Full changelog: https://rust-nostr.org/changelog
Release v0.31.0
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!
Full changelog: https://rust-nostr.org/changelog
Release v0.30.0
Summary
Adapted NIP46 to last changes, added NostrConnectRemoteSigner
to easily build remote signers (just construct it and call serve
method),
improved proxy options (allow to specify the proxy target: all relays or only .onion
ones),
improvements to NWC client, fixed equality operator for bindings (Python, Kotlin and Swift),
added nostrdb
storage backend, added NIP32 and completed NIP51 support and more!
Changed
- Bump
uniffi
tov0.27
(Yuki Kishimoto) - Adapted NIP46 to last changes (Yuki Kishimoto)
- nostr: change
Tag::parse
arg fromVec<S>
to&[S]
(Yuki Kishimoto) - nostr: allow to parse public key from NIP21 uri with
PublicKey::parse
(Yuki Kishimoto) - nostr: allow to parse event ID from NIP21 uri with
EventId::parse
(Yuki Kishimoto) - nostr: construct
GenericTagValue
based onSingleLetterTag
indeserialize_generic_tags
(Yuki Kishimoto) - nostr: set
UnsignedEvent
ID as optional (Yuki Kishimoto) - nostr: update
TryIntoUrl::try_into_url
fingerprint (Yuki Kishimoto) - nostr: bump
bitcoin
to0.31
(Yuki Kishimoto) - sdk: bump
lnurl-pay
to0.4
(Yuki Kishimoto) - sdk: improve
proxy
options (Yuki Kishimoto) - pool: bump
async-wsocket
to0.4
(Yuki Kishimoto) - pool: return error if
urls
arg is empty inInternalRelayPool::get_events_from
(Yuki Kishimoto) - pool: allow to disable
RelayLimits
(Yuki Kishimoto) - signer: re-work
nip46
module (Yuki Kishimoto) - nwc: avoid to open and close subscription for every request (Yuki Kishimoto)
- nwc: allow to customize requests timeout (Yuki Kishimoto)
- js(nostr): consume
JsEventBuilder
when buildingEvent
orUnsignedEvent
(Yuki Kishimoto)
Added
- Add support to
nostrdb
storage backend (Yuki Kishimoto) - nostr: add
Report::Other
variant (Daniel Cadenas) - nostr: add
EventBuilder::reaction_extended
(Yuki Kishimoto) - nostr: add NIP32 support (rustedmoon)
- pool: add
Relay::handle_notifications
(Yuki Kishimoto) - cli: add command to serve
Nostr Connect
signer (Yuki Kishimoto) - ffi(nostr): added
FilterRecord
, to allow to access fields inFilter
(Yuki Kishimoto) - ffi(nostr): add missing NIP51 constructors (rustedmoon)
- ffi(sdk): add
AbortHandle
(Yuki Kishimoto) - ffi(sdk): add
sqlite
andndb
features (Yuki Kishimoto) - js(nostr): add missing NIP51 constructors (rustedmoon)
- js(nostr): add NIP47 request params and response results structs (Yuki Kishimoto)
- js(sdk): add
NWC
client (Yuki Kishimoto) - js(sdk): add
NostrDatabase::save_event
method (Xiao Yu)
Fixed
- nostr: fix
Tag::content
return alwaysNone
whenTag::Generic
(Yuki Kishimoto) - nostr: fix NIP46
Request::from_message
deserialization (Yuki Kishimoto) - nostr: fix
NostrConnectURI
serialization (Yuki Kishimoto) - nostr: fix
LookupInvoiceParams
(benthecarman) - ffi: fix equality operator (
==
) (Yuki Kishimoto) - js(nostr): fix
Keys
method calls in examples (Xiao Yu)
Removed
- Removed deprecated (Yuki Kishimoto)
Full Changelog: v0.29.0...v0.30.0
Release v0.29.0
What's Changed
- Handle no nwc request params better by @benthecarman in #298
- Make encrypt_private_zap_message pub by @benthecarman in #299
- Better functions for handling decrypting private zaps by @benthecarman in #301
- nostr: not skip serialization of empty lists in
Filter
by @yukibtc in #303 - nostr: add NIP44 calls to NIP07 by @yukibtc in #304
- signer: remove
Version
fromNostrSigner::nip44_encrypt
by @yukibtc in #305 - Dervice more traits for NWC errors by @benthecarman in #306
- add JSON string deserialization for nip15 StallData in nostr-ffi by @aki-mizu in #309
- pool: add
RequestOptions
by @yukibtc in #320 - nostr: adapt
EventBuilder::repost
to last NIP18 changes by @yukibtc in #323 - nostr: update
EventBuilder::reaction
constructor by @yukibtc in #327 - ffi(nostr): convert
RelayMessage
toObject
and addRelayMessageEnum
by @yukibtc in #328 - pool: improve
ReleyPool
shutdown on drop system by @yukibtc in #330 - ffi(nostr): convert
ClientMessage
toObject
and addClientMessageEnum
by @yukibtc in #332 - add StallDataRecord in addition to StallData by @aki-mizu in #335
- Bump
uniffi
and remove no longer neededArc<X>
by @yukibtc in #339 - ffi(nostr): add
Kind
andKindEnum
by @yukibtc in #340 - build(deps): bump mio from 0.8.10 to 0.8.11 by @dependabot in #334
- build(deps): bump aes from 0.8.3 to 0.8.4 by @dependabot in #311
- build(deps): bump thiserror from 1.0.56 to 1.0.57 by @dependabot in #312
- build(deps): bump tokio from 1.35.1 to 1.36.0 by @dependabot in #310
- build(deps): bump rayon from 1.8.1 to 1.9.0 by @dependabot in #314
- add serialization and deserialization for RawEvent in nostr-ffi by @aki-mizu in #342
- Improve
Relay
by @yukibtc in #343 - Improve subscription system by @yukibtc in #346
- Remove trailing slash from relay in NWC uri by @benthecarman in #347
- ffi(sdk): add
NWC
by @yukibtc in #348 - database: add
NostrDatabase::delete
by @yukibtc in #349 - ffi(sdk): add missing constructors/methods to
Relay
by @yukibtc in #350 - ffi(sdk): add
RelayPool
by @yukibtc in #351 - Allow to edit
RelayLimits
by @yukibtc in #353 - ffi(sdk): allow to use custom database by @yukibtc in #354
- Add impl From for UnsignedEvent by @benthecarman in #355
- Re-add support to
Filter::match_event
by @yukibtc in #356 - nostr: allow to specify the whole 5 level path for NIP06 by @yukibtc in #357
- js(nostr): complete
EventBuilder
by @rustedmoon in #266 - nostr: add
Tag::is_reply
method by @yukibtc in #359 - add MetadataRecord for Metadata in nostr-ffi by @aki-mizu in #361
- ffi(sdk): replace
HashMap<Arc<EventId>, Arc<Timestamp>>
withVec<NegentropyItem>
by @yukibtc in #362 - nostr: add
EventBuilder::text_note_reply
by @yukibtc in #363 - nostr: complete NIP51 by @rustedmoon in #344
- make book: just serve OR cargo install just by @RandyMcMillan in #365
New Contributors
- @aki-mizu made their first contribution in #309
- @RandyMcMillan made their first contribution in #365
Full Changelog: v0.28.0...v0.29.0
Release v0.28.0
What's Changed
- Nostr sdk book pages by @w3irdrobot in #245
- Verify unsigned event ids by @benthecarman in #255
- sdk: add
ClientZapper
by @yukibtc in #257 - build(deps): bump h2 from 0.3.23 to 0.3.24 by @dependabot in #256
- Reduce WASM size by @yukibtc in #259
- nostr: use
url
instd
andurl-fork
inno_std
by @yukibtc in #260 - nostr: add support to uppercase
single-letter
tags by @yukibtc in #261 - Make nostr-sdk signing events public by @benthecarman in #263
- Improve
negentropy
reconciliation by @yukibtc in #265 - Updates to remaining NWC extensions by @benthecarman in #207
- Add Relay Service Flags by @yukibtc in #269
- Add support to NIP59 by @yukibtc in #157
- Add
Sealed Direct
messages support by @yukibtc in #270 - sdk: allow to send/get msgs and events to/from specific relays by @yukibtc in #273
- sdk: move
relay
module tonostr-sdk-pool
crate by @yukibtc in #280 - Add encrypted tag kind by @benthecarman in #281
- Improve
ClientSigner
by @yukibtc in #282 - Bump
async-utility
tov0.2.0
andasync-wsocket
tov0.3.0
by @yukibtc in #283 - sqlite: bump
rusqlite
tov0.30
by @yukibtc in #284 - pool: add
Relay::send_req
method by @yukibtc in #285 - build(deps): bump shlex from 1.2.0 to 1.3.0 by @dependabot in #286
- Add POW difficulty check for received events by @yukibtc in #287
- database: use
LruCache
instead ofHashMap
inMemoryDatabase
by @yukibtc in #288 - Rename
ClientSigner
toNostrSigner
by @yukibtc in #289 - database: extend kind-author indexes support by @yukibtc in #290
- nostr: add
PublicKey
andSecretKey
structs by @yukibtc in #295 - Add support to NIP49 by @yukibtc in #296
- Zapper by @yukibtc in #297
Full Changelog: v0.27.0...v0.28.0
Release v0.27.0
What's Changed
- ffi(nostr): complete types module by @rustedmoon in #226
- nostr: add support to anonymous and private zaps by @yukibtc in #151
- sdk: add
ClientSigner
by @yukibtc in #229 - Add NIP07 support by @yukibtc in #228
- Fix typo in README.md by @akiomik in #231
- Add uppercase P tag to Zaps by @benthecarman in #230
- Preserve
Event
de/serialization JSON field order by @yukibtc in #232 - ffi(nostr): complete nips module by @rustedmoon in #225
- Improve database performance by @yukibtc in #233
- Fix some typos by @akiomik in #234
- Fix parsing metadata with non-string types by @benthecarman in #237
- MSRV by @yukibtc in #241
- add try_from implementation for filemetadata from tags vector by @w3irdrobot in #243
- Add
contrib/check-*.sh
scripts by @yukibtc in #242 - doc: Add nip47 pay_invoice example by @rolznz in #248
- contrib: add
scripts/check-book.sh
by @yukibtc in #249 - sdk: replace
wait_for_connection
option withconnection_timeout
by @yukibtc in #250 - Init some nostr book sections by @rustedmoon in #247
New Contributors
Full Changelog: v0.26.0...v0.27.0