@quenty/promise 3.5.0 → 3.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 +16 -0
- package/package.json +4 -4
- package/src/Shared/Promise.lua +16 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
# [3.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/promise@3.5.1...@quenty/promise@3.6.0) (2022-01-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/promise
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.5.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/promise@3.5.0...@quenty/promise@3.5.1) (2022-01-16)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/promise
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/promise@3.4.0...@quenty/promise@3.5.0) (2022-01-07)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @quenty/promise
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/promise",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Promise implementation for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@quenty/deferred": "^2.0.2",
|
|
29
|
-
"@quenty/loader": "^3.
|
|
30
|
-
"@quenty/maid": "^2.0
|
|
29
|
+
"@quenty/loader": "^3.4.0",
|
|
30
|
+
"@quenty/maid": "^2.1.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "c094ba8f4e128cdff08919d89de226d3d65247ce"
|
|
36
36
|
}
|
package/src/Shared/Promise.lua
CHANGED
|
@@ -440,7 +440,14 @@ function Promise:Destroy()
|
|
|
440
440
|
end
|
|
441
441
|
|
|
442
442
|
--[=[
|
|
443
|
-
Returns the results from the promise
|
|
443
|
+
Returns the results from the promise.
|
|
444
|
+
|
|
445
|
+
:::warning
|
|
446
|
+
This API surface will error if the promise is still pending.
|
|
447
|
+
:::
|
|
448
|
+
|
|
449
|
+
@return boolean -- true if resolved, false otherwise.
|
|
450
|
+
@return any
|
|
444
451
|
]=]
|
|
445
452
|
function Promise:GetResults()
|
|
446
453
|
if self._rejected then
|
|
@@ -460,7 +467,14 @@ function Promise:_getResolveReject()
|
|
|
460
467
|
end
|
|
461
468
|
end
|
|
462
469
|
|
|
463
|
-
--
|
|
470
|
+
--[=[
|
|
471
|
+
@private
|
|
472
|
+
|
|
473
|
+
@param onFulfilled function?
|
|
474
|
+
@param onRejected function?
|
|
475
|
+
@param promise2 Promise<T>? -- May be nil. If it is, then we have the option to return self
|
|
476
|
+
@return Promise
|
|
477
|
+
]=]
|
|
464
478
|
function Promise:_executeThen(onFulfilled, onRejected, promise2)
|
|
465
479
|
if self._fulfilled then
|
|
466
480
|
if type(onFulfilled) == "function" then
|