@quenty/rxsignal 7.17.3 → 7.17.4-canary.559.339cfa7.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 +4 -4
- package/src/Shared/RxSignal.lua +5 -5
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
|
+
## [7.17.4-canary.559.339cfa7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rxsignal@7.17.3...@quenty/rxsignal@7.17.4-canary.559.339cfa7.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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [7.17.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rxsignal@7.17.2...@quenty/rxsignal@7.17.3) (2025-04-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/rxsignal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rxsignal",
|
|
3
|
-
"version": "7.17.
|
|
3
|
+
"version": "7.17.4-canary.559.339cfa7.0",
|
|
4
4
|
"description": "Signal API for RxObservables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/loader": "
|
|
29
|
-
"@quenty/rx": "
|
|
28
|
+
"@quenty/loader": "10.8.4-canary.559.339cfa7.0",
|
|
29
|
+
"@quenty/rx": "13.17.4-canary.559.339cfa7.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "339cfa778736f08768ed7305041f6221faa35bfc"
|
|
35
35
|
}
|
package/src/Shared/RxSignal.lua
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
|
-
local Rx = require("Rx")
|
|
9
8
|
local Observable = require("Observable")
|
|
10
|
-
local
|
|
9
|
+
local Rx = require("Rx")
|
|
10
|
+
local Subscription = require("Subscription")
|
|
11
11
|
|
|
12
12
|
local RxSignal = {}
|
|
13
13
|
RxSignal.ClassName = "RxSignal"
|
|
@@ -39,7 +39,7 @@ end
|
|
|
39
39
|
--[=[
|
|
40
40
|
Connects to the signal and returns a subscription
|
|
41
41
|
]=]
|
|
42
|
-
function RxSignal.Connect<T...>(self: RxSignal<T...>, callback: (T...) -> ()):
|
|
42
|
+
function RxSignal.Connect<T...>(self: RxSignal<T...>, callback: (T...) -> ()): Subscription.Subscription<T...>
|
|
43
43
|
return self:_getObservable():Subscribe(callback)
|
|
44
44
|
end
|
|
45
45
|
|
|
@@ -49,7 +49,7 @@ end
|
|
|
49
49
|
function RxSignal.Wait<T...>(self: RxSignal<T...>): T...
|
|
50
50
|
local waitingCoroutine = coroutine.running()
|
|
51
51
|
|
|
52
|
-
local subscription:
|
|
52
|
+
local subscription: Subscription.Subscription<T...>
|
|
53
53
|
subscription = self:Connect(function(...)
|
|
54
54
|
subscription:Disconnect()
|
|
55
55
|
task.spawn(waitingCoroutine, ...)
|
|
@@ -61,7 +61,7 @@ end
|
|
|
61
61
|
--[=[
|
|
62
62
|
Connects once to the signal and returns a subscription
|
|
63
63
|
]=]
|
|
64
|
-
function RxSignal.Once<T...>(self: RxSignal<T...>, callback: (T...) -> ()):
|
|
64
|
+
function RxSignal.Once<T...>(self: RxSignal<T...>, callback: (T...) -> ()): Subscription.Subscription<T...>
|
|
65
65
|
return self:_getObservable()
|
|
66
66
|
:Pipe({
|
|
67
67
|
Rx.take(1) :: any,
|