@quenty/bodycolorsutils 7.36.1 → 7.38.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,16 @@
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.38.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/bodycolorsutils@7.37.0...@quenty/bodycolorsutils@7.38.0) (2026-07-18)
7
+
8
+ **Note:** Version bump only for package @quenty/bodycolorsutils
9
+
10
+ # [7.37.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/bodycolorsutils@7.36.1...@quenty/bodycolorsutils@7.37.0) (2026-07-14)
11
+
12
+ ### Features
13
+
14
+ - **bodycolorsutils:** convert package to --!strict ([0f48453](https://github.com/Quenty/NevermoreEngine/commit/0f48453fa448b6c59930da9e20e859745d34d744))
15
+
6
16
  ## [7.36.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/bodycolorsutils@7.36.0...@quenty/bodycolorsutils@7.36.1) (2026-05-30)
7
17
 
8
18
  **Note:** Version bump only for package @quenty/bodycolorsutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/bodycolorsutils",
3
- "version": "7.36.1",
3
+ "version": "7.38.0",
4
4
  "description": "Body color helper utilities for merging and representing body colors over the network and datastore",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,15 +28,15 @@
28
28
  "Quenty"
29
29
  ],
30
30
  "dependencies": {
31
- "@quenty/attributeutils": "14.30.1",
31
+ "@quenty/attributeutils": "14.31.0",
32
32
  "@quenty/color3serializationutils": "2.3.2",
33
- "@quenty/color3utils": "11.36.1",
33
+ "@quenty/color3utils": "11.38.0",
34
34
  "@quenty/loader": "10.11.0",
35
- "@quenty/rx": "13.28.3",
35
+ "@quenty/rx": "13.29.0",
36
36
  "@quenty/table": "3.9.2"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "598b2b62b36bdcbdbbd56f7db10c399831cc6eba"
41
+ "gitHead": "cbbb89635bfdcbf32f26a40422ac736292917cca"
42
42
  }
@@ -1,4 +1,4 @@
1
- --!nonstrict
1
+ --!strict
2
2
  --[=[
3
3
  @class BodyColorsDataConstants
4
4
  ]=]
@@ -7,13 +7,15 @@ local require = require(script.Parent.loader).load(script)
7
7
 
8
8
  local Table = require("Table")
9
9
 
10
+ local ATTRIBUTE_MAPPING: { [string]: string } = {
11
+ headColor = "HeadColor",
12
+ leftArmColor = "LeftArmColor",
13
+ leftLegColor = "LeftLegColor",
14
+ rightArmColor = "RightArmColor",
15
+ rightLegColor = "RightLegColor",
16
+ torsoColor = "TorsoColor",
17
+ }
18
+
10
19
  return Table.readonly({
11
- ATTRIBUTE_MAPPING = {
12
- headColor = "HeadColor",
13
- leftArmColor = "LeftArmColor",
14
- leftLegColor = "LeftLegColor",
15
- rightArmColor = "RightArmColor",
16
- rightLegColor = "RightLegColor",
17
- torsoColor = "TorsoColor",
18
- },
20
+ ATTRIBUTE_MAPPING = ATTRIBUTE_MAPPING,
19
21
  })
@@ -1,4 +1,4 @@
1
- --!nonstrict
1
+ --!strict
2
2
  --[=[
3
3
  @class RxBodyColorsDataUtils
4
4
  ]=]
@@ -7,6 +7,7 @@ local require = require(script.Parent.loader).load(script)
7
7
 
8
8
  local BodyColorsDataConstants = require("BodyColorsDataConstants")
9
9
  local BodyColorsDataUtils = require("BodyColorsDataUtils")
10
+ local Observable = require("Observable")
10
11
  local Rx = require("Rx")
11
12
  local RxAttributeUtils = require("RxAttributeUtils")
12
13
 
@@ -18,20 +19,22 @@ local RxBodyColorsDataUtils = {}
18
19
  @param instance Instance
19
20
  @return Observable<BodyColorsData>
20
21
  ]=]
21
- function RxBodyColorsDataUtils.observeFromAttributes(instance: Instance)
22
+ function RxBodyColorsDataUtils.observeFromAttributes(
23
+ instance: Instance
24
+ ): Observable.Observable<BodyColorsDataUtils.BodyColorsData>
22
25
  assert(typeof(instance) == "Instance", "Bad instance")
23
26
 
24
27
  local observables = {}
25
28
 
26
- for key, attributeName in BodyColorsDataConstants.ATTRIBUTE_MAPPING do
29
+ for key, attributeName in BodyColorsDataConstants.ATTRIBUTE_MAPPING :: { [string]: string } do
27
30
  observables[key] = RxAttributeUtils.observeAttribute(instance, attributeName)
28
31
  end
29
32
 
30
- return Rx.combineLatest(observables):Pipe({
31
- Rx.map(function(latestValues)
33
+ return (Rx.combineLatest(observables) :: any):Pipe({
34
+ Rx.map(function(latestValues): any
32
35
  local bodyColorsData = {}
33
36
 
34
- for key, attributeName in BodyColorsDataConstants.ATTRIBUTE_MAPPING do
37
+ for key, attributeName in BodyColorsDataConstants.ATTRIBUTE_MAPPING :: { [string]: string } do
35
38
  local value = latestValues[key]
36
39
  if typeof(value) == "Color3" then
37
40
  bodyColorsData[key] = value
@@ -48,7 +51,7 @@ function RxBodyColorsDataUtils.observeFromAttributes(instance: Instance)
48
51
 
49
52
  return BodyColorsDataUtils.createBodyColorsData(bodyColorsData)
50
53
  end),
51
- })
54
+ }) :: any
52
55
  end
53
56
 
54
57
  return RxBodyColorsDataUtils