Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 15, 2024

This PR contains the following updates:

Package Type Update Change
nostr-sdk dependencies minor 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 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!

Changed
  • nostr: bump bitcoin to v0.32 ([Yuki Kishimoto])
  • nostr: bump base64 to v0.22 ([Yuki Kishimoto])
  • nostr: deprecate Event::from_value ([Yuki Kishimoto])
  • nostr: deprecate Tag::as_vec ([Yuki Kishimoto])
  • nostr: re-write RawRelayMessage parsing ([Yuki Kishimoto])
  • nostr: update Event fields ([Yuki Kishimoto])
  • nostr: deprecate Event::is_* kind related methods ([Yuki Kishimoto])
  • nostr: change TryIntoUrl::Err to Infallible for Url ([Yuki Kishimoto])
  • nostr: change Event::verify_id and Event::verify_signature fingerprint ([Yuki Kishimoto])
  • nostr: impl custom Debug, PartialEq and Eq for Keys ([Yuki Kishimoto])
  • nostr: impl PartialOrd, Ord and Hash for Keys ([Yuki Kishimoto])
  • nostr: change Keys::secret_key and Keys::sign_schnorr methods fingerprint ([Yuki Kishimoto])
  • nostr: deprecate Keys::generate_without_keypair ([Yuki Kishimoto])
  • nostr: change NIP-26 functions fingerprint ([Yuki Kishimoto])
  • nostr: improve NostrWalletConnectURI parsing ([Yuki Kishimoto])
  • nostr: update EventBuilder::job_feedback method fingerprint ([Yuki Kishimoto])
  • nostr: deprecate EventBuilder::to_pow_event ([Yuki Kishimoto])
  • nostr: impl Display for MachineReadablePrefix ([Yuki Kishimoto])
  • nostr: improve Keys docs ([Yuki Kishimoto])
  • nostr: change visibility of public_key field in Keys struct ([Yuki Kishimoto])
  • nostr: deprecate Keys::public_key_ref ([Yuki Kishimoto])
  • nostr: use OsRng instead of ThreadRng for SECP256K1 global context and schnorr signing ([Yuki Kishimoto])
  • nostr: improve Timestamp::to_human_datetime performance ([Yuki Kishimoto])
  • nostr: deprecate EventId::owned ([Yuki Kishimoto])
  • nostr: convert EventId::all_zeroes to const function ([Yuki Kishimoto])
  • nostr: convert Timestamp::from_secs to const function ([Yuki Kishimoto])
  • nostr: deprecate Kind::as_u32 and Kind::as_u64 ([Yuki Kishimoto])
  • database: update NostrDatabase supertraits ([Yuki Kishimoto])
  • database: impl Clone for MemoryDatabase ([Yuki Kishimoto])
  • database: update NostrDatabase::event_by_id fingerprint ([Yuki Kishimoto])
  • relay-builder: bump tokio-tungstenite to v0.24 ([Yuki Kishimoto])
  • pool: bump async-wsocket to v0.8 ([Yuki Kishimoto])
  • pool: avoid unnecessary Url and Relay clone in RelayPool methods ([Yuki Kishimoto])
  • pool: avoid Relay clone in RelayPool::connect_relay method ([Yuki Kishimoto])
  • pool: RelayPool::send_event and RelayPool::batch_event send only to relays with WRITE flag ([Yuki Kishimoto])
  • pool: RelayPool::subscribe_with_id, RelayPool::get_events_of and RelayPool::stream_events_of REQ events only to relays with READ flag ([Yuki Kishimoto])
  • pool: bump async-wsocket to v0.9 ([Yuki Kishimoto])
  • pool: improve Relay::support_negentropy method ([Yuki Kishimoto])
  • pool: change handle relay message log level from error to warn ([Yuki Kishimoto])
  • signer: update NIP-04 and NIP-44 methods signature ([Yuki Kishimoto])
  • webln: bump webln to v0.3 ([Yuki Kishimoto])
  • sqlite: deprecate SQLiteDatabase in favor of LMDB ([Yuki Kishimoto])
  • sdk: bump lnurl-pay to v0.6 ([Yuki Kishimoto])
  • sdk: update Client::gift_wrap and Client::gift_wrap_to methods signature ([Yuki Kishimoto])
  • sdk: document and rename Client::metadata to Client::fetch_metadata ([Janek])
  • sdk: update Client::shutdown method fingerprint ([Yuki Kishimoto])
  • sdk: deprecate Client::add_relay_with_opts and Client::add_relays ([Yuki Kishimoto])
  • sdk: deprecate RelayPool::send_msg and RelayPool::batch_msg ([Yuki Kishimoto])
  • sdk: inherit pool subscriptions only when calling Client::add_relay or Client::add_read_relay methods ([Yuki Kishimoto])
  • ffi(nostr): impl Display for Coordinate ([Yuki Kishimoto])
  • ffi(sdk): change Connection::embedded_tor fingerprint for android and ios targets ([Yuki Kishimoto])
  • cli: rename open command to shell ([Yuki Kishimoto])
  • cli: rename serve-signer command to bunker ([Yuki Kishimoto])
Added
  • nostr: impl TryFrom<Vec<Tag>> for LiveEvent ([w3irdrobot])
  • nostr: add Tag::as_slice ([Yuki Kishimoto])
  • nostr: add NostrWalletConnectURI::parse ([Yuki Kishimoto])
  • nostr: add JobFeedbackData struct ([Yuki Kishimoto])
  • nostr: add EventBuilder::pow method ([Yuki Kishimoto])
  • nostr: add TagKind::custom constructor ([Yuki Kishimoto])
  • nostr: add Timestamp::from_secs ([Yuki Kishimoto])
  • nostr: add EventId::from_byte_array ([Yuki Kishimoto])
  • nostr: add Timestamp::min and Timestamp::max ([Yuki Kishimoto])
  • nostr: add nip65::extract_owned_relay_list ([Yuki Kishimoto])
  • nostr: add Kind::from_u16 ([Yuki Kishimoto])
  • database: add DatabaseHelper::fast_query ([Yuki Kishimoto])
  • database: add NostrDatabase::check_id ([Yuki Kishimoto])
  • database: add NostrDatabaseExt::relay_lists ([Yuki Kishimoto])
  • lmdb: add LMDB storage backend ([Yuki Kishimoto])
  • relay-builder: add MockRelay ([Yuki Kishimoto])
  • pool: add RelayPool::disconnect_relay method ([Yuki Kishimoto])
  • pool: add RelayPool::relays_with_flag and RelayPool::all_relays ([Yuki Kishimoto])
  • pool: add support to negentropy v1 ([Yuki Kishimoto])
  • pool: add whitelist support ([Yuki Kishimoto])
  • sdk: add Client::add_discovery_relay ([Yuki Kishimoto])
  • sdk: add Client::add_read_relay and Client::add_write_relay ([Yuki Kishimoto])
  • sdk: add Client::stream_events_targeted ([Yuki Kishimoto])
  • sdk: add Client::subscribe_targeted ([Yuki Kishimoto])
  • sdk: add gossip support to Client::send_event ([Yuki Kishimoto])
  • sdk: add gossip support to Client::get_events_of and Client::stream_events_of ([Yuki Kishimoto])
  • sdk: add gossip support to Client::subscribe and Client::subscribe_with_id ([Yuki Kishimoto])
  • bindings(nostr): expose as_pretty_json for some structs ([Yuki Kishimoto])
  • bindings(sdk): expose Client::fetch_metadata ([Yuki Kishimoto])
  • bindings(sdk): expose Client::pool method ([Yuki Kishimoto])
  • ffi(nostr): expose Kind::is_* methods ([Yuki Kishimoto])
  • ffi(sdk): expose MockRelay ([Yuki Kishimoto])
  • js(nostr): add Kind object ([Yuki Kishimoto])
  • js(nostr): expose getNip05Profile function ([Yuki Kishimoto])
  • js(nostr): expose missing methods to JsCoordinate ([Yuki Kishimoto])
  • js(sdk): expose RelayPool::relays ([Yuki Kishimoto])
  • cli: add serve command ([Yuki Kishimoto])
  • cli: add shell history ([Yuki Kishimoto])
  • book: add some examples ([RydalWater])
Fixed
  • nostr: fix TagStanderd::to_vec ([nanikamado])
  • nostr: fix broken intra doc links ([Yuki Kishimoto])
  • nostr: fix JsonUtil::try_as_pretty_json method ([Yuki Kishimoto])
  • nostr: fix Kind::is_regular method ([Yuki Kishimoto])
Removed
  • Drop support for rocksdb ([Yuki Kishimoto])
  • nostr: remove bech32 from the public API ([Yuki Kishimoto])
  • nostr: remove Keys::from_public_key ([Yuki Kishimoto])
  • nostr: remove tracing dep ([Yuki Kishimoto])
  • nostr: remove impl fmt::Display for SecretKey ([Yuki Kishimoto])
  • database: remove has_event_already_been_saved, has_event_already_been_seen and has_event_id_been_deleted methods from NostrDatabase ([Yuki Kishimoto])
  • database: remove Err from NostrDatabase ([Yuki Kishimoto])
  • database: remove NostrDatabase::bulk_import ([Yuki Kishimoto])
  • database: remove DatabaseError::NotFound variant ([Yuki Kishimoto])
  • database: remove DatabaseError::Nostr variant ([Yuki Kishimoto])
  • database: remove Order enum ([Yuki Kishimoto])
  • database: remove order arg from NostrDatabase::query ([Yuki Kishimoto])
  • pool: remove high latency log ([Yuki Kishimoto])
  • pool: remove Error::OneShotRecvError variant ([Yuki Kishimoto])
  • zapper: remove Err from NostrZapper and unnecessary variants from ZapperError ([Yuki Kishimoto])
  • js(nostr): remove Keys::vanity ([Yuki Kishimoto])
  • cli: remove reverse flag from query 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 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!

Changed
  • Bump MSRV to v1.70.0 ([Yuki Kishimoto])
  • Bump toolchain channel to 1.80.1 ([Yuki Kishimoto])
  • nostr: deprecate Event::author_ref and Event::iter_tags ([Yuki Kishimoto])
  • nostr: calculate EventId in EventBuilder::to_unsigned_event_with_supplier ([Yuki Kishimoto])
  • nostr: ensure that NIP-59 rumor has EventId ([Yuki Kishimoto])
  • nostr: update PartialEvent methods ([Yuki Kishimoto])
  • nostr: change EventBuilder::award_badge fingerprint ([Yuki Kishimoto])
  • nostr: add NIP-50 support to Filter::match_event method ([Yuki Kishimoto])
  • nostr: remove Arc<T> from OnceCell<T> in Event and Tag ([Yuki Kishimoto])
  • nostr: move sig field from PartialEvent to MissingPartialEvent ([Yuki Kishimoto])
  • nostr: better Debug trait impl for EventId, PublicKey and Tag ([Yuki Kishimoto])
  • nostr: improve SubscriptionId::generate_with_rng ([Yuki Kishimoto])
  • pool: take mutex ownership instead of clone in InternalRelayPool::get_events_from ([Yuki Kishimoto])
  • pool: remove IDs collection from InternalRelayPool::get_events_from ([Yuki Kishimoto])
  • pool: better checks before perform queries or send messages to relays ([Yuki Kishimoto])
  • pool: bump async-wsocket to v0.7 ([Yuki Kishimoto])
  • pool: get events only from remote relay when calling get_events_of or get_events_from ([Yuki Kishimoto])
  • database: avoid to copy EventId in Event::decode ([Yuki Kishimoto])
  • database: use Vec instead of BTreeSet as inner value for TagIndexValues ([Yuki Kishimoto])
  • database: rework DatabaseIndexes and rename to DatabaseHelper ([Yuki Kishimoto])
  • database: allow to set max capacity to DatabaseHelper ([Yuki Kishimoto])
  • database: speedup helper bulk load ([Yuki Kishimoto])
  • database: set a default logic for NostrDatabase::negentropy_items ([Yuki Kishimoto])
  • sdk: rename Proxy and ProxyTarget to Connection and ConnectionTarget ([Yuki Kishimoto])
  • sdk: allow to skip slow relays ([Yuki Kishimoto])
  • sdk: allow to specify the source of events for Client::get_events_of method ([Yuki Kishimoto])
  • sdk: deprecate Client::get_events_of_with_opts ([Yuki Kishimoto])
  • sqlite: use ValueRef instead of owned one ([Yuki Kishimoto])
  • cli: improve sync command ([Yuki Kishimoto])
  • cli: allow to specify relays in open command ([Yuki Kishimoto])
Added
  • nostr: add NIP-31 support ([Yuki Kishimoto])
  • nostr: add NIP-70 support ([Yuki Kishimoto])
  • nostr: add EventId::LEN const ([Yuki Kishimoto])
  • nostr: add UnsignedEvent::ensure_id method ([Yuki Kishimoto])
  • nostr: add missing payload arg to EventBuilder::job_result ([Yuki Kishimoto])
  • nostr: add ConversationKey::new ([Yuki Kishimoto])
  • nostr: add Request::multi_pay_invoice constructor ([Yuki Kishimoto])
  • nostr: add Jsonutil::as_pretty_json and JsonUtil::try_as_pretty_json methods ([Yuki Kishimoto])
  • nostr: add Coordinate::has_identifier ([Yuki Kishimoto])
  • pool: add RelayPoolNotification::Authenticated variant ([Yuki Kishimoto])
  • pool: add RelayPool::save_subscription ([Yuki Kishimoto])
  • sqlite/rocksdb/indexeddb: allow to open database with limited capacity ([Yuki Kishimoto])
  • sdk: add Client::gift_wrap_to and Client::send_private_msg_to ([reyamir])
  • sdk: add option to autoconnect relay on Client::add_relay method call ([Yuki Kishimoto])
  • sdk: add support to embedded tor client ([Yuki Kishimoto])
  • sdk: add Options::max_avg_latency ([Yuki Kishimoto])
  • sdk: add Client::stream_events_of and Client::stream_events_from methods ([Yuki Kishimoto])
  • ffi(nostr): add EventBuilder::seal constructor ([Yuki Kishimoto])
  • cli: add generate command ([Yuki Kishimoto])
  • cli: add json flag to query command ([Yuki Kishimoto])
  • book: add some python examples ([RydalWater])
Fixed
  • pool: fix Event notification variant sent also for events sent by the SDK ([Yuki Kishimoto])
  • database: fix indexes QueryPattern ([Yuki Kishimoto])
  • database: fix query issue due to wrong tag value order ([Yuki Kishimoto])
Removed
  • Remove deprecated methods/functions ([Yuki Kishimoto])
  • nostr: remove support for nrelay NIP-19 entity ([Yuki Kishimoto])
  • nostr: remove support for NIP-44 v1 ([Yuki Kishimoto])
  • nostr: remove EventBuilder::encrypted_direct_msg ([Yuki Kishimoto])
  • database: remove TempEvent ([Yuki Kishimoto])
  • database: remove NostrDatabase::event_ids_by_filters ([Yuki Kishimoto])
  • sdk: remove Client::send_direct_msg ([Yuki Kishimoto])
  • cli: remove 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (rebase) August 15, 2024 14:31
@renovate renovate bot force-pushed the renovate/nostr-sdk-0.x branch 4 times, most recently from 32f8eda to c1ccd61 Compare August 19, 2024 01:01
@renovate renovate bot force-pushed the renovate/nostr-sdk-0.x branch 4 times, most recently from a539f66 to db3cf50 Compare August 28, 2024 01:51
@renovate renovate bot force-pushed the renovate/nostr-sdk-0.x branch 3 times, most recently from 3e8f7c9 to 4712763 Compare September 16, 2024 01:44
@renovate renovate bot force-pushed the renovate/nostr-sdk-0.x branch 2 times, most recently from 4f8401d to c61d9d7 Compare September 19, 2024 19:59
@renovate renovate bot changed the title fix(deps): update rust crate nostr-sdk to 0.34.0 fix(deps): update rust crate nostr-sdk to 0.35.0 Sep 19, 2024
@renovate renovate bot force-pushed the renovate/nostr-sdk-0.x branch 7 times, most recently from 97de3f9 to 51968e0 Compare September 23, 2024 16:23
@renovate renovate bot force-pushed the renovate/nostr-sdk-0.x branch 4 times, most recently from 8eb68a2 to 640185a Compare October 1, 2024 19:12
@renovate renovate bot force-pushed the renovate/nostr-sdk-0.x branch 3 times, most recently from 63cadea to fb108d9 Compare October 8, 2024 19:10
@renovate renovate bot force-pushed the renovate/nostr-sdk-0.x branch 2 times, most recently from 2ae0439 to c0084ce Compare October 16, 2024 19:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants