ChainSafe / js-libp2p-yamux

Typescript implementation of Yamux
Other
10 stars 8 forks source link

refactor: make components and logger optional #70

Closed paralin closed 5 months ago

paralin commented 7 months ago

In previous releases of yamux the following was supported:

import { yamux } from '@chainsafe/libp2p-yamux'
const muxer = yamux()()

Now the following is required:

import { yamux } from '@chainsafe/libp2p-yamux'
const muxer = yamux()({logger: ...})

Adjust the code to support passing an empty logger and an empty Components.

Fixes #69

paralin commented 5 months ago

I give up on this and will just pass a stub Log from now on.