@quenty/binder 14.20.0-canary.ae8d76d.0 → 14.20.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 +1 -1
- package/package.json +12 -12
- package/src/Shared/Binder.lua +1 -1
- package/src/Shared/BinderGroup.lua +1 -1
- package/src/Shared/BinderGroupProvider.lua +1 -1
- package/src/Shared/BinderProvider.lua +10 -11
- package/src/Shared/BinderProvider.spec.lua +4 -3
- package/src/Shared/BinderUtils.lua +1 -2
- package/src/Shared/Collection/BoundChildCollection.lua +2 -2
- package/src/Shared/Promise/promiseBoundClass.lua +1 -1
- package/src/Shared/Trackers/BoundAncestorTracker.lua +3 -4
- package/src/Shared/Trackers/BoundParentTracker.lua +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.20.0
|
|
6
|
+
# [14.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@14.19.3...@quenty/binder@14.20.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/binder",
|
|
3
|
-
"version": "14.20.0
|
|
3
|
+
"version": "14.20.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.18.0
|
|
30
|
-
"@quenty/instanceutils": "13.18.0
|
|
31
|
-
"@quenty/linkutils": "13.18.0
|
|
32
|
-
"@quenty/loader": "10.
|
|
33
|
-
"@quenty/maid": "3.
|
|
34
|
-
"@quenty/promise": "10.11.0
|
|
35
|
-
"@quenty/rx": "13.18.0
|
|
36
|
-
"@quenty/signal": "7.
|
|
37
|
-
"@quenty/valueobject": "13.18.0
|
|
28
|
+
"@quenty/baseobject": "^10.9.0",
|
|
29
|
+
"@quenty/brio": "^14.18.0",
|
|
30
|
+
"@quenty/instanceutils": "^13.18.0",
|
|
31
|
+
"@quenty/linkutils": "^13.18.0",
|
|
32
|
+
"@quenty/loader": "^10.9.0",
|
|
33
|
+
"@quenty/maid": "^3.5.0",
|
|
34
|
+
"@quenty/promise": "^10.11.0",
|
|
35
|
+
"@quenty/rx": "^13.18.0",
|
|
36
|
+
"@quenty/signal": "^7.11.0",
|
|
37
|
+
"@quenty/valueobject": "^13.18.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "20cff952c2cf06b959f2f11d2293bdef38acc604"
|
|
43
43
|
}
|
package/src/Shared/Binder.lua
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
local require = require(script.Parent.loader).load(script)
|
|
29
29
|
|
|
30
|
-
local RunService = game:GetService("RunService")
|
|
31
30
|
local CollectionService = game:GetService("CollectionService")
|
|
31
|
+
local RunService = game:GetService("RunService")
|
|
32
32
|
|
|
33
33
|
local Brio = require("Brio")
|
|
34
34
|
local CancelToken = require("CancelToken")
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
|
-
local Promise = require("Promise")
|
|
9
8
|
local Maid = require("Maid")
|
|
9
|
+
local Promise = require("Promise")
|
|
10
10
|
|
|
11
11
|
local BinderProvider = {}
|
|
12
12
|
BinderProvider.ClassName = "BinderProvider"
|
|
@@ -90,15 +90,14 @@ function BinderProvider:PromiseBinder(binderName)
|
|
|
90
90
|
end
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
return self._bindersAddedPromise
|
|
94
|
-
:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
end)
|
|
93
|
+
return self._bindersAddedPromise:Then(function()
|
|
94
|
+
local binder = self:Get(binderName)
|
|
95
|
+
if binder then
|
|
96
|
+
return binder
|
|
97
|
+
else
|
|
98
|
+
return Promise.rejected()
|
|
99
|
+
end
|
|
100
|
+
end)
|
|
102
101
|
end
|
|
103
102
|
|
|
104
103
|
--[=[
|
|
@@ -209,4 +208,4 @@ function BinderProvider:Destroy()
|
|
|
209
208
|
self._binders = nil
|
|
210
209
|
end
|
|
211
210
|
|
|
212
|
-
return BinderProvider
|
|
211
|
+
return BinderProvider
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
@class BinderProvider.spec.lua
|
|
3
3
|
]]
|
|
4
4
|
|
|
5
|
-
local require =
|
|
5
|
+
local require =
|
|
6
|
+
require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
6
7
|
|
|
7
8
|
local Binder = require("Binder")
|
|
8
9
|
local BinderProvider = require("BinderProvider")
|
|
@@ -22,7 +23,7 @@ describe("BinderProvider.new()", function()
|
|
|
22
23
|
assert(arg == 12345, "Bad arg")
|
|
23
24
|
|
|
24
25
|
self:Add(Binder.new("Test", function()
|
|
25
|
-
return { Destroy = function() end
|
|
26
|
+
return { Destroy = function() end }
|
|
26
27
|
end))
|
|
27
28
|
end)
|
|
28
29
|
|
|
@@ -42,4 +43,4 @@ describe("BinderProvider.new()", function()
|
|
|
42
43
|
if provider then
|
|
43
44
|
provider:Destroy()
|
|
44
45
|
end
|
|
45
|
-
end)
|
|
46
|
+
end)
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
9
|
local BaseObject = require("BaseObject")
|
|
10
|
-
local Signal = require("Signal")
|
|
11
10
|
local Binder = require("Binder")
|
|
12
11
|
local Set = require("Set")
|
|
12
|
+
local Signal = require("Signal")
|
|
13
13
|
|
|
14
14
|
local BoundChildCollection = setmetatable({}, BaseObject)
|
|
15
15
|
BoundChildCollection.ClassName = "BoundChildCollection"
|
|
@@ -173,4 +173,4 @@ function BoundChildCollection._removeClass<T>(self: BoundChildCollection<T>, cla
|
|
|
173
173
|
self.ClassRemoved:Fire(class)
|
|
174
174
|
end
|
|
175
175
|
|
|
176
|
-
return BoundChildCollection
|
|
176
|
+
return BoundChildCollection
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
8
|
local BaseObject = require("BaseObject")
|
|
9
|
-
local ValueObject = require("ValueObject")
|
|
10
9
|
local BinderUtils = require("BinderUtils")
|
|
10
|
+
local ValueObject = require("ValueObject")
|
|
11
11
|
|
|
12
12
|
local BoundAncestorTracker = setmetatable({}, BaseObject)
|
|
13
13
|
BoundAncestorTracker.ClassName = "BoundAncestorTracker"
|
|
14
14
|
BoundAncestorTracker.__index = BoundAncestorTracker
|
|
15
15
|
|
|
16
|
-
|
|
17
16
|
--[=[
|
|
18
17
|
Constructs a new BoundAncestorTracker
|
|
19
18
|
|
|
@@ -27,7 +26,7 @@ function BoundAncestorTracker.new(binder, child)
|
|
|
27
26
|
self._child = child or error("No child")
|
|
28
27
|
self._binder = binder or error("No binder")
|
|
29
28
|
|
|
30
|
-
--[=[
|
|
29
|
+
--[=[
|
|
31
30
|
@prop Class ValueObject<T>
|
|
32
31
|
@readonly
|
|
33
32
|
@within BoundAncestorTracker
|
|
@@ -68,4 +67,4 @@ function BoundAncestorTracker:_update()
|
|
|
68
67
|
self.Class.Value = BinderUtils.findFirstAncestor(self._binder, parent)
|
|
69
68
|
end
|
|
70
69
|
|
|
71
|
-
return BoundAncestorTracker
|
|
70
|
+
return BoundAncestorTracker
|