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