This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
v0.34.0-pre.0
Pre-release
Pre-release
alanshaw
released this
07 Dec 11:19
·
4785 commits
to master
since this release
Bug Fixes
- add dash case to pin cli (#1719) (eacd580)
- add missing dependencies (#1663) (4bcf4a7)
- allow disabling mfs preload from config (#1733) (5f66538)
- better error message when pubsub is not enabled (#1729) (5237dd9)
- examples after files API refactor (#1740) (34ec036)
- ipns datastore key (#1741) (a39770e)
- make circuit relay test (#1710) (345ce91)
- remove electron-webrtc and wrtc for now (#1718) (b6b50d5)
Code Refactoring
- files API (#1720) (a82a5dc)
- object APIs write methods now return CIDs (#1730) (ac5fa8e), closes /github.com/ipfs/interface-ipfs-core/pull/388#pullrequestreview-173866270
Features
- ipns over dht (#1725) (1a943f8)
- ipns over pubsub (#1559) (8712542)
- Web UI updated to v2.2.0 (#1711) (b2158bc)
Performance Improvements
BREAKING CHANGES
- Object API refactor.
Object API methods that write DAG nodes now return a CID instead of a DAG node. Affected methods:
ipfs.object.new
ipfs.object.patch.addLink
ipfs.object.patch.appendData
ipfs.object.patch.rmLink
ipfs.object.patch.setData
ipfs.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 created
IMPORTANT: 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.get
ipfs.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 fromfiles
to the root namespace.
Specifically, the following changes have been made:
ipfs.files.add
=>ipfs.add
ipfs.files.addPullStream
=>ipfs.addPullStream
ipfs.files.addReadableStream
=>ipfs.addReadableStream
ipfs.files.cat
=>ipfs.cat
ipfs.files.catPullStream
=>ipfs.catPullStream
ipfs.files.catReadableStream
=>ipfs.catReadableStream
ipfs.files.get
=>ipfs.get
ipfs.files.getPullStream
=>ipfs.getPullStream
ipfs.files.getReadableStream
=>ipfs.getReadableStream
License: MIT
Signed-off-by: Alan Shaw [email protected]