Update Rust crate nostr to 0.40.0 - autoclosed#23
Closed
renovate[bot] wants to merge 1 commit intomainfrom
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.39.0->0.40.0Release Notes
rust-nostr/nostr (nostr)
v0.40.0Compare 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
Tagscapabilities (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
Nip19Eventrelays field type fromVec<String>toVec<RelayUrl>([Yuki Kishimoto])Errtype ofToBech32toInfallibleforSecretKey,PublicKeyandEventId([awiteb])Tags::newsignature ([Yuki Kishimoto])WeakTag([Yuki Kishimoto])TagStandard::Relaysvariant inner value fromVec<Url>toVec<RelayUrl>([Yuki Kishimoto])NostrURIintoToNostrUriandFromNostrUritraits ([Yuki Kishimoto])AsRef<str>with&strinCoordinate::parseandCoordinate::from_kpi_format([Yuki Kishimoto])AsRef<str>with&strinNip21::parse([Yuki Kishimoto])EventId::newsignature ([Yuki Kishimoto])EventBuilder::git_repository_announcementconstructor signature ([Yuki Kishimoto])EventBuilder::git_issueconstructor signature ([Yuki Kishimoto])EventBuilder::git_patchconstructor signature ([Yuki Kishimoto])TagStandard::parsenow returnsErr(Error::UnknownStandardizedTag)for non-lowercase hashtags as per NIP-24 ([awiteb])NostrWalletConnectURIto support multiple relay URLs ([Yuki Kishimoto])EventIdOrCoordinateenum ([Yuki Kishimoto])EventBuilder::deletearguments ([Yuki Kishimoto])RelayFiltering([Yuki Kishimoto])Relayconstructors ([Yuki Kishimoto])RelayPool::newsignature ([Yuki Kishimoto])RelayusingRelayOptions([magine])Client::fetch_metadataoutput ([Yuki Kishimoto])Client::state([Yuki Kishimoto])Changed
RelayUrl([Yuki Kishimoto])CowinClientMessageandRelayMessage([Yuki Kishimoto])PartialOrd,Ord, andHashtraits inNip21enum ([Yuki Kishimoto])send_eventmethods ([Yuki Kishimoto])std::sync::OnceLockinstead oftokio::sync::OnceCell([Yuki Kishimoto])NoneinNostrEventsDatabase::event_by_idif event doesn't exist ([Yuki Kishimoto])NostrEventsDatabase::save_event([Yuki Kishimoto])WAIT_FOR_OK_TIMEOUTto 10 secs ([Yuki Kishimoto])Events::mergeandEvents::to_vecperformance ([Yuki Kishimoto])3.13([Yuki Kishimoto])Added
NostrParser([Yuki Kishimoto])nip21::extract_from_textfunction ([Yuki Kishimoto])EventBuilder::allow_self_tagging([Yuki Kishimoto])Nip19Event::from_event([Yuki Kishimoto])Tag::clientconstructor ([Yuki Kishimoto])Tag::lenmethod ([Yuki Kishimoto])push,pop,insert,remove,extendandretainmethods toTagsstruct ([Yuki Kishimoto])with_capacity,from_list,from_textandparseconstructors toTagsstruct ([Yuki Kishimoto])Tags::dedupmethod ([Yuki Kishimoto])EncryptedSecretKey::decryptmethod ([Yuki Kishimoto])Nip19Coordinatestruct ([Yuki Kishimoto])Coordinate::verifymethod ([Yuki Kishimoto])TagStandard::Clientvariant ([Yuki Kishimoto])EventBuilder::dedup_tagsmethod ([Yuki Kishimoto])FromIterator<Tag>forTags([Yuki Kishimoto])EventDeletionRequeststruct ([Yuki Kishimoto])notificationsfield to NIP47GetInfoResponse([Yuki Kishimoto])RelayMetadata::as_strmethod ([Yuki Kishimoto])nip42::is_valid_auth_eventfunction ([Yuki Kishimoto])Tag::relaysconstructor ([Yuki Kishimoto])Events::force_insert([Yuki Kishimoto])AdmitPolicytrait ([Yuki Kishimoto])ReqExitPolicy::WaitForEventsvariant ([Yuki Kishimoto])RelayPoolBuilder([Yuki Kishimoto])RelayPool::is_shutdownmethod ([Yuki Kishimoto])KindStandardenum ([Yuki Kishimoto])Fixed
EventBuilder::git_repository_announcementconstructor according to last NIP34 rev ([Yuki Kishimoto])EventBuilder::git_issueconstructor according to last NIP34 rev ([Yuki Kishimoto])EventBuilder::git_patchconstructor according to last NIP34 rev ([Yuki Kishimoto])Tag::hashtagnow lowercases the hashtag as per NIP-24 ([awiteb])Removed
RawRelayMessage,RawEvent,PartialEventandMissingPartialEvent([Yuki Kishimoto])AdmitPolicytrait ([Yuki Kishimoto])Deprecated
EncryptedSecretKey::to_secret_keymethod ([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.
This PR was generated by Mend Renovate. View the repository job log.