-
Notifications
You must be signed in to change notification settings - Fork 484
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
Support broader range of dependency versions #758
base: testing-min-dependencies
Are you sure you want to change the base?
Changes from all commits
ebdcf4d
1833cf0
9bfa616
591df88
156e4b0
15f272b
284967f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,32 +46,32 @@ | |
}, | ||
"homepage": "https://github.com/ethereum/solc-js#readme", | ||
"dependencies": { | ||
"command-exists": "^1.2.8", | ||
"commander": "^8.1.0", | ||
"follow-redirects": "^1.12.1", | ||
"js-sha3": "0.8.0", | ||
"memorystream": "^0.3.1", | ||
"semver": "^5.5.0", | ||
"tmp": "0.0.33" | ||
"command-exists": ">=1.1.0", | ||
"commander": ">=8.0.0 <12.0.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Versions Versions |
||
"follow-redirects": ">=1.0.0", | ||
"js-sha3": ">=0.8.0", | ||
"memorystream": ">=0.3.0", | ||
"semver": ">=5.0.0", | ||
"tmp": ">=0.0.26" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.11.7", | ||
"@types/semver": "^7.3.9", | ||
"@types/tape": "^4.13.2", | ||
"@types/tmp": "^0.2.3", | ||
"@typescript-eslint/eslint-plugin": "^5.8.0", | ||
"@typescript-eslint/parser": "^5.8.0", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.1.1", | ||
"nyc": "^15.1.0", | ||
"tape": "^4.11.0", | ||
"tape-spawn": "^1.4.2", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.5.4" | ||
"@types/node": ">=16.11.7", | ||
"@types/semver": ">=7.1.0", | ||
"@types/tape": ">=4.2.27", | ||
"@types/tmp": ">=0.2.0", | ||
"@typescript-eslint/eslint-plugin": ">=5.0.0 <6.0.0", | ||
"@typescript-eslint/parser": ">=5.0.0 <6.0.0", | ||
"coveralls": ">=3.0.0", | ||
"eslint": ">=7.12.1 <8.0.0", | ||
"eslint-config-standard": ">=16.0.3 <17.0.0", | ||
"eslint-plugin-import": ">=2.25.0", | ||
"eslint-plugin-node": ">=11.1.0", | ||
"eslint-plugin-promise": ">=5.0.0 <7.0.0", | ||
"nyc": ">=15.0.0", | ||
"tape": ">=4.11.0", | ||
"tape-spawn": ">=1.0.0", | ||
"ts-node": ">=10.0.0", | ||
"typescript": ">=4.2.2 <5.0.0" | ||
Comment on lines
+62
to
+74
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typescript, eslint and their plugins here are restricted only because they have issues on node.js 12 and 14. There are failures due to the use of Not sure how to handle this. I guess node.js 12 and 14 are past EOL now so it may be ok to just remove the restriction. The issue is that our tests fail, so we would have to patch Another possibility might be to just drop official v12 and v14 support. |
||
}, | ||
"nyc": { | ||
"exclude": [ | ||
|
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.
Note that I replaced
^
with>=
in all version ranges. I'm still on the fence whether that's a good idea or whether I should always put a<
there to keep major version updates manual:Pros of
>=
:solc-js
to use old versions too (or do hacky workarounds).>=
forces the update on us by default and we can always restrict with<
as needed.package.json
. And that's only a concern for the devs of the app, not its users. It may only happen when devs update their dependencies - outside of that the installed versions are locked viapackage-lock.json
.Cons of
>=
:npm
will stay unlimited forever and eventually stop working with latest versions of dependencies because one of them will inevitably introduce an actual breaking change. This may confuse someone trying to add a dependency on an older version of solc-js to their app.