Changelog History
Page 10
-
v0.34.3 Changes
January 24, 2019 -
v0.34.2 Changes
January 21, 2019 -
v0.34.1 Changes
January 21, 2019 -
v0.34.0 Changes
January 17, 2019 -
v0.34.0-rc.1 Changes
January 15, 2019๐ Bug Fixes
๐จ Code Refactoring
๐ Features
๐ฅ BREAKING CHANGES
- All API methods that returned
big.js
instances now returnbignumber.js
instances.
License: MIT Signed-off-by: Alan Shaw [email protected]
- All API methods that returned
-
v0.34.0-rc.0 Changes
December 18, 2018๐ Bug Fixes
๐ Features
-
v0.34.0-pre.0 Changes
December 07, 2018๐ 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
orserialized
properties.This effects the following API methods that return these types of objects:
ipfs.object.get
ipfs.dag.get
๐ See https://github.com/ipld/js-ipld-dag-pb/pull/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]
-
v0.33.1 Changes
November 05, 2018 -
v0.33.0 Changes
November 01, 2018 -
v0.33.0-rc.4 Changes
November 01, 2018๐ Bug Fixes
- โ remove accidentally committed code (66fa8ef)
- โ remove local option from global commands (#1648) (8e963f9)
- โ remove npm script (df32ac4)
- โ remove unused deps (f7189fb)
- ๐ use class is function on ipns (#1617) (c240d49), closes js-peer-id#84 interface-datastore#24 #1615
Chores
๐ Features
- โ add support to pass config in the init cmd (#1662) (588891c)
- get Ping to work properly (27d5a57)
๐ฅ BREAKING CHANGES
- dag-cbor nodes now represent links as CID objects
The API for dag-cbor changed. ๐ Links are no longer represented as JSON objects (
{"/": "base-encoded-cid"}
, ๐ but as CID objects.ipfs.dag.get()
and now always return links as CID objects.ipfs.dag.put()
also expects links to be represented as CID objects. The old-style JSON objects representation is still ๐ supported, but deprecated.Prior to this change:
const cid = new CID('QmXed8RihWcWFXRRmfSRG9yFjEbXNxu1bDwgCFAN8Dxcq5') // Link as JSON object representation const putCid = await ipfs.dag.put({link: {'/': cid.toBaseEncodedString()}}) const result = await ipfs.dag.get(putCid) console.log(result.value)
Output:
{ link: { '/': <Buffer 12 20 8aโฆ> } }
Now:
const cid = new CID('QmXed8RihWcWFXRRmfSRG9yFjEbXNxu1bDwgCFAN8Dxcq5') // Link as CID object const putCid = await ipfs.dag.put({link: cid}) const result = await ipfs.dag.get(putCid) console.log(result.value)
Output:
{ link: CID { codec: 'dag-pb', version: 0, multihash: <Buffer 12 20 8aโฆ> } }
๐ See https://github.com/ipld/ipld/issues/44 for more information on why this ๐ change was made.
- โ remove
types.dagCBOR
andtypes.dagPB
from public API
๐ป If you need the
ipld-dag-cbor
oripld-dag-pb
module in the Browser, you need to bundle them yourself.