bug: new kubo/ipfs/libp2p protocols break JS ecosystem #310
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
Describe the bug
Multiple issues across the JS ecosystem when new protocols are added.
js-multiaddr/src/protocols-table.ts
Lines 4 to 55 in 6cfb7ad
To Reproduce
Steps to reproduce the behavior:
git checkout ea89e7f
rm patches/multiaddr+8.1.2.patch
npm install
ipfs daemon
using kubo 0.18.1 or later in another terminalAPI server listening on /ip4/127.0.0.1/tcp/<kuboPort>
KUBO_PORT_2033_TEST=<kuboPort> npm run test:unit -- src/bundles/identity.test.js
Expected behavior
Looking up unknown protocols does not propagate errors, nor cause requests to fail. We should fallback to supported/known protocols
Additional context
Potential Solutions
v1.0.x
, there are NO breaking changes, only protocols added. Any JS package stays up to date by depending directly on the tablejs-multiaddr/src/protocols-table.ts
Lines 79 to 95 in 6cfb7ad
The text was updated successfully, but these errors were encountered: