Draft
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Collaborator
Author
|
do not merge until |
Collaborator
Author
8d76151 to
5480534
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description:
This task involves updating the import statements in the
rsk-explorer-apiproject to use the updatedrsk-utils@2.0.0library. The new version introduces support for both ESM and CommonJS modules and follows modern best practices for module exports. As a result, direct imports from thedistfolder are no longer supported or recommended.The update ensures compatibility with the new version of
rsk-utilsand aligns with the library's improved structure and API. Once the imports are updated, all functionalities depending onrsk-utilsmust be thoroughly tested to confirm everything works as expected.Steps:
Replace all instances of direct imports from the
distfolder (e.g.,@rsksmart/rsk-utils/dist/addresses) with proper imports from the library's public API.Ensure all imports follow the recommended structure, such as:
import { isAddress } from '@rsksmart/rsk-utils';Test all features and modules in
rsk-explorer-apithat depend onrsk-utilsto verify functionality after the update.Resolve any issues or incompatibilities arising from the library upgrade.
Acceptance Criteria:
distin thersk-explorer-apicodebase are replaced with imports from the public API ofrsk-utils.rsk-explorer-apidependent onrsk-utilsare tested and verified to work as expected.rsk-utils@2.0.0.Impact:
This task ensures that the
rsk-explorer-apiproject uses the latest version ofrsk-utilswithout relying on deprecated or unsupported import paths, improving maintainability and compatibility.