-
Notifications
You must be signed in to change notification settings - Fork 42
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
chore: upgrade libp2p
& related deps
#1471
chore: upgrade libp2p
& related deps
#1471
Conversation
size-limit report 📦
|
…de-libp2p-and-related
…de-libp2p-and-related
…re/upgrade-libp2p-and-related
Failing CI check to be solved by #1476 |
…0.0 (#1479) Bumps [eslint-plugin-functional](https://github.com/eslint-functional/eslint-plugin-functional) from 5.0.8 to 6.0.0. - [Release notes](https://github.com/eslint-functional/eslint-plugin-functional/releases) - [Changelog](https://github.com/eslint-functional/eslint-plugin-functional/blob/main/CHANGELOG.md) - [Commits](eslint-functional/eslint-plugin-functional@v5.0.8...v6.0.0) --- updated-dependencies: - dependency-name: eslint-plugin-functional dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe upgrade @libp2p/websockets
while you're here.
@@ -84,12 +84,10 @@ export function selectConnection( | |||
let latestConnection: Connection | undefined; | |||
|
|||
connections.forEach((connection) => { | |||
if (connection.stat.status === "OPEN") { | |||
if (connection.status === "open") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do they export an enum we could use here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConnectionStatus
is a type
but no enum
unfortunately
export type ConnectionStatus = 'open' | 'closing' | 'closed'
* use `peer:identify` instead of `peer:update` * dial the peer after initialising peer-exchange
Bumps [@libp2p/websockets](https://github.com/libp2p/js-libp2p) from 6.0.3 to 7.0.3. - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json) - [Commits](libp2p/js-libp2p@peer-record-v6.0.3...websockets-v7.0.3) --- updated-dependencies: - dependency-name: "@libp2p/websockets" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
already upgraded with 5ad0210 |
6ff8414
to
e8770c9
Compare
2fa9729
to
1fcd6ac
Compare
This reverts commit bb6608e.
* chore: update noise * update: package.lock * update: @chainsafe/libp2p-gossipsub * rm unwanted libp2p interface deps & bump up libp2p * refactor code for new deps * update: new package.lock * update package.lock * fix build * chore(deps)(deps-dev): bump eslint-plugin-functional from 5.0.8 to 6.0.0 (#1479) Bumps [eslint-plugin-functional](https://github.com/eslint-functional/eslint-plugin-functional) from 5.0.8 to 6.0.0. - [Release notes](https://github.com/eslint-functional/eslint-plugin-functional/releases) - [Changelog](https://github.com/eslint-functional/eslint-plugin-functional/blob/main/CHANGELOG.md) - [Commits](eslint-functional/eslint-plugin-functional@v5.0.8...v6.0.0) --- updated-dependencies: - dependency-name: eslint-plugin-functional dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(peer-exchange): refactor/fix compliance test (#1478) * use `peer:identify` instead of `peer:update` * dial the peer after initialising peer-exchange * re-enable @waku/tests (#1472) * chore(deps)(deps): bump @libp2p/websockets from 6.0.3 to 7.0.3 (#1481) Bumps [@libp2p/websockets](https://github.com/libp2p/js-libp2p) from 6.0.3 to 7.0.3. - [Release notes](https://github.com/libp2p/js-libp2p/releases) - [Changelog](https://github.com/libp2p/js-libp2p/blob/master/.release-please.json) - [Commits](libp2p/js-libp2p@peer-record-v6.0.3...websockets-v7.0.3) --- updated-dependencies: - dependency-name: "@libp2p/websockets" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * import type for interface * update: tsdoc (#1476) * fix imports for merge * update typedoc exports * add: CustomEvent import * use new libp2p interface --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
how is this PR so massive? -45,000 lines??? |
Problems
New versions for deps like
were introduced which rely on a breaking change from libp2p to be upgraded to
0.46.3
and improvements like deprecation of certain one-off interface packages are replaced with new exports.Solutions
This PR:
0.46.3
)interface
packages fromlibp2p
and replaces them with new exportsNotes
Part of the maintenance milestone.
aegir
as a dev dep ontests
because of bug: broken @libp2p/interface-compliance-tests libp2p/js-libp2p#1974if we use the former package it works (because it installed
aegir
as a dependency instead of a dev) but we should move out to the new package because the former has not been updated in months/maintained anymore