Releases: ipfs-inactive/js-ipfs-http-client
v28.1.0
v28.0.3
v28.0.2
v28.0.1
v28.0.0
Bug Fixes
Code Refactoring
BREAKING CHANGES
v27.1.0
v27.0.0
Bug Fixes
- also retry with misnemed format "dag-cbor" as "cbor" (#888) (348a144)
- better input validation for add (#876) (315b7f7)
- fix log.tail by calling add after listening for events (#882) (da35b0f)
- handle peer-info validation errors (#887) (6e6d7a2), closes #885
- updates ipld-dag-pb dep to version without .cid properties (#889) (ac30a82)
Code Refactoring
- object API write methods now return CIDs (#896) (38bed14)
- rename library to ipfs-http-client (#897) (d40cb6c)
- updated files API (#878) (39f4733)
BREAKING CHANGES
- the
ipfs-apilibrary has been renamed toipfs-http-client.
Now install via npm install ipfs-http-client.
Note that in the browser build the object attached to window is now window.IpfsHttpClient.
License: MIT
Signed-off-by: Alan Shaw [email protected]
- Object API refactor.
Object API methods that write DAG nodes now return a CID instead of a DAG node. Affected methods:
ipfs.object.newipfs.object.patch.addLinkipfs.object.patch.appendDataipfs.object.patch.rmLinkipfs.object.patch.setDataipfs.object.put
Example:
// Before
const dagNode = await ipfs.object.new()// After
const cid = await ipfs.object.new() // now returns a CID
const dagNode = await ipfs.object.get(cid) // fetch the DAG node that was createdIMPORTANT: DAGNode instances, which are part of the IPLD dag-pb format have been refactored.
These instances no longer have multihash, cid or serialized properties.
This effects the following API methods that return these types of objects:
ipfs.object.getipfs.dag.get
See ipld/js-ipld-dag-pb#99 for more information.
License: MIT
Signed-off-by: Alan Shaw [email protected]
- Files API methods
add*,cat*,get*have moved fromfilesto the root namespace.
Specifically, the following changes have been made:
ipfs.files.add=>ipfs.addipfs.files.addPullStream=>ipfs.addPullStreamipfs.files.addReadableStream=>ipfs.addReadableStreamipfs.files.cat=>ipfs.catipfs.files.catPullStream=>ipfs.catPullStreamipfs.files.catReadableStream=>ipfs.catReadableStreamipfs.files.get=>ipfs.getipfs.files.getPullStream=>ipfs.getPullStreamipfs.files.getReadableStream=>ipfs.getReadableStream
Additionally, addFromFs, addFromUrl, addFromStream have moved from util to the root namespace:
ipfs.util.addFromFs=>ipfs.addFromFsipfs.util.addFromUrl=>ipfs.addFromUrlipfs.util.addFromStream=>ipfs.addFromStream
License: MIT
Signed-off-by: Alan Shaw [email protected]