This repository was archived by the owner on Feb 12, 2024. It is now read-only.
·
668 commits
to master
since this release
45.0.0 (2020-07-16)
Bug Fixes
- optional arguments go in the options object (#3118) (8cb8c73)
- still load dag-pb, dag-cbor and raw when specifying custom formats (#3132) (a96e3bc), closes #3129
Features
- add interface and http client versions to version output (#3125) (65f8b23), closes #2878
- store blocks by multihash instead of CID (#3124) (03b17f5)
Breaking Changes
ipfs.add
only works on single items - a Uint8Array, a String, an AsyncIterable etcipfs.addAll
works on multiple itemsipfs.dag.resolve
returnsPromise<{ cid, remainderPath }
instead ofAsyncIterator<{ value, remainderPath }>
- Previously the core api returned an async iterator and the http client returned a simple promise
ipfs.bitswap.wantlist([peer], [options])
is split into:ipfs.bitswap.wantlist([options])
ipfs.bitswap.wantlistForPeer(peer, [options])
ipfs.bootstrap.add([addr], [options])
is split into:ipfs.bootstrap.add(addr, [options])
- add a bootstrap nodeipfs.bootstrap.reset()
- restore the default list of bootstrap nodes
ipfs.bootstrap.rm([addr], [options])
is split into:ipfs.bootstrap.rm(addr, [options])
- remove a bootstrap nodeipfs.bootstrap.clear([options])
- empty the bootstrap list
ipfs.dag.get(cid, [path], [options])
becomesipfs.dag.get(cid, [options])
path
is moved into theoptions
object
ipfs.dag.tree(cid, [path], [options])
becomesipfs.dag.tree(cid, [options])
path
is moved into theoptions
object
ipfs.dag.resolve(cid, [path], [options])
becomesipfs.dag.resolve(cid, [options])
path
is moved into theoptions
object
ipfs.files.flush([path], [options])
becomesipfs.files.flush(path, [options])
ipfs.files.ls([path], [options])
becomesipfs.files.ls(path, [options])
ipfs.object.new([template], [options])
becomesipfs.object.new([options])
template
is moved into theoptions
object
ipfs.pin.ls([paths], [options])
becomesipfs.pin.ls([options])
paths
is moved into theoptions
object
ipfs.refs.local
now returns a v1 CID with the raw codec for every block and not the original CID by which it was added to the blockstore