Skip to content

Commit 25b2092

Browse files
remove node18
1 parent 451fabe commit 25b2092

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
fail-fast: false
2424
max-parallel: 1
2525
matrix:
26-
node-version: [18, 20, 22]
26+
node-version: [20, 22, 24]
2727
test: ["unit", "integration:v5", "integration:v4"]
2828
name: Node.js v${{ matrix.node-version }} - ${{ matrix.test }} tests
2929
steps:

src/orkes/helpers/resolveFetchFn.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ export const resolveFetchFn = async (
2121
return ((input: UndiciRequestInfo, init?: UndiciRequestInit) =>
2222
undiciFetch(input, { ...init, dispatcher: undiciAgent })) as FetchFn;
2323
} catch {
24-
try {
25-
const httpsModule = await import("https");
26-
const agent = new httpsModule.Agent({ maxSockets: 1 });
27-
return (input: RequestInfo, init?: RequestInit) =>
28-
fetch(input, { ...init, agent } as RequestInit & {
29-
agent: typeof agent;
30-
});
31-
} catch {
32-
return fetch;
33-
}
24+
return fetch;
3425
}
3526
};

0 commit comments

Comments
 (0)