@quenty/counter 2.1.1 → 2.2.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,18 @@
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
+ # [2.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/counter@2.1.1...@quenty/counter@2.2.0) (2023-12-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Counter handles scenario where it is cleaned up ([890652e](https://github.com/Quenty/NevermoreEngine/commit/890652ec12fe49841d8ef6bdc4fe1463e46acb3e))
12
+ * Fix missing dependencies ([91e9170](https://github.com/Quenty/NevermoreEngine/commit/91e9170a2e34d2bdcc1ceb4f384ee59947a541ef))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [2.1.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/counter@2.1.0...@quenty/counter@2.1.1) (2023-10-28)
7
19
 
8
20
  **Note:** Version bump only for package @quenty/counter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/counter",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Helps count a total value",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,13 +25,14 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^7.0.0",
28
+ "@quenty/baseobject": "^7.1.0",
29
+ "@quenty/loader": "^7.1.0",
29
30
  "@quenty/maid": "^2.6.0",
30
- "@quenty/rx": "^8.1.1",
31
- "@quenty/valueobject": "^8.1.1"
31
+ "@quenty/rx": "^8.2.0",
32
+ "@quenty/valueobject": "^8.2.0"
32
33
  },
33
34
  "publishConfig": {
34
35
  "access": "public"
35
36
  },
36
- "gitHead": "440aca7ce2b50b74317ee05fdc0b8d1e58001af3"
37
+ "gitHead": "2c2dbbc0cb2fbb46b4f3270c559c63890fe18b26"
37
38
  }
@@ -59,7 +59,9 @@ function Counter:Add(amount)
59
59
  self._count.Value = self._count.Value + amount
60
60
 
61
61
  return function()
62
- self._count.Value = self._count.Value - amount
62
+ if self._count.Destroy then
63
+ self._count.Value = self._count.Value - amount
64
+ end
63
65
  end
64
66
  elseif Observable.isObservable(amount) then
65
67
  return self:_addObservable(amount)