@quenty/valuebaseutils 7.18.0 → 7.19.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
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.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/valuebaseutils@7.18.0...@quenty/valuebaseutils@7.19.0) (2023-08-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add predicate to ObserveBrio of ValueBaseValue ([146d9da](https://github.com/Quenty/NevermoreEngine/commit/146d9da3d6df06188e08e5768d279b72daffd336))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [7.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/valuebaseutils@7.17.0...@quenty/valuebaseutils@7.18.0) (2023-07-28)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/valuebaseutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/valuebaseutils",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.19.0",
|
|
4
4
|
"description": "Provides utilities for working with valuesbase objects, like IntValue or ObjectValue in Roblox.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@quenty/instanceutils": "^7.18.0",
|
|
30
30
|
"@quenty/loader": "^6.2.1",
|
|
31
31
|
"@quenty/promise": "^6.7.0",
|
|
32
|
-
"@quenty/rxsignal": "^1.
|
|
32
|
+
"@quenty/rxsignal": "^1.3.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "839b4d929e4d6154aadf719f1ecfb9add4c8b247"
|
|
38
38
|
}
|
|
@@ -38,9 +38,10 @@ end
|
|
|
38
38
|
@param parent Instance
|
|
39
39
|
@param className string
|
|
40
40
|
@param name string
|
|
41
|
+
@param predicate callback -- Optional callback
|
|
41
42
|
@return Observable<Brio<any>>
|
|
42
43
|
]=]
|
|
43
|
-
function RxValueBaseUtils.observeBrio(parent, className, name)
|
|
44
|
+
function RxValueBaseUtils.observeBrio(parent, className, name, predicate)
|
|
44
45
|
assert(typeof(parent) == "Instance", "Bad parent")
|
|
45
46
|
assert(type(className) == "string", "Bad className")
|
|
46
47
|
assert(type(name) == "string", "Bad naem")
|
|
@@ -51,6 +52,7 @@ function RxValueBaseUtils.observeBrio(parent, className, name)
|
|
|
51
52
|
return RxValueBaseUtils.observeValue(valueObject)
|
|
52
53
|
end),
|
|
53
54
|
RxBrioUtils.onlyLastBrioSurvives(),
|
|
55
|
+
predicate and RxBrioUtils.where(predicate) or nil;
|
|
54
56
|
})
|
|
55
57
|
end
|
|
56
58
|
|
|
@@ -36,8 +36,8 @@ function ValueBaseValue.new(parent, className, name, defaultValue)
|
|
|
36
36
|
return setmetatable(self, ValueBaseValue)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
function ValueBaseValue:ObserveBrio()
|
|
40
|
-
return RxValueBaseUtils.observeBrio(self._parent, self._className, self._name)
|
|
39
|
+
function ValueBaseValue:ObserveBrio(predicate)
|
|
40
|
+
return RxValueBaseUtils.observeBrio(self._parent, self._className, self._name, predicate)
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
function ValueBaseValue:Observe()
|