92 Commits

Author SHA1 Message Date
Pau Ramon Revilla
c39eb4a830 Removed ipv6 to ipv4 hack 2015-11-01 19:57:20 +01:00
David Dias
3b9465de92 Release v0.5.5. 2015-10-29 00:27:59 +00:00
David Dias
c827bd8470 package.json 2015-10-29 00:27:49 +00:00
David Dias
555f2199df Release v0.5.4. 2015-10-29 00:27:18 +00:00
David Dias
a9942b014b Merge pull request #16 from diasdavid/rn
update readme and package.json
2015-10-29 00:26:53 +00:00
David Dias
348615b5aa update readme and package.json 2015-10-29 00:26:18 +00:00
David Dias
f309d4f7b7 Release v0.5.3. 2015-09-28 16:12:01 +01:00
David Dias
1c8fbb2c5b Merge branch 'masylum-patch-1' 2015-09-28 16:11:45 +01:00
David Dias
789fdcfdc3 merge #11 2015-09-28 16:11:16 +01:00
David Dias
f53124393c Release v0.5.2. 2015-09-28 04:01:45 +01:00
David Dias
81c6ab013d Merge pull request #14 from masylum/implement-close
Implemented `close` and improved the tests with it
2015-09-28 04:00:12 +01:00
David Dias
adb5ce19b1 Release v0.5.1. 2015-09-26 21:12:46 +01:00
David Dias
4feaa8b187 Merge pull request #13 from masylum/patch-3
Do not allow undefined `peerInfo`
2015-09-26 20:59:14 +01:00
Pau Ramon Revilla
5c53540e92 Implemented close and improved the tests with it 2015-09-26 20:12:13 +02:00
Pau Ramon Revilla
8dc46da80f Protect from peers without supported transports
# What

Trying to run compliance tests from the kad router module. I've tried to port the new swarm API but forgot to add a transport. The tests ended up blowing up instead of failing gracefully.

# How to test

```js
peerOne = new Peer(Id.create(), [multiaddr('/ip4/127.0.0.1/tcp/8090')])
peerTwo = new Peer(Id.create(), [multiaddr('/ip4/127.0.0.1/tcp/8091')])
swarm = new Swarm(peerZero)
swarm.dial(peerTwo, {}, function (err) {
  console.log(err);
});
```

This just work and display the error.
2015-09-26 16:55:34 +02:00
Pau Ramon Revilla
0514b0034b Do not allow undefined peerInfo
# What

The code assumes that `peerInfo` exists, the API doesn't.

# How to test

```js
swarm = new Swarm()
swarm.addTransport('tcp', tcp, { multiaddr: mh }, {}, {port: 8095})
```

This shouldn't explode because of `self.peerInfo.multiaddrs`.
2015-09-26 16:24:46 +02:00
David Dias
cd53344441 Release v0.5.0. 2015-09-23 23:12:50 +01:00
David Dias
490022cf02 ready to publish new version 2015-09-23 23:12:35 +01:00
David Dias
4d9d8c94c7 Merge pull request #10 from diasdavid/revisit
Revisit Swarm - multitransport + upgrades - https://github.com/diasdavid/node-ipfs-swarm/issues/8
2015-09-23 23:09:27 +01:00
David Dias
1ba8e80d4d rm laf 2015-09-23 20:34:31 +01:00
David Dias
5b7a6051ad comment undone tests 2015-09-23 20:07:55 +01:00
David Dias
5fe94446d8 rm old test file 2015-09-23 20:07:05 +01:00
David Dias
92b499df82 fix readme typos and missing links 2015-09-23 20:06:10 +01:00
David Dias
e6bcde41fb change cov 2015-09-23 19:58:14 +01:00
David Dias
fb37b4dec9 clear unused console logs 2015-09-23 19:57:37 +01:00
David Dias
2000827273 add identify 2015-09-23 19:14:29 +01:00
David Dias
0bcbe63005 rm old code 2015-09-23 17:26:26 +01:00
David Dias
168d01befd stream muxer for connection reuse test 2015-09-23 17:25:21 +01:00
David Dias
0040be765d add spdy + test 2015-09-23 17:11:32 +01:00
David Dias
416e107d64 quick fix for travis 2015-09-22 17:50:41 +01:00
David Dias
59b00f6886 use warmed up connection + test 2015-09-22 17:27:37 +01:00
David Dias
8e8d8e9093 dial on a protocol + test 2015-09-22 16:50:42 +01:00
David Dias
5e4cca52c0 dial a conn + test 2015-09-22 16:16:21 +01:00
David Dias
e1df0b9ecd add transport and close listener test 2015-09-22 14:31:23 +01:00
David Dias
73a6a4fd45 adding transports works 2015-09-21 19:56:42 +01:00
David Dias
1833ded0f7 making progress 2015-09-21 16:46:04 +01:00
David Dias
544e4a4165 update README with new candidate interface 2015-09-20 21:08:28 +01:00
David Dias
7aae02581c Merge pull request #7 from Dignifiedquire/identify-tests
identify: Fix some issues with updateSelf.
2015-09-14 19:23:24 +01:00
David Dias
10ec005695 Release v0.4.1. v0.4.1 2015-09-14 12:06:55 +01:00
David Dias
326f56206c to v4 2015-09-14 12:06:41 +01:00
David Dias
139ac6e852 to v4 2015-09-14 12:06:19 +01:00
dignifiedquire
17f40911db identify: Fix some issues with updateSelf. 2015-08-04 12:10:17 +02:00
David Dias
bef901fecd Release v0.4.0. 2015-08-03 19:46:05 +02:00
David Dias
c6ae35026b fix issue pointed out here - https://github.com/diasdavid/node-ipfs-swarm/pull/7#discussion_r36044035 2015-08-03 19:45:51 +02:00
David Dias
cfa37e8d98 remove 0.10 from travis list (due to spdy-transport) 2015-08-02 13:31:03 +02:00
David Dias
cc8355fa42 make travis-ci badge green :) 2015-08-02 13:26:38 +02:00
David Dias
da498eec95 Release v0.3.1. 2015-08-01 20:19:52 +02:00
David Dias
cfc9ac582e update spdy-stream-muxer 2015-08-01 20:19:25 +02:00
David Dias
16e9696733 Merge pull request #5 from Dignifiedquire/tests
[WIP] More tests
2015-08-01 20:17:20 +02:00
dignifiedquire
f1d796f47b Fix swarm.closeConns 2015-07-31 23:13:05 +02:00