@quenty/linkutils 5.0.0 → 5.1.1-canary.276.672e37b.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,6 +3,25 @@
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.1.1-canary.276.672e37b.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/linkutils@5.1.0...@quenty/linkutils@5.1.1-canary.276.672e37b.0) (2022-07-31)
7
+
8
+ **Note:** Version bump only for package @quenty/linkutils
9
+
10
+
11
+
12
+
13
+
14
+ # [5.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/linkutils@5.0.0...@quenty/linkutils@5.1.0) (2022-06-21)
15
+
16
+
17
+ ### Features
18
+
19
+ * Add RxLinkUtils.observeLinkValueBrio(linkName, parent) ([535fd94](https://github.com/Quenty/NevermoreEngine/commit/535fd943a7a7c5c5d2ca603aff1cee042f63ff69))
20
+
21
+
22
+
23
+
24
+
6
25
  # [5.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/linkutils@4.2.0...@quenty/linkutils@5.0.0) (2022-05-21)
7
26
 
8
27
  **Note:** Version bump only for package @quenty/linkutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/linkutils",
3
- "version": "5.0.0",
3
+ "version": "5.1.1-canary.276.672e37b.0",
4
4
  "description": "Utility functions for links. Links are object values pointing to other values!",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,15 +25,15 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/brio": "^6.0.0",
29
- "@quenty/instanceutils": "^5.0.0",
30
- "@quenty/loader": "^5.0.0",
31
- "@quenty/maid": "^2.3.0",
32
- "@quenty/promise": "^5.0.0",
33
- "@quenty/rx": "^5.0.0"
28
+ "@quenty/brio": "6.1.1-canary.276.672e37b.0",
29
+ "@quenty/instanceutils": "5.1.1-canary.276.672e37b.0",
30
+ "@quenty/loader": "5.0.0",
31
+ "@quenty/maid": "2.3.1-canary.276.672e37b.0",
32
+ "@quenty/promise": "5.0.1-canary.276.672e37b.0",
33
+ "@quenty/rx": "5.1.1-canary.276.672e37b.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "9f7eaea7543c33c89d2e32c38491b13f9271f4f7"
38
+ "gitHead": "672e37b9bbb8b2d4c4c6c69ed2647335be0bc469"
39
39
  }
@@ -31,6 +31,20 @@ function RxLinkUtils.observeValidLinksBrio(linkName, parent)
31
31
  })
32
32
  end
33
33
 
34
+ function RxLinkUtils.observeLinkValueBrio(linkName, parent)
35
+ assert(type(linkName) == "string", "linkName should be 'string'")
36
+ assert(typeof(parent) == "Instance", "parent should be 'Instance'")
37
+
38
+ return RxInstanceUtils.observeChildrenOfNameBrio(parent, "ObjectValue", linkName)
39
+ :Pipe({
40
+ RxBrioUtils.flatMapBrio(function(instance)
41
+ return RxInstanceUtils.observePropertyBrio(instance, "Value", function(value)
42
+ return value ~= nil
43
+ end)
44
+ end)
45
+ })
46
+ end
47
+
34
48
  -- Fires off everytime the link is reconfigured into a valid link
35
49
  -- Fires with link, linkValue
36
50
  function RxLinkUtils.observeValidityBrio(linkName, link)