@quenty/binder 14.6.1-canary.499.60b3012.0 → 14.7.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
|
-
|
|
6
|
+
# [14.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@14.6.0...@quenty/binder@14.7.0) (2024-09-25)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Rename stragglers ([25c8512](https://github.com/Quenty/NevermoreEngine/commit/25c85124769eb0c92ad4d4c51bc950d9c319c994))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/binder",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.7.0",
|
|
4
4
|
"description": "Utility object to Bind a class to Roblox object, and associated helper methods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "10.
|
|
29
|
-
"@quenty/brio": "14.
|
|
30
|
-
"@quenty/instanceutils": "13.
|
|
31
|
-
"@quenty/linkutils": "13.
|
|
32
|
-
"@quenty/loader": "10.
|
|
33
|
-
"@quenty/maid": "3.3.0",
|
|
34
|
-
"@quenty/promise": "10.
|
|
35
|
-
"@quenty/rx": "13.
|
|
36
|
-
"@quenty/signal": "7.
|
|
37
|
-
"@quenty/valueobject": "13.
|
|
28
|
+
"@quenty/baseobject": "^10.5.0",
|
|
29
|
+
"@quenty/brio": "^14.6.0",
|
|
30
|
+
"@quenty/instanceutils": "^13.6.0",
|
|
31
|
+
"@quenty/linkutils": "^13.6.0",
|
|
32
|
+
"@quenty/loader": "^10.5.0",
|
|
33
|
+
"@quenty/maid": "^3.3.0",
|
|
34
|
+
"@quenty/promise": "^10.5.0",
|
|
35
|
+
"@quenty/rx": "^13.6.0",
|
|
36
|
+
"@quenty/signal": "^7.5.0",
|
|
37
|
+
"@quenty/valueobject": "^13.6.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "41715b15e2b48b2d22ff4f5277a8d4b7a0d32ef3"
|
|
43
43
|
}
|
package/src/Shared/Binder.lua
CHANGED
|
@@ -144,7 +144,7 @@ function Binder:Init(...)
|
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
self._maid._warning = task.delay(5, function()
|
|
147
|
-
warn(("Binder %q is not loaded. Call :Start() on it!"
|
|
147
|
+
warn(string.format("Binder %q is not loaded. Call :Start() on it!", self._tagName))
|
|
148
148
|
end)
|
|
149
149
|
end
|
|
150
150
|
|
|
@@ -450,8 +450,7 @@ end
|
|
|
450
450
|
]=]
|
|
451
451
|
function Binder:Bind(inst)
|
|
452
452
|
if RunService:IsClient() then
|
|
453
|
-
warn(("[Binder.Bind] - Bindings '%s' done on the client! Will be disrupted upon server replication! %s")
|
|
454
|
-
:format(self._tagName, debug.traceback()))
|
|
453
|
+
warn(string.format("[Binder.Bind] - Bindings '%s' done on the client! Will be disrupted upon server replication! %s", self._tagName, debug.traceback()))
|
|
455
454
|
end
|
|
456
455
|
|
|
457
456
|
CollectionService:AddTag(inst, self._tagName)
|
|
@@ -501,8 +500,7 @@ function Binder:Unbind(inst)
|
|
|
501
500
|
assert(typeof(inst) == "Instance", "Bad inst'")
|
|
502
501
|
|
|
503
502
|
if RunService:IsClient() then
|
|
504
|
-
warn(("[Binder.Bind] - Unbinding '%s' done on the client! Might be disrupted upon server replication! %s")
|
|
505
|
-
:format(self._tagName, debug.traceback()))
|
|
503
|
+
warn(string.format("[Binder.Bind] - Unbinding '%s' done on the client! Might be disrupted upon server replication! %s", self._tagName, debug.traceback()))
|
|
506
504
|
end
|
|
507
505
|
|
|
508
506
|
CollectionService:RemoveTag(inst, self._tagName)
|
|
@@ -520,8 +518,7 @@ end
|
|
|
520
518
|
]=]
|
|
521
519
|
function Binder:BindClient(inst)
|
|
522
520
|
if not RunService:IsClient() then
|
|
523
|
-
warn(("[Binder.BindClient] - Bindings '%s' done on the server! Will be replicated!")
|
|
524
|
-
:format(self._tagName))
|
|
521
|
+
warn(string.format("[Binder.BindClient] - Bindings '%s' done on the server! Will be replicated!", self._tagName))
|
|
525
522
|
end
|
|
526
523
|
|
|
527
524
|
CollectionService:AddTag(inst, self._tagName)
|
|
@@ -607,8 +604,7 @@ function Binder:_add(inst)
|
|
|
607
604
|
if self._pendingInstSet[inst] ~= true then
|
|
608
605
|
-- Got GCed in the process of loading?!
|
|
609
606
|
-- Constructor probably yields. Yikes.
|
|
610
|
-
warn(("[Binder._add] - Failed to load instance %q of %q, removed while loading!"
|
|
611
|
-
:format(
|
|
607
|
+
warn(string.format("[Binder._add] - Failed to load instance %q of %q, removed while loading!",
|
|
612
608
|
inst:GetFullName(),
|
|
613
609
|
tostring(type(self._constructor) == "table" and self._constructor.ClassName or self._constructor)))
|
|
614
610
|
return
|
|
@@ -158,7 +158,7 @@ function BinderUtils.getLinkedChildren(binder, linkName, parent)
|
|
|
158
158
|
seen[obj] = true
|
|
159
159
|
table.insert(objects, obj)
|
|
160
160
|
else
|
|
161
|
-
warn(("[BinderUtils.getLinkedChildren] - Double linked children at %q"
|
|
161
|
+
warn(string.format("[BinderUtils.getLinkedChildren] - Double linked children at %q", item:GetFullName()))
|
|
162
162
|
end
|
|
163
163
|
end
|
|
164
164
|
end
|
|
@@ -44,8 +44,7 @@ return function(binder, inst, cancelToken)
|
|
|
44
44
|
|
|
45
45
|
task.delay(5, function()
|
|
46
46
|
if promise:IsPending() then
|
|
47
|
-
warn(("[promiseBoundClass] - Infinite yield possible on %q for binder %q\n")
|
|
48
|
-
:format(inst:GetFullName(), binder:GetTag()))
|
|
47
|
+
warn(string.format("[promiseBoundClass] - Infinite yield possible on %q for binder %q\n", inst:GetFullName(), binder:GetTag()))
|
|
49
48
|
end
|
|
50
49
|
end)
|
|
51
50
|
|