This repository was archived by the owner on Feb 12, 2024. It is now read-only.
IPLD formats are overwritten in nodejs #3129
Labels
kind/bug
A bug in existing code (including security flaws)
Severity: Low
Description:
When specifying a custom ipld format when creating an ipfs instance the default formats get overwritten. This seems to be happening since the default formats are not defined in the nodejs config for ipld: https://github.com/ipfs/js-ipfs/blob/master/packages/ipfs/src/core/runtime/ipld-nodejs.js (Ipld just uses the passed formats array without merging with it's defaults)
In the browser config it looks like it should work since the passed formats array should be merged with the default one, but I have not confirmed.
Steps to reproduce the error:
Run this in nodejs with a custom
myFormat
.The text was updated successfully, but these errors were encountered: