Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Dependencies upgrade and module template sync #601

Merged
merged 16 commits into from
Feb 1, 2024
Merged

Conversation

georgewrmarshall
Copy link
Collaborator

@georgewrmarshall georgewrmarshall commented Feb 1, 2024

Description

This PR aims to update the design token package, which was originally generated from the metamask-module-template. Over time, the package has become outdated and incompatible with mobile and portfolio due to dependency issues, particularly with node versions. This PR addresses these issues by updating the dependencies and aligning the package with the most recent module template using the template sync package.

The upgrade to yarn version 3 also necessitated changes to the GitHub workflow files, which were updated to align with the module template. This alignment should enhance the automation of our releases. Due to the upgraded node and yarn versions, this PR includes numerous other dependency updates, file changes, lint fixes, and the inclusion of config files.

Fixes: #597

Manual Testing Steps

Because mobile and portfolio are using yarn v1 and the design tokens is using v3. It's quite hard to test using yarn link. But if you pull this branch and try to use yarn link on a project that use yarn 3 it will work like the module template.

  1. Clone the https://github.com/MetaMask/metamask-module-template
  2. Pull this branch
  3. Run yarn && yarn build
  4. Back in metamask-module-template
  5. Run yarn link ../path/to/design-tokens
  6. Make sure the design tokens package is in the node_modules folder
  7. import brandColor in to the index.ts file

Other smoke tests

Screencasts/Screenshots

Screencast below shows yarn link version of the design-tokens to the module-template as a test to ensure that the brandColor object in the v1.13 release is importing and working as intended

after1080.mov

Copy link

socket-security bot commented Feb 1, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@aashutoshrathi/[email protected] None 0 10.9 kB aashutoshrathi
npm/@babel/[email protected] environment, filesystem, unsafe Transitive: shell +52 10.8 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment +10 3.38 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, shell +12 2.6 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, shell, unsafe +58 11.2 MB nicolo-ribaudo
npm/@babel/[email protected] unsafe Transitive: environment, filesystem, shell +61 11.2 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment +31 6.81 MB nicolo-ribaudo
npm/@babel/[email protected] None 0 1.88 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, shell, unsafe +58 10.8 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, shell, unsafe +58 11 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment, filesystem, shell, unsafe +61 11.4 MB nicolo-ribaudo
npm/@babel/[email protected] environment Transitive: filesystem, shell, unsafe +160 14.7 MB nicolo-ribaudo
npm/@babel/[email protected] environment, filesystem, unsafe Transitive: shell +72 11.1 MB nicolo-ribaudo
npm/@babel/[email protected] None +1 277 kB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment +15 4.59 MB nicolo-ribaudo
npm/@babel/[email protected] Transitive: environment +30 6.22 MB nicolo-ribaudo
npm/@babel/[email protected] environment +3 2.49 MB nicolo-ribaudo
npm/@cspotcode/[email protected] filesystem +3 295 kB cspotcode
npm/@es-joy/[email protected] None +4 1.7 MB brettz9
npm/@eslint-community/[email protected] None 0 431 kB eslint-community-bot
npm/@eslint/[email protected] filesystem, unsafe Transitive: environment, eval +23 4.33 MB eslintbot
npm/@eslint/[email protected] None 0 13.9 kB eslintbot
npm/@floating-ui/[email protected] None +1 280 kB atomiks
npm/@floating-ui/[email protected] None +2 429 kB atomiks
npm/@floating-ui/[email protected] Transitive: environment +9 3.9 MB atomiks
npm/@floating-ui/[email protected] None 0 72.7 kB atomiks
npm/@gar/[email protected] None 0 4.2 kB gar
npm/@humanwhocodes/[email protected] Transitive: environment +6 181 kB nzakas
npm/@humanwhocodes/[email protected] unsafe 0 21.2 kB nzakas
npm/@humanwhocodes/[email protected] None 0 53.3 kB nzakas
npm/@inquirer/[email protected] Transitive: environment +12 292 kB sboudrias
npm/@inquirer/[email protected] Transitive: environment +10 281 kB sboudrias
npm/@inquirer/[email protected] Transitive: environment +11 289 kB sboudrias
npm/@jest/[email protected] Transitive: environment, filesystem, unsafe +34 4.29 MB simenb
npm/@jest/[email protected] unsafe Transitive: environment, eval, filesystem, network, shell +259 467 MB simenb
npm/@jest/[email protected] Transitive: environment, eval, filesystem, unsafe +39 4.52 MB simenb
npm/@jest/[email protected] None +1 29.6 kB simenb
npm/@jest/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +123 15.9 MB simenb
npm/@jest/[email protected] Transitive: environment, eval, filesystem, unsafe +38 4.51 MB simenb
npm/@jest/[email protected] environment, unsafe Transitive: filesystem, network, shell +128 16.6 MB simenb
npm/@jest/[email protected] Transitive: environment, filesystem +5 308 kB simenb
npm/@jest/[email protected] Transitive: environment, filesystem, unsafe +36 4.31 MB simenb
npm/@jest/[email protected] Transitive: environment, filesystem, network, shell, unsafe +51 4.67 MB simenb
npm/@jridgewell/[email protected] None +4 359 kB jridgewell
npm/@jridgewell/[email protected] None +2 265 kB jridgewell
npm/@lavamoat/[email protected] filesystem Transitive: environment +6 249 kB boneskull
npm/@lavamoat/[email protected] environment, filesystem, shell Transitive: network +112 5.58 MB boneskull
npm/@lavamoat/[email protected] None 0 2.87 kB boneskull
npm/@metamask/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +433 503 MB metamaskbot
npm/@metamask/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +175 32.2 MB metamaskbot
npm/@metamask/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +196 105 MB metamaskbot
npm/@metamask/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +166 30.6 MB metamaskbot
npm/@npmcli/[email protected] environment, network +9 478 kB npm-cli-ops
npm/@npmcli/[email protected] filesystem +2 57.8 kB gar
npm/@npmcli/[email protected] filesystem Transitive: environment +11 99.8 kB gar
npm/@npmcli/[email protected] filesystem 0 1.87 kB lukekarrys
npm/@npmcli/[email protected] environment, shell Transitive: filesystem +2 30.2 kB nlf
npm/@npmcli/[email protected] environment, filesystem Transitive: network, shell +89 4.62 MB npm-cli-ops
npm/@pkgr/[email protected] None 0 8.54 kB jounqin
npm/@sinonjs/[email protected] None +1 80.8 kB mrgnrdrck
npm/@sinonjs/[email protected] eval +2 172 kB fatso83
npm/@storybook/[email protected] None +3 2.49 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] None +9 3.67 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment +4 110 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +249 251 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +354 268 MB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +365 268 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] None +1 12.5 kB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment +8 915 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment +73 2.8 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] None +2 34.8 kB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] None +2 44.8 kB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] None 0 10.1 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment +2 82.2 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] eval Transitive: environment, filesystem, network, shell, unsafe +248 251 MB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +221 237 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +417 703 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval +21 900 kB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +605 290 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] None +1 11.8 kB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +304 37.5 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] environment, eval Transitive: filesystem +112 23 MB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network +55 11.6 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] environment, filesystem, network, unsafe Transitive: eval, shell +152 232 MB shilman
npm/@storybook/[email protected] None +1 99.8 kB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +348 261 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +153 232 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] filesystem Transitive: environment, eval +102 14.8 MB shilman
npm/@storybook/[email protected] eval, filesystem Transitive: environment +98 14.5 MB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +178 233 MB shilman
npm/@storybook/[email protected] environment, network Transitive: eval, filesystem +62 15.4 MB shilman
npm/@storybook/[email protected] None 0 2.56 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] environment 0 168 kB shilman
npm/@storybook/[email protected] None 0 7.21 kB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +363 329 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] network Transitive: environment, eval, filesystem +54 11.6 MB shilman
npm/@storybook/[email protected] None 0 359 kB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment +6 3.52 MB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +501 713 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +204 309 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] environment, eval +17 712 kB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +233 236 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] environment +11 4.23 MB shilman
npm/@storybook/[email protected] Transitive: environment, eval, filesystem +48 10.5 MB shilman
npm/@swc/[email protected] None 0 35.3 MB kdy1
npm/@swc/[email protected] None 0 37.5 MB kdy1
npm/@swc/[email protected] None 0 41.4 MB kdy1
npm/@swc/[email protected] None 0 50.5 MB kdy1
npm/@swc/[email protected] None 0 46.7 MB kdy1
npm/@swc/[email protected] None 0 56.1 MB kdy1
npm/@swc/[email protected] None 0 32.2 MB kdy1
npm/@swc/[email protected] None 0 27.1 MB kdy1
npm/@swc/[email protected] None 0 50 MB kdy1
npm/@swc/[email protected] environment, filesystem, shell +11 377 MB kdy1
npm/@tootallnate/[email protected] None 0 16.3 kB tootallnate
npm/@tsconfig/[email protected] None 0 2.39 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.5 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.39 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.45 kB typescript-deploys
npm/@types/[email protected] Transitive: environment +4 2.51 MB types
npm/@types/[email protected] Transitive: environment +5 4.38 MB types
npm/@types/[email protected] Transitive: environment +4 2.58 MB types
npm/@types/[email protected] None +2 241 kB types
npm/@types/[email protected] None +5 3.61 MB types
npm/@types/[email protected] None 0 5.45 kB types
npm/@types/[email protected] None +1 13.4 kB types
npm/@types/[email protected] None +2 20 kB types
npm/@types/[email protected] Transitive: environment, filesystem, unsafe +43 4.74 MB types
npm/@types/[email protected] None 0 862 kB types
npm/@types/[email protected] None 0 9.71 kB types
npm/@types/[email protected] Transitive: filesystem, network +7 3.86 MB types
npm/@types/[email protected] None 0 3.54 MB types
npm/@types/[email protected] None 0 5.81 kB types
npm/@types/[email protected] None 0 49.8 kB types
npm/@types/[email protected] None 0 3.12 kB types
npm/@types/[email protected] None 0 6.39 kB types
npm/@types/[email protected] None 0 6.43 kB types
npm/@types/[email protected] None 0 6.74 kB types
npm/@types/[email protected] None 0 8.65 kB types
npm/@typescript-eslint/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +118 85.9 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +110 82.7 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +115 83.5 MB jameshenry
npm/@ungap/[email protected] None 0 26.2 kB webreflection
npm/@vue/[email protected] environment, eval +4 3.03 MB yyx990803
npm/@vue/[email protected] environment, eval +5 3.64 MB yyx990803
npm/@vue/[email protected] environment, eval, filesystem, unsafe +12 6.67 MB yyx990803
npm/@vue/[email protected] Transitive: environment, eval +6 3.68 MB yyx990803
npm/@vue/[email protected] environment 0 80 kB yyx990803
npm/[email protected] network +2 54.2 kB fengmk2
npm/[email protected] None 0 22.2 kB kevinbeaty
npm/[email protected] None +2 109 kB phated
npm/[email protected] None 0 8.05 kB iarna
npm/[email protected] Transitive: environment +6 202 kB lukekarrys
npm/[email protected] None 0 12.9 kB qix
npm/[email protected] environment, filesystem 0 172 kB vitaly
npm/[email protected] None 0 3.06 kB sindresorhus
npm/[email protected] Transitive: eval +43 3.04 MB ljharb
npm/[email protected] Transitive: eval +44 3.05 MB ljharb
npm/[email protected] None 0 3.19 kB sindresorhus
npm/[email protected] None 0 20.4 kB ljharb
npm/[email protected] None 0 2.44 MB npmdeque
npm/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +106 15.3 MB simenb
npm/[email protected] filesystem Transitive: environment, eval, shell, unsafe +124 25.8 MB nicolo-ribaudo
npm/[email protected] Transitive: environment +20 4.74 MB simenb
npm/[email protected] Transitive: environment, filesystem, shell, unsafe +62 11.3 MB nicolo-ribaudo
npm/[email protected] Transitive: environment, filesystem, shell, unsafe +63 12.1 MB nicolo-ribaudo
npm/[email protected] Transitive: environment, filesystem, shell, unsafe +62 11.2 MB nicolo-ribaudo
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +72 11 MB simenb
npm/[email protected] filesystem +6 143 kB lukekarrys
npm/[email protected] environment, filesystem Transitive: shell +6 2.37 MB ai
npm/[email protected] None +1 18.5 kB juliangruber
npm/[email protected] environment, filesystem, unsafe Transitive: network, shell +24 208 MB egoist
npm/[email protected] None 0 81.8 kB egoist
npm/[email protected] filesystem Transitive: environment +33 607 kB lukekarrys
npm/[email protected] None 0 1.47 kB tjholowaychuk
npm/[email protected] None 0 1.97 MB caniuse-lite
npm/[email protected] environment 0 11.5 kB knownasilya
npm/[email protected] filesystem 0 12.1 kB npm-cli-ops
npm/[email protected] unsafe 0 5.14 kB simenb
npm/[email protected] None 0 9.23 kB isaacs
npm/[email protected] None 0 363 kB yavorskiys
npm/[email protected] Transitive: environment, filesystem, shell +7 3.07 MB zloirock
npm/[email protected] environment, eval, filesystem 0 1.07 MB zloirock
npm/[email protected] filesystem, unsafe 0 6.25 kB pi0
npm/[email protected] None 0 31.2 kB tehshrike
npm/[email protected] None 0 19.6 kB pi0
npm/[email protected] filesystem, unsafe Transitive: environment, eval +118 14.5 MB rumpl
npm/[email protected] None 0 6.82 kB mathieudutour
npm/[email protected] filesystem 0 8.63 kB doowb
npm/[email protected] None 0 9.75 kB sindresorhus
npm/[email protected] None 0 46 kB simenb
npm/[email protected] environment, filesystem 0 76 kB motdotla
npm/[email protected] None 0 272 kB kilianvalkhof
npm/[email protected] None 0 44.4 kB sindresorhus
npm/[email protected] None +2 398 kB andris
npm/[email protected] None 0 413 kB feedic
npm/[email protected] None 0 12.3 kB achingbrain
npm/[email protected] Transitive: eval +42 3.02 MB ljharb
npm/[email protected] None +2 53.3 kB ljharb
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +89 11.8 MB lydell
npm/[email protected] Transitive: environment, filesystem +8 297 kB ljharb
npm/[email protected] None +1 43.2 kB ljharb
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +92 12.6 MB mysticatea
npm/[email protected] filesystem Transitive: environment, eval, network, shell, unsafe +361 484 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +96 14.1 MB gajus
npm/[email protected] filesystem Transitive: environment, eval, shell, unsafe +103 13.6 MB weiran.zsd
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +92 23.1 MB jounqin
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +89 11.8 MB eslint-community-bot
npm/[email protected] None 0 32.3 kB eslintbot
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +88 11.8 MB eslintbot
npm/[email protected] None +4 1.87 MB eslintbot
npm/[email protected] None +1 1.04 MB michaelficarra
npm/[email protected] None 0 50.2 kB rich_harris
npm/[email protected] Transitive: environment, filesystem +2 20.6 kB doowb
npm/[email protected] Transitive: environment, filesystem, unsafe +42 4.67 MB simenb
npm/[email protected] None 0 37.3 kB sssayegh
npm/[email protected] None 0 52.3 kB luin
npm/[email protected] filesystem +17 508 kB mrmlnc
npm/[email protected] None +1 51.2 kB matteo.collina
npm/[email protected] environment, network, shell +2 45.3 kB bolinfest
npm/[email protected] filesystem, unsafe Transitive: environment, eval, shell +43 4.65 MB mrjoelkemp
npm/[email protected] filesystem Transitive: environment +19 359 kB phated
npm/[email protected] filesystem Transitive: environment +11 141 kB jaredwray
npm/[email protected] None 0 40.1 kB webreflection
npm/[email protected] None 0 746 kB flowtype
npm/[email protected] Transitive: eval +42 3.02 MB ljharb
npm/[email protected] Transitive: environment +8 138 kB gar
npm/[email protected] None 0 4.54 kB sindresorhus
npm/[email protected] environment, network Transitive: filesystem +10 1.12 MB pi0
npm/[email protected] None 0 5.57 kB fisker
npm/[email protected] None 0 13.5 kB wooorm
npm/[email protected] None +2 27.5 kB phated
npm/[email protected] Transitive: environment, filesystem +9 79.7 kB jonschlinkert
npm/[email protected] environment, filesystem +7 66.8 kB phated
npm/[email protected] None 0 812 kB mattpauldavies
npm/[email protected] filesystem Transitive: environment, eval +4 4.45 MB jaylinski
npm/[email protected] Transitive: eval +5 121 kB ljharb
npm/[email protected] None +1 38.2 kB ljharb
npm/[email protected] None 0 3.02 kB tarruda
npm/[email protected] environment, filesystem +1 14 kB doowb
npm/[email protected] None 0 5.94 kB sindresorhus
npm/[email protected] filesystem, unsafe Transitive: environment, eval, network, shell +100 19.4 MB evilebottnawi
npm/[email protected] None 0 35.9 kB kornel
npm/[email protected] network Transitive: environment +4 106 kB tootallnate
npm/[email protected] None +1 10.5 kB dead_horse
npm/[email protected] None 0 51.5 kB kael
npm/[email protected] None 0 679 kB leebyron
npm/[email protected] None 0 9.3 kB isaacs
npm/[email protected] Transitive: eval +12 329 kB ljharb
npm/[email protected] None 0 2.94 kB watson
npm/[email protected] None 0 34.4 kB oss-bot
npm/[email protected] Transitive: environment, filesystem, shell, unsafe +55 10.9 MB oss-bot
npm/[email protected] filesystem +4 101 kB oss-bot
npm/[email protected] Transitive: filesystem +6 408 kB oss-bot
npm/[email protected] environment Transitive: filesystem, shell +18 236 kB simenb
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +180 17.2 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +272 467 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +230 465 MB simenb
npm/[email protected] Transitive: environment +6 236 kB simenb
npm/[email protected] None +1 12.9 kB simenb
npm/[email protected] Transitive: environment, filesystem +14 3.92 MB simenb
npm/[email protected] unsafe Transitive: environment, eval, filesystem +40 4.53 MB simenb
npm/[email protected] None 0 3.85 kB simenb
npm/[email protected] filesystem Transitive: environment, shell +15 501 kB rbardini
npm/[email protected] unsafe Transitive: environment +5 118 kB simenb
npm/[email protected] Transitive: environment +7 263 kB simenb
npm/[email protected] Transitive: environment, filesystem, unsafe +32 4.25 MB simenb
npm/[email protected] None +6 3.67 MB simenb
npm/[email protected] Transitive: environment, filesystem, network, shell, unsafe +45 4.75 MB arcanis
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +123 15.9 MB simenb
npm/[email protected] environment, unsafe Transitive: filesystem, network, shell +45 4.75 MB simenb
npm/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +182 17.3 MB simenb
npm/[email protected] unsafe Transitive: environment, eval, filesystem, network, shell +172 17.1 MB simenb
npm/[email protected] eval Transitive: environment, filesystem, network, shell, unsafe +122 15.9 MB simenb
npm/[email protected] Transitive: environment +13 3.78 MB simenb
npm/[email protected] environment, shell +4 3.62 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +274 467 MB simenb
npm/[email protected] environment, filesystem 0 14 kB egoist
npm/[email protected] None 0 229 kB jsdoc-type-pratt-parser
npm/[email protected] None 0 23.2 kB lukeed
npm/[email protected] filesystem 0 19.3 kB antonk52
npm/[email protected] None 0 17.1 kB egoist
npm/[email protected] None 0 20.1 kB jdalton
npm/[email protected] None 0 75.8 kB jdalton
npm/[email protected] None +1 485 kB antfu
npm/[email protected] environment, network Transitive: filesystem +58 2.02 MB gar
npm/[email protected] Transitive: environment +4 755 kB probablyup
npm/[email protected] environment +1 375 kB isaacs
npm/[email protected] None 0 54.5 kB ljharb
npm/[email protected] None +1 19.6 kB isaacs
npm/[email protected] environment, network +6 600 kB gar
npm/[email protected] None +1 18.5 kB isaacs
npm/[email protected] None +1 21.8 kB isaacs
npm/[email protected] None +1 139 kB isaacs
npm/[email protected] None +7 46.5 kB sindresorhus
npm/[email protected] None 0 6.51 kB isaacs
npm/[email protected] None 0 5.63 kB lauriro
npm/[email protected] network 0 718 kB pi0
npm/[email protected] environment, shell Transitive: filesystem, network +82 4.56 MB lukekarrys
npm/[email protected] environment +1 28.7 kB gar
npm/[email protected] None 0 3.58 kB npm-cli-ops
npm/[email protected] Transitive: environment +17 361 kB lukekarrys
npm/[email protected] None 0 97.2 kB ljharb
npm/[email protected] Transitive: eval +43 3.05 MB ljharb
npm/[email protected] None +6 161 kB gkz
npm/[email protected] None 0 5.96 kB doowb
npm/[email protected] None 0 30.8 kB pi0
npm/[email protected] None +1 9.59 kB typicode
npm/[email protected] None +2 3.07 MB bhough, mxstbr, nikgraf
npm/[email protected] environment, unsafe Transitive: filesystem, shell +35 452 MB ai
npm/[email protected] Transitive: environment, filesystem +8 495 kB evilebottnawi
npm/[email protected] Transitive: environment, filesystem +6 450 kB evilebottnawi
npm/[email protected] None +2 209 kB evilebottnawi
npm/[email protected] environment, filesystem +2 227 kB ai
npm/[email protected] Transitive: environment, filesystem, unsafe +34 12 MB matzkoh
npm/[email protected] Transitive: environment +3 107 kB simenb
npm/[email protected] None 0 5.21 kB lukekarrys
npm/[email protected] None 0 3.04 kB iarna
npm/[email protected] None +2 60 kB achingbrain
npm/[email protected] None 0 33.5 kB google-wombot
npm/[email protected] filesystem Transitive: environment, shell, unsafe +69 11.5 MB danez
npm/[email protected] environment 0 24 kB gnoff
npm/[email protected] filesystem 0 5.16 kB lukekarrys
npm/[email protected] filesystem +2 22.1 kB lukekarrys
npm/[email protected] None 0 27.9 kB benjamn
npm/[email protected] Transitive: eval +12 275 kB ljharb
npm/[email protected] None 0 3.74 kB mattdesl
npm/[email protected] Transitive: environment, filesystem +9 79.7 kB phated
npm/[email protected] None 0 20.9 kB lukeed
npm/[email protected] None 0 32.2 kB tim-kos
npm/[email protected] environment, filesystem +2 2.37 MB lukastaegert
npm/[email protected] None 0 6.6 kB sboudrias
npm/[email protected] filesystem +1 5.88 MB sassbot
npm/[email protected] None 0 4.05 kB substack
npm/[email protected] None +2 55.4 kB redonkulus
npm/[email protected] Transitive: eval +8 176 kB ljharb
npm/[email protected] None 0 138 kB joshglazebrook
npm/[email protected] network Transitive: environment +6 399 kB kikobeats
npm/[email protected] network +2 304 kB joshglazebrook
npm/[email protected] Transitive: filesystem +29 658 kB keithamus
npm/[email protected] filesystem, unsafe +1 87.5 kB linusu
npm/[email protected] None +3 50.5 kB kemitchell
npm/[email protected] None 0 3.37 kB kemitchell
npm/[email protected] None 0 11.8 kB kemitchell
npm/[email protected] None +1 52.3 kB nlf
npm/[email protected] unsafe +1 17.9 kB isaacs
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +606 290 MB ndelangen, shilman, usulpro
npm/[email protected] None 0 4.46 kB mafintosh
npm/[email protected] None +1 46.5 kB matteo.collina
npm/[email protected] Transitive: eval +42 3.02 MB ljharb
npm/[email protected] Transitive: eval +42 3.02 MB ljharb
npm/[email protected] Transitive: environment, filesystem, shell, unsafe +40 4.66 MB alangpierce
npm/[email protected] None +2 18.4 kB sindresorhus
npm/[email protected] Transitive: environment, eval, filesystem, shell +84 395 MB kdy1
npm/[email protected] None 0 32.1 kB fluffynuts
npm/[email protected] environment +2 147 kB jounqin
npm/[email protected] Transitive: environment, eval, filesystem, shell +71 17.4 MB evilebottnawi
npm/[email protected] environment, eval Transitive: filesystem, shell +8 2.78 MB fabiosantoscode
npm/[email protected] None +2 36.7 kB dead_horse
npm/[email protected] None +1 30.1 kB dead_horse
npm/[email protected] None 0 125 kB tscanlin
npm/[email protected] None +1 356 kB sebmaster
npm/[email protected] shell 0 7.82 kB wmhilton
npm/[email protected] None 0 68 kB dsagal2
npm/[email protected] environment, filesystem, unsafe Transitive: eval, network, shell +278 468 MB kul
npm/[email protected] environment, filesystem, unsafe Transitive: shell +29 451 MB blakeembrey
npm/[email protected] environment, filesystem, unsafe +4 355 kB jonaskello
npm/[email protected] environment, eval, filesystem Transitive: network, shell, unsafe +172 882 MB egoist
npm/[email protected] None 0 68.8 MB typescript-bot
npm/[email protected] environment, eval, filesystem 0 1.28 MB alexlamsl
npm/[email protected] None +2 18 kB lukekarrys
npm/[email protected] None +1 14.5 kB lukekarrys
npm/[email protected] None 0 4.67 kB ryanzim
npm/[email protected] filesystem Transitive: environment +2 315 kB antfu
npm/[email protected] Transitive: environment +9 2.08 MB kashey
npm/[email protected] environment, filesystem, unsafe 0 18.2 kB cspotcode
npm/[email protected] filesystem, unsafe +5 333 kB oss-bot
npm/[email protected] None 0 19.3 kB domenic
npm/[email protected] None +3 154 kB d3viant0ne, evilebottnawi, glenjamin
npm/[email protected] Transitive: environment, eval, filesystem, shell +71 17.4 MB evilebottnawi, jhnns, sokra, ...1 more
npm/[email protected] Transitive: eval +14 319 kB ljharb
npm/[email protected] environment Transitive: filesystem +1 18.4 kB npm-cli-ops
npm/[email protected] environment, network 0 141 kB lpinca
npm/[email protected] None 0 6.31 kB sindresorhus

🚮 Removed packages: npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@jridgewell/[email protected], npm/@jridgewell/[email protected], npm/@lavamoat/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@metamask/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@storybook/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

socket-security bot commented Feb 1, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
Shell access npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
New author npm/@npmcli/[email protected]
Deprecated npm/@npmcli/[email protected]
  • Reason: This functionality has been moved to @npmcli/fs
New author npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
New author npm/[email protected]
Network access npm/@npmcli/[email protected]
Network access npm/@npmcli/[email protected]
Network access npm/@npmcli/[email protected]
Network access npm/@npmcli/[email protected]
Network access npm/@npmcli/[email protected]
New author npm/[email protected]
New author npm/@npmcli/[email protected]
New author npm/[email protected]
Install scripts npm/@lavamoat/[email protected]
  • Install script: preinstall
  • Source: echo "Don't run npm lifecycle scripts by default! Create a .yarnrc or .npmrc and set enableScripts: false. Then, whitelist them with @lavamoat/allow-scripts" && exit 1
New author npm/@lavamoat/[email protected]
New author npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
New author npm/@lavamoat/[email protected]
New author npm/[email protected]
New author npm/[email protected]
Deprecated npm/[email protected]
  • Reason: Breaking node 16
New author npm/[email protected]
Shell access npm/@lavamoat/[email protected]
New author npm/@lavamoat/[email protected]

View full report↗︎

Next steps

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is a deprecated package?

The maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.

Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

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

@metamaskbot
Copy link
Collaborator

Builds ready [42e9e0c]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [899f18a]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [7cca0b9]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [55c3be3]

Storybook: Storybook

Comment on lines +10 to +16
"@storybook/addon-actions",
"@storybook/react-webpack5",
"babel-loader",
"dependency-tree",
"eslint-plugin-node",
"sass",
"webpack",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These packages are listed as incorrectly unused dependencies related to storybook when running yarn lint this resolves that

Comment on lines +17 to +20
"@yarnpkg/core",
"@yarnpkg/cli",
"clipanion",
"@yarnpkg/fslib"
Copy link
Collaborator Author

@georgewrmarshall georgewrmarshall Feb 1, 2024

Choose a reason for hiding this comment

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

These packages are listed as missing dependencies when they shouldn't be required and are also not listed in the module template .depcheckrc.json file https://github.com/MetaMask/metamask-module-template/blob/main/.depcheckrc.json

Screenshot 2024-02-01 at 10 25 08 AM

Screenshot 2024-02-01 at 10 28 29 AM

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link

Choose a reason for hiding this comment

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

Ah! I see what you mean now. You're right, they aren't in the module template. I notice based on the changelog that depcheck has been updated in recent months, so perhaps one of the updates caused a change in behavior. I'll try bumping it on the module template to confirm. Regardless, this is still right :)

brandColor,
} from './js';
export type { Theme } from './js';
export { colors, typography, lightTheme, darkTheme, brandColor } from './js';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lint fixes running yarn lint:fix

@georgewrmarshall georgewrmarshall changed the title Template sync Design token dependencies upgrade and module template sync Feb 1, 2024
@georgewrmarshall georgewrmarshall marked this pull request as ready for review February 1, 2024 18:43
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner February 1, 2024 18:43
@georgewrmarshall georgewrmarshall changed the title Design token dependencies upgrade and module template sync Dependencies upgrade(node 18/20, yarn 3) and module template sync Feb 1, 2024
@georgewrmarshall georgewrmarshall changed the title Dependencies upgrade(node 18/20, yarn 3) and module template sync Dependencies upgrade and module template sync Feb 1, 2024
@georgewrmarshall georgewrmarshall self-assigned this Feb 1, 2024
@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system label Feb 1, 2024
@georgewrmarshall
Copy link
Collaborator Author

Socket dev security issues should be mitigated by lavamoat as they are all supply chain issues

Screenshot 2024-02-01 at 10 47 39 AM

@metamaskbot
Copy link
Collaborator

Builds ready [fd4e72b]

Storybook: Storybook

Comment on lines +17 to +20
"@yarnpkg/core",
"@yarnpkg/cli",
"clipanion",
"@yarnpkg/fslib"
Copy link

Choose a reason for hiding this comment

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

Ah! I see what you mean now. You're right, they aren't in the module template. I notice based on the changelog that depcheck has been updated in recent months, so perhaps one of the updates caused a change in behavior. I'll try bumping it on the module template to confirm. Regardless, this is still right :)

.github/pull_request_template.md Outdated Show resolved Hide resolved
.github/workflows/build-deploy-storybook.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/publish-release.yml Outdated Show resolved Hide resolved
.github/workflows/build-deploy-storybook.yml Show resolved Hide resolved
"engines": {
"node": "^16.20.0"
"node": "^18.18 || >=20"
Copy link

Choose a reason for hiding this comment

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

Note that this also bumps the minimum required version of Node from 16 to 18. That's fine but I just wanted to call it out.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great call out! Projects that are currently using the design tokens package and Node v16 will not be compatible with it after this change. So then this would qualify as a breaking change under SemVer guidelines? Therefore, the release incorporating this PR will necessitate a major version increment.

This should be acceptable given that our three primary consumers of this package have the following Node versions:

  • Mobile: "node": "~18.18.2"
  • Extension: "node": ">= 18"
  • Portfolio: "node": ">=20.0.0"

Copy link

Choose a reason for hiding this comment

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

Yes, exactly. This will necessitate a major version increment.

@metamaskbot
Copy link
Collaborator

Builds ready [c9e9380]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [aaba235]

Storybook: Storybook

Copy link

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

This all looks good to me!

@georgewrmarshall georgewrmarshall merged commit 99d028d into main Feb 1, 2024
16 of 17 checks passed
@georgewrmarshall georgewrmarshall deleted the template-sync branch February 1, 2024 23:16
Comment on lines -21 to -22
"dist/",
"src/css/"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed by #609

georgewrmarshall added a commit to MetaMask/metamask-extension that referenced this pull request Feb 16, 2024
## **Description**
This PR updates @metamask/design-tokens package to v2. There are not
visual changes but upgrade to major version is due to node version
upgrade see details in PR here:
MetaMask/design-tokens#601

## **Related issues**

Fixes: N/A

## **Manual testing steps**

1. Pull this branch
2. Run extension locally `yarn start`
3. See that design token colors and typography work as expected 

## **Screenshots/Recordings**

### **Before**
Screenshot below shows design tokens stylesheet being loaded

<img width="1510" alt="Screenshot 2024-02-09 at 2 10 22 PM"
src="https://github.com/MetaMask/metamask-extension/assets/8112138/fe91ab79-783e-463b-a77e-20810a4ce69c">

### **After**
Screenshot below shows design tokens stylesheet being loaded as expected
after package update

<img width="1511" alt="Screenshot 2024-02-09 at 1 09 08 PM"
src="https://github.com/MetaMask/metamask-extension/assets/8112138/321ab24f-659d-4bfa-a3d8-f57895658145">


## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've clearly explained what problem this PR is solving and how it
is solved.
- [x] I've linked related issues
- [x] I've included manual testing steps
- [x] I've included screenshots/recordings if applicable
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
- [x] I’ve properly set the pull request status:
  - [ ] In case it's not yet "ready for review", I've set it to "draft".
- [x] In case it's "ready for review", I've changed it from "draft" to
"non-draft".

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-design-system All issues relating to design system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependency issues in mobile and portfolio
3 participants