Skip to content

Commit 437b3b1

Browse files
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

‎bun.lock‎

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎deno.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@secretlint/secretlint-rule-preset-recommend": "npm:@secretlint/[email protected]",
2828
"@secretlint/types": "npm:@secretlint/[email protected]",
2929
"@effectionx/converge": "npm:@effectionx/[email protected]",
30-
"@effectionx/fetch": "npm:@effectionx/[email protected].0",
30+
"@effectionx/fetch": "npm:@effectionx/[email protected].1",
3131
"@effectionx/fs": "npm:@effectionx/[email protected]",
3232
"@effectionx/middleware": "npm:@effectionx/[email protected]",
3333
"@effectionx/node": "npm:@effectionx/[email protected]",

‎deno.lock‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"effection": "4.1.0",
2828
"@effectionx/context-api": "0.6.0",
2929
"@effectionx/converge": "0.1.4",
30-
"@effectionx/fetch": "0.2.0",
30+
"@effectionx/fetch": "0.2.1",
3131
"@effectionx/fs": "0.3.0",
3232
"@effectionx/middleware": "0.1.1",
3333
"@effectionx/node": "0.2.4",

‎packages/core/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"@effectionx/context-api": "0.6.0",
1111
"@effectionx/converge": "0.1.4",
12-
"@effectionx/fetch": "0.2.0",
12+
"@effectionx/fetch": "0.2.1",
1313
"@effectionx/fs": "0.3.0",
1414
"@effectionx/middleware": "0.1.1",
1515
"@effectionx/node": "0.2.4",

‎packages/runtime/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@effectionx/context-api": "0.6.0",
12-
"@effectionx/fetch": "0.2.0",
12+
"@effectionx/fetch": "0.2.1",
1313
"@effectionx/fs": "0.3.0",
1414
"@effectionx/node": "0.2.4",
1515
"@effectionx/process": "0.8.1",

‎pnpm-lock.yaml‎

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)