Skip to content

Commit 9ce8266

Browse files
ts: Remove cross-fetch dependency (#4671)
1 parent 46f1d74 commit 9ce8266

4 files changed

Lines changed: 1 addition & 16 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The minor version will be incremented upon a breaking change and the patch versi
3131

3232
### Fixes
3333

34+
- ts: Remove `cross-fetch` dependency ([#4671](https://github.com/solana-foundation/anchor/pull/4671)).
3435
- lang: Guard `AccountLoader<T>::exit` against zero-copy buffer truncation and bail with `AccountDidNotDeserialize` instead of rewriting the discriminator over an undersized buffer ([#4633](https://github.com/otter-sec/anchor/pull/4633)).
3536
- lang: Set `anchor-lang` Minimum Supported Rust Version to `1.89` ([#4638](https://github.com/otter-sec/anchor/pull/4638)).
3637
- lang: Shorten invariant lifetimes during `Context` creation ([#4363](https://github.com/solana-foundation/anchor/pull/4363)).

ts/packages/anchor/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"bn.js": "^5.2.3",
4141
"bs58": "^4.0.1",
4242
"buffer-layout": "^1.2.2",
43-
"cross-fetch": "^3.1.5",
4443
"eventemitter3": "^4.0.7",
4544
"pako": "^2.0.3",
4645
"superstruct": "^0.15.4",

ts/packages/anchor/src/utils/registry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import BN from "bn.js";
2-
import fetch from "cross-fetch";
32
import * as borsh from "@anchor-lang/borsh";
43
import { Connection, PublicKey } from "@solana/web3.js";
54

ts/yarn.lock

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,13 +1898,6 @@ create-require@^1.1.0:
18981898
resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
18991899
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
19001900

1901-
cross-fetch@^3.1.5:
1902-
version "3.1.5"
1903-
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f"
1904-
integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==
1905-
dependencies:
1906-
node-fetch "2.6.7"
1907-
19081901
cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
19091902
version "7.0.3"
19101903
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
@@ -3703,13 +3696,6 @@ node-fetch@2:
37033696
dependencies:
37043697
whatwg-url "^5.0.0"
37053698

3706-
node-fetch@2.6.7:
3707-
version "2.6.7"
3708-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
3709-
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
3710-
dependencies:
3711-
whatwg-url "^5.0.0"
3712-
37133699
node-gyp-build@^4.3.0:
37143700
version "4.5.0"
37153701
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.5.0.tgz#7a64eefa0b21112f89f58379da128ac177f20e40"

0 commit comments

Comments
 (0)