@quenty/rx 7.1.1 → 7.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/Rx.lua +14 -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.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@7.1.1...@quenty/rx@7.2.0) (2022-12-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add Rx.failed() ([4b33fd1](https://github.com/Quenty/NevermoreEngine/commit/4b33fd1b2724b7eb40c7fd56096501d90f171b84))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [7.1.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@7.1.0...@quenty/rx@7.1.1) (2022-11-04)
|
|
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.2.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": "3040397f5f4601886ca7a1f664be7019b3941618"
|
|
44
44
|
}
|
package/src/Shared/Rx.lua
CHANGED
|
@@ -102,6 +102,20 @@ function Rx.of(...)
|
|
|
102
102
|
end)
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
+
--[=[
|
|
106
|
+
Returns a failed observable
|
|
107
|
+
|
|
108
|
+
@param ... any -- Failure args
|
|
109
|
+
@return Observable
|
|
110
|
+
]=]
|
|
111
|
+
function Rx.failed(...)
|
|
112
|
+
local args = table.pack(...)
|
|
113
|
+
|
|
114
|
+
return Observable.new(function(sub)
|
|
115
|
+
sub:Fail(table.unpack(args, 1, args.n))
|
|
116
|
+
end)
|
|
117
|
+
end
|
|
118
|
+
|
|
105
119
|
--[=[
|
|
106
120
|
Converts an item
|
|
107
121
|
http://reactivex.io/documentation/operators/from.html
|