This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
fix(deps): update rust crate nostr-sdk to 0.35.0 #189
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.33.0
->0.35.0
Release Notes
rust-nostr/nostr (nostr-sdk)
v0.35.0
Compare Source
Summary
Add gossip model support, deprecate
SQLite
database in favor ofLMDB
(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!
Changed
bitcoin
tov0.32
([Yuki Kishimoto])base64
tov0.22
([Yuki Kishimoto])Event::from_value
([Yuki Kishimoto])Tag::as_vec
([Yuki Kishimoto])RawRelayMessage
parsing ([Yuki Kishimoto])Event
fields ([Yuki Kishimoto])Event::is_*
kind related methods ([Yuki Kishimoto])TryIntoUrl::Err
toInfallible
forUrl
([Yuki Kishimoto])Event::verify_id
andEvent::verify_signature
fingerprint ([Yuki Kishimoto])Debug
,PartialEq
andEq
forKeys
([Yuki Kishimoto])PartialOrd
,Ord
andHash
forKeys
([Yuki Kishimoto])Keys::secret_key
andKeys::sign_schnorr
methods fingerprint ([Yuki Kishimoto])Keys::generate_without_keypair
([Yuki Kishimoto])NostrWalletConnectURI
parsing ([Yuki Kishimoto])EventBuilder::job_feedback
method fingerprint ([Yuki Kishimoto])EventBuilder::to_pow_event
([Yuki Kishimoto])Display
forMachineReadablePrefix
([Yuki Kishimoto])Keys
docs ([Yuki Kishimoto])public_key
field inKeys
struct ([Yuki Kishimoto])Keys::public_key_ref
([Yuki Kishimoto])OsRng
instead ofThreadRng
forSECP256K1
global context and schnorr signing ([Yuki Kishimoto])Timestamp::to_human_datetime
performance ([Yuki Kishimoto])EventId::owned
([Yuki Kishimoto])EventId::all_zeroes
to const function ([Yuki Kishimoto])Timestamp::from_secs
to const function ([Yuki Kishimoto])Kind::as_u32
andKind::as_u64
([Yuki Kishimoto])NostrDatabase
supertraits ([Yuki Kishimoto])Clone
forMemoryDatabase
([Yuki Kishimoto])NostrDatabase::event_by_id
fingerprint ([Yuki Kishimoto])tokio-tungstenite
tov0.24
([Yuki Kishimoto])async-wsocket
tov0.8
([Yuki Kishimoto])Url
andRelay
clone inRelayPool
methods ([Yuki Kishimoto])Relay
clone inRelayPool::connect_relay
method ([Yuki Kishimoto])RelayPool::send_event
andRelayPool::batch_event
send only to relays withWRITE
flag ([Yuki Kishimoto])RelayPool::subscribe_with_id
,RelayPool::get_events_of
andRelayPool::stream_events_of
REQ events only to relays withREAD
flag ([Yuki Kishimoto])async-wsocket
tov0.9
([Yuki Kishimoto])Relay::support_negentropy
method ([Yuki Kishimoto])error
towarn
([Yuki Kishimoto])webln
tov0.3
([Yuki Kishimoto])SQLiteDatabase
in favor of LMDB ([Yuki Kishimoto])lnurl-pay
tov0.6
([Yuki Kishimoto])Client::gift_wrap
andClient::gift_wrap_to
methods signature ([Yuki Kishimoto])Client::metadata
toClient::fetch_metadata
([Janek])Client::shutdown
method fingerprint ([Yuki Kishimoto])Client::add_relay_with_opts
andClient::add_relays
([Yuki Kishimoto])RelayPool::send_msg
andRelayPool::batch_msg
([Yuki Kishimoto])Client::add_relay
orClient::add_read_relay
methods ([Yuki Kishimoto])Display
forCoordinate
([Yuki Kishimoto])Connection::embedded_tor
fingerprint forandroid
andios
targets ([Yuki Kishimoto])open
command toshell
([Yuki Kishimoto])serve-signer
command tobunker
([Yuki Kishimoto])Added
TryFrom<Vec<Tag>>
forLiveEvent
([w3irdrobot])Tag::as_slice
([Yuki Kishimoto])NostrWalletConnectURI::parse
([Yuki Kishimoto])JobFeedbackData
struct ([Yuki Kishimoto])EventBuilder::pow
method ([Yuki Kishimoto])TagKind::custom
constructor ([Yuki Kishimoto])Timestamp::from_secs
([Yuki Kishimoto])EventId::from_byte_array
([Yuki Kishimoto])Timestamp::min
andTimestamp::max
([Yuki Kishimoto])nip65::extract_owned_relay_list
([Yuki Kishimoto])Kind::from_u16
([Yuki Kishimoto])DatabaseHelper::fast_query
([Yuki Kishimoto])NostrDatabase::check_id
([Yuki Kishimoto])NostrDatabaseExt::relay_lists
([Yuki Kishimoto])MockRelay
([Yuki Kishimoto])RelayPool::disconnect_relay
method ([Yuki Kishimoto])RelayPool::relays_with_flag
andRelayPool::all_relays
([Yuki Kishimoto])Client::add_discovery_relay
([Yuki Kishimoto])Client::add_read_relay
andClient::add_write_relay
([Yuki Kishimoto])Client::stream_events_targeted
([Yuki Kishimoto])Client::subscribe_targeted
([Yuki Kishimoto])Client::send_event
([Yuki Kishimoto])Client::get_events_of
andClient::stream_events_of
([Yuki Kishimoto])Client::subscribe
andClient::subscribe_with_id
([Yuki Kishimoto])as_pretty_json
for some structs ([Yuki Kishimoto])Client::fetch_metadata
([Yuki Kishimoto])Client::pool
method ([Yuki Kishimoto])Kind::is_*
methods ([Yuki Kishimoto])MockRelay
([Yuki Kishimoto])Kind
object ([Yuki Kishimoto])getNip05Profile
function ([Yuki Kishimoto])JsCoordinate
([Yuki Kishimoto])RelayPool::relays
([Yuki Kishimoto])serve
command ([Yuki Kishimoto])Fixed
TagStanderd::to_vec
([nanikamado])JsonUtil::try_as_pretty_json
method ([Yuki Kishimoto])Kind::is_regular
method ([Yuki Kishimoto])Removed
rocksdb
([Yuki Kishimoto])bech32
from the public API ([Yuki Kishimoto])Keys::from_public_key
([Yuki Kishimoto])tracing
dep ([Yuki Kishimoto])fmt::Display
forSecretKey
([Yuki Kishimoto])has_event_already_been_saved
,has_event_already_been_seen
andhas_event_id_been_deleted
methods fromNostrDatabase
([Yuki Kishimoto])Err
fromNostrDatabase
([Yuki Kishimoto])NostrDatabase::bulk_import
([Yuki Kishimoto])DatabaseError::NotFound
variant ([Yuki Kishimoto])DatabaseError::Nostr
variant ([Yuki Kishimoto])Order
enum ([Yuki Kishimoto])order
arg fromNostrDatabase::query
([Yuki Kishimoto])Error::OneShotRecvError
variant ([Yuki Kishimoto])Err
fromNostrZapper
and unnecessary variants fromZapperError
([Yuki Kishimoto])Keys::vanity
([Yuki Kishimoto])reverse
flag fromquery
command ([Yuki Kishimoto])v0.34.0
Compare Source
Summary
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 toClient::get_events_of
(stream events instead of waiting forEOSE
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 theget_events_of
methods behaviour forbetter consistency (
RelayPool::get_events_of
andRelay::get_events_of
get events only from remote relay/s whileClient::get_events_of
allow to choose the source of events:database
,relays
orboth
), bugs fix and more!Changed
1.80.1
([Yuki Kishimoto])Event::author_ref
andEvent::iter_tags
([Yuki Kishimoto])EventId
inEventBuilder::to_unsigned_event_with_supplier
([Yuki Kishimoto])EventId
([Yuki Kishimoto])PartialEvent
methods ([Yuki Kishimoto])EventBuilder::award_badge
fingerprint ([Yuki Kishimoto])Filter::match_event
method ([Yuki Kishimoto])Arc<T>
fromOnceCell<T>
inEvent
andTag
([Yuki Kishimoto])sig
field fromPartialEvent
toMissingPartialEvent
([Yuki Kishimoto])Debug
trait impl forEventId
,PublicKey
andTag
([Yuki Kishimoto])SubscriptionId::generate_with_rng
([Yuki Kishimoto])InternalRelayPool::get_events_from
([Yuki Kishimoto])InternalRelayPool::get_events_from
([Yuki Kishimoto])async-wsocket
tov0.7
([Yuki Kishimoto])get_events_of
orget_events_from
([Yuki Kishimoto])EventId
inEvent::decode
([Yuki Kishimoto])Vec
instead ofBTreeSet
as inner value forTagIndexValues
([Yuki Kishimoto])DatabaseIndexes
and rename toDatabaseHelper
([Yuki Kishimoto])DatabaseHelper
([Yuki Kishimoto])NostrDatabase::negentropy_items
([Yuki Kishimoto])Proxy
andProxyTarget
toConnection
andConnectionTarget
([Yuki Kishimoto])Client::get_events_of
method ([Yuki Kishimoto])Client::get_events_of_with_opts
([Yuki Kishimoto])ValueRef
instead of owned one ([Yuki Kishimoto])sync
command ([Yuki Kishimoto])open
command ([Yuki Kishimoto])Added
EventId::LEN
const ([Yuki Kishimoto])UnsignedEvent::ensure_id
method ([Yuki Kishimoto])payload
arg toEventBuilder::job_result
([Yuki Kishimoto])ConversationKey::new
([Yuki Kishimoto])Request::multi_pay_invoice
constructor ([Yuki Kishimoto])Jsonutil::as_pretty_json
andJsonUtil::try_as_pretty_json
methods ([Yuki Kishimoto])Coordinate::has_identifier
([Yuki Kishimoto])RelayPoolNotification::Authenticated
variant ([Yuki Kishimoto])RelayPool::save_subscription
([Yuki Kishimoto])Client::gift_wrap_to
andClient::send_private_msg_to
([reyamir])Client::add_relay
method call ([Yuki Kishimoto])Options::max_avg_latency
([Yuki Kishimoto])Client::stream_events_of
andClient::stream_events_from
methods ([Yuki Kishimoto])EventBuilder::seal
constructor ([Yuki Kishimoto])generate
command ([Yuki Kishimoto])json
flag toquery
command ([Yuki Kishimoto])Fixed
Event
notification variant sent also for events sent by the SDK ([Yuki Kishimoto])QueryPattern
([Yuki Kishimoto])Removed
nrelay
NIP-19 entity ([Yuki Kishimoto])EventBuilder::encrypted_direct_msg
([Yuki Kishimoto])TempEvent
([Yuki Kishimoto])NostrDatabase::event_ids_by_filters
([Yuki Kishimoto])Client::send_direct_msg
([Yuki Kishimoto])tracing-subscriber
dep ([Yuki Kishimoto])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.