metamask-extension
metamask-extension copied to clipboard
chore: update `sass` to v1.71.0
Updates Sass
Updates sass to the latest version, while also switching to sass-embedded (maintained by the same team, is faster than sass, and we don't need to patch it anymore!).
Moves fonts
This PR also moves the fonts directory to be relative to the CSS file that imports it. This helps with two things:
- its just nice to use real relative paths to files that are using them while developing (not just in the final build)
- the webpack build will work differently: it requires all the imports to use relative paths (there is a hack I can put in place to not require relative paths, but meh. I don't want to do that :-) ).
Use @use for the design-system instead of @import
The biggest change in this PR is moving towards the use of @use and away from @import, which is slated to be completely removed by SASS in some distance future release.
Bonus savings!
This PR also fixes a the duplication of CSS, as the design-system previously included actual CSS (colors, fonts, and font-awesome styles) and reduces the output size from ~1700KB to ~1300KB. The issue with that some devs were already @useing the design-system, which was re-including its all of its rules (mentioned above).
⚠️ Changes How We Write SCSS
So, from now on, if someone wants to use something from the design-system they'll need to put @use design-system"; at the top of the SCSS file.
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
d3f0a32) 68.46% compared to head (b3e98b2) 68.46%. Report is 27 commits behind head on develop.
:exclamation: Current head b3e98b2 differs from pull request most recent head 3792d32. Consider uploading reports for the commit 3792d32 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## develop #22531 +/- ##
========================================
Coverage 68.46% 68.46%
========================================
Files 1089 1089
Lines 43045 43045
Branches 11469 11469
========================================
Hits 29469 29469
Misses 13576 13576
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Builds ready [504a580]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (536 ± 283 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 66 | 240 | 115 | 60 | 29 |
| domContentLoaded | 9 | 183 | 51 | 63 | 30 | ||
| load | 48 | 1578 | 536 | 590 | 283 | ||
| domInteractive | 9 | 183 | 51 | 63 | 30 |
Bundle size diffs
- background: 0 Bytes (0.00%)
- ui: 0 Bytes (0.00%)
- common: 0 Bytes (0.00%)
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@types/[email protected], npm/[email protected]
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎
This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.
Ignoring: npm/[email protected]
Next steps
Take a deeper look at the dependency
Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.
Remove the package
If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.
Mark a package as acceptable risk
To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all
Builds ready [7fed5b1]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (429 ± 196 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 85 | 201 | 150 | 36 | 17 |
| domContentLoaded | 10 | 100 | 39 | 28 | 13 | ||
| load | 52 | 1127 | 429 | 409 | 196 | ||
| domInteractive | 10 | 100 | 39 | 28 | 13 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 2.33 KiB (0.07%)
- ui: 0 Bytes (0.00%)
- common: 0 Bytes (0.00%)
Builds ready [e70ef4b]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (441 ± 204 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 97 | 188 | 160 | 28 | 13 |
| domContentLoaded | 9 | 92 | 45 | 28 | 13 | ||
| load | 52 | 1089 | 441 | 424 | 204 | ||
| domInteractive | 9 | 92 | 45 | 28 | 13 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 2.33 KiB (0.07%)
- ui: 0 Bytes (0.00%)
- common: 0 Bytes (0.00%)
Builds ready [b3e98b2]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (708 ± 370 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 68 | 165 | 108 | 29 | 14 |
| domContentLoaded | 10 | 63 | 30 | 19 | 9 | ||
| load | 54 | 1844 | 708 | 770 | 370 | ||
| domInteractive | 10 | 63 | 30 | 19 | 9 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 2.33 KiB (0.07%)
- ui: 0 Bytes (0.00%)
- common: 0 Bytes (0.00%)
Builds ready [2d9797e]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (1036 ± 406 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 84 | 236 | 143 | 44 | 21 |
| domContentLoaded | 17 | 77 | 41 | 21 | 10 | ||
| load | 56 | 1958 | 1036 | 845 | 406 | ||
| domInteractive | 17 | 77 | 41 | 21 | 10 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 2.33 KiB (0.06%)
- ui: 0 Bytes (0.00%)
- common: 0 Bytes (0.00%)
@SocketSecurity ignore npm/[email protected]