File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ * Fix: Add user setter back in the scope (#883 )
5
6
* Fix: clear method sets all properties synchronously (#882 )
6
7
7
8
## 6.6.0-beta.1
Original file line number Diff line number Diff line change @@ -53,6 +53,16 @@ class Scope {
53
53
/// Get the current user.
54
54
SentryUser ? get user => _user;
55
55
56
+ /// Sets the current user
57
+ /// This method is deprecated, use the [setUser(user)] instead.
58
+ /// This method will be removed in the future.
59
+ /// The breaking change is due to the [enableScopeSync] feature that
60
+ /// requires returning a [Future] .
61
+ @Deprecated ('Use [setUser(user)] instead' )
62
+ set user (SentryUser ? user) {
63
+ _user = user;
64
+ }
65
+
56
66
void _setUserSync (SentryUser ? user) {
57
67
_user = user;
58
68
}
@@ -139,7 +149,7 @@ class Scope {
139
149
140
150
List <SentryAttachment > get attachments => List .unmodifiable (_attachments);
141
151
142
- @Deprecated ('Use attachments instead' )
152
+ @Deprecated ('Use [ attachments] instead' )
143
153
List <SentryAttachment > get attachements => attachments;
144
154
145
155
Scope (this ._options);
You can’t perform that action at this time.
0 commit comments