@quenty/rx 7.2.1 → 7.3.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/Rx.lua +12 -0
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.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@7.2.1...@quenty/rx@7.3.0) (2023-01-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add Rx.interval() ([8df8e82](https://github.com/Quenty/NevermoreEngine/commit/8df8e82d894c2786c4b5a2bd720ba00a89b6c2f2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [7.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@7.2.0...@quenty/rx@7.2.1) (2022-12-27)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/rx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rx",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Quenty's reactive library for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b2393f15774341318803f9bdd1377a4aa9d2fb0e"
|
|
44
44
|
}
|
package/src/Shared/Rx.lua
CHANGED
|
@@ -1523,6 +1523,18 @@ function Rx.timer(initialDelaySeconds, seconds)
|
|
|
1523
1523
|
end)
|
|
1524
1524
|
end
|
|
1525
1525
|
|
|
1526
|
+
--[=[
|
|
1527
|
+
https://www.learnrxjs.io/learn-rxjs/operators/creation/interval
|
|
1528
|
+
|
|
1529
|
+
@param seconds number
|
|
1530
|
+
@return (source: Observable<number>) -> Observable<number>
|
|
1531
|
+
]=]
|
|
1532
|
+
function Rx.interval(seconds)
|
|
1533
|
+
assert(type(seconds) == "number", "Bad seconds")
|
|
1534
|
+
|
|
1535
|
+
return Rx.timer(0, seconds)
|
|
1536
|
+
end
|
|
1537
|
+
|
|
1526
1538
|
--[=[
|
|
1527
1539
|
Honestly, I have not used this one much.
|
|
1528
1540
|
|