Skip to content

Commit 4237e92

Browse files
committed
Improve IFetchResponse type compatibility with Node.js, remove node-fetch.
Node.js has fetch built in since v18.
1 parent 30a6e60 commit 4237e92

File tree

9 files changed

+12
-370
lines changed

9 files changed

+12
-370
lines changed

ReleaseNotesNpm.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
These are `facility-core` npm package releases. See also [Release Notes](ReleaseNotes.md).
44

5+
## 2.3.1
6+
7+
* Improve `IFetchResponse` type compatibility with Node.js types.
8+
59
## 2.3.0
610

711
* Add support for Server-Sent Events.

conformance/package-lock.json

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

conformance/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
"@types/chai": "^4.2.18",
1818
"@types/mocha": "^8.2.2",
1919
"@types/node": "^22.1.0",
20-
"@types/node-fetch": "^2.5.10",
2120
"chai": "^4.3.4",
2221
"fastify-cli": "^7.3.0",
2322
"mocha": "^10.0.0",
24-
"node-fetch": "^2.6.7",
2523
"typescript": "~5.7.2"
2624
},
2725
"dependencies": {

conformance/test/conformanceApiTests.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { createHttpClient } from "../src/conformanceApi";
22
import { createHttpClient as jsCreateHttpClient } from "../src/jsConformanceApi";
33
import { expect, should } from "chai";
4-
import fetch from "node-fetch";
54
import { HttpClientUtility } from "facility-core";
65
import conformanceTestsJson from "../ConformanceTests.json";
76
import { isDeepStrictEqual } from "util";

0 commit comments

Comments
 (0)