Skip to content
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

chore: remove unused safe-core-sdk dependencies #3547

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

dasanra
Copy link
Contributor

@dasanra dasanra commented Apr 11, 2024

What it solves

Removes legacy safe-core-sdk dependencies lowering significantly node_modules folder size and dependency install time.

How this PR fixes it

Removes dependencies that are not longer used, as they were part of the legacy safe-core-sdk.
Also bumped few type versions to ensure maximum compatibility on build time, as with older versions was entering an infinite loop.

Copy link

github-actions bot commented Apr 11, 2024

Copy link

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link

📦 Next.js Bundle Analysis for safe-wallet-web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 1005.72 KB (🟡 +6.47 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twenty-five Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/address-book 27.52 KB (🟡 +8 B) 1.01 MB
/apps 46.59 KB (🟢 -1.46 KB) 1.03 MB
/apps/custom 38.21 KB (🟢 -1.46 KB) 1.02 MB
/apps/open 75.01 KB (🟢 -1.46 KB) 1.06 MB
/balances 29.91 KB (🟡 +8 B) 1.01 MB
/balances/nfts 20.43 KB (🟡 +2 B) 1 MB
/home 53.67 KB (🟢 -1.46 KB) 1.03 MB
/licenses 5 KB (🟡 +2 B) 1010.71 KB
/new-safe/create 32.34 KB (🟢 -16 B) 1.01 MB
/new-safe/load 18.49 KB (🟢 -5 B) 1 MB
/settings/appearance 8.38 KB (🟡 +3 B) 1014.1 KB
/settings/cookies 7.58 KB (🟡 +1 B) 1013.3 KB
/settings/data 7.48 KB (🟡 +1 B) 1013.2 KB
/settings/modules 9.57 KB (🟡 +1 B) 1015.29 KB
/settings/notifications 28.01 KB (🟡 +6 B) 1.01 MB
/settings/safe-apps 21.86 KB (🟢 -1.46 KB) 1 MB
/settings/security-login 30.48 KB (🟡 +7 B) 1.01 MB
/settings/setup 32.08 KB (🟡 +6 B) 1.01 MB
/share/safe-app 10.66 KB (🟡 +1 B) 1016.38 KB
/transactions 101.59 KB (🟢 -168 B) 1.08 MB
/transactions/history 101.55 KB (🟢 -170 B) 1.08 MB
/transactions/messages 61.33 KB (🟡 +4 B) 1.04 MB
/transactions/queue 57.03 KB (🟡 +3 B) 1.04 MB
/transactions/tx 46.38 KB (🟡 +2 B) 1.03 MB
/welcome/social-login 7.09 KB (🟢 -1 B) 1012.81 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 79.09% 11194/14154
🔴 Branches 58.52% 2649/4527
🟡 Functions 66.03% 1802/2729
🟢 Lines 80.37% 10087/12551

Test suite run success

1419 tests passing in 198 suites.

Report generated by 🧪jest coverage report action from e396959

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

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

Thanks @dasanra!

@katspaugh katspaugh merged commit e343626 into dev Apr 11, 2024
14 checks passed
@katspaugh katspaugh deleted the chore-remove-unused-dependencies branch April 11, 2024 13:26
Copy link

gitpoap-bot bot commented Apr 11, 2024

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2024 Safe Contributor:

GitPOAP: 2024 Safe Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants