@quenty/tie 4.7.0 → 4.8.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/README.md +2 -2
- package/package.json +14 -14
- package/src/Shared/Definition/TieDefinition.lua +16 -0
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.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/tie@4.7.0...@quenty/tie@4.8.0) (2023-02-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add TieDefinition:ObserveLastImplementation(adornee) ([a690651](https://github.com/Quenty/NevermoreEngine/commit/a690651423e6e953654277e21f04c921bcb24fb3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [4.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/tie@4.6.0...@quenty/tie@4.7.0) (2023-01-17)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/tie
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
Tie allows interfaces to be defined between Lua OOP and Roblox objects. This is designed in part to replace BinderGroups, which were a way to previously allow systems to interface with each other in a generic way. Instead, an object may implement a TieInterface, which is basically bindable functions/events.
|
|
15
15
|
|
|
16
|
-
<div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/
|
|
16
|
+
<div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/Action">View docs →</a></div>
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
```
|
|
@@ -31,4 +31,4 @@ This package does two things. First of all, it basically automates the creation
|
|
|
31
31
|
1. Ensure you can ad-hoc create a tie (low-level scripting)
|
|
32
32
|
1. Support tagged ties with
|
|
33
33
|
1. Ensure ties can be queried via CollectionService
|
|
34
|
-
1. Allow client implementation of server-based ties
|
|
34
|
+
1. Allow client implementation of server-based ties
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/tie",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Tie allows interfaces to be defined between Lua OOP and Roblox objects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,25 +28,25 @@
|
|
|
28
28
|
"Quenty"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@quenty/attributeutils": "^8.
|
|
32
|
-
"@quenty/baseobject": "^6.0
|
|
33
|
-
"@quenty/brio": "^8.
|
|
34
|
-
"@quenty/instanceutils": "^7.
|
|
35
|
-
"@quenty/loader": "^6.0
|
|
31
|
+
"@quenty/attributeutils": "^8.6.0",
|
|
32
|
+
"@quenty/baseobject": "^6.1.0",
|
|
33
|
+
"@quenty/brio": "^8.5.0",
|
|
34
|
+
"@quenty/instanceutils": "^7.6.0",
|
|
35
|
+
"@quenty/loader": "^6.1.0",
|
|
36
36
|
"@quenty/maid": "^2.4.0",
|
|
37
|
-
"@quenty/rx": "^7.
|
|
38
|
-
"@quenty/string": "^3.
|
|
39
|
-
"@quenty/symbol": "^2.
|
|
40
|
-
"@quenty/table": "^3.
|
|
41
|
-
"@quenty/valuebaseutils": "^7.
|
|
42
|
-
"@quenty/valueobject": "^7.
|
|
37
|
+
"@quenty/rx": "^7.5.0",
|
|
38
|
+
"@quenty/string": "^3.1.0",
|
|
39
|
+
"@quenty/symbol": "^2.2.0",
|
|
40
|
+
"@quenty/table": "^3.2.0",
|
|
41
|
+
"@quenty/valuebaseutils": "^7.6.0",
|
|
42
|
+
"@quenty/valueobject": "^7.5.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@quenty/promise": "^6.0
|
|
45
|
+
"@quenty/promise": "^6.1.0",
|
|
46
46
|
"@quenty/signal": "^2.3.0"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "e084b0cc097ddbcb7c782b8ecbd9c2d619c49354"
|
|
52
52
|
}
|
|
@@ -12,6 +12,7 @@ local Observable = require("Observable")
|
|
|
12
12
|
local Rx = require("Rx")
|
|
13
13
|
local RxBrioUtils = require("RxBrioUtils")
|
|
14
14
|
local RxInstanceUtils = require("RxInstanceUtils")
|
|
15
|
+
local RxStateStackUtils = require("RxStateStackUtils")
|
|
15
16
|
local String = require("String")
|
|
16
17
|
local Symbol = require("Symbol")
|
|
17
18
|
local Table = require("Table")
|
|
@@ -195,6 +196,21 @@ function TieDefinition:ObserveLastImplementationBrio(adornee: Instance)
|
|
|
195
196
|
})
|
|
196
197
|
end
|
|
197
198
|
|
|
199
|
+
--[=[
|
|
200
|
+
Observes a valid implementation if it exists, or nil
|
|
201
|
+
|
|
202
|
+
@param adornee Instance
|
|
203
|
+
@return Observable<TieImplementation<T> | nil>>
|
|
204
|
+
]=]
|
|
205
|
+
function TieDefinition:ObserveLastImplementation(adornee: Instance)
|
|
206
|
+
assert(typeof(adornee) == "Instance", "Bad adornee")
|
|
207
|
+
|
|
208
|
+
return self:ObserveLastImplementationBrio(adornee):Pipe({
|
|
209
|
+
RxStateStackUtils.topOfStack();
|
|
210
|
+
})
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
|
|
198
214
|
--[=[
|
|
199
215
|
Observes valid implementations wrapped in a brio if it exists.
|
|
200
216
|
@param adornee Instance
|