@flex-development/when 1.0.0 → 3.0.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 +49 -0
- package/README.md +820 -108
- package/dist/index.d.mts +526 -51
- package/dist/lib/index.mjs +5 -1
- package/dist/lib/is-catchable.mjs +24 -0
- package/dist/lib/is-finalizable.mjs +24 -0
- package/dist/lib/is-promise-like.mjs +24 -0
- package/dist/lib/is-promise.mjs +37 -0
- package/dist/lib/is-thenable.mjs +33 -9
- package/dist/lib/when.mjs +102 -19
- package/dist/testing/index.d.mts +149 -0
- package/dist/testing/index.mjs +5 -0
- package/dist/testing/lib/create-thenable.mjs +350 -0
- package/dist/testing/lib/index.mjs +5 -0
- package/package.json +25 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
## [3.0.0](https://github.com/flex-development/when/compare/2.0.0...3.0.0) (2026-02-24)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
- `Catchable`, `Finalizable`, `Thenable`
|
|
6
|
+
|
|
7
|
+
### :package: Build
|
|
8
|
+
|
|
9
|
+
- [[`340df4f`](https://github.com/flex-development/when/commit/340df4f57ed241acc8ce8ab424cccfc023a949c2)] **deps-dev:** Bump cspell from 9.6.4 to 9.7.0 ([#18](https://github.com/flex-development/when/issues/18))
|
|
10
|
+
- [[`07726cd`](https://github.com/flex-development/when/commit/07726cd69f2153aae740c10697abfeabbc357b70)] **deps-dev:** Bump happy-dom from 20.6.3 to 20.7.0 ([#16](https://github.com/flex-development/when/issues/16))
|
|
11
|
+
- [[`ea80b80`](https://github.com/flex-development/when/commit/ea80b80eb67613cda8b7c45cd2d3aa6cd7dbc25b)] **deps-dev:** Bump rollup from 4.57.1 to 4.58.0 ([#13](https://github.com/flex-development/when/issues/13))
|
|
12
|
+
- [[`ef6cb07`](https://github.com/flex-development/when/commit/ef6cb07c6446ba449bdc02610d4aba2e26dd8786)] **deps-dev:** Bump rollup from 4.58.0 to 4.59.0 ([#17](https://github.com/flex-development/when/issues/17))
|
|
13
|
+
|
|
14
|
+
### :robot: Continuous Integration
|
|
15
|
+
|
|
16
|
+
- [[`ca32394`](https://github.com/flex-development/when/commit/ca323946f35cb01944141ea58504e940574e9b10)] **deps:** Bump streetsidesoftware/cspell-action from 8.2.0 to 8.3.0 ([#19](https://github.com/flex-development/when/issues/19))
|
|
17
|
+
|
|
18
|
+
### :pencil: Documentation
|
|
19
|
+
|
|
20
|
+
- [[`9636e24`](https://github.com/flex-development/when/commit/9636e24f6cc999d9256cc7ba0d3afad3bbfe5d6d)] testing
|
|
21
|
+
|
|
22
|
+
### :sparkles: Features
|
|
23
|
+
|
|
24
|
+
- [[`94af5ff`](https://github.com/flex-development/when/commit/94af5ffeb6e9b3330088f9eb48d4644c0592d53c)] `finally` support
|
|
25
|
+
- [[`e8ee57a`](https://github.com/flex-development/when/commit/e8ee57a301df194744163611169de33ed7f85738)] `Catchable`, `Finalizable`, `Thenable`
|
|
26
|
+
- [[`e75d78d`](https://github.com/flex-development/when/commit/e75d78d4265d384b10e09206a332e1abee2d4d2d)] **testing:** `createThenable`
|
|
27
|
+
|
|
28
|
+
### :bug: Fixes
|
|
29
|
+
|
|
30
|
+
- [[`014a949`](https://github.com/flex-development/when/commit/014a94908eb0fc1d39efcd2f19c0922b40fc9894)] **lib:** export `isCatchable`
|
|
31
|
+
|
|
32
|
+
## [2.0.0](https://github.com/flex-development/when/compare/1.0.0...2.0.0) (2026-02-19)
|
|
33
|
+
|
|
34
|
+
### ⚠ BREAKING CHANGES
|
|
35
|
+
|
|
36
|
+
- `catch` support
|
|
37
|
+
|
|
38
|
+
### :package: Build
|
|
39
|
+
|
|
40
|
+
- [[`dd93b19`](https://github.com/flex-development/when/commit/dd93b19904b21760b5ae86a48fe7b7127adbcf95)] **deps-dev:** Bump @commitlint/cli from 20.4.1 to 20.4.2 in the commitlint group ([#9](https://github.com/flex-development/when/issues/9))
|
|
41
|
+
- [[`9229069`](https://github.com/flex-development/when/commit/9229069b28f05bf3394c29d85ec3261c6246959b)] **deps-dev:** Bump happy-dom from 20.6.2 to 20.6.3 ([#10](https://github.com/flex-development/when/issues/10))
|
|
42
|
+
|
|
43
|
+
### :sparkles: Features
|
|
44
|
+
|
|
45
|
+
- [[`8d8f17f`](https://github.com/flex-development/when/commit/8d8f17f847ac90d5633d87c554229bbd42d9a1cf)] `catch` support
|
|
46
|
+
- [[`003be0f`](https://github.com/flex-development/when/commit/003be0f34d1e626b0ee6ea940d73f0babd12df78)] **lib:** `isPromise`
|
|
47
|
+
|
|
1
48
|
## 1.0.0 (2026-02-18)
|
|
2
49
|
|
|
3
50
|
### :package: Build
|
|
@@ -71,3 +118,5 @@
|
|
|
71
118
|
|
|
72
119
|
|
|
73
120
|
|
|
121
|
+
|
|
122
|
+
|