@quenty/friendutils 12.16.0 → 12.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +5 -5
- package/src/Shared/RxFriendUtils.lua +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [12.16.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/friendutils@12.16.0...@quenty/friendutils@12.16.1) (2025-03-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/friendutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [12.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/friendutils@12.15.0...@quenty/friendutils@12.16.0) (2025-02-18)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/friendutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/friendutils",
|
|
3
|
-
"version": "12.16.
|
|
3
|
+
"version": "12.16.1",
|
|
4
4
|
"description": "Utlity functions to help find friends of a user. Also contains utility to make testing in studio easier.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "^14.16.
|
|
28
|
+
"@quenty/brio": "^14.16.1",
|
|
29
29
|
"@quenty/loader": "^10.8.0",
|
|
30
30
|
"@quenty/maid": "^3.4.0",
|
|
31
|
-
"@quenty/promise": "^10.10.
|
|
32
|
-
"@quenty/rx": "^13.16.
|
|
31
|
+
"@quenty/promise": "^10.10.1",
|
|
32
|
+
"@quenty/rx": "^13.16.1"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "6b7c3e15e60cdb185986207b574e2b5591261e7a"
|
|
38
38
|
}
|
|
@@ -21,10 +21,10 @@ local RxFriendUtils = {}
|
|
|
21
21
|
The lifetimes exist for the whole duration another player is a friend and in your server.
|
|
22
22
|
This means if a player is unfriended + friended multiple times per session, they will have emitted multiple friend lifetimes.
|
|
23
23
|
|
|
24
|
-
@param player Player
|
|
24
|
+
@param player Player?
|
|
25
25
|
@return Observable<Brio<Player>>
|
|
26
26
|
]=]
|
|
27
|
-
function RxFriendUtils.observeFriendsInServerAsBrios(player)
|
|
27
|
+
function RxFriendUtils.observeFriendsInServerAsBrios(player: Player?)
|
|
28
28
|
player = player or Players.LocalPlayer
|
|
29
29
|
|
|
30
30
|
assert(typeof(player) == "Instance", "Bad player")
|
|
@@ -61,8 +61,12 @@ function RxFriendUtils.observeFriendsInServerAsBrios(player)
|
|
|
61
61
|
return player:IsFriendsWith(otherPlayer.UserId)
|
|
62
62
|
end)
|
|
63
63
|
if not ok then
|
|
64
|
-
warn(
|
|
65
|
-
|
|
64
|
+
warn(
|
|
65
|
+
string.format(
|
|
66
|
+
"[RxFriendUtils.observeFriendsInServerAsBrios] Couldn't get friendship status with %q!",
|
|
67
|
+
otherPlayer.Name
|
|
68
|
+
)
|
|
69
|
+
)
|
|
66
70
|
|
|
67
71
|
-- If the call failed, then 'isFriendsWith' will be nil.
|
|
68
72
|
-- We'll assume that this player isn't a friend on failure.
|