@quenty/promisemaid 5.6.0 → 5.7.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,17 @@
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.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/promisemaid@5.6.0...@quenty/promisemaid@5.7.0) (2024-10-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * PromiseMaidUtils ensures maid invocation ([42432c2](https://github.com/Quenty/NevermoreEngine/commit/42432c2e789b5c97d2d38e40cec16c8ec2130136))
12
+
13
+
14
+
15
+
16
+
6
17
  # [5.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/promisemaid@5.5.0...@quenty/promisemaid@5.6.0) (2024-10-04)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/promisemaid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/promisemaid",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "Utility methods around promises and maids",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,12 +25,12 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^10.6.0",
28
+ "@quenty/loader": "^10.7.0",
29
29
  "@quenty/maid": "^3.4.0",
30
- "@quenty/promise": "^10.6.0"
30
+ "@quenty/promise": "^10.7.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "035abfa088c854a73e1c65b350267eaa17669646"
35
+ "gitHead": "67c5dbf46f6f45213812f3f117419a5534936a0b"
36
36
  }
@@ -33,6 +33,11 @@ function PromiseMaidUtils.whilePromise(promise, callback)
33
33
 
34
34
  callback(maid)
35
35
 
36
+ -- Cleanup immediately if the callback resolves the promise immeidately
37
+ if not promise:IsPending() then
38
+ maid:DoCleaning()
39
+ end
40
+
36
41
  return maid
37
42
  end
38
43