Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Conversation

@coder11
Copy link
Contributor

@coder11 coder11 commented Aug 12, 2022

In the PR single package is split into multi package monorepo manages by pnpm. The core FluenceJS no longer depends on the exact implementations for libp2p and keypair related stuff. Instead necessary functionality was interfaced away and taken out to separate packages.

The new package structure is:

  • @fluencelabs/fluence - the main package as before the update.
  • @fluencelabs/interfaces - common interfaces for FluenceJS
  • @fluencelabs/connection - connectivity layer, i.e FluenceConnection
  • @fluencelabs/keypair - implementation of keypair

pnpm takes care of the monorepo pretty well. Basically you just prefix the dependency with workspace: and then specify the version as you normally would. pnpm will figure out the appropriate source for the package and use it accordingly. Also it makes releases very simple by replacing the prefix with the appropriate version when creating packages.

These changes are needed for the subsequent update to libp2p v0.37.x as well as adding more tests for different environments in future.

@linear
Copy link

linear bot commented Aug 12, 2022

@coder11
Copy link
Contributor Author

coder11 commented Aug 12, 2022

Will become non-draft once the CI work

@coder11 coder11 requested review from folex, nahsi and shamsartem August 12, 2022 16:55

on:
workflow_dispatch:
push:
Copy link
Contributor

@nahsi nahsi Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a snapshot on every push to github? Perhaps it would be better to set it to workflow_dispatch and use that when you need a snapshot?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are pushing to our internal registry I think it would be harmless. It's kind tedious when you are integrating your changes (e.g into aqua-playground ) and have to trigger the workflow for every commit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided to leave it as is for now

coder11 and others added 2 commits August 24, 2022 17:50
Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
Co-authored-by: Anatoly Laskaris <github_me@nahsi.dev>
@coder11 coder11 merged commit 16fdbce into master Aug 24, 2022
@coder11 coder11 deleted the DXJ-85 branch August 24, 2022 15:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants