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-api
project to use the updated[email protected]
library. 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 thedist
folder are no longer supported or recommended.The update ensures compatibility with the new version of
rsk-utils
and aligns with the library's improved structure and API. Once the imports are updated, all functionalities depending onrsk-utils
must be thoroughly tested to confirm everything works as expected.Steps:
Replace all instances of direct imports from the
dist
folder (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-api
that depend onrsk-utils
to verify functionality after the update.Resolve any issues or incompatibilities arising from the library upgrade.
Acceptance Criteria:
dist
in thersk-explorer-api
codebase are replaced with imports from the public API ofrsk-utils
.rsk-explorer-api
dependent onrsk-utils
are tested and verified to work as expected.[email protected]
.Impact:
This task ensures that the
rsk-explorer-api
project uses the latest version ofrsk-utils
without relying on deprecated or unsupported import paths, improving maintainability and compatibility.