c7e923a812
fix: remove peer routing search-for-self
...
The peer routing module starts a recurring process that searches for
peers close to our peer id.
This makes the DHT module query the network for peers. Thing is the
DHT module is already doing this because periodically searching for
peers close to us is in the DHT spec so this ends up making redundant
queries.
This PR removes the recurring task configured by the peer routing module.
2021-12-06 19:15:20 +00:00
ae21299ade
chore: release version v0.35.1
v0.35.1
2021-12-03 16:24:14 +00:00
149120bebc
chore: update contributors
2021-12-03 16:24:13 +00:00
91c2ec9856
fix: do not let closest peers run forever ( #1047 )
...
The DHT takes a `signal` not a timeout so if a timeout is passed,
create a `TimeoutController` that will abort the query after the
timeout.
2021-12-03 15:47:30 +00:00
6d0ac819f1
chore: release version v0.35.0
v0.35.0
2021-12-02 10:44:07 +00:00
15a0b1dbf2
chore: update contributors
2021-12-02 10:44:07 +00:00
9cbf36fcb5
chore: update peer id and libp2p crypto ( #1042 )
...
BREAKING CHANGE: requires node 15+
2021-12-02 10:11:23 +00:00
3a9d5f64d9
fix: stop dht before connection manager ( #1041 )
...
Stop the dht before the connection manager, otherwise in-flight eviction pings fail and we move on to the next one when we should just abort them all.
Also pulls in the fix from #1039 and splits the auto-dialler out from the connection manager as during shutdown it can get into a weird state where it's simultaneously killing and creating connections so stop auto-dialling things before we cause connections to dip below the low watermark by killing existing connections.
Fixes: https://github.com/ipfs/js-ipfs/issues/3923
2021-11-30 18:07:57 +00:00
eacd7e8f76
chore: update deps ( #1038 )
2021-11-26 16:00:47 +00:00
7f2cc4dc44
chore(deps-dev): bump ipfs-http-client from 52.0.5 to 54.0.2 ( #1035 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-26 14:26:26 +00:00
5cc5a8749a
chore: release version v0.34.0
v0.34.0
2021-11-25 16:49:46 +00:00
ee60e18213
chore: update contributors
2021-11-25 16:49:46 +00:00
a4a2fac41e
chore: node_modules is not required
2021-11-25 16:48:41 +00:00
2f598eba09
feat: update dht ( #1009 )
...
Changes dht creation to use factory function and updates docs
BREAKING CHANGE: libp2p-kad-dht has a new event-based API which is exposed as `_dht`
2021-11-25 16:32:19 +00:00
443a102528
docs: minor corrections to discovery-mechanisms readme ( #1030 )
2021-11-21 23:18:45 +01:00
3bed7b4cb2
chore: update aegir ( #1027 )
...
Updates aegir, fixes all new linting errors.
2021-11-19 08:02:24 +00:00
3fb424914f
chore: fix examples ( #1026 )
...
Uses npm to install deps for examples.
We can put yarn back when we remove `node-fetch@2.x` from ipfs-utils, or when
yarn can download tarball dependencies reliably.
This either needs:
1. https://github.com/node-fetch/node-fetch/pull/1172 merging
2. Swap node-fetch for undici
3. Drop CJS support (node-fetch 3 has the above fix but is ESM-only)
2021-11-19 07:26:38 +00:00
bb0ca28195
docs: update connection link in API docs ( #1024 )
...
Fixes #1018
The issue was caused when the repo [js-libp2p-interfaces](https://github.com/libp2p/js-libp2p-interfaces ) was renamed and refactored in this [commit](946348f7f8
)
2021-11-16 15:55:00 +00:00
01a8b8da9b
chore: example docs for auto-relay with correct port
2021-11-12 10:50:11 +01:00
77d7cb8f08
fix: private ip ts compile has no call signatures ( #1020 )
2021-11-12 10:34:44 +01:00
a335fda852
docs: fix datastore link ( #999 )
2021-09-27 12:42:53 +02:00
43e3af0c12
chore: add migration guide to 0.33 ( #997 )
2021-09-24 11:33:59 +02:00
2c9c3cf6d5
chore: release version v0.33.0
v0.33.0
2021-09-24 10:32:46 +02:00
4d6587539c
chore: update contributors
2021-09-24 10:32:45 +02:00
83734ef520
chore: update datastore ( #990 )
...
`interface-datastore` now only contains the interface definition,
`datastore-core` has the various implementations.
BREAKING CHANGE: datastore implementations provided to libp2p must be compliant with interface-datastore@6.0.0
2021-09-24 10:24:29 +02:00
1c2e4d89ac
chore: release version v0.32.5
v0.32.5
2021-09-21 09:47:01 +02:00
c635b08d2f
chore: update contributors
2021-09-21 09:47:01 +02:00
3aedf55115
chore(deps): bump es6-promisify from 6.1.1 to 7.0.0 ( #974 )
...
Bumps [es6-promisify](https://github.com/mikehall314/es6-promisify ) from 6.1.1 to 7.0.0.
- [Release notes](https://github.com/mikehall314/es6-promisify/releases )
- [Commits](https://github.com/mikehall314/es6-promisify/compare/v6.1.1...v7.0.0 )
---
updated-dependencies:
- dependency-name: es6-promisify
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-21 09:40:36 +02:00
ede653cad9
chore(deps-dev): bump into-stream from 6.0.0 to 7.0.0 ( #972 )
...
Bumps [into-stream](https://github.com/sindresorhus/into-stream ) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/sindresorhus/into-stream/releases )
- [Commits](https://github.com/sindresorhus/into-stream/compare/v6.0.0...v7.0.0 )
---
updated-dependencies:
- dependency-name: into-stream
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-21 09:39:58 +02:00
2ab811d708
chore(deps-dev): bump libp2p-kad-dht from 0.23.4 to 0.24.2 ( #991 )
...
Bumps [libp2p-kad-dht](https://github.com/libp2p/js-libp2p-kad-dht ) from 0.23.4 to 0.24.2.
- [Release notes](https://github.com/libp2p/js-libp2p-kad-dht/releases )
- [Changelog](https://github.com/libp2p/js-libp2p-kad-dht/blob/master/CHANGELOG.md )
- [Commits](https://github.com/libp2p/js-libp2p-kad-dht/compare/v0.23.4...v0.24.2 )
---
updated-dependencies:
- dependency-name: libp2p-kad-dht
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-21 09:39:25 +02:00
122c89dd0d
fix: move abortable-iterator to dependencies ( #992 )
...
fix #986
2021-09-21 09:36:37 +02:00
97107c4ef7
chore: update datastore usage in CONFIGURATION.md ( #982 )
...
Co-authored-by: Vasco Santos <vasco.santos@ua.pt >
2021-08-31 11:51:51 +02:00
d3f78edffe
chore(deps-dev): bump ipfs-http-client from 50.1.2 to 52.0.2 ( #973 )
...
Bumps [ipfs-http-client](https://github.com/ipfs/js-ipfs ) from 50.1.2 to 52.0.2.
- [Release notes](https://github.com/ipfs/js-ipfs/releases )
- [Changelog](https://github.com/ipfs/js-ipfs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@50.1.2...ipfs-http-client@52.0.2 )
---
updated-dependencies:
- dependency-name: ipfs-http-client
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-26 12:28:44 +02:00
f8e3cf10b0
chore: add dependabot ( #968 )
2021-08-26 12:02:28 +02:00
f342c1ff50
docs: update package list ( #969 )
2021-08-26 12:02:17 +02:00
fe63990a16
chore: libp2p interop job needs exit for aegir ( #971 )
2021-08-26 11:19:13 +02:00
e82b6e414b
chore: release version v0.32.4
v0.32.4
2021-08-20 09:25:15 +02:00
1d62ead8e5
chore: update contributors
2021-08-20 09:25:14 +02:00
3d25ff7fd0
chore: use new libp2p-noise
2021-08-20 09:13:21 +02:00
0f389a7828
chore: update uint8arrays
2021-08-20 09:13:21 +02:00
9f0582f372
chore: remove unused dev dep ( #966 )
2021-08-19 09:38:39 +02:00
266f2c3c86
chore: release version v0.32.3
v0.32.3
2021-08-16 18:20:41 +02:00
7783edb059
chore: update contributors
2021-08-16 18:20:40 +02:00
ba2b4d4b28
fix: uint8arrays is a dep ( #964 )
2021-08-16 17:54:24 +02:00
06c3a6d407
chore: release version v0.32.2
v0.32.2
2021-08-13 17:02:52 +02:00
833f789714
chore: update contributors
2021-08-13 17:02:51 +02:00
ef24fabf02
feat: custom protocol name ( #962 )
...
Co-authored-by: mzdws <8580712+mzdws@user.noreply.gitee.com >
2021-08-13 16:21:50 +02:00
3b33fb4b73
fix: browser example ci
2021-08-12 15:15:13 +02:00
a07fb7960b
chore: update action setup node
2021-08-12 15:15:13 +02:00
b11126ca89
chore: release version v0.32.1
v0.32.1
2021-07-22 11:51:39 +02:00