@quenty/counter 7.7.0 → 7.8.1

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
+ ## [7.8.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/counter@7.8.0...@quenty/counter@7.8.1) (2024-10-04)
7
+
8
+ **Note:** Version bump only for package @quenty/counter
9
+
10
+
11
+
12
+
13
+
14
+ # [7.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/counter@7.7.0...@quenty/counter@7.8.0) (2024-10-04)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * Ensure counter can't double-clean-up ([566a9cb](https://github.com/Quenty/NevermoreEngine/commit/566a9cb8b384b136457d82bea1af8c26cd01932a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [7.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/counter@7.6.0...@quenty/counter@7.7.0) (2024-09-25)
7
26
 
8
27
  **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": "7.7.0",
3
+ "version": "7.8.1",
4
4
  "description": "Helps count a total value",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,14 +25,14 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "^10.5.0",
29
- "@quenty/loader": "^10.5.0",
30
- "@quenty/maid": "^3.3.0",
31
- "@quenty/rx": "^13.7.0",
32
- "@quenty/valueobject": "^13.7.0"
28
+ "@quenty/baseobject": "^10.6.0",
29
+ "@quenty/loader": "^10.6.0",
30
+ "@quenty/maid": "^3.4.0",
31
+ "@quenty/rx": "^13.8.0",
32
+ "@quenty/valueobject": "^13.8.1"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "9b17fe79cddd071f0f06a9d35184e76b44bd6fe6"
37
+ "gitHead": "539802fea720a92f81ad48d6d5579605d8844d0a"
38
38
  }
@@ -58,7 +58,13 @@ function Counter:Add(amount)
58
58
  if type(amount) == "number" then
59
59
  self._count.Value = self._count.Value + amount
60
60
 
61
+ local cleanedUp = false
61
62
  return function()
63
+ if cleanedUp then
64
+ return
65
+ end
66
+
67
+ cleanedUp = true
62
68
  if self._count.Destroy then
63
69
  self._count.Value = self._count.Value - amount
64
70
  end