Update libp2p to ESM version (#4114)

* WIP

* Revert eslint changes

* Revert dependency update

* Revert dependencies

* Revert yarn.lock

* Update yarn.lock

* Update noise

* Fix lint errors

* Update discv5

* Fix linter errors

* Fix check-types

* Fix up libp2p connection manager handling

* Update gossipsub

* Add import statement

* Use upstream GossipsubEvents type

* Remove stray lint disable comment

* Only ping a single peer when it connects

* Update gossipsub

* libp2p-gossipsub 3.5.0

* Use libp2p-noise 7.0.3

* Use @libp2p/mplex 4.0.3

* Fix write heap dump in libp2p esm branch (#4387)

* Remove 'require' check in writeHeapDump

* Fix BELLATRIX_FORK_EPOCH

* Update libp2p dependencies

* Bump libp2p

* Fix heap memory issue

* Fix some tests

* Fix type error

* Fix req/resp 'index out of bounds' issue

* Fix linter errors

* Add libp2p metrics and dashboard

* Update gossipsub and set max outbound buffer size

* Update @libp2p/tcp

* Update uint8arrays

* v0.0.0

* Lint libp2p grafana dashboard

* Add leveldown dev dependency

* Set msgIdToStrFn to Buffer.toString

* Do not set udp to enr (#4591)

* Fix e2e reqresp test

* Fix lint

* Fix unit tests

* Update yarn.lock after merge

* Update libp2p

Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: tuyennhv <tuyen@chainsafe.io>
This commit is contained in:
Cayman
2022-09-27 19:56:01 +02:00
committed by GitHub
parent 1beeb2bc71
commit c2377f2de1
105 changed files with 2616 additions and 1647 deletions

View File

@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2019",
"lib": ["es2020", "esnext.bigint", "es2020.string", "es2020.symbol.wellknown"],
"lib": ["es2020", "esnext.bigint", "es2020.string", "es2020.symbol.wellknown", "dom"],
"module": "esnext",
"moduleResolution": "node",