Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump nostr-sdk from 0.35.1 to 0.37.0 #1670

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 22, 2024

Bumps nostr-sdk from 0.35.1 to 0.37.0.

Release notes

Sourced from nostr-sdk's releases.

Release v0.37.0

Add support to NIP17 relay list in SDK (when gossip option is enabled), add NIP22 and NIP73 support, fix Swift Package, many performance improvements and bug fixes and more!

From this release all the rust features are be disabled by default (except std feature in nostr crate).

Full changelog: https://rust-nostr.org/changelog

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

Changelog

Sourced from nostr-sdk's changelog.

[v0.37.0]

Summary

Add support to NIP17 relay list in SDK (when gossip option is enabled), add NIP22 and NIP73 support, fix Swift Package, many performance improvements and bug fixes and more!

From this release all the rust features are disabled by default (except std feature in nostr crate).

Breaking changes

  • Use RelayUrl struct instead of Url for relay urls ([Yuki Kishimoto])
  • nostr: change EventBuilder::gift_wrap (and linked methods) args to take extra_tags instead of expiration ([erskingardner])
  • nostr: change EventBuilder::gift_wrap (and linked methods) args to take an EventBuilder rumor instead of UnsignedEvent ([Yuki Kishimoto])
  • nostr: change EventBuilder::private_msg_rumor arg to take extra_tags instead of reply_to ([Yuki Kishimoto])
  • nostr: remove tags arg from EventBuilder::new ([Yuki Kishimoto])
  • nostr: remove tags arg from EventBuilder::text_note ([Yuki Kishimoto])
  • nostr: remove tags arg from EventBuilder::long_form_text_note ([Yuki Kishimoto])
  • nostr: remove tags arg from EventBuilder::job_request ([Yuki Kishimoto])
  • nostr: disable all default features except std ([Yuki Kishimoto])
  • nostr: change Timestamp::to_human_datetime method signature ([Yuki Kishimoto])
  • nostr: change Tag::parse arg from slice to iterator ([Yuki Kishimoto])
  • nostr: change TagStandard::Relay variant inner type ([Yuki Kishimoto])
  • nostr: remove UncheckedUrl struct ([Yuki Kishimoto])
  • nostr: update NostrConnectURI::relays to return slice ([Yuki Kishimoto])
  • nostr: update NostrConnectURI::secret to return string slice ([Yuki Kishimoto])
  • nostr: remove -Params and -Result suffix from NIP47 structs ([Yuki Kishimoto])
  • pool: switch from async to sync message sending for Relay ([Yuki Kishimoto])
  • connect: refactor NostrConnectRemoteSigner to use distinct keys for signer and user ([Yuki Kishimoto])
  • connect: refactor NostrConnectRemoteSigner to use synchronous constructors ([Yuki Kishimoto])
  • nwc: update NWC::pay_invoice method signature ([Yuki Kishimoto])
  • sdk: disable all default features ([Yuki Kishimoto])
  • sdk: set Client::from_builder as private ([Yuki Kishimoto])
  • ffi: convert NostrSigner trait to an object ([Yuki Kishimoto])
  • ffi: remove NostrConnectURI::as_string ([Yuki Kishimoto])

Changed

  • nostr: rewrite e tag de/serialization ([Yuki Kishimoto])
  • pool: rework latency tracking ([Yuki Kishimoto])
  • pool: increase negentropy batch size down to 100 ([Yuki Kishimoto])
  • pool: increase ping interval to 55 secs ([Yuki Kishimoto])
  • pool: increase max retry interval to 10 min ([Yuki Kishimoto])
  • pool: update retry interval calculation ([Yuki Kishimoto])
  • pool: try fetch relay information document only once every hour ([Yuki Kishimoto])
  • pool: not allow to add relays after RelayPool shutdown ([Yuki Kishimoto])
  • pool: rename RelayOptions::retry_sec to RelayOptions::retry_interval ([Yuki Kishimoto])
  • pool: rename RelayOptions::adjust_retry_sec to RelayOptions::adjust_retry_interval ([Yuki Kishimoto])
  • pool: request NIP11 document only after a successful WebSocket connection ([Yuki Kishimoto])
  • pool: immediately terminate relay connection on Relay::disconnect call ([Yuki Kishimoto])

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [nostr-sdk](https://github.com/rust-nostr/nostr) from 0.35.1 to 0.37.0.
- [Release notes](https://github.com/rust-nostr/nostr/releases)
- [Changelog](https://github.com/rust-nostr/nostr/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-nostr/nostr/commits/v0.37.0)

---
updated-dependencies:
- dependency-name: nostr-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants