@quenty/attributeutils 14.17.4-canary.559.9f38947.0 → 14.18.0-canary.0a5db80.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,20 +3,12 @@
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.4-canary.559.9f38947.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@14.17.3...@quenty/attributeutils@14.17.4-canary.559.9f38947.0) (2025-05-10)
6
+ # [14.18.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@14.17.2...@quenty/attributeutils@14.18.0-canary.0a5db80.0) (2025-05-10)
7
7
 
8
8
 
9
9
  ### Bug Fixes
10
10
 
11
- * Additional type checking updates ([05ba29a](https://github.com/Quenty/NevermoreEngine/commit/05ba29a03efc9f3feed74b34f1d9dfb237496214))
12
-
13
-
14
-
15
-
16
-
17
- ## [14.17.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@14.17.2...@quenty/attributeutils@14.17.3) (2025-04-10)
18
-
19
- **Note:** Version bump only for package @quenty/attributeutils
11
+ * Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
20
12
 
21
13
 
22
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/attributeutils",
3
- "version": "14.17.4-canary.559.9f38947.0",
3
+ "version": "14.18.0-canary.0a5db80.0",
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.4-canary.559.9f38947.0",
29
- "@quenty/canceltoken": "11.11.5-canary.559.9f38947.0",
30
- "@quenty/loader": "10.8.4-canary.559.9f38947.0",
31
- "@quenty/maid": "3.4.4-canary.559.9f38947.0",
32
- "@quenty/promise": "10.10.5-canary.559.9f38947.0",
33
- "@quenty/rx": "13.17.4-canary.559.9f38947.0",
34
- "@quenty/rxsignal": "7.17.4-canary.559.9f38947.0",
35
- "@quenty/symbol": "3.4.3-canary.559.9f38947.0"
28
+ "@quenty/brio": "14.18.0-canary.0a5db80.0",
29
+ "@quenty/canceltoken": "11.12.0-canary.0a5db80.0",
30
+ "@quenty/loader": "10.9.0-canary.0a5db80.0",
31
+ "@quenty/maid": "3.5.0-canary.0a5db80.0",
32
+ "@quenty/promise": "10.11.0-canary.0a5db80.0",
33
+ "@quenty/rx": "13.18.0-canary.0a5db80.0",
34
+ "@quenty/rxsignal": "7.18.0-canary.0a5db80.0",
35
+ "@quenty/symbol": "3.4.2"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "9f38947767d202411936a5c98898033df5865da0"
40
+ "gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
41
41
  }
@@ -8,9 +8,9 @@ local require = require(script.Parent.loader).load(script)
8
8
 
9
9
  local RunService = game:GetService("RunService")
10
10
 
11
- local CancelToken = require("CancelToken")
12
11
  local Maid = require("Maid")
13
12
  local Promise = require("Promise")
13
+ local CancelToken = require("CancelToken")
14
14
 
15
15
  local DEFAULT_PREDICATE = function(value)
16
16
  return value ~= nil
@@ -64,12 +64,7 @@ end
64
64
  @param cancelToken CancelToken
65
65
  @return Promise<unknown>
66
66
  ]=]
67
- function AttributeUtils.promiseAttribute(
68
- instance: Instance,
69
- attributeName: string,
70
- predicate,
71
- cancelToken: CancelToken.CancelToken?
72
- ): Promise.Promise<unknown>
67
+ function AttributeUtils.promiseAttribute(instance: Instance, attributeName: string, predicate, cancelToken: CancelToken.CancelToken?): Promise.Promise<unknown>
73
68
  assert(typeof(instance) == "Instance", "Bad instance")
74
69
  assert(type(attributeName) == "string", "Bad attributeName")
75
70
  assert(CancelToken.isCancelToken(cancelToken) or cancelToken == nil, "Bad cancelToken")
@@ -132,4 +132,4 @@ function AttributeValue.__newindex<T>(self: AttributeValue<T>, index, value)
132
132
  end
133
133
  end
134
134
 
135
- return AttributeValue
135
+ return AttributeValue
@@ -32,10 +32,10 @@ function EncodedAttributeValue.new(object: Instance, attributeName: string, enco
32
32
  assert(type(encode) == "function", "Bad encode")
33
33
 
34
34
  local self = {
35
- _object = object,
36
- _attributeName = attributeName,
37
- _decode = decode,
38
- _encode = encode,
35
+ _object = object;
36
+ _attributeName = attributeName;
37
+ _decode = decode;
38
+ _encode = encode;
39
39
  }
40
40
 
41
41
  if defaultValue ~= nil and self._object:GetAttribute(self._attributeName) == nil then
@@ -52,7 +52,7 @@ end
52
52
  ]=]
53
53
  function EncodedAttributeValue:ObserveBrio(condition)
54
54
  return RxAttributeUtils.observeAttributeBrio(self._object, self._attributeName, condition):Pipe({
55
- RxBrioUtils.map(rawget(self, "_decode")),
55
+ RxBrioUtils.map(rawget(self, "_decode"))
56
56
  })
57
57
  end
58
58
 
@@ -62,7 +62,7 @@ end
62
62
  ]=]
63
63
  function EncodedAttributeValue:Observe()
64
64
  return RxAttributeUtils.observeAttribute(self._object, self._attributeName, rawget(self, "_defaultValue")):Pipe({
65
- Rx.map(rawget(self, "_decode")),
65
+ Rx.map(rawget(self, "_decode"))
66
66
  })
67
67
  end
68
68
 
@@ -109,4 +109,4 @@ function EncodedAttributeValue:__newindex(index, value)
109
109
  end
110
110
  end
111
111
 
112
- return EncodedAttributeValue
112
+ return EncodedAttributeValue
@@ -35,4 +35,4 @@ function JSONAttributeValue.new(object: Instance, attributeName: string, default
35
35
  end, defaultValue)
36
36
  end
37
37
 
38
- return JSONAttributeValue
38
+ return JSONAttributeValue
@@ -130,11 +130,7 @@ end
130
130
  @param condition function | nil
131
131
  @return Observable<Brio<any>>
132
132
  ]=]
133
- function RxAttributeUtils.observeAttributeBrio<T>(
134
- instance: Instance,
135
- attributeName: string,
136
- condition: Rx.Predicate<T>?
137
- ): Observable.Observable<Brio.Brio<T>>
133
+ function RxAttributeUtils.observeAttributeBrio<T>(instance: Instance, attributeName: string, condition: Rx.Predicate<T>?): Observable.Observable<Brio.Brio<T>>
138
134
  assert(typeof(instance) == "Instance", "Bad instance")
139
135
  assert(type(attributeName) == "string", "Bad attributeName")
140
136
 
@@ -172,4 +168,4 @@ function RxAttributeUtils.observeAttributeBrio<T>(
172
168
  end) :: any
173
169
  end
174
170
 
175
- return RxAttributeUtils
171
+ return RxAttributeUtils