Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

chore: update deps #114

Merged
merged 4 commits into from
Apr 13, 2021
Merged

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Apr 7, 2021

Updating all the dependencies and removing protons in favour of protobufjs for smaller bundles and avoiding bundle problems with web-encoding. This follows the work that is in progress in libp2p to use protobufjs everywhere.

Needs:

@vasco-santos vasco-santos force-pushed the chore/update-deps-and-remove-protons branch from e497bc1 to 8e5c200 Compare April 7, 2021 19:59
@vasco-santos vasco-santos force-pushed the chore/update-deps-and-remove-protons branch from af1955f to a474cf4 Compare April 8, 2021 16:46
@@ -0,0 +1 @@
export const { Buffer } = require('buffer')
Copy link

Choose a reason for hiding this comment

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

probably should include the "buffer" dependency too I guess

Copy link

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

sgtm once the git dep is resolved

@rvagg rvagg mentioned this pull request Apr 10, 2021
77 tasks
package.json Outdated
@@ -9,11 +9,11 @@
"test": "aegir test",
"test:node": "aegir test -t node",
"test:browser": "aegir test -t browser",
"build": "aegir build",
"build": "aegir build --no-types",
Copy link
Member

Choose a reason for hiding this comment

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

Don't we want types?

Copy link
Member Author

Choose a reason for hiding this comment

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

we want types, but we are not adding types to all libp2p modules for the time being: libp2p/js-libp2p#659

We are focusing first on guarantee that libp2p provides types for the user surface area, which is essentially libp2p + libp2p-interfaces. Slowly, we should roll up the remaining modules, as some libp2p modules (including this) also need libp2p and libp2p-interfaces to have types, as libp2p is provided to the modules.

Copy link
Member Author

Choose a reason for hiding this comment

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

Either way, once I release interfaces I can add types here as this should be super fast

steps:
- uses: actions/checkout@v2
- run: npm install
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- run: npx aegir test -t browser -t webworker --bail -- --browsers FirefoxHeadless
- run: npx aegir test -t browser -t webworker --bail -- --browser firefox

Otherwise this will run on chromium

with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx nyc --reporter=lcov aegir test -t node -- --bail
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- run: npx nyc --reporter=lcov aegir test -t node -- --bail
- run: npx aegir test -t node --cov --bail

No need for nyc

- uses: actions/checkout@v2
- run: npm install
- run: npx aegir lint
- run: npx aegir dep-check -- -i wrtc -i electron-webrtc
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- run: npx aegir dep-check -- -i wrtc -i electron-webrtc
- run: npx aegir dep-check

No need to ignore wrtc and electron-webrtc

@vasco-santos vasco-santos marked this pull request as ready for review April 12, 2021 11:27
@vasco-santos vasco-santos force-pushed the chore/update-deps-and-remove-protons branch from a5e5191 to 9461f61 Compare April 12, 2021 11:28
@vasco-santos vasco-santos merged commit 251bac0 into master Apr 13, 2021
@vasco-santos vasco-santos deleted the chore/update-deps-and-remove-protons branch April 13, 2021 07:46
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.

3 participants