From 7d8b62014c7732b4ecfd5aa25d370a6d5c35faf2 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Mon, 13 May 2019 20:35:05 +0100 Subject: [PATCH 1/4] docs: fix key option description refs https://github.com/ipfs/js-ipfs/issues/2046 Implementation currently does not support key as Peer ID. --- SPEC/NAME.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPEC/NAME.md b/SPEC/NAME.md index d4e5905a..e9a13eee 100644 --- a/SPEC/NAME.md +++ b/SPEC/NAME.md @@ -21,7 +21,7 @@ resolve: // bool - Resolve given path before publishing. Default: true lifetime: // string - Time duration of the record. Default: 24h ttl: // string - Time duration this record should be cached - key: // string - Name of the key to be used or Peer ID. Default: 'self' + key: // string - Name of the key to be used. Default: 'self' } ``` From 6d339a2e921dae55db7accc3dc6c699a143d1c98 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 15 May 2019 16:10:52 +0100 Subject: [PATCH 2/4] test: add test for config set with number (#470) License: MIT Signed-off-by: Alan Shaw --- src/config/set.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/config/set.js b/src/config/set.js index 6570413a..50b1be49 100644 --- a/src/config/set.js +++ b/src/config/set.js @@ -59,6 +59,19 @@ module.exports = (createCommon, options) => { }) }) + it('should set a number', (done) => { + const key = 'Discovery.MDNS.Interval' + const val = 11 + ipfs.config.set(key, val, function (err) { + expect(err).to.not.exist() + ipfs.config.get(key, function (err, result) { + expect(err).to.not.exist() + expect(result).to.equal(val) + done() + }) + }) + }) + it('should set a JSON object', (done) => { const key = 'API.HTTPHeaders.Access-Control-Allow-Origin' const val = ['http://example.io'] From e4fc0944eef35822b0f789d2d6523da83f014b62 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 15 May 2019 16:12:25 +0100 Subject: [PATCH 3/4] chore: update contributors --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c4d1bff0..6fd4764b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "interface-ipfs-core", - "version": "0.100.1", + "version": "0.101.0", "description": "A test suite and interface you can use to implement a IPFS core interface.", "leadMaintainer": "Alan Shaw ", "main": "src/index.js", From 2456471d65b6a3162a8fed46eea9bb93efc697ef Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Wed, 15 May 2019 16:12:25 +0100 Subject: [PATCH 4/4] chore: release version v0.101.0 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9941be38..7919f80f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +# [0.101.0](https://github.com/ipfs/interface-ipfs-core/compare/v0.100.1...v0.101.0) (2019-05-15) + + + ## [0.100.1](https://github.com/ipfs/interface-ipfs-core/compare/v0.100.0...v0.100.1) (2019-05-13)