@quenty/attributeutils 14.5.1-canary.500.0c613a3.0 → 14.6.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,7 @@
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
- ## [14.5.1-canary.500.0c613a3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@14.5.0...@quenty/attributeutils@14.5.1-canary.500.0c613a3.0) (2024-09-25)
6
+ # [14.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/attributeutils@14.5.0...@quenty/attributeutils@14.6.0) (2024-09-25)
7
7
 
8
8
  **Note:** Version bump only for package @quenty/attributeutils
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/attributeutils",
3
- "version": "14.5.1-canary.500.0c613a3.0",
3
+ "version": "14.6.0",
4
4
  "description": "Provides utility functions to work with attributes in Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,17 +25,17 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/brio": "14.5.1-canary.500.0c613a3.0",
29
- "@quenty/canceltoken": "11.4.1-canary.500.0c613a3.0",
30
- "@quenty/loader": "10.4.1-canary.500.0c613a3.0",
31
- "@quenty/maid": "3.3.0",
32
- "@quenty/promise": "10.4.1-canary.500.0c613a3.0",
33
- "@quenty/rx": "13.5.1-canary.500.0c613a3.0",
34
- "@quenty/rxsignal": "7.5.1-canary.500.0c613a3.0",
35
- "@quenty/symbol": "3.1.0"
28
+ "@quenty/brio": "^14.6.0",
29
+ "@quenty/canceltoken": "^11.5.0",
30
+ "@quenty/loader": "^10.5.0",
31
+ "@quenty/maid": "^3.3.0",
32
+ "@quenty/promise": "^10.5.0",
33
+ "@quenty/rx": "^13.6.0",
34
+ "@quenty/rxsignal": "^7.6.0",
35
+ "@quenty/symbol": "^3.1.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "0c613a3ae0b6ba6a4cda511f572220bfa951c70d"
40
+ "gitHead": "41715b15e2b48b2d22ff4f5277a8d4b7a0d32ef3"
41
41
  }
@@ -26,6 +26,7 @@ function RxAttributeUtils.observeAttribute(instance, attributeName, defaultValue
26
26
  assert(type(attributeName) == "string", "Bad attributeName")
27
27
 
28
28
  return Observable.new(function(sub)
29
+ local maid = Maid.new()
29
30
 
30
31
  local function handleAttributeChanged()
31
32
  local attributeValue = instance:GetAttribute(attributeName)
@@ -36,10 +37,10 @@ function RxAttributeUtils.observeAttribute(instance, attributeName, defaultValue
36
37
  end
37
38
  end
38
39
 
39
- local connection = instance:GetAttributeChangedSignal(attributeName):Connect(handleAttributeChanged)
40
+ maid:GiveTask(instance:GetAttributeChangedSignal(attributeName):Connect(handleAttributeChanged))
40
41
  handleAttributeChanged()
41
42
 
42
- return connection
43
+ return maid
43
44
  end)
44
45
  end
45
46