mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-07-21 19:41:58 +00:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
aec8e3d3bb | ||
|
3abf4aeb35 | ||
|
a36b2112aa | ||
|
8d3b61710a | ||
|
5dbbeef311 | ||
|
3e7594f697 | ||
|
ce2a624a09 |
19
CHANGELOG.md
19
CHANGELOG.md
@@ -1,3 +1,22 @@
|
|||||||
|
## [0.30.7](https://github.com/libp2p/js-libp2p/compare/v0.30.6...v0.30.7) (2021-02-01)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* do not add observed address received from peers ([#882](https://github.com/libp2p/js-libp2p/issues/882)) ([a36b211](https://github.com/libp2p/js-libp2p/commit/a36b2112aafcee309a02de0cff5440cf69cd53a7))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [0.30.6](https://github.com/libp2p/js-libp2p/compare/v0.30.5...v0.30.6) (2021-01-29)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* peer discovery type in config ([#878](https://github.com/libp2p/js-libp2p/issues/878)) ([3e7594f](https://github.com/libp2p/js-libp2p/commit/3e7594f69733bf374b374a6065458fa6cae81c5f))
|
||||||
|
* unref nat manager retries ([#877](https://github.com/libp2p/js-libp2p/issues/877)) ([ce2a624](https://github.com/libp2p/js-libp2p/commit/ce2a624a09b3107c0b2b4752e666804ecea54fb5))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.30.5](https://github.com/libp2p/js-libp2p/compare/v0.30.4...v0.30.5) (2021-01-28)
|
## [0.30.5](https://github.com/libp2p/js-libp2p/compare/v0.30.4...v0.30.5) (2021-01-28)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "libp2p",
|
"name": "libp2p",
|
||||||
"version": "0.30.5",
|
"version": "0.30.7",
|
||||||
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",
|
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",
|
||||||
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
|
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
|
@@ -202,9 +202,9 @@ class IdentifyService {
|
|||||||
this.peerStore.protoBook.set(id, protocols)
|
this.peerStore.protoBook.set(id, protocols)
|
||||||
this.peerStore.metadataBook.set(id, 'AgentVersion', uint8ArrayFromString(message.agentVersion))
|
this.peerStore.metadataBook.set(id, 'AgentVersion', uint8ArrayFromString(message.agentVersion))
|
||||||
|
|
||||||
// TODO: Score our observed addr
|
// TODO: Add and score our observed addr
|
||||||
log('received observed address of %s', observedAddr)
|
log('received observed address of %s', observedAddr)
|
||||||
this.addressManager.addObservedAddr(observedAddr)
|
// this.addressManager.addObservedAddr(observedAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -51,9 +51,6 @@ const { updateSelfPeerRecord } = require('./record/utils')
|
|||||||
* @typedef {Object} PeerStoreOptions
|
* @typedef {Object} PeerStoreOptions
|
||||||
* @property {boolean} persistence
|
* @property {boolean} persistence
|
||||||
*
|
*
|
||||||
* @typedef {Object} PeerDiscoveryOptions
|
|
||||||
* @property {boolean} autoDial
|
|
||||||
*
|
|
||||||
* @typedef {Object} RelayOptions
|
* @typedef {Object} RelayOptions
|
||||||
* @property {boolean} enabled
|
* @property {boolean} enabled
|
||||||
* @property {import('./circuit').RelayAdvertiseOptions} advertise
|
* @property {import('./circuit').RelayAdvertiseOptions} advertise
|
||||||
@@ -62,7 +59,7 @@ const { updateSelfPeerRecord } = require('./record/utils')
|
|||||||
*
|
*
|
||||||
* @typedef {Object} Libp2pConfig
|
* @typedef {Object} Libp2pConfig
|
||||||
* @property {Object} [dht] dht module options
|
* @property {Object} [dht] dht module options
|
||||||
* @property {PeerDiscoveryOptions} [peerDiscovery]
|
* @property {Object} [peerDiscovery]
|
||||||
* @property {Pubsub} [pubsub] pubsub module options
|
* @property {Pubsub} [pubsub] pubsub module options
|
||||||
* @property {RelayOptions} [relay]
|
* @property {RelayOptions} [relay]
|
||||||
* @property {Record<string, Object>} [transport] transport options indexed by transport key
|
* @property {Record<string, Object>} [transport] transport options indexed by transport key
|
||||||
|
@@ -138,9 +138,9 @@ class NatManager {
|
|||||||
|
|
||||||
this._client = {
|
this._client = {
|
||||||
// these are all network operations so add a retry
|
// these are all network operations so add a retry
|
||||||
map: (...args) => retry(() => map(...args), { onFailedAttempt: log.error }),
|
map: (...args) => retry(() => map(...args), { onFailedAttempt: log.error, unref: true }),
|
||||||
destroy: (...args) => retry(() => destroy(...args), { onFailedAttempt: log.error }),
|
destroy: (...args) => retry(() => destroy(...args), { onFailedAttempt: log.error, unref: true }),
|
||||||
externalIp: (...args) => retry(() => externalIp(...args), { onFailedAttempt: log.error })
|
externalIp: (...args) => retry(() => externalIp(...args), { onFailedAttempt: log.error, unref: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
return this._client
|
return this._client
|
||||||
|
Reference in New Issue
Block a user