@quenty/attributeutils 14.17.2 → 14.17.3
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 +8 -0
- package/package.json +9 -9
- package/src/Shared/AttributeValue.lua +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [14.17.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@14.17.2...@quenty/attributeutils@14.17.3) (2025-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/attributeutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [14.17.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@14.17.0...@quenty/attributeutils@14.17.2) (2025-04-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/attributeutils",
|
|
3
|
-
"version": "14.17.
|
|
3
|
+
"version": "14.17.3",
|
|
4
4
|
"description": "Provides utility functions to work with attributes in Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "^14.17.
|
|
29
|
-
"@quenty/canceltoken": "^11.11.
|
|
30
|
-
"@quenty/loader": "^10.8.
|
|
31
|
-
"@quenty/maid": "^3.4.
|
|
32
|
-
"@quenty/promise": "^10.10.
|
|
33
|
-
"@quenty/rx": "^13.17.
|
|
34
|
-
"@quenty/rxsignal": "^7.17.
|
|
28
|
+
"@quenty/brio": "^14.17.3",
|
|
29
|
+
"@quenty/canceltoken": "^11.11.4",
|
|
30
|
+
"@quenty/loader": "^10.8.3",
|
|
31
|
+
"@quenty/maid": "^3.4.3",
|
|
32
|
+
"@quenty/promise": "^10.10.4",
|
|
33
|
+
"@quenty/rx": "^13.17.3",
|
|
34
|
+
"@quenty/rxsignal": "^7.17.3",
|
|
35
35
|
"@quenty/symbol": "^3.4.2"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
|
|
41
41
|
}
|
|
@@ -32,14 +32,14 @@ export type AttributeValue<T> = typeof(setmetatable(
|
|
|
32
32
|
{} :: {
|
|
33
33
|
_object: Instance,
|
|
34
34
|
_attributeName: string,
|
|
35
|
-
_defaultValue: T
|
|
35
|
+
_defaultValue: T,
|
|
36
36
|
|
|
37
37
|
-- Public
|
|
38
|
-
Value: T
|
|
38
|
+
Value: T,
|
|
39
39
|
AttributeName: string,
|
|
40
40
|
Changed: RBXScriptSignal<(T)>,
|
|
41
41
|
},
|
|
42
|
-
AttributeValue
|
|
42
|
+
{} :: typeof({ __index = AttributeValue })
|
|
43
43
|
))
|
|
44
44
|
|
|
45
45
|
--[=[
|
|
@@ -48,10 +48,10 @@ export type AttributeValue<T> = typeof(setmetatable(
|
|
|
48
48
|
|
|
49
49
|
@param object Instance
|
|
50
50
|
@param attributeName string
|
|
51
|
-
@param defaultValue T
|
|
51
|
+
@param defaultValue T
|
|
52
52
|
@return AttributeValue<T>
|
|
53
53
|
]=]
|
|
54
|
-
function AttributeValue.new<T>(object: Instance, attributeName: string, defaultValue:
|
|
54
|
+
function AttributeValue.new<T>(object: Instance, attributeName: string, defaultValue: T): AttributeValue<T>
|
|
55
55
|
assert(typeof(object) == "Instance", "Bad object")
|
|
56
56
|
assert(type(attributeName) == "string", "Bad attributeName")
|
|
57
57
|
|
|
@@ -85,7 +85,7 @@ end
|
|
|
85
85
|
Observes an attribute on an instance.
|
|
86
86
|
@return Observable<any>
|
|
87
87
|
]=]
|
|
88
|
-
function AttributeValue.Observe<T>(self: AttributeValue<T>): _Observable.Observable<T
|
|
88
|
+
function AttributeValue.Observe<T>(self: AttributeValue<T>): _Observable.Observable<T>
|
|
89
89
|
return RxAttributeUtils.observeAttribute(self._object, self._attributeName, rawget(self :: any, "_defaultValue"))
|
|
90
90
|
end
|
|
91
91
|
|