@quenty/binder 4.2.1 → 4.3.1-canary.7613f14.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 +22 -0
- package/package.json +11 -11
- package/src/Shared/Binder.lua +18 -1
- package/src/node_modules.project.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.3.1-canary.7613f14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@4.3.0...@quenty/binder@4.3.1-canary.7613f14.0) (2021-11-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add GetClassRemovedSignal() to Binder ([7613f14](https://github.com/Quenty/NevermoreEngine/commit/7613f14082963e95e8f72a3991be6f8b1c408892))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [4.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@4.2.1...@quenty/binder@4.3.0) (2021-11-20)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* Support MacOS syncing ([#225](https://github.com/Quenty/NevermoreEngine/issues/225)) ([03f9183](https://github.com/Quenty/NevermoreEngine/commit/03f918392c6a5bdd33f8a17c38de371d1e06c67a))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [4.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@4.2.0...@quenty/binder@4.2.1) (2021-11-10)
|
|
7
29
|
|
|
8
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/binder",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.1-canary.7613f14.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.2.0",
|
|
29
|
+
"@quenty/brio": "3.3.0",
|
|
30
|
+
"@quenty/instanceutils": "3.3.0",
|
|
31
|
+
"@quenty/linkutils": "3.3.0",
|
|
32
|
+
"@quenty/loader": "3.1.1",
|
|
33
|
+
"@quenty/maid": "2.0.1",
|
|
34
|
+
"@quenty/promise": "3.2.0",
|
|
35
|
+
"@quenty/signal": "2.0.0",
|
|
36
|
+
"@quenty/valueobject": "3.3.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "7613f14082963e95e8f72a3991be6f8b1c408892"
|
|
42
42
|
}
|
package/src/Shared/Binder.lua
CHANGED
|
@@ -140,7 +140,7 @@ function Binder:GetClassAddedSignal()
|
|
|
140
140
|
return self._classAddedSignal
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
-- Returns a new signal that will fire whenever a class is
|
|
143
|
+
-- Returns a new signal that will fire whenever a class is removing from the binder
|
|
144
144
|
function Binder:GetClassRemovingSignal()
|
|
145
145
|
if self._classRemovingSignal then
|
|
146
146
|
return self._classRemovingSignal
|
|
@@ -152,6 +152,18 @@ function Binder:GetClassRemovingSignal()
|
|
|
152
152
|
return self._classRemovingSignal
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
+
-- Returns a new signal that will fire whenever a class is removed from the binder
|
|
156
|
+
function Binder:GetClassRemovedSignal()
|
|
157
|
+
if self._classRemovedSignal then
|
|
158
|
+
return self._classRemovedSignal
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
self._classRemovedSignal = Signal.new() -- :fire(class, inst)
|
|
162
|
+
self._maid:GiveTask(self._classRemovedSignal)
|
|
163
|
+
|
|
164
|
+
return self._classRemovedSignal
|
|
165
|
+
end
|
|
166
|
+
|
|
155
167
|
--[[
|
|
156
168
|
@usage
|
|
157
169
|
|
|
@@ -336,6 +348,11 @@ function Binder:_remove(inst)
|
|
|
336
348
|
if MaidTaskUtils.isValidTask(class) then
|
|
337
349
|
MaidTaskUtils.doTask(class)
|
|
338
350
|
end
|
|
351
|
+
|
|
352
|
+
-- Fire off events
|
|
353
|
+
if self._classRemovedSignal then
|
|
354
|
+
self._classRemovedSignal:Fire(class, inst)
|
|
355
|
+
end
|
|
339
356
|
end
|
|
340
357
|
|
|
341
358
|
--- Cleans up all bound classes, and disconnects all events
|