@quenty/binder 4.5.2 → 4.6.0-canary.241.a4e8214.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 +11 -0
- package/package.json +11 -11
- package/src/Shared/Binder.lua +17 -1
- package/src/Shared/BinderGroup.lua +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [4.6.0-canary.241.a4e8214.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@4.5.2...@quenty/binder@4.6.0-canary.241.a4e8214.0) (2022-01-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Binder.isBinder(binder) does not error on child classes ([b8ae98f](https://github.com/Quenty/NevermoreEngine/commit/b8ae98fc2d85e9d517c9edadb778a353c15365c4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [4.5.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@4.5.1...@quenty/binder@4.5.2) (2021-12-30)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/binder
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/binder",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0-canary.241.a4e8214.0",
|
|
4
4
|
"description": "Utility object to Bind a class to Roblox object, and associated helper methods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "
|
|
29
|
-
"@quenty/brio": "
|
|
30
|
-
"@quenty/instanceutils": "
|
|
31
|
-
"@quenty/linkutils": "
|
|
32
|
-
"@quenty/loader": "
|
|
33
|
-
"@quenty/maid": "
|
|
34
|
-
"@quenty/promise": "
|
|
35
|
-
"@quenty/signal": "
|
|
36
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/baseobject": "3.3.0-canary.241.a4e8214.0",
|
|
29
|
+
"@quenty/brio": "3.6.0-canary.241.a4e8214.0",
|
|
30
|
+
"@quenty/instanceutils": "3.6.0-canary.241.a4e8214.0",
|
|
31
|
+
"@quenty/linkutils": "3.6.0-canary.241.a4e8214.0",
|
|
32
|
+
"@quenty/loader": "3.2.0-canary.241.a4e8214.0",
|
|
33
|
+
"@quenty/maid": "2.0.2",
|
|
34
|
+
"@quenty/promise": "3.4.0-canary.241.a4e8214.0",
|
|
35
|
+
"@quenty/signal": "2.1.0-canary.241.a4e8214.0",
|
|
36
|
+
"@quenty/valueobject": "3.6.0-canary.241.a4e8214.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "a4e821471f35998d63f38a4f4a578e07b4e79035"
|
|
42
42
|
}
|
package/src/Shared/Binder.lua
CHANGED
|
@@ -94,7 +94,23 @@ end
|
|
|
94
94
|
@return boolean true or false, whether or not it is a value
|
|
95
95
|
]=]
|
|
96
96
|
function Binder.isBinder(value)
|
|
97
|
-
return type(value) == "table"
|
|
97
|
+
return type(value) == "table"
|
|
98
|
+
and type(value.Start) == "function"
|
|
99
|
+
and type(value.GetTag) == "function"
|
|
100
|
+
and type(value.GetConstructor) == "function"
|
|
101
|
+
and type(value.ObserveInstance) == "function"
|
|
102
|
+
and type(value.GetClassAddedSignal) == "function"
|
|
103
|
+
and type(value.GetClassRemovingSignal) == "function"
|
|
104
|
+
and type(value.GetClassRemovedSignal) == "function"
|
|
105
|
+
and type(value.GetAll) == "function"
|
|
106
|
+
and type(value.GetAllSet) == "function"
|
|
107
|
+
and type(value.Bind) == "function"
|
|
108
|
+
and type(value.Unbind) == "function"
|
|
109
|
+
and type(value.BindClient) == "function"
|
|
110
|
+
and type(value.UnbindClient) == "function"
|
|
111
|
+
and type(value.Get) == "function"
|
|
112
|
+
and type(value.Promise) == "function"
|
|
113
|
+
and type(value.Destroy) == "function"
|
|
98
114
|
end
|
|
99
115
|
|
|
100
116
|
--[=[
|
|
@@ -60,7 +60,7 @@ end
|
|
|
60
60
|
@param binder Binder<T>
|
|
61
61
|
]=]
|
|
62
62
|
function BinderGroup:Add(binder)
|
|
63
|
-
assert(Binder.isBinder(binder))
|
|
63
|
+
assert(Binder.isBinder(binder), "Binder is not a binder")
|
|
64
64
|
|
|
65
65
|
if self._validateConstructor then
|
|
66
66
|
assert(self._validateConstructor(binder:GetConstructor()))
|