@quenty/instanceutils 7.15.0 → 7.16.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 +2 -2
- package/src/Shared/RxInstanceUtils.lua +13 -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
|
+
# [7.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.15.0...@quenty/instanceutils@7.16.0) (2023-07-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add RxInstanceUtils.observeParentBrio(instance) ([d91395e](https://github.com/Quenty/NevermoreEngine/commit/d91395eed2cd77bd53b87db23a0692cac43843be))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [7.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.14.0...@quenty/instanceutils@7.15.0) (2023-06-17)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/instanceutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/instanceutils",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.0",
|
|
4
4
|
"description": "Utility functions involving instances in Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "6c9093879c4547ca55a7b42842e35ad277cc0f08"
|
|
39
39
|
}
|
|
@@ -97,6 +97,19 @@ function RxInstanceUtils.observeFirstAncestorBrio(instance, className)
|
|
|
97
97
|
end)
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
+
--[=[
|
|
101
|
+
Observes the parent of the instance as long as it exists. This is very common when
|
|
102
|
+
initializing parent interfaces or other behaviors using binders.
|
|
103
|
+
|
|
104
|
+
@param instance Instance
|
|
105
|
+
@return Observable<Brio<Instance>>
|
|
106
|
+
]=]
|
|
107
|
+
function RxInstanceUtils.observeParentBrio(instance)
|
|
108
|
+
return RxInstanceUtils.observePropertyBrio(instance, "Parent", function(parent)
|
|
109
|
+
return parent ~= nil
|
|
110
|
+
end)
|
|
111
|
+
end
|
|
112
|
+
|
|
100
113
|
--[=[
|
|
101
114
|
Observes an instance's ancestry
|
|
102
115
|
|