@quenty/binder 9.2.0 → 9.2.1-canary.434.f7d11a1.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 +12 -0
- package/package.json +12 -12
- package/src/Shared/Binder.lua +20 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [9.2.1-canary.434.f7d11a1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@9.2.0...@quenty/binder@9.2.1-canary.434.f7d11a1.0) (2023-12-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add :HasTag() call to Binder ([13f8c62](https://github.com/Quenty/NevermoreEngine/commit/13f8c62d4d62675db0f7ebd42c32daf8e61bb904))
|
|
12
|
+
* Binder doesn't push stuff past lifetime of subscription ([f7d11a1](https://github.com/Quenty/NevermoreEngine/commit/f7d11a1c05ad6a8c7151952a2b5b89e93bbb5540))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [9.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/binder@9.1.1...@quenty/binder@9.2.0) (2023-12-14)
|
|
7
19
|
|
|
8
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/binder",
|
|
3
|
-
"version": "9.2.0",
|
|
3
|
+
"version": "9.2.1-canary.434.f7d11a1.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": "
|
|
29
|
-
"@quenty/brio": "
|
|
30
|
-
"@quenty/instanceutils": "
|
|
31
|
-
"@quenty/linkutils": "
|
|
32
|
-
"@quenty/loader": "
|
|
33
|
-
"@quenty/maid": "
|
|
34
|
-
"@quenty/promise": "
|
|
35
|
-
"@quenty/rx": "
|
|
36
|
-
"@quenty/signal": "
|
|
37
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/baseobject": "7.1.0",
|
|
29
|
+
"@quenty/brio": "9.2.1-canary.434.f7d11a1.0",
|
|
30
|
+
"@quenty/instanceutils": "8.2.1-canary.434.f7d11a1.0",
|
|
31
|
+
"@quenty/linkutils": "8.2.1-canary.434.f7d11a1.0",
|
|
32
|
+
"@quenty/loader": "7.1.0",
|
|
33
|
+
"@quenty/maid": "2.6.0",
|
|
34
|
+
"@quenty/promise": "7.1.0",
|
|
35
|
+
"@quenty/rx": "8.2.1-canary.434.f7d11a1.0",
|
|
36
|
+
"@quenty/signal": "3.1.0",
|
|
37
|
+
"@quenty/valueobject": "8.2.1-canary.434.f7d11a1.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "f7d11a1c05ad6a8c7151952a2b5b89e93bbb5540"
|
|
43
43
|
}
|
package/src/Shared/Binder.lua
CHANGED
|
@@ -246,12 +246,18 @@ function Binder:ObserveAllBrio()
|
|
|
246
246
|
maid:GiveTask(self:GetClassAddedSignal():Connect(handleNewClass))
|
|
247
247
|
|
|
248
248
|
for _, item in pairs(self:GetAll()) do
|
|
249
|
+
if not sub:IsPending() then
|
|
250
|
+
break
|
|
251
|
+
end
|
|
252
|
+
|
|
249
253
|
handleNewClass(item)
|
|
250
254
|
end
|
|
251
255
|
|
|
252
|
-
|
|
253
|
-
maid
|
|
254
|
-
|
|
256
|
+
if sub:IsPending() then
|
|
257
|
+
maid:GiveTask(self:GetClassRemovingSignal():Connect(function(class)
|
|
258
|
+
maid[class] = nil
|
|
259
|
+
end))
|
|
260
|
+
end
|
|
255
261
|
|
|
256
262
|
return maid
|
|
257
263
|
end)
|
|
@@ -463,6 +469,17 @@ function Binder:Tag(inst)
|
|
|
463
469
|
CollectionService:AddTag(inst, self._tagName)
|
|
464
470
|
end
|
|
465
471
|
|
|
472
|
+
--[=[
|
|
473
|
+
Returns true if the instance has a tag
|
|
474
|
+
|
|
475
|
+
@param inst Instance
|
|
476
|
+
]=]
|
|
477
|
+
function Binder:HasTag(inst)
|
|
478
|
+
assert(typeof(inst) == "Instance", "Bad inst")
|
|
479
|
+
|
|
480
|
+
return CollectionService:HasTag(inst, self._tagName)
|
|
481
|
+
end
|
|
482
|
+
|
|
466
483
|
--[=[
|
|
467
484
|
Untags the instance with the tag for the binder
|
|
468
485
|
|