Skip to content

Commit 6c8c6a0

Browse files
committed
fix: downgrade isomorphic-unfetch to 4.0.0
Without this patch people were experiencing problems when bundling the SDK. See issue ToucanProtocol#95 ToucanProtocol#95 The problem is that `isomorphic-unfetch` 4.0.2 upgraded to `unfetch` 5.0.0 which currently has an issue with their module exports leading to an error when bundling the lib itself or any other lib that depends on `unfetch`. See this PR for more information: developit/unfetch#164 Once the PR above is merged we can go back to the latest `isomorphic-unfetch` version.
1 parent ed806d1 commit 6c8c6a0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@urql/core": "^2.5.0",
2929
"ethers": "^5.6.4",
3030
"graphql": "^16.5.0",
31-
"isomorphic-unfetch": "^4.0.2",
31+
"isomorphic-unfetch": "4.0.0",
3232
"typedoc": "^0.25.1",
3333
"typedoc-plugin-markdown": "^3.16.0"
3434
},

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5975,13 +5975,13 @@ isobject@^3.0.0, isobject@^3.0.1:
59755975
resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
59765976
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
59775977

5978-
isomorphic-unfetch@^4.0.2:
5979-
version "4.0.2"
5980-
resolved "https://registry.yarnpkg.com/isomorphic-unfetch/-/isomorphic-unfetch-4.0.2.tgz#5fc04eeb1053b7b702278e2cf7a3f246cb3a9214"
5981-
integrity sha512-1Yd+CF/7al18/N2BDbsLBcp6RO3tucSW+jcLq24dqdX5MNbCNTw1z4BsGsp4zNmjr/Izm2cs/cEqZPp4kvWSCA==
5978+
isomorphic-unfetch@4.0.0:
5979+
version "4.0.0"
5980+
resolved "https://registry.yarnpkg.com/isomorphic-unfetch/-/isomorphic-unfetch-4.0.0.tgz#439422d68014e9355680e011ec05878c3a65672d"
5981+
integrity sha512-faQdcv4iQsZXTQIRWVVjfibY7CRxLBpvafqrc5ZgEPUXkDDiQu4nqXRtG5SuJUurW2XHM9uwPuna2r4Px2iNKA==
59825982
dependencies:
59835983
node-fetch "^3.2.0"
5984-
unfetch "^5.0.0"
5984+
unfetch "^4.2.0"
59855985

59865986
isstream@~0.1.2:
59875987
version "0.1.2"
@@ -9660,10 +9660,10 @@ undici@^5.4.0:
96609660
resolved "https://registry.yarnpkg.com/undici/-/undici-5.5.1.tgz#baaf25844a99eaa0b22e1ef8d205bffe587c8f43"
96619661
integrity sha512-MEvryPLf18HvlCbLSzCW0U00IMftKGI5udnjrQbC5D4P0Hodwffhv+iGfWuJwg16Y/TK11ZFK8i+BPVW2z/eAw==
96629662

9663-
unfetch@^5.0.0:
9664-
version "5.0.0"
9665-
resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-5.0.0.tgz#8a5b6e5779ebe4dde0049f7d7a81d4a1af99d142"
9666-
integrity sha512-3xM2c89siXg0nHvlmYsQ2zkLASvVMBisZm5lF3gFDqfF2xonNStDJyMpvaOBe0a1Edxmqrf2E0HBdmy9QyZaeg==
9663+
unfetch@^4.2.0:
9664+
version "4.2.0"
9665+
resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be"
9666+
integrity sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==
96679667

96689668
union-value@^1.0.0:
96699669
version "1.0.1"

0 commit comments

Comments
 (0)