@quenty/remoting 12.1.0 → 12.2.0
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 +11 -0
- package/package.json +2 -2
- package/src/Shared/Interface/Remoting.lua +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/remoting@12.1.0...@quenty/remoting@12.2.0) (2024-03-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Remoting has better warnings ([8ccc275](https://github.com/Quenty/NevermoreEngine/commit/8ccc275919eac1cb9bf6d3304c700ada900c576d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [12.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/remoting@12.0.0...@quenty/remoting@12.1.0) (2024-03-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/remoting
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/remoting",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0",
|
|
4
4
|
"description": "Global remoting retrieval system for Roblox (RemoteFunctions/RemoteEvents)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "ab3631a54c4e8d448b4229c7e422a9c7f43c0dd7"
|
|
42
42
|
}
|
|
@@ -88,7 +88,7 @@ function Remoting:Connect(memberName, callback)
|
|
|
88
88
|
-- TODO: Cleanup if nothing else is expecting this
|
|
89
89
|
elseif RunService:IsClient() then
|
|
90
90
|
connectMaid._warning = task.delay(5, function()
|
|
91
|
-
warn(string.format("[Remoting] - Failed to find RemoteEvent %q, event may never connect", memberName))
|
|
91
|
+
warn(string.format("[Remoting] - Failed to find RemoteEvent %q, event may never connect", self:_getDebugMemberName(memberName)))
|
|
92
92
|
end)
|
|
93
93
|
|
|
94
94
|
connectMaid:GiveTask(self:_observeRemoteEventBrio(memberName):Subscribe(function(brio)
|
|
@@ -135,7 +135,7 @@ function Remoting:Bind(memberName, callback)
|
|
|
135
135
|
-- TODO: Cleanup if nothing else is expecting this
|
|
136
136
|
elseif RunService:IsClient() then
|
|
137
137
|
bindMaid._warning = task.delay(5, function()
|
|
138
|
-
warn(string.format("[Remoting] - Failed to find RemoteEvent %q, event may never fire", memberName))
|
|
138
|
+
warn(string.format("[Remoting] - Failed to find RemoteEvent %q, event may never fire", self:_getDebugMemberName(memberName)))
|
|
139
139
|
end)
|
|
140
140
|
|
|
141
141
|
bindMaid:GiveTask(self:_observeRemoteFunctionBrio(memberName):Subscribe(function(brio)
|
|
@@ -198,7 +198,7 @@ function Remoting:_translateCallback(maid, memberName, callback)
|
|
|
198
198
|
|
|
199
199
|
return function(...)
|
|
200
200
|
if not alive then
|
|
201
|
-
error(string.format("[Remoting] - Function for %s is disconnected and can't be called", memberName))
|
|
201
|
+
error(string.format("[Remoting] - Function for %s is disconnected and can't be called", self:_getDebugMemberName(memberName)))
|
|
202
202
|
return
|
|
203
203
|
end
|
|
204
204
|
|
|
@@ -556,6 +556,10 @@ function Remoting:_getMemberName(memberName, objectType)
|
|
|
556
556
|
return memberName .. objectType
|
|
557
557
|
end
|
|
558
558
|
|
|
559
|
+
function Remoting:_getDebugMemberName(memberName)
|
|
560
|
+
return string.format("%s.%s", self._name, memberName)
|
|
561
|
+
end
|
|
562
|
+
|
|
559
563
|
--[=[
|
|
560
564
|
Cleans up the remoting object
|
|
561
565
|
]=]
|