From 293968f4eddc6c806f4d1781b4fe5abf990cc8f4 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 20 May 2024 10:25:26 +1200 Subject: [PATCH 1/2] Tidy up deps for common package --- packages/common-algorand/package.json | 13 +- yarn.lock | 232 +------------------------- 2 files changed, 10 insertions(+), 235 deletions(-) diff --git a/packages/common-algorand/package.json b/packages/common-algorand/package.json index f17b0381..ab0dd7c7 100644 --- a/packages/common-algorand/package.json +++ b/packages/common-algorand/package.json @@ -15,18 +15,13 @@ "license": "GPL-3.0", "dependencies": { "@subql/common": "^3.5.1", - "@subql/types-algorand": "workspace:*", - "class-transformer": "^0.5.1", - "class-validator": "^0.13.2", - "fs-extra": "^10.1.0", - "ipfs-http-client": "^52.0.3", - "js-yaml": "^4.1.0", - "reflect-metadata": "^0.1.13", - "semver": "^7.5.4" + "@subql/types-algorand": "workspace:*" }, "peerDependencies": { "class-transformer": "*", - "class-validator": "*" + "class-validator": "*", + "js-yaml": "*", + "algosdk": "*" }, "devDependencies": { "@types/bn.js": "4.11.6", diff --git a/yarn.lock b/yarn.lock index e47d290a..300c960e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1795,7 +1795,7 @@ __metadata: languageName: node linkType: hard -"@ipld/dag-cbor@npm:^6.0.3, @ipld/dag-cbor@npm:^6.0.5": +"@ipld/dag-cbor@npm:^6.0.3": version: 6.0.15 resolution: "@ipld/dag-cbor@npm:6.0.15" dependencies: @@ -2788,16 +2788,10 @@ __metadata: "@types/js-yaml": ^4.0.4 "@types/pino": ^6.3.12 "@types/semver": ^7 - class-transformer: ^0.5.1 - class-validator: ^0.13.2 - fs-extra: ^10.1.0 - ipfs-http-client: ^52.0.3 - js-yaml: ^4.1.0 - reflect-metadata: ^0.1.13 - semver: ^7.5.4 peerDependencies: class-transformer: "*" class-validator: "*" + js-yaml: "*" languageName: unknown linkType: soft @@ -3704,15 +3698,6 @@ __metadata: languageName: node linkType: hard -"abort-controller@npm:^3.0.0": - version: 3.0.0 - resolution: "abort-controller@npm:3.0.0" - dependencies: - event-target-shim: ^5.0.0 - checksum: 170bdba9b47b7e65906a28c8ce4f38a7a369d78e2271706f020849c1bfe0ee2067d4261df8bbb66eb84f79208fd5b710df759d64191db58cfba7ce8ef9c54b75 - languageName: node - linkType: hard - "accepts@npm:~1.3.8": version: 1.3.8 resolution: "accepts@npm:1.3.8" @@ -3912,16 +3897,6 @@ __metadata: languageName: node linkType: hard -"any-signal@npm:^2.1.0, any-signal@npm:^2.1.2": - version: 2.1.2 - resolution: "any-signal@npm:2.1.2" - dependencies: - abort-controller: ^3.0.0 - native-abort-controller: ^1.0.3 - checksum: 498603e30357f82e438ddc972086b3180ddbaf5ea9772f535d103b754711eb13d4c24577e497d5a1146e571ee38f167c316ace7dc1a03b62a8a8c7677e9d660f - languageName: node - linkType: hard - "any-signal@npm:^3.0.0": version: 3.0.1 resolution: "any-signal@npm:3.0.1" @@ -4719,16 +4694,6 @@ __metadata: languageName: node linkType: hard -"class-validator@npm:^0.13.2": - version: 0.13.2 - resolution: "class-validator@npm:0.13.2" - dependencies: - libphonenumber-js: ^1.9.43 - validator: ^13.7.0 - checksum: 0deb4c29faa18345f6989fd7eaaaa07b05caae5298603fcd6485531c6daad503e5d2b24cc1342e4fc88ae5ba0acffdc24d0fc333110ef3f21a667cd8a79e1258 - languageName: node - linkType: hard - "class-validator@npm:^0.14.0": version: 0.14.0 resolution: "class-validator@npm:0.14.0" @@ -5880,13 +5845,6 @@ __metadata: languageName: node linkType: hard -"event-target-shim@npm:^5.0.0": - version: 5.0.1 - resolution: "event-target-shim@npm:5.0.1" - checksum: 1ffe3bb22a6d51bdeb6bf6f7cf97d2ff4a74b017ad12284cc9e6a279e727dc30a5de6bb613e5596ff4dc3e517841339ad09a7eec44266eccb1aa201a30448166 - languageName: node - linkType: hard - "eventemitter2@npm:6.4.9": version: 6.4.9 resolution: "eventemitter2@npm:6.4.9" @@ -6874,23 +6832,6 @@ __metadata: languageName: node linkType: hard -"interface-datastore@npm:^5.2.0": - version: 5.2.0 - resolution: "interface-datastore@npm:5.2.0" - dependencies: - err-code: ^3.0.1 - interface-store: ^1.0.2 - ipfs-utils: ^8.1.2 - it-all: ^1.0.2 - it-drain: ^1.0.1 - it-filter: ^1.0.2 - it-take: ^1.0.1 - nanoid: ^3.0.2 - uint8arrays: ^3.0.0 - checksum: 6a109f5b556e8071ca7c62e9ad2ac36de4dc9603fe47a3f6e0ed46a229ee6335d986f44418d7abc59725b640430929938eddc428aa390e4bfea4c6ce17dcff50 - languageName: node - linkType: hard - "interface-datastore@npm:^6.0.2": version: 6.1.1 resolution: "interface-datastore@npm:6.1.1" @@ -6902,13 +6843,6 @@ __metadata: languageName: node linkType: hard -"interface-store@npm:^1.0.2": - version: 1.0.2 - resolution: "interface-store@npm:1.0.2" - checksum: 62039ad87f6fc7330b1e78b1aa448174f6f6bb05993535ed8afd14abc02b64321c80e9ffd0f2f824f343408ccd0e4e9150ba782b4f781d68882bd2c5dd56aab6 - languageName: node - linkType: hard - "interface-store@npm:^2.0.2": version: 2.0.2 resolution: "interface-store@npm:2.0.2" @@ -6961,41 +6895,6 @@ __metadata: languageName: node linkType: hard -"ipfs-core-types@npm:^0.7.3": - version: 0.7.3 - resolution: "ipfs-core-types@npm:0.7.3" - dependencies: - interface-datastore: ^5.2.0 - multiaddr: ^10.0.0 - multiformats: ^9.4.1 - checksum: a1742440cba221b9b990aa888b9672269b2b7cd2c73945a0b2b44a8ce44f103a373e69ad4e022dc197dfaadb5d8bd6b6151046ae13ecb5750ef0d68b67ce41bf - languageName: node - linkType: hard - -"ipfs-core-utils@npm:^0.10.5": - version: 0.10.5 - resolution: "ipfs-core-utils@npm:0.10.5" - dependencies: - any-signal: ^2.1.2 - blob-to-it: ^1.0.1 - browser-readablestream-to-it: ^1.0.1 - err-code: ^3.0.1 - ipfs-core-types: ^0.7.3 - ipfs-unixfs: ^6.0.3 - ipfs-utils: ^8.1.4 - it-all: ^1.0.4 - it-map: ^1.0.4 - it-peekable: ^1.0.2 - multiaddr: ^10.0.0 - multiaddr-to-uri: ^8.0.0 - multiformats: ^9.4.1 - parse-duration: ^1.0.0 - timeout-abort-controller: ^1.1.1 - uint8arrays: ^3.0.0 - checksum: 9f3531d80f69011553c245835914de93e099f710feea88fbb000f10e0de44b7ab7e70437c9c135783683e08915f31279ab90829825def31c801b8ed9b5d79433 - languageName: node - linkType: hard - "ipfs-core-utils@npm:^0.14.3": version: 0.14.3 resolution: "ipfs-core-utils@npm:0.14.3" @@ -7050,35 +6949,6 @@ __metadata: languageName: node linkType: hard -"ipfs-http-client@npm:^52.0.3": - version: 52.0.5 - resolution: "ipfs-http-client@npm:52.0.5" - dependencies: - "@ipld/dag-cbor": ^6.0.5 - "@ipld/dag-pb": ^2.1.3 - abort-controller: ^3.0.0 - any-signal: ^2.1.2 - debug: ^4.1.1 - err-code: ^3.0.1 - form-data: ^4.0.0 - ipfs-core-types: ^0.7.3 - ipfs-core-utils: ^0.10.5 - ipfs-utils: ^8.1.4 - it-first: ^1.0.6 - it-last: ^1.0.4 - it-to-stream: ^1.0.0 - merge-options: ^3.0.4 - multiaddr: ^10.0.0 - multiformats: ^9.4.1 - nanoid: ^3.1.12 - native-abort-controller: ^1.0.3 - parse-duration: ^1.0.0 - stream-to-it: ^0.2.2 - uint8arrays: ^3.0.0 - checksum: a25cd995233d8f79c1428417d82816bdd3adb78bdf160a0dc5a0f34ebdd32e6dc574e058433802578b45baf0f5d099fbdd661dc1ae4a9022db11d337447da0f7 - languageName: node - linkType: hard - "ipfs-unixfs@npm:^6.0.3": version: 6.0.9 resolution: "ipfs-unixfs@npm:6.0.9" @@ -7089,30 +6959,6 @@ __metadata: languageName: node linkType: hard -"ipfs-utils@npm:^8.1.2, ipfs-utils@npm:^8.1.4": - version: 8.1.6 - resolution: "ipfs-utils@npm:8.1.6" - dependencies: - abort-controller: ^3.0.0 - any-signal: ^2.1.0 - buffer: ^6.0.1 - electron-fetch: ^1.7.2 - err-code: ^3.0.1 - is-electron: ^2.2.0 - iso-url: ^1.1.5 - it-glob: ~0.0.11 - it-to-stream: ^1.0.0 - merge-options: ^3.0.4 - nanoid: ^3.1.20 - native-abort-controller: ^1.0.3 - native-fetch: ^3.0.0 - node-fetch: "https://registry.npmjs.org/@achingbrain/node-fetch/-/node-fetch-2.6.7.tgz" - react-native-fetch-api: ^2.0.0 - stream-to-it: ^0.2.2 - checksum: 39bee2f77837d8f2bf2e8dad2abfc8568c609440ca3127ec9d9baf706fe8e160c9cd349a9b0e42312c6a2e8cf17f3398e81edc3ec09339de6f340178fd4876aa - languageName: node - linkType: hard - "ipfs-utils@npm:^9.0.6": version: 9.0.14 resolution: "ipfs-utils@npm:9.0.14" @@ -7592,27 +7438,13 @@ __metadata: languageName: node linkType: hard -"it-all@npm:^1.0.2, it-all@npm:^1.0.4": +"it-all@npm:^1.0.4": version: 1.0.6 resolution: "it-all@npm:1.0.6" checksum: 7ca9a528c08ebe2fc8a3c93a41409219d18325ed31fedb9834ebac2822f0b2a96d7abcb6cbfa092114ab4d5f08951e694c7a2c3929ce4b5300769e710ae665db languageName: node linkType: hard -"it-drain@npm:^1.0.1": - version: 1.0.5 - resolution: "it-drain@npm:1.0.5" - checksum: 568a07e54302e2f933f61260e8e43b0d14f753470dd03d26e87e568cdde0ba6a7fd939cc10f223142e8007bb7c6b668c9207c64bd1c9b07105f06cb61fc8673e - languageName: node - linkType: hard - -"it-filter@npm:^1.0.2": - version: 1.0.3 - resolution: "it-filter@npm:1.0.3" - checksum: 4eb39fdc9e3a09eb030a0a0e7eb295eb0dbc261a428da9c8062f565c158b1ea2939ffd92c0b13ec48055278f93f1d7b719174b9f067f0ceefbf8fd58bd4e937d - languageName: node - linkType: hard - "it-first@npm:^1.0.6": version: 1.0.7 resolution: "it-first@npm:1.0.7" @@ -7630,16 +7462,6 @@ __metadata: languageName: node linkType: hard -"it-glob@npm:~0.0.11": - version: 0.0.14 - resolution: "it-glob@npm:0.0.14" - dependencies: - "@types/minimatch": ^3.0.4 - minimatch: ^3.0.4 - checksum: dfef908820f7af2e19fd3fca4e90e3041751bb4e26e90234b86496645d15b1bb140dcd74709287bca1b34c7ad12d4e2de65a03d6b20375f979eed2a7f181aaf5 - languageName: node - linkType: hard - "it-last@npm:^1.0.4": version: 1.0.6 resolution: "it-last@npm:1.0.6" @@ -7661,13 +7483,6 @@ __metadata: languageName: node linkType: hard -"it-take@npm:^1.0.1": - version: 1.0.2 - resolution: "it-take@npm:1.0.2" - checksum: f669358761eea8ed295976aab50374ae6cf0fa0a31b3fe98bfcef17c80fbe23bb36e3b53b9bf6ca08cb90380203e49a8f5965593636255ca8e4a9bbd8026f43c - languageName: node - linkType: hard - "it-to-stream@npm:^1.0.0": version: 1.0.0 resolution: "it-to-stream@npm:1.0.0" @@ -8368,7 +8183,7 @@ __metadata: languageName: node linkType: hard -"libphonenumber-js@npm:^1.10.14, libphonenumber-js@npm:^1.9.43": +"libphonenumber-js@npm:^1.10.14": version: 1.10.30 resolution: "libphonenumber-js@npm:1.10.30" checksum: 677bdd25b709cc55f10c599df09e67b501554578e4700ae31d9f2153b4e6847710d2454b4551f19df3e443eb836c0f287a12159ee6acd931150407c0eaf010a0 @@ -9024,7 +8839,7 @@ __metadata: languageName: node linkType: hard -"multiformats@npm:^9.0.2, multiformats@npm:^9.4.1, multiformats@npm:^9.4.2, multiformats@npm:^9.4.5, multiformats@npm:^9.5.1, multiformats@npm:^9.5.4": +"multiformats@npm:^9.0.2, multiformats@npm:^9.4.2, multiformats@npm:^9.4.5, multiformats@npm:^9.5.1, multiformats@npm:^9.5.4": version: 9.9.0 resolution: "multiformats@npm:9.9.0" checksum: d3e8c1be400c09a014f557ea02251a2710dbc9fca5aa32cc702ff29f636c5471e17979f30bdcb0a9cbb556f162a8591dc2e1219c24fc21394a56115b820bb84e @@ -9044,7 +8859,7 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:^3.0.2, nanoid@npm:^3.1.12, nanoid@npm:^3.1.20, nanoid@npm:^3.1.23": +"nanoid@npm:^3.0.2, nanoid@npm:^3.1.20, nanoid@npm:^3.1.23": version: 3.3.6 resolution: "nanoid@npm:3.3.6" bin: @@ -9053,15 +8868,6 @@ __metadata: languageName: node linkType: hard -"native-abort-controller@npm:^1.0.3": - version: 1.0.4 - resolution: "native-abort-controller@npm:1.0.4" - peerDependencies: - abort-controller: "*" - checksum: 7c98800304155300344f586721a12ac4207c9d660c7bc121549f6afb3db9175fe8200cfb3017ea3ea2664a9601b01fdd92f200783b2ce8792d64a4c50bd4030a - languageName: node - linkType: hard - "native-fetch@npm:^3.0.0": version: 3.0.0 resolution: "native-fetch@npm:3.0.0" @@ -10176,15 +9982,6 @@ __metadata: languageName: node linkType: hard -"react-native-fetch-api@npm:^2.0.0": - version: 2.0.0 - resolution: "react-native-fetch-api@npm:2.0.0" - dependencies: - p-defer: ^3.0.0 - checksum: 1696e365db9fb10949f3e60d9fac7f2087fb4a0c51eedd168b6393c8c1198b507b408c56e52f470d2e7cf2c1831e1189bc8d7fed4c1574ef98ffdc3bf0ec746f - languageName: node - linkType: hard - "react-native-fetch-api@npm:^3.0.0": version: 3.0.0 resolution: "react-native-fetch-api@npm:3.0.0" @@ -10452,13 +10249,6 @@ __metadata: languageName: node linkType: hard -"retimer@npm:^2.0.0": - version: 2.0.0 - resolution: "retimer@npm:2.0.0" - checksum: a59c837e1b364c4ef85c19250a94c09a49c55076ec3c5c51fafa335ee89d2ac2b91b7623548c8edb1345d7515b054986e904f8429e6caefa0595c2c70be8923d - languageName: node - linkType: hard - "retimer@npm:^3.0.0": version: 3.0.0 resolution: "retimer@npm:3.0.0" @@ -11247,16 +11037,6 @@ __metadata: languageName: node linkType: hard -"timeout-abort-controller@npm:^1.1.1": - version: 1.1.1 - resolution: "timeout-abort-controller@npm:1.1.1" - dependencies: - abort-controller: ^3.0.0 - retimer: ^2.0.0 - checksum: 070c220be4cac532f8cfbffccba3497baf3abe97d4bfc62344dba832b55a2eef1f0e60f33d862a1662e14852c9ef8ae952d1d93f5626d39b6592f29d7d00bd45 - languageName: node - linkType: hard - "timeout-abort-controller@npm:^3.0.0": version: 3.0.0 resolution: "timeout-abort-controller@npm:3.0.0" From 797a2c0132725a1d460916b5eb167256df8b7782 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Mon, 20 May 2024 10:31:41 +1200 Subject: [PATCH 2/2] Update changelog --- packages/common-algorand/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/common-algorand/CHANGELOG.md b/packages/common-algorand/CHANGELOG.md index 23c9ec2f..b990c822 100644 --- a/packages/common-algorand/CHANGELOG.md +++ b/packages/common-algorand/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Removed +- Transient dependencies specified already in `@subql/common` (#123) ## [3.4.0] - 2024-05-02 ### Changed