From 7f93c847398333bb023641c3ce8f5dc7ea294d31 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 28 Nov 2016 11:04:49 +0000 Subject: [PATCH] chore: update dependencies --- README.md | 2 +- ROADMAP.md | 2 +- package.json | 12 ++++++------ src/core/components/libp2p.js | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index aa74d4aaac..8d6bc04410 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ A complete API definition is in the works. Meanwhile, you can learn how to you u Every IPFS instance also exposes the libp2p API at `ipfs.libp2p`. The formal interface for this API hasn't been defined by you can find documentation at its implementations: -- [libp2p-ipfs](https://github.com/ipfs/js-libp2p-ipfs) +- [libp2p-ipfs-nodejs](https://github.com/ipfs/js-libp2p-ipfs-nodejs) - [libp2p-ipfs-browser](https://github.com/ipfs/js-libp2p-ipfs-browser) ## Development diff --git a/ROADMAP.md b/ROADMAP.md index 2325d612a7..ec99bf6b6b 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -96,7 +96,7 @@ UPDATE: - [x] Do not assume that the Public Key is only transfered in secio - [x] Websockets support (really nice to have) - [x] use the defined protocol multicodecs https://github.com/ipfs/specs/blob/master/libp2p/7-properties.md#757-protocol-multicodecs -- [x] go-libp2p scripts for libp2p interop testing https://github.com/ipfs/js-libp2p-ipfs/issues/15 +- [x] go-libp2p scripts for libp2p interop testing https://github.com/ipfs/js-libp2p-ipfs-nodejs/issues/15 ### Notes: diff --git a/package.json b/package.json index 7c317d8b12..f549135914 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ }, "main": "src/core/index.js", "browser": { - "libp2p-ipfs": "libp2p-ipfs-browser", + "libp2p-ipfs-nodejs": "libp2p-ipfs-browser", "./src/core/default-repo.js": "./src/core/default-repo-browser.js", "./src/core/components/init-assets.js": false, "./test/utils/temp-repo.js": "./test/utils/temp-repo-browser.js", @@ -86,13 +86,13 @@ "ipfs-block-service": "^0.7.0", "ipfs-multipart": "^0.1.0", "ipfs-repo": "^0.11.1", - "ipfs-unixfs": "^0.1.5", + "ipfs-unixfs": "^0.1.8", "ipfs-unixfs-engine": "^0.14.0", "ipld-resolver": "^0.3.0", "isstream": "^0.1.2", "joi": "^10.0.1", - "libp2p-ipfs": "^0.15.0", - "libp2p-ipfs-browser": "^0.16.0", + "libp2p-ipfs-nodejs": "^0.16.0", + "libp2p-ipfs-browser": "^0.17.0", "lodash.flatmap": "^4.5.0", "lodash.get": "^4.4.2", "lodash.has": "^4.5.2", @@ -119,7 +119,7 @@ "stream-to-pull-stream": "^1.7.2", "tar-stream": "^1.5.2", "temp": "^0.8.3", - "through2": "^2.0.1", + "through2": "^2.0.2", "update-notifier": "^1.0.2", "yargs": "^6.4.0" }, @@ -149,4 +149,4 @@ "nginnever ", "npmcdn-to-unpkg-bot " ] -} \ No newline at end of file +} diff --git a/src/core/components/libp2p.js b/src/core/components/libp2p.js index 44c28d1525..f6385992bf 100644 --- a/src/core/components/libp2p.js +++ b/src/core/components/libp2p.js @@ -1,13 +1,13 @@ 'use strict' -const Libp2pNode = require('libp2p-ipfs').Node +const Node = require('libp2p-ipfs-nodejs') const promisify = require('promisify-es6') module.exports = function libp2p (self) { // TODO Just expose libp2p API directly, this start stop wrapping doesn't make that much sense anymore :) return { start: promisify((callback) => { - self._libp2pNode = new Libp2pNode(self._peerInfo) + self._libp2pNode = new Node(self._peerInfo) self._libp2pNode.start((err) => { if (err) { return callback(err)