@quenty/instanceutils 8.0.0-canary.331.7eefa75.0 → 8.0.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,141 @@
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
- # [8.0.0-canary.331.7eefa75.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.6.0...@quenty/instanceutils@8.0.0-canary.331.7eefa75.0) (2023-02-27)
6
+ # [8.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.21.0...@quenty/instanceutils@8.0.0) (2023-10-11)
7
+
8
+ **Note:** Version bump only for package @quenty/instanceutils
9
+
10
+
11
+
12
+
13
+
14
+ # [7.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.20.0...@quenty/instanceutils@7.21.0) (2023-09-21)
15
+
16
+ **Note:** Version bump only for package @quenty/instanceutils
17
+
18
+
19
+
20
+
21
+
22
+ # [7.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.19.0...@quenty/instanceutils@7.20.0) (2023-09-04)
23
+
24
+ **Note:** Version bump only for package @quenty/instanceutils
25
+
26
+
27
+
28
+
29
+
30
+ # [7.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.18.0...@quenty/instanceutils@7.19.0) (2023-08-23)
31
+
32
+ **Note:** Version bump only for package @quenty/instanceutils
33
+
34
+
35
+
36
+
37
+
38
+ # [7.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.17.0...@quenty/instanceutils@7.18.0) (2023-07-28)
39
+
40
+ **Note:** Version bump only for package @quenty/instanceutils
41
+
42
+
43
+
44
+
45
+
46
+ # [7.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.16.0...@quenty/instanceutils@7.17.0) (2023-07-15)
47
+
48
+ **Note:** Version bump only for package @quenty/instanceutils
49
+
50
+
51
+
52
+
53
+
54
+ # [7.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.15.0...@quenty/instanceutils@7.16.0) (2023-07-10)
55
+
56
+
57
+ ### Features
58
+
59
+ * Add RxInstanceUtils.observeParentBrio(instance) ([d91395e](https://github.com/Quenty/NevermoreEngine/commit/d91395eed2cd77bd53b87db23a0692cac43843be))
60
+
61
+
62
+
63
+
64
+
65
+ # [7.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.14.0...@quenty/instanceutils@7.15.0) (2023-06-17)
66
+
67
+ **Note:** Version bump only for package @quenty/instanceutils
68
+
69
+
70
+
71
+
72
+
73
+ # [7.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.13.0...@quenty/instanceutils@7.14.0) (2023-05-26)
74
+
75
+ **Note:** Version bump only for package @quenty/instanceutils
76
+
77
+
78
+
79
+
80
+
81
+ # [7.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.12.0...@quenty/instanceutils@7.13.0) (2023-05-08)
82
+
83
+ **Note:** Version bump only for package @quenty/instanceutils
84
+
85
+
86
+
87
+
88
+
89
+ # [7.12.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.11.1...@quenty/instanceutils@7.12.0) (2023-04-10)
90
+
91
+ **Note:** Version bump only for package @quenty/instanceutils
92
+
93
+
94
+
95
+
96
+
97
+ ## [7.11.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.11.0...@quenty/instanceutils@7.11.1) (2023-04-07)
98
+
99
+ **Note:** Version bump only for package @quenty/instanceutils
100
+
101
+
102
+
103
+
104
+
105
+ # [7.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.10.0...@quenty/instanceutils@7.11.0) (2023-04-06)
106
+
107
+
108
+ ### Bug Fixes
109
+
110
+ * Fix issue where we might potentially leak if we GC while the name change actually occurs ([4822fac](https://github.com/Quenty/NevermoreEngine/commit/4822facd757c77a2466d8ec619e8b3e9b9706446))
111
+
112
+
113
+
114
+
115
+
116
+ # [7.10.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.9.0...@quenty/instanceutils@7.10.0) (2023-04-03)
117
+
118
+ **Note:** Version bump only for package @quenty/instanceutils
119
+
120
+
121
+
122
+
123
+
124
+ # [7.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.8.0...@quenty/instanceutils@7.9.0) (2023-03-31)
125
+
126
+ **Note:** Version bump only for package @quenty/instanceutils
127
+
128
+
129
+
130
+
131
+
132
+ # [7.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.7.0...@quenty/instanceutils@7.8.0) (2023-03-05)
133
+
134
+ **Note:** Version bump only for package @quenty/instanceutils
135
+
136
+
137
+
138
+
139
+
140
+ # [7.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/instanceutils@7.6.0...@quenty/instanceutils@7.7.0) (2023-02-27)
7
141
 
8
142
  **Note:** Version bump only for package @quenty/instanceutils
9
143
 
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2022 Quenty
3
+ Copyright (c) 2014-2023 James Onnen (Quenty)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/instanceutils",
3
- "version": "8.0.0-canary.331.7eefa75.0",
3
+ "version": "8.0.0",
4
4
  "description": "Utility functions involving instances in Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,14 +26,14 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/brio": "9.0.0-canary.331.7eefa75.0",
30
- "@quenty/loader": "6.1.0",
31
- "@quenty/maid": "2.4.0",
32
- "@quenty/rx": "8.0.0-canary.331.7eefa75.0",
33
- "@quenty/symbol": "2.2.0"
29
+ "@quenty/brio": "^9.0.0",
30
+ "@quenty/loader": "^7.0.0",
31
+ "@quenty/maid": "^2.6.0",
32
+ "@quenty/rx": "^8.0.0",
33
+ "@quenty/symbol": "^2.2.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "7eefa756f8bd892b1210349a8133d6d56992dffb"
38
+ "gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
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
 
@@ -263,10 +276,10 @@ function RxInstanceUtils.observeChildrenOfNameBrio(parent, className, name)
263
276
  end
264
277
  end
265
278
 
279
+ topMaid[child] = maid
280
+
266
281
  maid:GiveTask(child:GetPropertyChangedSignal("Name"):Connect(handleNameChanged))
267
282
  handleNameChanged()
268
-
269
- topMaid[child] = maid
270
283
  end
271
284
 
272
285
  topMaid:GiveTask(parent.ChildAdded:Connect(handleChild))