@quenty/rogue-properties 11.7.3-canary.499.60b3012.0 → 11.7.3-canary.503.09c816c.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,9 +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
|
-
## [11.7.3-canary.
|
|
6
|
+
## [11.7.3-canary.503.09c816c.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rogue-properties@11.7.2...@quenty/rogue-properties@11.7.3-canary.503.09c816c.0) (2024-10-04)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Better errors when trying to assign a rogue property ([0cc2573](https://github.com/Quenty/NevermoreEngine/commit/0cc2573fde14e7318e0bc49f6d0f33b0b841c838))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rogue-properties",
|
|
3
|
-
"version": "11.7.3-canary.
|
|
3
|
+
"version": "11.7.3-canary.503.09c816c.0",
|
|
4
4
|
"description": "Roguelike properties which can be modified by external provides",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -24,33 +24,33 @@
|
|
|
24
24
|
"Quenty"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@quenty/adorneedata": "7.6.1-canary.
|
|
28
|
-
"@quenty/baseobject": "10.4.0",
|
|
29
|
-
"@quenty/binder": "14.6.1-canary.
|
|
30
|
-
"@quenty/brio": "14.5.1-canary.
|
|
27
|
+
"@quenty/adorneedata": "7.6.1-canary.503.09c816c.0",
|
|
28
|
+
"@quenty/baseobject": "10.4.1-canary.503.09c816c.0",
|
|
29
|
+
"@quenty/binder": "14.6.1-canary.503.09c816c.0",
|
|
30
|
+
"@quenty/brio": "14.5.1-canary.503.09c816c.0",
|
|
31
31
|
"@quenty/defaultvalueutils": "1.2.0",
|
|
32
|
-
"@quenty/ducktype": "5.4.0",
|
|
33
|
-
"@quenty/instanceutils": "13.5.1-canary.
|
|
34
|
-
"@quenty/jsonutils": "10.4.0",
|
|
35
|
-
"@quenty/linkutils": "13.5.1-canary.
|
|
36
|
-
"@quenty/loader": "10.4.0",
|
|
37
|
-
"@quenty/maid": "3.3.0",
|
|
38
|
-
"@quenty/observablecollection": "12.5.3-canary.
|
|
39
|
-
"@quenty/rx": "13.5.1-canary.
|
|
40
|
-
"@quenty/rxbinderutils": "14.6.1-canary.
|
|
41
|
-
"@quenty/rxsignal": "7.5.1-canary.
|
|
42
|
-
"@quenty/servicebag": "11.5.
|
|
43
|
-
"@quenty/signal": "7.4.0",
|
|
44
|
-
"@quenty/spring": "10.4.
|
|
45
|
-
"@quenty/string": "3.2.0",
|
|
32
|
+
"@quenty/ducktype": "5.4.1-canary.503.09c816c.0",
|
|
33
|
+
"@quenty/instanceutils": "13.5.1-canary.503.09c816c.0",
|
|
34
|
+
"@quenty/jsonutils": "10.4.1-canary.503.09c816c.0",
|
|
35
|
+
"@quenty/linkutils": "13.5.1-canary.503.09c816c.0",
|
|
36
|
+
"@quenty/loader": "10.4.1-canary.503.09c816c.0",
|
|
37
|
+
"@quenty/maid": "3.3.1-canary.503.09c816c.0",
|
|
38
|
+
"@quenty/observablecollection": "12.5.3-canary.503.09c816c.0",
|
|
39
|
+
"@quenty/rx": "13.5.1-canary.503.09c816c.0",
|
|
40
|
+
"@quenty/rxbinderutils": "14.6.1-canary.503.09c816c.0",
|
|
41
|
+
"@quenty/rxsignal": "7.5.1-canary.503.09c816c.0",
|
|
42
|
+
"@quenty/servicebag": "11.5.2-canary.503.09c816c.0",
|
|
43
|
+
"@quenty/signal": "7.4.1-canary.503.09c816c.0",
|
|
44
|
+
"@quenty/spring": "10.4.2-canary.503.09c816c.0",
|
|
45
|
+
"@quenty/string": "3.2.1-canary.503.09c816c.0",
|
|
46
46
|
"@quenty/table": "3.5.0",
|
|
47
|
-
"@quenty/tie": "10.7.1-canary.
|
|
48
|
-
"@quenty/valuebaseutils": "13.5.1-canary.
|
|
49
|
-
"@quenty/valueobject": "13.5.1-canary.
|
|
47
|
+
"@quenty/tie": "10.7.1-canary.503.09c816c.0",
|
|
48
|
+
"@quenty/valuebaseutils": "13.5.1-canary.503.09c816c.0",
|
|
49
|
+
"@quenty/valueobject": "13.5.1-canary.503.09c816c.0",
|
|
50
50
|
"@quentystudios/t": "^3.0.0"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "09c816cc494415417925bb4c0b02cacae579a676"
|
|
56
56
|
}
|
|
@@ -148,7 +148,7 @@ function RoguePropertyDefinition:_computeStorageInstanceType()
|
|
|
148
148
|
elseif self._valueType == "CFrame" then
|
|
149
149
|
return "CFrameValue"
|
|
150
150
|
else
|
|
151
|
-
error(("Unknown valueType %q"
|
|
151
|
+
error(string.format("Unknown valueType %q", tostring(self._valueType)))
|
|
152
152
|
end
|
|
153
153
|
end
|
|
154
154
|
|
|
@@ -212,6 +212,13 @@ function RoguePropertyTable:__newindex(index, value)
|
|
|
212
212
|
error("Cannot set .Changed event")
|
|
213
213
|
elseif RoguePropertyTable[index] then
|
|
214
214
|
error(string.format("Cannot set %q", tostring(index)))
|
|
215
|
+
elseif type(index) == "string" then
|
|
216
|
+
local property = self:GetRogueProperty(index)
|
|
217
|
+
if not property then
|
|
218
|
+
error(string.format("Bad index %q", tostring(index)))
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
error(string.format("Use RoguePropertyTable.%s.Value to assign", index))
|
|
215
222
|
else
|
|
216
223
|
error(string.format("Bad index %q", tostring(index)))
|
|
217
224
|
end
|
|
@@ -12,7 +12,7 @@ function RoguePropertyUtils.decodeProperty(definition, value)
|
|
|
12
12
|
if definition:GetValueType() == "table" then
|
|
13
13
|
local ok, decoded, err = JSONUtils.jsonDecode(value)
|
|
14
14
|
if not ok then
|
|
15
|
-
warn(("Failed to decode current value of %s. %q"
|
|
15
|
+
warn(string.format("Failed to decode current value of %s. %q", definition:GetName(), tostring(err)))
|
|
16
16
|
return definition:GetDefaultValue()
|
|
17
17
|
end
|
|
18
18
|
|
|
@@ -26,7 +26,7 @@ function RoguePropertyUtils.encodeProperty(definition, value)
|
|
|
26
26
|
if definition:GetValueType() == "table" then
|
|
27
27
|
local ok, encoded, err = JSONUtils.jsonEncode(value)
|
|
28
28
|
if not ok then
|
|
29
|
-
warn(("Failed to encode current value of %s. %q"
|
|
29
|
+
warn(string.format("Failed to encode current value of %s. %q", definition:GetName(), tostring(err)))
|
|
30
30
|
return definition:GetEncodedDefaultValue()
|
|
31
31
|
end
|
|
32
32
|
|