Skip to content

Comments

Update Rust crate nostr to 0.40.0 - autoclosed#23

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/nostr-0.x
Closed

Update Rust crate nostr to 0.40.0 - autoclosed#23
renovate[bot] wants to merge 1 commit intomainfrom
renovate/nostr-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 18, 2025

This PR contains the following updates:

Package Type Update Change
nostr dependencies minor 0.39.0 -> 0.40.0

Release Notes

rust-nostr/nostr (nostr)

v0.40.0

Compare Source

Summary

Add NIP-38 and NIP-62 support, add nostr parser, to easily parse any text and extract nostr URIs, URLs and more,
extend Tags capabilities (i.e., add deduplication support), add admission policies, to selectively select which events to allow receiving and which to reject,
add Mac Catalyst support for Swift package, many cleanups, refactoring and performance improvements and more!

Breaking changes
  • nostr: update Nip19Event relays field type from Vec<String> to Vec<RelayUrl> ([Yuki Kishimoto])
  • nostr: change the Err type of ToBech32 to Infallible for SecretKey, PublicKey and EventId ([awiteb])
  • nostr: update Tags::new signature ([Yuki Kishimoto])
  • nostr: remove WeakTag ([Yuki Kishimoto])
  • nostr: change TagStandard::Relays variant inner value from Vec<Url> to Vec<RelayUrl> ([Yuki Kishimoto])
  • nostr: split NostrURI into ToNostrUri and FromNostrUri traits ([Yuki Kishimoto])
  • nostr: replace generic parameter AsRef<str> with &str in Coordinate::parse and Coordinate::from_kpi_format ([Yuki Kishimoto])
  • nostr: replace generic parameter AsRef<str> with &str in Nip21::parse ([Yuki Kishimoto])
  • nostr: change EventId::new signature ([Yuki Kishimoto])
  • nostr: change EventBuilder::git_repository_announcement constructor signature ([Yuki Kishimoto])
  • nostr: change EventBuilder::git_issue constructor signature ([Yuki Kishimoto])
  • nostr: change EventBuilder::git_patch constructor signature ([Yuki Kishimoto])
  • nostr: TagStandard::parse now returns Err(Error::UnknownStandardizedTag) for non-lowercase hashtags as per NIP-24 ([awiteb])
  • nostr: update NostrWalletConnectURI to support multiple relay URLs ([Yuki Kishimoto])
  • nostr: remove EventIdOrCoordinate enum ([Yuki Kishimoto])
  • nostr: change EventBuilder::delete arguments ([Yuki Kishimoto])
  • pool: drop RelayFiltering ([Yuki Kishimoto])
  • pool: remove Relay constructors ([Yuki Kishimoto])
  • pool: change RelayPool::new signature ([Yuki Kishimoto])
  • pool: now can set the notification channel size of a single Relay using RelayOptions ([magine])
  • sdk: change Client::fetch_metadata output ([Yuki Kishimoto])
  • sdk: remove Client::state ([Yuki Kishimoto])
Changed
  • nostr: manually impl eq and cmp traits for RelayUrl ([Yuki Kishimoto])
  • nostr: use Cow in ClientMessage and RelayMessage ([Yuki Kishimoto])
  • nostr: derive PartialOrd, Ord, and Hash traits in Nip21 enum ([Yuki Kishimoto])
  • pool: take event reference in send_event methods ([Yuki Kishimoto])
  • pool: use the relay ingester to perform actions ([Yuki Kishimoto])
  • pool: avoid spawning a task for every authentication request ([Yuki Kishimoto])
  • pool: use std::sync::OnceLock instead of tokio::sync::OnceCell ([Yuki Kishimoto])
  • lmdb: bump MSRV to 1.72.0 ([Yuki Kishimoto])
  • lmdb: implement event ingester ([Yuki Kishimoto])
  • lmdb: avoid spawning thread for read methods ([Yuki Kishimoto])
  • lmdb: avoid long-lived read txn when ingesting event ([Yuki Kishimoto])
  • ndb: return None in NostrEventsDatabase::event_by_id if event doesn't exist ([Yuki Kishimoto])
  • ndb: avoid event clone when calling NostrEventsDatabase::save_event ([Yuki Kishimoto])
  • pool: better handling of auto-closing subscription activity when fetching events ([Yuki Kishimoto])
  • pool: reduce WAIT_FOR_OK_TIMEOUT to 10 secs ([Yuki Kishimoto])
  • pool: handle CLOSED message when syncing ([Yuki Kishimoto])
  • sdk: auto-update the gossip data when sending an event ([Yuki Kishimoto])
  • sdk: avoid full clone of relays when only urls are needed ([Yuki Kishimoto])
  • nwc: allow usage of multiple relays ([Yuki Kishimoto])
  • ffi: improve Events::merge and Events::to_vec performance ([Yuki Kishimoto])
  • ci: release wheels also for python 3.13 ([Yuki Kishimoto])
Added
  • nostr: add NIP-38 support ([reyamir])
  • nostr: add NIP-60 event kinds ([Yuki Kishimoto])
  • nostr: add NIP-62 support ([awiteb])
  • nostr: add NostrParser ([Yuki Kishimoto])
  • nostr: add nip21::extract_from_text function ([Yuki Kishimoto])
  • nostr: add EventBuilder::allow_self_tagging ([Yuki Kishimoto])
  • nostr: add Nip19Event::from_event ([Yuki Kishimoto])
  • nostr: add Tag::client constructor ([Yuki Kishimoto])
  • nostr: add Tag::len method ([Yuki Kishimoto])
  • nostr: add push, pop, insert, remove, extend and retain methods to Tags struct ([Yuki Kishimoto])
  • nostr: add with_capacity, from_list, from_text and parse constructors to Tags struct ([Yuki Kishimoto])
  • nostr: add Tags::dedup method ([Yuki Kishimoto])
  • nostr: add EncryptedSecretKey::decrypt method ([Yuki Kishimoto])
  • nostr: add Nip19Coordinate struct ([Yuki Kishimoto])
  • nostr: add Coordinate::verify method ([Yuki Kishimoto])
  • nostr: add TagStandard::Client variant ([Yuki Kishimoto])
  • nostr: add EventBuilder::dedup_tags method ([Yuki Kishimoto])
  • nostr: impl FromIterator<Tag> for Tags ([Yuki Kishimoto])
  • nostr: add EventDeletionRequest struct ([Yuki Kishimoto])
  • nostr: add notifications field to NIP47 GetInfoResponse ([Yuki Kishimoto])
  • nostr: add RelayMetadata::as_str method ([Yuki Kishimoto])
  • nostr: add nip42::is_valid_auth_event function ([Yuki Kishimoto])
  • nostr: add Tag::relays constructor ([Yuki Kishimoto])
  • database: add Events::force_insert ([Yuki Kishimoto])
  • pool: event verification cache ([Yuki Kishimoto])
  • pool: add AdmitPolicy trait ([Yuki Kishimoto])
  • pool: add ReqExitPolicy::WaitForEvents variant ([Yuki Kishimoto])
  • pool: add RelayPoolBuilder ([Yuki Kishimoto])
  • pool: add RelayPool::is_shutdown method ([Yuki Kishimoto])
  • ffi: add Mac Catalyst support in Swift package ([Yuki Kishimoto])
  • js: add KindStandard enum ([Yuki Kishimoto])
Fixed
  • nostr: fix EventBuilder::git_repository_announcement constructor according to last NIP34 rev ([Yuki Kishimoto])
  • nostr: fix EventBuilder::git_issue constructor according to last NIP34 rev ([Yuki Kishimoto])
  • nostr: fix EventBuilder::git_patch constructor according to last NIP34 rev ([Yuki Kishimoto])
  • nostr: Tag::hashtag now lowercases the hashtag as per NIP-24 ([awiteb])
Removed
  • nostr: remove RawRelayMessage, RawEvent, PartialEvent and MissingPartialEvent ([Yuki Kishimoto])
  • database: remove deprecated ([Yuki Kishimoto])
  • pool: remove min POW difficulty check in favor of AdmitPolicy trait ([Yuki Kishimoto])
Deprecated
  • Deprecate options to set min POW difficulty ([Yuki Kishimoto])
  • nostr: deprecate EncryptedSecretKey::to_secret_key method ([Yuki Kishimoto])

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 changed the title Update Rust crate nostr to 0.40.0 Update Rust crate nostr to 0.40.0 - autoclosed Mar 18, 2025
@renovate renovate bot closed this Mar 18, 2025
@renovate renovate bot deleted the renovate/nostr-0.x branch March 18, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants