@quenty/remoting 12.18.3 → 12.18.4-canary.11a5dcf.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 +16 -0
- package/package.json +11 -11
- package/src/Shared/GetRemoteEvent.lua +1 -1
- package/src/Shared/GetRemoteFunction.lua +1 -1
- package/src/Shared/Interface/Remoting.lua +10 -10
- package/src/Shared/Interface/RemotingMember.lua +8 -8
- package/src/Shared/PromiseGetRemoteEvent.lua +2 -1
- package/src/Shared/PromiseGetRemoteFunction.lua +1 -1
- package/src/Shared/PromiseRemoteEventMixin.lua +2 -1
- package/src/Shared/PromiseRemoteFunctionMixin.lua +2 -2
- package/src/Shared/Realm/RemotingRealmUtils.lua +1 -1
- package/src/Shared/ResourceConstants.lua +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.18.4-canary.11a5dcf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/remoting@12.18.3...@quenty/remoting@12.18.4-canary.11a5dcf.0) (2025-05-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Additional type checking updates ([05ba29a](https://github.com/Quenty/NevermoreEngine/commit/05ba29a03efc9f3feed74b34f1d9dfb237496214))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Add even more types ([b31717d](https://github.com/Quenty/NevermoreEngine/commit/b31717d8c9f7620c457f5018a2affa760a65334a))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [12.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/remoting@12.18.2...@quenty/remoting@12.18.3) (2025-04-10)
|
|
7
23
|
|
|
8
24
|
**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.18.
|
|
3
|
+
"version": "12.18.4-canary.11a5dcf.0",
|
|
4
4
|
"description": "Global remoting retrieval system for Roblox (RemoteFunctions/RemoteEvents)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/brio": "
|
|
30
|
-
"@quenty/instanceutils": "
|
|
31
|
-
"@quenty/loader": "
|
|
32
|
-
"@quenty/maid": "
|
|
33
|
-
"@quenty/promise": "
|
|
34
|
-
"@quenty/promisemaid": "
|
|
35
|
-
"@quenty/remotefunctionutils": "
|
|
36
|
-
"@quenty/rx": "
|
|
37
|
-
"@quenty/table": "
|
|
29
|
+
"@quenty/brio": "14.17.4-canary.11a5dcf.0",
|
|
30
|
+
"@quenty/instanceutils": "13.17.4-canary.11a5dcf.0",
|
|
31
|
+
"@quenty/loader": "10.8.4-canary.11a5dcf.0",
|
|
32
|
+
"@quenty/maid": "3.4.4-canary.11a5dcf.0",
|
|
33
|
+
"@quenty/promise": "10.10.5-canary.11a5dcf.0",
|
|
34
|
+
"@quenty/promisemaid": "5.10.5-canary.11a5dcf.0",
|
|
35
|
+
"@quenty/remotefunctionutils": "10.10.5-canary.11a5dcf.0",
|
|
36
|
+
"@quenty/rx": "13.17.4-canary.11a5dcf.0",
|
|
37
|
+
"@quenty/table": "3.7.5-canary.11a5dcf.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "11a5dcf7d4c7a0bfbf3337e97d30e8346ea09d3f"
|
|
43
43
|
}
|
|
@@ -11,18 +11,18 @@ local require = require(script.Parent.loader).load(script)
|
|
|
11
11
|
local Players = game:GetService("Players")
|
|
12
12
|
local RunService = game:GetService("RunService")
|
|
13
13
|
|
|
14
|
+
local Brio = require("Brio")
|
|
14
15
|
local Maid = require("Maid")
|
|
16
|
+
local Observable = require("Observable")
|
|
15
17
|
local Promise = require("Promise")
|
|
16
|
-
local promiseChild = require("promiseChild")
|
|
17
18
|
local PromiseUtils = require("PromiseUtils")
|
|
18
19
|
local RemoteFunctionUtils = require("RemoteFunctionUtils")
|
|
19
20
|
local RemotingMember = require("RemotingMember")
|
|
20
|
-
local RemotingRealms = require("RemotingRealms")
|
|
21
21
|
local RemotingRealmUtils = require("RemotingRealmUtils")
|
|
22
|
+
local RemotingRealms = require("RemotingRealms")
|
|
22
23
|
local RxBrioUtils = require("RxBrioUtils")
|
|
23
24
|
local RxInstanceUtils = require("RxInstanceUtils")
|
|
24
|
-
local
|
|
25
|
-
local _Brio = require("Brio")
|
|
25
|
+
local promiseChild = require("promiseChild")
|
|
26
26
|
|
|
27
27
|
local RAW_MEMBERS = {
|
|
28
28
|
_name = true,
|
|
@@ -83,15 +83,15 @@ export type Remoting = typeof(setmetatable(
|
|
|
83
83
|
_getMemberName: (self: Remoting, memberName: string, objectType: string) -> string,
|
|
84
84
|
_getDebugMemberName: (self: Remoting, memberName: string) -> string,
|
|
85
85
|
_ensureContainer: (self: Remoting) -> Folder,
|
|
86
|
-
_observeFolderBrio: (self: Remoting) ->
|
|
86
|
+
_observeFolderBrio: (self: Remoting) -> Observable.Observable<Brio.Brio<Folder>>,
|
|
87
87
|
_observeRemoteEventBrio: (
|
|
88
88
|
self: Remoting,
|
|
89
89
|
memberName: string
|
|
90
|
-
) ->
|
|
90
|
+
) -> Observable.Observable<Brio.Brio<RemoteEvent>>,
|
|
91
91
|
_observeRemoteFunctionBrio: (
|
|
92
92
|
self: Remoting,
|
|
93
93
|
memberName: string
|
|
94
|
-
) ->
|
|
94
|
+
) -> Observable.Observable<Brio.Brio<RemoteFunction>>,
|
|
95
95
|
_promiseContainer: (self: Remoting, maid: Maid.Maid) -> Promise.Promise<Folder>,
|
|
96
96
|
_promiseRemoteEvent: (self: Remoting, maid: Maid.Maid, memberName: string) -> Promise.Promise<RemoteEvent>,
|
|
97
97
|
_getOrCreateRemoteEvent: (self: Remoting, memberName: string) -> RemoteEvent | BindableEvent,
|
|
@@ -687,7 +687,7 @@ function Remoting._observeRemoteFunctionBrio(self: Remoting, memberName: string)
|
|
|
687
687
|
else
|
|
688
688
|
return RxInstanceUtils.observeLastNamedChildBrio(item, "RemoteFunction", remoteFunctionName)
|
|
689
689
|
end
|
|
690
|
-
end),
|
|
690
|
+
end) :: any,
|
|
691
691
|
})
|
|
692
692
|
end
|
|
693
693
|
|
|
@@ -703,7 +703,7 @@ function Remoting._observeRemoteEventBrio(self: Remoting, memberName: string)
|
|
|
703
703
|
else
|
|
704
704
|
return RxInstanceUtils.observeLastNamedChildBrio(item, "RemoteEvent", remoteFunctionName)
|
|
705
705
|
end
|
|
706
|
-
end),
|
|
706
|
+
end) :: any,
|
|
707
707
|
})
|
|
708
708
|
end
|
|
709
709
|
|
|
@@ -729,7 +729,7 @@ function Remoting._promiseRemoteFunction(
|
|
|
729
729
|
end)
|
|
730
730
|
end
|
|
731
731
|
|
|
732
|
-
function Remoting._observeFolderBrio(self: Remoting):
|
|
732
|
+
function Remoting._observeFolderBrio(self: Remoting): Observable.Observable<Brio.Brio<Folder>>
|
|
733
733
|
assert(self._instance, "Not initialized")
|
|
734
734
|
|
|
735
735
|
return RxInstanceUtils.observeLastNamedChildBrio(
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
local require = require(script.Parent.loader).load(script)
|
|
10
10
|
|
|
11
|
+
local Maid = require("Maid")
|
|
12
|
+
local Promise = require("Promise")
|
|
11
13
|
local RemotingRealms = require("RemotingRealms")
|
|
12
|
-
local _Maid = require("Maid")
|
|
13
|
-
local _Promise = require("Promise")
|
|
14
14
|
|
|
15
15
|
local RemotingMember = {}
|
|
16
16
|
RemotingMember.ClassName = "RemotingMember"
|
|
@@ -56,7 +56,7 @@ end
|
|
|
56
56
|
@param callback function
|
|
57
57
|
@return MaidTask
|
|
58
58
|
]=]
|
|
59
|
-
function RemotingMember.Bind(self: RemotingMember, callback: (...any) -> ...any):
|
|
59
|
+
function RemotingMember.Bind(self: RemotingMember, callback: (...any) -> ...any): Maid.Maid
|
|
60
60
|
assert(type(callback) == "function", "Bad callback")
|
|
61
61
|
|
|
62
62
|
return self._remoting:Bind(self._memberName, callback)
|
|
@@ -110,7 +110,7 @@ end
|
|
|
110
110
|
@client
|
|
111
111
|
@param ... any
|
|
112
112
|
]=]
|
|
113
|
-
function RemotingMember.InvokeServer(self: RemotingMember, ...):
|
|
113
|
+
function RemotingMember.InvokeServer(self: RemotingMember, ...): Promise.Promise<...any>
|
|
114
114
|
assert(self._remotingRealm == RemotingRealms.CLIENT, "InvokeServer must be called on client")
|
|
115
115
|
|
|
116
116
|
return self._remoting:InvokeServer(self._memberName, ...)
|
|
@@ -122,7 +122,7 @@ end
|
|
|
122
122
|
@client
|
|
123
123
|
@param ... any
|
|
124
124
|
]=]
|
|
125
|
-
function RemotingMember.PromiseInvokeServer(self: RemotingMember, ...):
|
|
125
|
+
function RemotingMember.PromiseInvokeServer(self: RemotingMember, ...): Promise.Promise<...any>
|
|
126
126
|
assert(self._remotingRealm == RemotingRealms.CLIENT, "PromiseInvokeServer must be called on client")
|
|
127
127
|
|
|
128
128
|
return self._remoting:PromiseInvokeServer(self._memberName, ...)
|
|
@@ -135,7 +135,7 @@ end
|
|
|
135
135
|
@param ... any
|
|
136
136
|
@return Promise
|
|
137
137
|
]=]
|
|
138
|
-
function RemotingMember.PromiseFireServer(self: RemotingMember, ...):
|
|
138
|
+
function RemotingMember.PromiseFireServer(self: RemotingMember, ...): Promise.Promise<...any>
|
|
139
139
|
assert(self._remotingRealm == RemotingRealms.CLIENT, "PromiseInvokeServer must be called on client")
|
|
140
140
|
|
|
141
141
|
return self._remoting:PromiseFireServer(self._memberName, ...)
|
|
@@ -151,7 +151,7 @@ end
|
|
|
151
151
|
@param ... any
|
|
152
152
|
@return Promise<any>
|
|
153
153
|
]=]
|
|
154
|
-
function RemotingMember.PromiseInvokeClient(self: RemotingMember, player: Player, ...):
|
|
154
|
+
function RemotingMember.PromiseInvokeClient(self: RemotingMember, player: Player, ...): Promise.Promise<...any>
|
|
155
155
|
assert(typeof(player) == "Instance" and player:IsA("Player"), "Bad player")
|
|
156
156
|
assert(self._remotingRealm == RemotingRealms.SERVER, "PromiseInvokeClient must be called on client")
|
|
157
157
|
|
|
@@ -223,4 +223,4 @@ function RemotingMember.FireClient(self: RemotingMember, player: Player, ...)
|
|
|
223
223
|
self._remoting:FireClient(self._memberName, player, ...)
|
|
224
224
|
end
|
|
225
225
|
|
|
226
|
-
return RemotingMember
|
|
226
|
+
return RemotingMember
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
Intended for classes that extend BaseObject only
|
|
3
4
|
@class PromiseRemoteEventMixin
|
|
@@ -55,4 +56,4 @@ function PromiseRemoteEventMixin:PromiseRemoteEvent()
|
|
|
55
56
|
return self._maid:GivePromise(promiseChild(self._obj, self._remoteEventName))
|
|
56
57
|
end
|
|
57
58
|
|
|
58
|
-
return PromiseRemoteEventMixin
|
|
59
|
+
return PromiseRemoteEventMixin
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
Intended for classes that extend BaseObject only
|
|
3
4
|
@class PromiseRemoteFunctionMixin
|
|
@@ -55,5 +56,4 @@ function PromiseRemoteFunctionMixin:PromiseRemoteFunction()
|
|
|
55
56
|
return self._maid:GivePromise(promiseChild(self._obj, self._remoteFunctionName))
|
|
56
57
|
end
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
return PromiseRemoteFunctionMixin
|
|
59
|
+
return PromiseRemoteFunctionMixin
|
|
@@ -10,6 +10,6 @@ local require = require(script.Parent.loader).load(script)
|
|
|
10
10
|
local Table = require("Table")
|
|
11
11
|
|
|
12
12
|
return Table.readonly({
|
|
13
|
-
REMOTE_EVENT_STORAGE_NAME = "RemoteEvents"
|
|
14
|
-
REMOTE_FUNCTION_STORAGE_NAME = "RemoteFunctions"
|
|
15
|
-
})
|
|
13
|
+
REMOTE_EVENT_STORAGE_NAME = "RemoteEvents" :: "RemoteEvents",
|
|
14
|
+
REMOTE_FUNCTION_STORAGE_NAME = "RemoteFunctions" :: "RemoteFunctions",
|
|
15
|
+
})
|