-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Dependency updates #1965
Comments
@lidel Can we chat about what this story looks like by tying ourselves specifically to Kubo? e.g. Pulling out ipfs-http-client entirely from webui, and replacing with https://github.com/ipfs/js-kubo-rpc-client. |
on the latest main: > cat npm-install.log | sort | uniq | grep 'npm WARN deprecated' | wc -l
52 > npm i &> npm-install.log
> cat npm-install.log | perl -pe 's/npm WARN deprecated //g' | perl -pe 's/(^[^:]+)@[^:]+/$1/g' | sort | uniq | perl -ne 'print if /ipfs|cid|multi|ipld|libp2p/'
cids: This module has been superseded by the multiformats module
interface-ipld-format: This module has been superseded by the multiformats module
ipfs-block-service: This module has been merged into ipfs
ipld-dag-cbor: This module has been superseded by @ipld/dag-cbor and multiformats
ipld-dag-pb: This module has been superseded by @ipld/dag-pb and multiformats
ipld-ethereum: This module is no longer maintained
ipld-git: This module is no longer maintained
ipld-raw: This module has been superseded by the multiformats module
ipld: Please use the multiformats module instead
multibase: This module has been superseded by the multiformats module
multicodec: This module has been superseded by the multiformats module
multihashing-async: This module has been superseded by the multiformats module All of these packages listed need to be removed/updated prior to us being able to safely&sanely keep up with new kubo feature development. cat npm-install.log | perl -pe 's/npm WARN deprecated //g' | perl -pe 's/(^[^:]+)@[^:]+/$1/g' | sort | uniq | perl -ne 'print if /ipfs|cid|multi|ipld|libp2p/' | awk -F: '{ print $1 }' | xargs -tn1 npm explain &> npm-explain.log CalloutsOf those 52 deprecated packages, 12 are core packages. |
* feat: use @multiformats/multiaddr * deps: update multiaddr-to-uri * deps: update ipld-explorer-components This also updates ipld-explorer-components to 5.2.0 which will allow us to remove a lot of old deps (part of #1965)
## [4.2.0](v4.1.1...v4.2.0) (2023-12-02) CID `bafybeidf7cpkwsjkq6xs3r6fbbxghbugilx3jtezbza7gua3k5wjixpmba` --- ### Features * peers table can be filtered ([#2181](#2181)) ([37b5880](37b5880)) * **pinning:** add Scaleway pinning service ([#2132](#2132)) ([0cc3b04](0cc3b04)) ### Bug Fixes * error loading scaleway template URL ([7a3388e](7a3388e)) * replace estuary with web3 for pinning ([#2182](#2182)) ([e2fc7c8](e2fc7c8)) * status page supports webrtc ([#2180](#2180)) ([ff75d4e](ff75d4e)), closes [#1965](#1965) * switch to new dnslink updater ([#2175](#2175)) ([a63f48a](a63f48a)) ### Trivial Changes * Pull transifex translations ([#2162](#2162)) ([c0f8f54](c0f8f54)) * pull transifex translations ([#2177](#2177)) ([7f377ff](7f377ff)) * update release transifex links ([74cce69](74cce69))
## [4.2.0](ipfs/ipfs-webui@v4.1.1...v4.2.0) (2023-12-02) CID `bafybeidf7cpkwsjkq6xs3r6fbbxghbugilx3jtezbza7gua3k5wjixpmba` --- ### Features * peers table can be filtered ([#2181](ipfs/ipfs-webui#2181)) ([37b5880](ipfs/ipfs-webui@37b5880)) * **pinning:** add Scaleway pinning service ([#2132](ipfs/ipfs-webui#2132)) ([0cc3b04](ipfs/ipfs-webui@0cc3b04)) ### Bug Fixes * error loading scaleway template URL ([7a3388e](ipfs/ipfs-webui@7a3388e)) * replace estuary with web3 for pinning ([#2182](ipfs/ipfs-webui#2182)) ([e2fc7c8](ipfs/ipfs-webui@e2fc7c8)) * status page supports webrtc ([#2180](ipfs/ipfs-webui#2180)) ([ff75d4e](ipfs/ipfs-webui@ff75d4e)), closes [#1965](ipfs/ipfs-webui#1965) * switch to new dnslink updater ([#2175](ipfs/ipfs-webui#2175)) ([a63f48a](ipfs/ipfs-webui@a63f48a)) ### Trivial Changes * Pull transifex translations ([#2162](ipfs/ipfs-webui#2162)) ([c0f8f54](ipfs/ipfs-webui@c0f8f54)) * pull transifex translations ([#2177](ipfs/ipfs-webui#2177)) ([7f377ff](ipfs/ipfs-webui@7f377ff)) * update release transifex links ([74cce69](ipfs/ipfs-webui@74cce69))
This issue is intended to track & discuss any and all issues related to old dependencies:
Issues tracking dependency work
Core dependency updates needed (priority)
ipld-dag-pb
with@ipld/dag-pb
ipld-explorer-components#329ipld-dag-pb
with@ipld/dag-pb
ipld-explorer-components#330Other work
ipfs
andipfsd-ctl
#1988Nice to have but not required
Items blocked by outdated deps in one way or another
Issues blocking dependency updates
Investigating dependencies
npm outdated --all > npm-outdated.raw.log
gives us this: npm-outdated.raw.logThen we want to remove duplicates, because npm outdated doesn't do that for us for some reason (
echo "$(head -n 1 npm-outdated.raw.log && tail -n +2 npm-outdated.raw.log | sort | uniq -d)" > npm-outdated.uniq.log
): npm-outdated.uniq.logcat npm-outdated.raw.log | awk '{print $6}' | sort | uniq -c | sort > most-impactful-dependencies.log
To see which dependencies are mentioned the most in the depended by column, we can run
cat npm-outdated.uniq.log | awk '{print $6}' | sort | uniq -c | sort > most-impactful-dependencies.log
to get: most-impactful-dependencies.logand then to get the top 10 most impactful dependency updates,
tail -n 10 most-impactful-dependencies.log
:So which of those versions do we 'want'?
And why are they there?
tail -n 10 most-impactful-dependencies.log | awk '{print $2}' | xargs -n1 -I% sh -c 'npm explain %' > explain.txt
: explain.txtThat's super hard to understand, so let's aggregate again...
cat explain.txt | grep 'from the root project' | awk '{$1=$1};1' | sort | uniq -c | sort
:Breakdown of the above:
So what does this mean?
Using react-scripts as an example: there are 754 listings of react-scripts being the ROOT CAUSE.
react-scripts
is the package we depend on, that is listed in the npm-explain output, when trying to determine why out-of-date modules are listed in our dependency graph.Why did you do all this?
I attempted to upgrade some (see main...SgtPooki:ipfs-webui:fix/node-14-windows) to resolve the build errors showing at https://github.com/SgtPooki/ipfs-webui/actions/runs/2605014389, (see #1961) and was consistently blocked by npm because of semver conflicts of wanted packages. In order to move forward.. since there is no npm-dependency-graph-resolver upgrade tool, I figured I would need all of this data.
The text was updated successfully, but these errors were encountered: