Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Upgrade deps (config 2.0, monorepo betas, typedoc) #93

Merged
merged 3 commits into from
Oct 30, 2020
Merged

Conversation

ryanio
Copy link
Contributor

@ryanio ryanio commented Oct 27, 2020

This PR upgrades deps across the repo in preparation for bringing into the ethereumjs-vm monorepo.

@coveralls
Copy link

coveralls commented Oct 27, 2020

Coverage Status

Coverage decreased (-0.9%) to 86.347% when pulling 5336e83 on upgrade-deps into a4393ac on master.

project: ['./tsconfig.json']
},
rules: {
'@typescript-eslint/no-floating-promises': 'off',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There seems to be some floating promises that I didn't have the time to resolve yet, I didn't want to make too broad changes from sync to async funcs. The primary problem for this seems to be the addPeer promise in a few places.

},
rules: {
'@typescript-eslint/no-floating-promises': 'off',
'no-redeclare': 'off'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I turned this off for now as the only problem here was duplication of names in the "export namespace" for ETH, LES.

It seems like we can solve this with setting ignoreDeclarationMerge to true, but that option seems to only be available in the rule for typescript-eslint/no-redeclare where here we are using the base no-redeclare and I didn't want to add the typescript-eslint module just to add that rule. The config would look something like this:

{
  // note you must disable the base rule as it can report incorrect errors
  "no-redeclare": "off",
  "@typescript-eslint/no-redeclare": ["error", { ignoreDeclarationMerge: true } ]
}

https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-redeclare.md

@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #93 into master will decrease coverage by 1.28%.
The diff coverage is 72.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
- Coverage   84.61%   83.33%   -1.29%     
==========================================
  Files          15       15              
  Lines        1261     1158     -103     
  Branches      198      191       -7     
==========================================
- Hits         1067      965     -102     
- Misses         72       73       +1     
+ Partials      122      120       -2     
Impacted Files Coverage Δ
src/rlpx/ecies.ts 90.23% <ø> (-0.52%) ⬇️
src/eth/index.ts 85.00% <50.00%> (-1.37%) ⬇️
src/rlpx/peer.ts 74.80% <50.00%> (-2.20%) ⬇️
src/les/index.ts 82.24% <66.66%> (-1.24%) ⬇️
src/util.ts 82.53% <66.66%> (-0.80%) ⬇️
src/dpt/dpt.ts 84.61% <100.00%> (-2.40%) ⬇️
src/dpt/kbucket.ts 90.62% <100.00%> (-1.69%) ⬇️
src/dpt/message.ts 82.43% <100.00%> (+1.35%) ⬆️
src/dpt/server.ts 86.31% <100.00%> (-1.07%) ⬇️
src/rlpx/rlpx.ts 79.67% <100.00%> (-1.81%) ⬇️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54263f2...b1c08ee. Read the comment docs.

@ryanio ryanio requested a review from holgerd77 October 29, 2020 18:59
Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

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

LGTM, great stuff! 😄

@holgerd77 holgerd77 merged commit fe414c0 into master Oct 30, 2020
@holgerd77 holgerd77 deleted the upgrade-deps branch October 30, 2020 13:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants