Repository navigation
Commit 437b3b1
authored
🐛 Upgrade @effectionx/fetch to 0.2.1 (#373)
The runtime's default Fetch API aborts its request through the package's
scope teardown. Through 0.2.0 that teardown called `useAbortSignal`, whose
abort fires unconditionally at scope exit — including after the request has
already settled. Node's fetch can throw from that late abort when the
response body was never consumed, and the throw lands outside the operation
that owned it, so the Node test adapter reports it as post-test asynchronous
activity rather than a failed assertion.
0.2.1 replaces that with a controller the package marks settled before
teardown runs, so only an in-flight request is aborted. The fix belongs
upstream: every caller of the package shares the teardown, and a local
wrapper would leave the same abort in the eval modules that import
`@effectionx/fetch` directly.
Closes #371.
Co-authored-by: Taras Mankovski <[email protected]>1 parent 5f5a725 commit 437b3b1
7 files changed
Lines changed: 25 additions & 24 deletions
File tree
- packages
- core
- runtime
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments