Commit Graph

234 Commits

Author SHA1 Message Date
Vasco Santos
8661c09b69 chore: release version v0.15.2 v0.15.2 2020-12-28 09:54:14 +00:00
Vasco Santos
f9e329708d chore: update contributors 2020-12-28 09:54:14 +00:00
Mikeal Rogers
af9804e778 fix: intermittent error when asking for interfaces (#137)
Get interfaces only once per run
2020-12-28 09:49:48 +00:00
Jacob Heun
e9e1f56b87 chore: release version v0.15.1 v0.15.1 2020-08-11 15:35:36 +02:00
Jacob Heun
dee839efa5 chore: update contributors 2020-08-11 15:35:36 +02:00
Alex Potsides
8ff9f607b0 chore: update deps (#136)
Updates to the latest mafmt which has the latest multiaddr
2020-08-11 15:34:44 +02:00
Alex Potsides
f17525a9b2 chore: update deps (#135)
Pulls in the latest interface module that depends on modules that
use Uint8Arrays in place of node Buffers.
2020-08-10 13:28:55 +02:00
Jacob Heun
b524848352 chore: release version v0.15.0 v0.15.0 2020-08-07 18:09:07 +02:00
Jacob Heun
926a99caea chore: update contributors 2020-08-07 18:09:06 +02:00
Alex Potsides
d9f9912dac chore: update deps (#134)
* chore: update deps

Upgrades to the latest multiaddrs with Uint8Arrays

Also removes redundant deps.

BREAKING CHANGES:

- The multiaddr dep used by this module returns Uint8Arrays and may
  not be compatible with previous versions

* chore: update utils

* chore: remove gh dep url
2020-08-07 18:07:34 +02:00
Jacob Heun
82b99076d0 chore: release version v0.14.6 v0.14.6 2020-07-17 12:37:16 +02:00
Jacob Heun
6590651e97 chore: update contributors 2020-07-17 12:37:16 +02:00
Jacob Heun
5757c7ea11 chore: update dependencies (#133)
* chore: update dependencies

This includes a memory leak fix in stream-to-it 0.2.1

* chore: update stream-to-it

* chore: remove bundlesize from CI, it's for browser support
2020-07-17 12:34:55 +02:00
Jacob Heun
562b3adf1f chore: release version v0.14.5 v0.14.5 2020-04-28 14:46:01 +02:00
Jacob Heun
eac9129bc0 chore: update contributors 2020-04-28 14:46:01 +02:00
Jacob Heun
0fe0815514 fix: catch error from maConn.close (#128) 2020-04-28 14:34:37 +02:00
Jacob Heun
2bc2b36050 chore: release version v0.14.4 v0.14.4 2020-02-24 18:22:49 +01:00
Jacob Heun
f4f3e8529b chore: update contributors 2020-02-24 18:22:48 +01:00
dependabot-preview[bot]
3a127fca4c chore(deps-dev): bump sinon from 8.1.1 to 9.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 8.1.1 to 9.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v8.1.1...v9.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-19 08:21:22 -05:00
dependabot-preview[bot]
0c4269cdc2 chore(deps-dev): bump aegir from 20.6.1 to 21.0.2 (#125)
Bumps [aegir](https://github.com/ipfs/aegir) from 20.6.1 to 21.0.2.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ipfs/aegir/compare/v20.6.1...v21.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 07:57:52 -05:00
dependabot-preview[bot]
40f4cb6bb7 chore(deps-dev): bump sinon from 7.5.0 to 8.1.1 (#120)
Bumps [sinon](https://github.com/sinonjs/sinon) from 7.5.0 to 8.1.1.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v7.5.0...v8.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 14:14:08 +01:00
Alex Potsides
62728769d3 fix: remove use of assert module (#123)
The polyfill is big, we can simulate it by throwing an Error and it doesn't work under React Native.
2020-02-14 14:13:03 +01:00
Jacob Heun
86db568cd8 fix: catch thrown maConn errors in listener (#122)
When upgrading sockets to MultiaddConnections, it's possible for an error to be thrown.
This can crash the application if a client disconnects prior to the listener
uprading the socket, as is likely occurring in #121. Errors will now be caught and logged
when attempting to upgrade the socket.
2020-02-14 14:12:30 +01:00
Jacob Heun
0c2d84e395 chore: release version v0.14.3
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.14.3
2019-12-20 09:02:38 -08:00
Jacob Heun
13fb6ba6e4 chore: update contributors 2019-12-20 09:02:37 -08:00
Vasco Santos
21f87476f6 fix: transport should not handle connection if upgradeInbound throws (#119) 2019-12-20 08:33:36 -08:00
Jacob Heun
657d3e6f4a chore: release version v0.14.2
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.14.2
2019-12-06 10:09:04 +01:00
Jacob Heun
162c605bf5 chore: update contributors 2019-12-06 10:09:03 +01:00
Jacob Heun
d76a1f27e7 feat: add path multiaddr support (#118)
* chore: update deps
* test: skip paths on windows
2019-12-06 09:42:43 +01:00
Jacob Heun
7702646cfa fix(log): log the bound port and host (#117) 2019-10-02 16:49:13 +02:00
Vasco Santos
7c977d3cb1 chore: use libp2p utils for ip port to multiaddr (#116) 2019-09-24 16:35:40 +02:00
Jacob Heun
524acbe372 chore: release version v0.14.1
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.14.1
2019-09-20 13:43:27 +02:00
Jacob Heun
1b210e71c0 chore: update contributors 2019-09-20 13:43:27 +02:00
Jacob Heun
a385f0eb34 docs: add upgrader to readme example (#114) 2019-09-20 13:42:11 +02:00
Jacob Heun
605ee279ae fix: ensure timeline.close is set (#113)
* fix(test): dns4 isnt a valid tcp multiaddr

It should be resolved first

* fix: ensure timeline.close is set on the multiaddrConn

* chore: add docs to gitignore

They are generated and uploaded on release
2019-09-19 15:20:54 +02:00
Jacob Heun
872e15af46 chore: release version v0.14.0
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.14.0
2019-09-16 17:27:16 +02:00
Jacob Heun
0aba4f8611 chore: update contributors 2019-09-16 17:27:15 +02:00
Alan Shaw
cf7d1b8501 feat: change api to async / await (#112)
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await. The API has also been updated according to the latest `interface-transport` version, https://github.com/libp2p/interface-transport/tree/v0.6.0#api.
2019-09-16 17:19:47 +02:00
Jacob Heun
49c7f33375 chore: release version v0.13.1
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.13.1
2019-08-08 13:27:01 +02:00
Jacob Heun
89bceb461f chore: update contributors 2019-08-08 13:27:01 +02:00
Jacob Heun
44f9e32d07 chore: update deps (#110)
* chore: add node 12 to travis
* test: just use spec files
2019-08-08 12:48:13 +02:00
Vasco Santos
c26cc70c65 chore: add discourse badge (#106) 2019-04-26 17:44:28 +02:00
Linus Unnebäck
3ab43a3604 chore: prefer const over let (#99)
Prefer const over let when the binding is static, in order to comply with an upcoming Standard rule.
2018-10-31 08:35:55 +00:00
Jacob Heun
3aad2ed243 chore: release version v0.13.0
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.13.0
2018-09-12 19:40:49 +02:00
Jacob Heun
01cfbda2e7 chore: update contributors 2018-09-12 19:40:49 +02:00
Jacob Heun
eba0b48744 feat: add support for dialing over dns
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2018-09-12 19:38:02 +02:00
Jacob Heun
a0c23e49f7 chore: release version v0.12.1
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
v0.12.1
2018-07-31 14:13:11 +02:00
Jacob Heun
66ab208182 chore: update contributors 2018-07-31 14:13:10 +02:00
Jacob Heun
168d111158 chore: update deps and fix test runner
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2018-07-31 14:08:31 +02:00
TomCoded
4b04b17dfa fix: invalid ip address and daemon can be crashed by remote user
Per the nodeJS documentation, a Net socket.remoteAddress value may
be undefined if the socket is destroyed, as by a client disconnect.
A multiaddr cannot be created for an invalid IP address (such as
the undefined remote address of a destroyed socket). Currently
the attempt results in a crash that can be triggered remotely. This
commit catches the exception in get-multiaddr and returns an
undefined value to listener rather than throwing an exception when
trying to process defective or destroyed socket data. Listener then
terminates processing of the incoming p2p connections that generate
this error condition.

fixes: https://github.com/libp2p/js-libp2p-tcp/issues/93
fixes: https://github.com/ipfs/js-ipfs/issues/1447
2018-07-31 13:51:27 +02:00