mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-07-01 21:31:52 +00:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
8661c09b69 | |||
f9e329708d | |||
af9804e778 | |||
e9e1f56b87 | |||
dee839efa5 | |||
8ff9f607b0 | |||
f17525a9b2 | |||
b524848352 | |||
926a99caea | |||
d9f9912dac |
54
CHANGELOG.md
54
CHANGELOG.md
@ -1,3 +1,57 @@
|
||||
<a name="0.15.2"></a>
|
||||
## [0.15.2](https://github.com/libp2p/js-libp2p-tcp/compare/v0.14.2...v0.15.2) (2020-12-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* catch error from maConn.close ([#128](https://github.com/libp2p/js-libp2p-tcp/issues/128)) ([0fe0815](https://github.com/libp2p/js-libp2p-tcp/commit/0fe0815))
|
||||
* catch thrown maConn errors in listener ([#122](https://github.com/libp2p/js-libp2p-tcp/issues/122)) ([86db568](https://github.com/libp2p/js-libp2p-tcp/commit/86db568)), closes [#121](https://github.com/libp2p/js-libp2p-tcp/issues/121)
|
||||
* intermittent error when asking for interfaces ([#137](https://github.com/libp2p/js-libp2p-tcp/issues/137)) ([af9804e](https://github.com/libp2p/js-libp2p-tcp/commit/af9804e))
|
||||
* remove use of assert module ([#123](https://github.com/libp2p/js-libp2p-tcp/issues/123)) ([6272876](https://github.com/libp2p/js-libp2p-tcp/commit/6272876))
|
||||
* transport should not handle connection if upgradeInbound throws ([#119](https://github.com/libp2p/js-libp2p-tcp/issues/119)) ([21f8747](https://github.com/libp2p/js-libp2p-tcp/commit/21f8747))
|
||||
|
||||
|
||||
### Chores
|
||||
|
||||
* update deps ([#134](https://github.com/libp2p/js-libp2p-tcp/issues/134)) ([d9f9912](https://github.com/libp2p/js-libp2p-tcp/commit/d9f9912))
|
||||
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
|
||||
<a name="0.15.1"></a>
|
||||
## [0.15.1](https://github.com/libp2p/js-libp2p-tcp/compare/v0.15.0...v0.15.1) (2020-08-11)
|
||||
|
||||
|
||||
|
||||
<a name="0.15.0"></a>
|
||||
# [0.15.0](https://github.com/libp2p/js-libp2p-tcp/compare/v0.14.6...v0.15.0) (2020-08-07)
|
||||
|
||||
|
||||
### Chores
|
||||
|
||||
* update deps ([#134](https://github.com/libp2p/js-libp2p-tcp/issues/134)) ([d9f9912](https://github.com/libp2p/js-libp2p-tcp/commit/d9f9912))
|
||||
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
|
||||
<a name="0.14.6"></a>
|
||||
## [0.14.6](https://github.com/libp2p/js-libp2p-tcp/compare/v0.14.5...v0.14.6) (2020-07-17)
|
||||
|
||||
|
19
package.json
19
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libp2p-tcp",
|
||||
"version": "0.14.6",
|
||||
"version": "0.15.2",
|
||||
"description": "Node.js implementation of the TCP module that libp2p uses, which implements the interface-connection and interface-transport interfaces",
|
||||
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
|
||||
"main": "src/index.js",
|
||||
@ -34,10 +34,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"aegir": "^25.0.0",
|
||||
"chai": "^4.2.0",
|
||||
"dirty-chai": "^2.0.1",
|
||||
"libp2p-interfaces": "^0.3.1",
|
||||
"it-pipe": "^1.1.0",
|
||||
"libp2p-interfaces": "^0.4.0",
|
||||
"sinon": "^9.0.0",
|
||||
"streaming-iterables": "^5.0.2"
|
||||
},
|
||||
@ -46,9 +44,9 @@
|
||||
"class-is": "^1.1.0",
|
||||
"debug": "^4.1.1",
|
||||
"err-code": "^2.0.0",
|
||||
"libp2p-utils": "^0.1.2",
|
||||
"mafmt": "^7.1.0",
|
||||
"multiaddr": "^7.5.0",
|
||||
"libp2p-utils": "^0.2.0",
|
||||
"mafmt": "^8.0.0",
|
||||
"multiaddr": "^8.0.0",
|
||||
"stream-to-it": "^0.2.2"
|
||||
},
|
||||
"contributors": [
|
||||
@ -56,18 +54,19 @@
|
||||
"Jacob Heun <jacobheun@gmail.com>",
|
||||
"Stephen Whitmore <stephen.whitmore@gmail.com>",
|
||||
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
|
||||
"Alex Potsides <alex@achingbrain.net>",
|
||||
"Vasco Santos <vasco.santos@moxy.studio>",
|
||||
"Richard Littauer <richard.littauer@gmail.com>",
|
||||
"Tom White <tomtinkerer@gmail.com>",
|
||||
"Alan Shaw <alan@tableflip.io>",
|
||||
"Pedro Teixeira <i@pgte.me>",
|
||||
"Prashanth Chandra <coolshanth94@gmail.com>",
|
||||
"João Antunes <j.goncalo.antunes@gmail.com>",
|
||||
"Alex Potsides <alex@achingbrain.net>",
|
||||
"Diogo Silva <fsdiogo@gmail.com>",
|
||||
"Dmitriy Ryajov <dryajov@gmail.com>",
|
||||
"Drew Stone <drewstone329@gmail.com>",
|
||||
"Evan Schwartz <evan.mark.schwartz@gmail.com>",
|
||||
"Linus Unnebäck <linus@folkdatorn.se>"
|
||||
"Linus Unnebäck <linus@folkdatorn.se>",
|
||||
"Mikeal Rogers <mikeal.rogers@gmail.com>",
|
||||
"Pedro Teixeira <i@pgte.me>"
|
||||
]
|
||||
}
|
||||
|
@ -29,8 +29,9 @@ function isAnyAddr (ip) {
|
||||
* @param {string} family One of ['IPv6', 'IPv4']
|
||||
* @returns {string[]} an array of ip address strings
|
||||
*/
|
||||
const networks = os.networkInterfaces()
|
||||
function getNetworkAddrs (family) {
|
||||
return Object.values(os.networkInterfaces()).reduce((addresses, netAddrs) => {
|
||||
return Object.values(networks).reduce((addresses, netAddrs) => {
|
||||
netAddrs.forEach(netAddr => {
|
||||
// Add the ip of each matching network interface
|
||||
if (netAddr.family === family) addresses.push(netAddr.address)
|
||||
|
@ -1,10 +1,7 @@
|
||||
/* eslint-env mocha */
|
||||
'use strict'
|
||||
|
||||
const chai = require('chai')
|
||||
const dirtyChai = require('dirty-chai')
|
||||
const expect = chai.expect
|
||||
chai.use(dirtyChai)
|
||||
const { expect } = require('aegir/utils/chai')
|
||||
const TCP = require('../src')
|
||||
const multiaddr = require('multiaddr')
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
/* eslint-env mocha */
|
||||
'use strict'
|
||||
|
||||
const chai = require('chai')
|
||||
const dirtyChai = require('dirty-chai')
|
||||
const expect = chai.expect
|
||||
chai.use(dirtyChai)
|
||||
const { expect } = require('aegir/utils/chai')
|
||||
const TCP = require('../src')
|
||||
const multiaddr = require('multiaddr')
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
/* eslint-env mocha */
|
||||
'use strict'
|
||||
|
||||
const chai = require('chai')
|
||||
const dirtyChai = require('dirty-chai')
|
||||
const expect = chai.expect
|
||||
chai.use(dirtyChai)
|
||||
const { expect } = require('aegir/utils/chai')
|
||||
const TCP = require('../src')
|
||||
const net = require('net')
|
||||
const os = require('os')
|
||||
|
Reference in New Issue
Block a user