Skip to content

Commit 8d26fba

Browse files
authored
Remove cross fetch (#76)
1 parent 0cbc86e commit 8d26fba

File tree

6 files changed

+0
-40
lines changed

6 files changed

+0
-40
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ jobs:
2222
matrix:
2323
os: [ubuntu-latest]
2424
node-version:
25-
- 12.x
26-
- 14.x
27-
- 16.x
2825
- 18.x
2926
- 20.x
3027
- 22.x

lib/ContextParser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'cross-fetch/polyfill';
21
import {resolve} from "relative-to-absolute-iri";
32
import {ERROR_CODES, ErrorCoded} from "./ErrorCoded";
43
import {FetchDocumentLoader} from "./FetchDocumentLoader";

lib/FetchDocumentLoader.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'cross-fetch/polyfill';
21
import {IDocumentLoader} from "./IDocumentLoader";
32
import {IJsonLdContext} from "./JsonLdContext";
43
import {ERROR_CODES, ErrorCoded} from "./ErrorCoded";

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
"dependencies": {
8787
"@types/http-link-header": "^1.0.1",
8888
"@types/node": "^18.0.0",
89-
"cross-fetch": "^3.0.6",
9089
"http-link-header": "^1.0.2",
9190
"relative-to-absolute-iri": "^1.0.5"
9291
}

setupJest.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require('cross-fetch/polyfill');
2-
31
// Mock fetch to our local files
42
global.fetch = jest.fn().mockImplementation((url) => {
53
let data;

yarn.lock

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,13 +1296,6 @@ coveralls@^3.0.0:
12961296
minimist "^1.2.5"
12971297
request "^2.88.2"
12981298

1299-
cross-fetch@^3.0.6:
1300-
version "3.1.5"
1301-
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f"
1302-
integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==
1303-
dependencies:
1304-
node-fetch "2.6.7"
1305-
13061299
cross-spawn@^5.0.1:
13071300
version "5.1.0"
13081301
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
@@ -2617,13 +2610,6 @@ neo-async@^2.6.2:
26172610
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
26182611
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
26192612

2620-
node-fetch@2.6.7:
2621-
version "2.6.7"
2622-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
2623-
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
2624-
dependencies:
2625-
whatwg-url "^5.0.0"
2626-
26272613
node-int64@^0.4.0:
26282614
version "0.4.0"
26292615
resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
@@ -3409,11 +3395,6 @@ tough-cookie@~2.5.0:
34093395
psl "^1.1.28"
34103396
punycode "^2.1.1"
34113397

3412-
tr46@~0.0.3:
3413-
version "0.0.3"
3414-
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
3415-
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
3416-
34173398
trim-newlines@^2.0.0:
34183399
version "2.0.0"
34193400
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-2.0.0.tgz#b403d0b91be50c331dfc4b82eeceb22c3de16d20"
@@ -3613,11 +3594,6 @@ watchpack@^2.3.1:
36133594
glob-to-regexp "^0.4.1"
36143595
graceful-fs "^4.1.2"
36153596

3616-
webidl-conversions@^3.0.0:
3617-
version "3.0.1"
3618-
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
3619-
integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==
3620-
36213597
webpack-cli@^4.10.0:
36223598
version "4.10.0"
36233599
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.10.0.tgz#37c1d69c8d85214c5a65e589378f53aec64dab31"
@@ -3679,14 +3655,6 @@ webpack@^5.73.0:
36793655
watchpack "^2.3.1"
36803656
webpack-sources "^3.2.3"
36813657

3682-
whatwg-url@^5.0.0:
3683-
version "5.0.0"
3684-
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
3685-
integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==
3686-
dependencies:
3687-
tr46 "~0.0.3"
3688-
webidl-conversions "^3.0.0"
3689-
36903658
which@1.2.x:
36913659
version "1.2.14"
36923660
resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5"

0 commit comments

Comments
 (0)