@quenty/boundlinkutils 5.0.0-canary.236.5597d0a.0 → 5.1.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
CHANGED
|
@@ -3,7 +3,71 @@
|
|
|
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
|
-
# [5.
|
|
6
|
+
# [5.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@5.0.0...@quenty/boundlinkutils@5.1.0) (2022-03-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [5.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@4.8.0...@quenty/boundlinkutils@5.0.0) (2022-03-06)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [4.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@4.7.1...@quenty/boundlinkutils@4.8.0) (2022-01-17)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [4.7.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@4.7.0...@quenty/boundlinkutils@4.7.1) (2022-01-16)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [4.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@4.6.0...@quenty/boundlinkutils@4.7.0) (2022-01-07)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [4.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@4.5.2...@quenty/boundlinkutils@4.6.0) (2022-01-03)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [4.5.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@4.5.1...@quenty/boundlinkutils@4.5.2) (2021-12-30)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [4.5.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@4.5.0...@quenty/boundlinkutils@4.5.1) (2021-12-30)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# [4.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/boundlinkutils@4.4.0...@quenty/boundlinkutils@4.5.0) (2021-12-18)
|
|
7
71
|
|
|
8
72
|
**Note:** Version bump only for package @quenty/boundlinkutils
|
|
9
73
|
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## BoundLinkUtils
|
|
2
2
|
<div align="center">
|
|
3
|
-
<a href="http://quenty.github.io/
|
|
4
|
-
<img src="https://
|
|
3
|
+
<a href="http://quenty.github.io/NevermoreEngine/">
|
|
4
|
+
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/docs.yml/badge.svg" alt="Documentation status" />
|
|
5
5
|
</a>
|
|
6
6
|
<a href="https://discord.gg/mhtGUS8">
|
|
7
|
-
<img src="https://img.shields.io/
|
|
7
|
+
<img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
|
|
8
8
|
</a>
|
|
9
9
|
<a href="https://github.com/Quenty/NevermoreEngine/actions">
|
|
10
10
|
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
|
|
@@ -13,53 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
Utility functions involving binders and links
|
|
15
15
|
|
|
16
|
+
<div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/BoundLinkCollection">View docs →</a></div>
|
|
17
|
+
|
|
16
18
|
## Installation
|
|
17
19
|
```
|
|
18
20
|
npm install @quenty/boundlinkutils --save
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
Usage is designed to be simple.
|
|
23
|
-
|
|
24
|
-
## BoundLinkCollection API
|
|
25
|
-
|
|
26
|
-
### `BoundLinkCollection.new(binder, linkName, parent)`
|
|
27
|
-
Constructs a new version of the collection
|
|
28
|
-
|
|
29
|
-
### `BoundLinkCollection:GetClasses()`
|
|
30
|
-
Gets all the classes
|
|
31
|
-
|
|
32
|
-
### `BoundLinkCollection:HasClass(class)`
|
|
33
|
-
Returns whether or not the class is in the collection
|
|
34
|
-
|
|
35
|
-
### `BoundLinkCollection:TrackParent(parent)`
|
|
36
|
-
Tracks parent in collection
|
|
37
|
-
|
|
38
|
-
### `BoundLinkCollection:Destroy()`
|
|
39
|
-
Cleans up collection
|
|
40
|
-
|
|
41
|
-
## promiseBoundLinkedClass API
|
|
42
|
-
|
|
43
|
-
### `promiseBoundLinkedClass(binder, objValue)`
|
|
44
|
-
|
|
45
|
-
```lua
|
|
46
|
-
local promiseBoundLinkedClass = require("promiseBoundLinkedClass")
|
|
47
|
-
|
|
48
|
-
promiseBoundLinkedClass(myBinder, myObjectValue):Then(function(boundClass)
|
|
49
|
-
print(boundClass)
|
|
50
|
-
end)
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## BoundLinkUtils API
|
|
54
|
-
|
|
55
|
-
### `BoundLinkUtils.getLinkClass(binder, linkName, from)`
|
|
56
|
-
Returns the linked class
|
|
57
|
-
|
|
58
|
-
### `BoundLinkUtils.getLinkClasses(binder, linkName, from)`
|
|
59
|
-
Returns a link of linked classes
|
|
60
|
-
|
|
61
|
-
### `BoundLinkUtils.getClassesForLinkValues(binders, linkName, from)`
|
|
62
|
-
Returns all classes for all binders, in a list
|
|
63
|
-
|
|
64
|
-
### `BoundLinkUtils.callMethodOnLinkedClasses(binders, linkName, from, methodName, args)`
|
|
65
|
-
Calls a method for each linked class for each binder, given the method name and args
|
|
21
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/boundlinkutils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Utility functions involving binders and links",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/binder": "5.
|
|
29
|
-
"@quenty/linkutils": "4.
|
|
30
|
-
"@quenty/loader": "
|
|
31
|
-
"@quenty/maid": "2.0
|
|
32
|
-
"@quenty/promise": "4.
|
|
33
|
-
"@quenty/signal": "2.
|
|
28
|
+
"@quenty/binder": "^5.1.0",
|
|
29
|
+
"@quenty/linkutils": "^4.1.0",
|
|
30
|
+
"@quenty/loader": "^4.0.0",
|
|
31
|
+
"@quenty/maid": "^2.2.0",
|
|
32
|
+
"@quenty/promise": "^4.1.0",
|
|
33
|
+
"@quenty/signal": "^2.1.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "0797de955876b050fb24875de0423453e268b2ce"
|
|
39
39
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
--[=[
|
|
2
|
+
Handles searching for bound objects following links (object values) under a parent
|
|
3
|
+
with a specific name.
|
|
4
|
+
|
|
5
|
+
@class BoundLinkCollection
|
|
6
|
+
]=]
|
|
4
7
|
|
|
5
8
|
local require = require(script.Parent.loader).load(script)
|
|
6
9
|
|