Skip to content

Bump NPM deps#305

Merged
michelemin merged 9 commits into
developfrom
bump-npm-depss
Dec 10, 2025
Merged

Bump NPM deps#305
michelemin merged 9 commits into
developfrom
bump-npm-depss

Conversation

@RensR
Copy link
Copy Markdown
Collaborator

@RensR RensR commented Dec 2, 2025

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

  • fix codeowners by removing core-solidity as root owner while making them owner of the gethwrappers
  • Resolve the To be removed once the first PR with this package is merged comment in the CRE go.mod

Comment thread .github/CODEOWNERS

# Root
* @smartcontractkit/foundations @smartcontractkit/core @smartcontractkit/bix-framework @smartcontractkit/core-solidity
* @smartcontractkit/foundations @smartcontractkit/core @smartcontractkit/bix-framework
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Syntax to define these has changed, ./ prefixed no longer works

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 2, 2025

Static analysis results are available

Hey @RensR, you can view Slither reports in the job summary here or download them as artifact here.
Please check them before merging and make sure you have addressed all issues.

"gas-increment-by-one": "off",
"gas-small-strings": "off",
"gas-strict-inequalities": "off",
"gas-indexed-events": "off",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Turn off most new rules to not break CI

@RensR RensR marked this pull request as ready for review December 10, 2025 15:11
Copilot AI review requested due to automatic review settings December 10, 2025 15:11
@RensR RensR requested review from a team as code owners December 10, 2025 15:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

Comment thread contracts/package.json
/// @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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
Contributor

@augustbleeds augustbleeds left a comment

Choose a reason for hiding this comment

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

approving the solhint comment (Cache contract)

@michelemin michelemin merged commit ae0445e into develop Dec 10, 2025
52 of 53 checks passed
@michelemin michelemin deleted the bump-npm-depss branch December 10, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants