Bump NPM deps#305
Conversation
|
|
||
| # Root | ||
| * @smartcontractkit/foundations @smartcontractkit/core @smartcontractkit/bix-framework @smartcontractkit/core-solidity | ||
| * @smartcontractkit/foundations @smartcontractkit/core @smartcontractkit/bix-framework |
There was a problem hiding this comment.
Removed as core-solidity only owns Solidity related folder, not the top level which is largely Go based files.
| @@ -1,4 +1,4 @@ | |||
| # Test files run with a different solhint ruleset, ignore them here. | |||
| ./**/*.t.sol | |||
| **/*.t.sol | |||
There was a problem hiding this comment.
Syntax to define these has changed, ./ prefixed no longer works
| "gas-increment-by-one": "off", | ||
| "gas-small-strings": "off", | ||
| "gas-strict-inequalities": "off", | ||
| "gas-indexed-events": "off", |
There was a problem hiding this comment.
Turn off most new rules to not break CI
36f9a08 to
367c4e9
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates NPM dependencies across the project, most notably upgrading solhint from v5.2.0 to v6.0.1, which enabled new linting rules by default. The PR addresses this by removing unused imports and disabling most new gas optimization rules in solhint configuration files. Additionally, it includes miscellaneous cleanup: updating CODEOWNERS to add core-solidity as owner of gethwrappers while removing them as root owner, resolving a temporary comment in the CRE go.mod, and updating solhintignore patterns.
- Bumped various NPM dependencies including @changesets/cli, TypeScript tooling, and solhint
- Disabled new default solhint gas optimization rules and removed unused imports
- Updated CODEOWNERS and resolved temporary go.mod replacement
Reviewed changes
Copilot reviewed 16 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updated @changesets/cli from 2.28.1 to 2.29.7 |
| contracts/package.json | Updated multiple dev dependencies and reorganized dependency lists, removing test script |
| contracts/cre/package.json | Moved dependencies between devDependencies and dependencies sections, updated versions |
| contracts/cre/gobindings/go.mod | Replaced local module replacement with actual version reference |
| contracts/src/v0.8/data-feeds/DataFeedsCache.sol | Added solhint disable comment for gas-calldata-parameters rule |
| contracts/cre/src/workflow/v2/CapabilitiesRegistry.sol | Added solhint disable comment for gas-calldata-parameters rule |
| contracts/cre/src/keystone/test/CapabilitiesRegistry_GetHashedCapabilityIdTest.t.sol | Removed unused imports |
| contracts/cre/src/keystone/test/CapabilitiesRegistry_AddCapabilitiesTest.t.sol | Removed unused import |
| contracts/cre/src/keystone/CapabilitiesRegistry.sol | Reordered imports and removed duplicate |
| contracts/cre/.solhintignore-test | Simplified ignore patterns removing ./ prefix |
| contracts/cre/.solhintignore | Simplified ignore patterns removing ./ and .**/ prefixes |
| contracts/.solhintignore-test | Simplified ignore patterns and removed keystone directory entry |
| contracts/.solhintignore | Simplified ignore patterns removing ./ prefix |
| contracts/.solhint.json | Added multiple disabled gas optimization rules |
| contracts/.solhint-test.json | Added multiple disabled gas optimization rules |
| .github/CODEOWNERS | Removed core-solidity from root ownership, added as owner of gethwrappers |
Files not reviewed (3)
- contracts/cre/pnpm-lock.yaml: Language not supported
- contracts/pnpm-lock.yaml: Language not supported
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| /// @notice Checks to see if this data ID, msg.sender, workflow owner, and workflow name are permissioned | ||
| /// @param dataId The data ID for the feed | ||
| /// @param workflowMetadata workflow metadata | ||
| // solhint-disable-next-line gas-calldata-parameters |
augustbleeds
left a comment
There was a problem hiding this comment.
approving the solhint comment (Cache contract)
This PR bumps various NPM dependencies. One of them, solhint, turned on a lot of new rules by default. Some of the issues are fixed (unused imports) but most new rules are simply turned off. Owners of Solidity code should review which rules should be enabled for them.
The PR also does some misc stuff
To be removed once the first PR with this package is mergedcomment in the CRE go.mod