File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 29
29
30
30
- Add notification support for real-time payment updates (https://github.com/rust-nostr/nostr/pull/953 )
31
31
- Add Monitor to NostrWalletConnectOptions (https://github.com/rust-nostr/nostr/pull/989 )
32
+ - Add ` NostrWalletConnectOptions::relay ` method
33
+
34
+ ### Deprecated
35
+
36
+ - Deprecate ` NostrWalletConnectOptions::connection_mode ` method
32
37
33
38
## v0.42.0 - 2025/05/20
34
39
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ impl NostrWalletConnectOptions {
38
38
}
39
39
40
40
/// Set connection mode
41
+ #[ deprecated(
42
+ since = "0.43.0" ,
43
+ note = "Use `NostrWalletConnectOptions::relay` instead"
44
+ ) ]
41
45
pub fn connection_mode ( self , mode : ConnectionMode ) -> Self {
42
46
Self {
43
47
relay : self . relay . connection_mode ( mode) ,
@@ -58,4 +62,12 @@ impl NostrWalletConnectOptions {
58
62
self . monitor = Some ( monitor) ;
59
63
self
60
64
}
65
+
66
+ /// Set relay options
67
+ pub fn relay ( self , opts : RelayOptions ) -> Self {
68
+ Self {
69
+ relay : opts,
70
+ ..self
71
+ }
72
+ }
61
73
}
You can’t perform that action at this time.
0 commit comments