diff --git a/CHANGELOG.md b/CHANGELOG.md index 60fef071d..2653d23b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +# [0.72.0](https://github.com/ipfs/interface-ipfs-core/compare/v0.71.0...v0.72.0) (2018-07-05) + + + # [0.71.0](https://github.com/ipfs/interface-ipfs-core/compare/v0.70.3...v0.71.0) (2018-07-03) diff --git a/js/src/dag/put.js b/js/src/dag/put.js index eb88abe50..42081a296 100644 --- a/js/src/dag/put.js +++ b/js/src/dag/put.js @@ -109,6 +109,18 @@ module.exports = (createCommon, options) => { }) }) + it('should override hash algoritm default and resolve with it', (done) => { + ipfs.dag.put(cborNode, { + format: 'dag-cbor', + hashAlg: 'sha3-512' + }, (err, cid) => { + expect(err).to.not.exist() + expect(cid.codec).to.equal('dag-cbor') + expect(multihash.decode(cid.multihash).name).to.equal('sha3-512') + done() + }) + }) + it.skip('should put by passing the cid instead of format and hashAlg', (done) => {}) // TODO it.skip('Promises support', (done) => {}) diff --git a/package.json b/package.json index 34ba8ce6d..7a8101e25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "interface-ipfs-core", - "version": "0.71.0", + "version": "0.72.0", "description": "A test suite and interface you can use to implement a IPFS core interface.", "leadMaintainer": "Alan Shaw ", "main": "js/src/index.js",