Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce light-client dependency on api #6542

Open
jeluard opened this issue Mar 13, 2024 · 0 comments
Open

Reduce light-client dependency on api #6542

jeluard opened this issue Mar 13, 2024 · 0 comments

Comments

@jeluard
Copy link
Member

jeluard commented Mar 13, 2024

api is pretty big and depends indirectly on a number of NodeJS specifics (via eventsource).

Specific consideration regarding EventSource: it is about to be merged in node.

ligth-client depends on api for the following API:

  • import {type Api, ApiError, routes} from "@lodestar/api";
  • import {Api, ApiError} from "@lodestar/api";
  • import {getClient} from "@lodestar/api";

Figure out a way to ensure that those API do not drag the whole api package and it's dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant