@quenty/attributeutils 4.1.0 → 4.2.1-canary.245.97a91ca.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
+ ## [4.2.1-canary.245.97a91ca.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@4.2.0...@quenty/attributeutils@4.2.1-canary.245.97a91ca.0) (2022-01-08)
7
+
8
+ **Note:** Version bump only for package @quenty/attributeutils
9
+
10
+
11
+
12
+
13
+
14
+ # [4.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@4.1.0...@quenty/attributeutils@4.2.0) (2022-01-07)
15
+
16
+
17
+ ### Features
18
+
19
+ * Add AttributeValue:Observe() ([9ac9b8b](https://github.com/Quenty/NevermoreEngine/commit/9ac9b8b5293bf5d693778fad1020fa892d3c7ae7))
20
+
21
+
22
+
23
+
24
+
6
25
  # [4.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@4.0.2...@quenty/attributeutils@4.1.0) (2022-01-03)
7
26
 
8
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/attributeutils",
3
- "version": "4.1.0",
3
+ "version": "4.2.1-canary.245.97a91ca.0",
4
4
  "description": "Provides utility functions to work with attributes in Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,12 +25,12 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^3.2.0",
29
- "@quenty/maid": "^2.0.2",
30
- "@quenty/rx": "^3.6.0"
28
+ "@quenty/loader": "3.3.0",
29
+ "@quenty/maid": "2.0.2",
30
+ "@quenty/rx": "3.7.1-canary.245.97a91ca.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "d910da8f5c7e9a55a8bf76d8efbe5632713dd0fe"
35
+ "gitHead": "97a91ca3f8a2ccb75551912dc6424e9199050bfe"
36
36
  }
@@ -17,6 +17,10 @@
17
17
  @class AttributeValue
18
18
  ]=]
19
19
 
20
+ local require = require(script.Parent.loader).load(script)
21
+
22
+ local RxAttributeUtils = require("RxAttributeUtils")
23
+
20
24
  local AttributeValue = {}
21
25
  AttributeValue.ClassName = "AttributeValue"
22
26
  AttributeValue.__index = AttributeValue
@@ -47,6 +51,14 @@ function AttributeValue.new(object, attributeName, defaultValue)
47
51
  return setmetatable(self, AttributeValue)
48
52
  end
49
53
 
54
+ --[=[
55
+ Observes an attribute on an instance.
56
+ @return Observable<any>
57
+ ]=]
58
+ function AttributeValue:Observe()
59
+ return RxAttributeUtils.observeAttribute(self._object, self._attributeName, self._defaultValue)
60
+ end
61
+
50
62
  --[=[
51
63
  The current property of the Attribute. Can be assigned to to write
52
64
  the attribute.