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

Upgrade node version to v18-20 and yarn to v3 #600

Closed
wants to merge 33 commits into from

Conversation

georgewrmarshall
Copy link
Collaborator

@georgewrmarshall georgewrmarshall commented Jan 30, 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.

The package.json file was compared with the latest module template using chatGPT, which streamlined the process of identifying and updating outdated dependencies. 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

  1. Check GitHub workflows are working as expected
  2. Check storybook works yarn storybook

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

@georgewrmarshall georgewrmarshall self-assigned this Jan 30, 2024
@georgewrmarshall georgewrmarshall added dependencies Pull requests that update a dependency file team-design-system All issues relating to design system labels Jan 30, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [4be93e4]

Storybook: Storybook

Copy link

socket-security bot commented Jan 30, 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 existentialism, hzoo, jlhwung, ...1 more
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 +70 11 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 +25 4.35 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 +7 216 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 +13 298 kB sboudrias
npm/@inquirer/[email protected] Transitive: environment +11 287 kB sboudrias
npm/@inquirer/[email protected] Transitive: environment +12 294 kB sboudrias
npm/@jest/[email protected] Transitive: environment, filesystem, unsafe +33 4.28 MB simenb
npm/@jest/[email protected] unsafe Transitive: environment, eval, filesystem, network, shell +260 491 MB simenb
npm/@jest/[email protected] Transitive: environment, eval, filesystem, unsafe +38 4.51 MB simenb
npm/@jest/[email protected] None +1 29.6 kB simenb
npm/@jest/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +122 15.9 MB simenb
npm/@jest/[email protected] Transitive: environment, eval, filesystem, unsafe +37 4.5 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 +35 4.3 MB simenb
npm/@jest/[email protected] Transitive: environment, filesystem, network, shell, unsafe +50 4.66 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 naugtur
npm/@lavamoat/[email protected] environment, filesystem, shell Transitive: network +116 5.63 MB naugtur
npm/@metamask/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +455 527 MB metamaskbot
npm/@metamask/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +189 31.9 MB metamaskbot
npm/@metamask/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +210 104 MB metamaskbot
npm/@metamask/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +180 30.3 MB metamaskbot
npm/@npmcli/[email protected] environment, network +10 935 kB npm-cli-ops
npm/@npmcli/[email protected] filesystem +2 57.8 kB gar
npm/@npmcli/[email protected] filesystem Transitive: environment +12 135 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 +92 4.66 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] Transitive: environment +9 3.68 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 +247 247 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +352 264 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +363 264 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] 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] Transitive: environment, eval, filesystem, network, shell, unsafe +246 247 MB alexandrebodin, amalik2, dandean, ...26 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +218 233 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +417 723 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval +21 900 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +616 287 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] None +1 11.8 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +303 37.5 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem +112 23 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem +55 11.6 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +150 227 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] None +1 99.8 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +346 257 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +151 227 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem +102 14.8 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem +98 14.5 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +176 229 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem +62 15.4 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] None 0 2.56 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] None 0 168 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] None 0 7.21 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +366 329 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem +54 11.6 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] None 0 359 kB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment +6 3.52 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +503 737 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +203 308 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval +17 712 kB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +231 232 MB alexandrebodin, amalik2, dandean, ...23 more
npm/@storybook/[email protected] Transitive: environment +11 4.23 MB hypnosphi, igor-dv, jreinhold, ...5 more
npm/@storybook/[email protected] Transitive: environment, eval, filesystem +48 10.5 MB alexandrebodin, amalik2, dandean, ...23 more
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 24.2 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 +12 401 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.6 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 +42 4.73 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.53 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 +3 1.63 MB 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 +117 85.4 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +109 82.2 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +114 83 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] Transitive: eval +17 336 kB ljharb
npm/[email protected] None 0 3.06 kB sindresorhus
npm/[email protected] Transitive: eval +57 3.22 MB ljharb
npm/[email protected] Transitive: eval +58 3.23 MB ljharb
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] None 0 3.19 kB sindresorhus
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, network, shell, unsafe +129 26.4 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 142 kB npm-cli-ops
npm/[email protected] environment, filesystem Transitive: shell +6 2.37 MB ai
npm/[email protected] unsafe 0 4.51 kB sindresorhus
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 +36 824 kB lukekarrys
npm/[email protected] None 0 1.47 kB tjholowaychuk
npm/[email protected] None 0 1.97 MB caniuse-lite
npm/[email protected] Transitive: environment +1 273 kB pi0
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] environment 0 228 kB pi0
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 10 kB tootallnate
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 +122 14.3 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 +56 3.2 MB ljharb
npm/[email protected] Transitive: eval +6 130 kB ljharb
npm/[email protected] None +2 53.3 kB ljharb
npm/[email protected] filesystem Transitive: environment, eval, shell, unsafe +88 11.3 MB ota-meshi
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +88 11.3 MB lydell
npm/[email protected] Transitive: environment, filesystem +7 244 kB ljharb
npm/[email protected] Transitive: environment +2 96.5 kB ljharb
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +89 11.6 MB eslint-community-bot
npm/[email protected] filesystem Transitive: environment, eval, network, shell, unsafe +368 508 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +95 13.6 MB gajus
npm/[email protected] filesystem Transitive: environment, eval, shell, unsafe +102 12.4 MB weiran.zsd
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +91 22.6 MB jounqin
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +88 11.3 MB eslint-community-bot
npm/[email protected] None 0 32.3 kB eslintbot
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +87 11.3 MB eslintbot
npm/[email protected] None +3 1.34 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 +41 4.66 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] None +2 9.09 MB endless
npm/[email protected] filesystem Transitive: environment +19 359 kB phated
npm/[email protected] filesystem Transitive: environment +14 210 kB jaredwray
npm/[email protected] None 0 40.1 kB webreflection
npm/[email protected] None 0 746 kB flowtype
npm/[email protected] None +3 9.12 MB endless
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] Transitive: environment +11 159 kB gar
npm/[email protected] None 0 4.54 kB sindresorhus
npm/[email protected] filesystem, unsafe +1 116 kB hirokiosame
npm/[email protected] environment, network Transitive: filesystem, shell +32 1.87 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] Transitive: eval +10 219 kB ljharb
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 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 +103 19.9 MB evilebottnawi
npm/[email protected] None 0 35.9 kB kornel
npm/[email protected] network Transitive: environment +3 82.6 kB tootallnate
npm/[email protected] None +1 10.5 kB dead_horse
npm/[email protected] None 0 51.2 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] Transitive: eval +16 328 kB ljharb
npm/[email protected] Transitive: unsafe +1 8.39 kB sindresorhus
npm/[email protected] None 0 2.94 kB watson
npm/[email protected] None 0 3.43 kB juliangruber
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 +17 226 kB simenb
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +179 17.3 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +283 492 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +231 489 MB simenb
npm/[email protected] Transitive: environment +5 230 kB simenb
npm/[email protected] None +1 12.9 kB simenb
npm/[email protected] Transitive: environment, filesystem +13 3.91 MB simenb
npm/[email protected] unsafe Transitive: environment, eval, filesystem +39 4.52 MB simenb
npm/[email protected] None 0 3.85 kB simenb
npm/[email protected] filesystem Transitive: environment, shell +16 507 kB rbardini
npm/[email protected] unsafe Transitive: environment +4 112 kB simenb
npm/[email protected] Transitive: environment +6 258 kB simenb
npm/[email protected] Transitive: environment, filesystem, unsafe +31 4.24 MB simenb
npm/[email protected] None +6 3.66 MB simenb
npm/[email protected] Transitive: environment, filesystem, network, shell, unsafe +44 4.74 MB arcanis
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +122 15.9 MB simenb
npm/[email protected] environment, unsafe Transitive: filesystem, network, shell +44 4.74 MB simenb
npm/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +181 17.3 MB simenb
npm/[email protected] unsafe Transitive: environment, eval, filesystem, network, shell +171 17.1 MB simenb
npm/[email protected] eval Transitive: environment, filesystem, network, shell, unsafe +121 15.9 MB simenb
npm/[email protected] Transitive: environment +12 3.77 MB simenb
npm/[email protected] environment, shell +4 3.62 MB simenb
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +285 492 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 5.4 kB dominictarr
npm/[email protected] None +1 33.2 kB jaredwray
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 alangpierce, antfu, mourner, ...1 more
npm/[email protected] environment, network Transitive: filesystem +58 2.03 MB gar
npm/[email protected] Transitive: environment +4 755 kB probablyup
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 +8 81.4 kB sindresorhus
npm/[email protected] None 0 6.51 kB isaacs
npm/[email protected] None 0 5.63 kB lauriro
npm/[email protected] None 0 29.2 kB endless
npm/[email protected] network 0 718 kB pi0
npm/[email protected] network +5 9.24 MB node-fetch-bot
npm/[email protected] environment, shell Transitive: filesystem, network +85 4.59 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 +20 382 kB lukekarrys
npm/[email protected] Transitive: environment, filesystem, shell +21 707 kB pi0
npm/[email protected] None 0 97.2 kB ljharb
npm/[email protected] Transitive: eval +57 3.23 MB ljharb
npm/[email protected] None 0 70.7 kB pi0
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] environment, unsafe Transitive: filesystem, shell +36 476 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 +2 102 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 +14 302 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 15 kB hirokiosame
npm/[email protected] None 0 20.9 kB lukeed
npm/[email protected] None 0 32.2 kB tim-kos
npm/[email protected] environment, filesystem +1 2.34 MB lukastaegert
npm/[email protected] None 0 6.6 kB sboudrias
npm/[email protected] Transitive: eval +11 219 kB ljharb
npm/[email protected] Transitive: eval +12 248 kB ljharb
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] Transitive: eval +9 184 kB ljharb
npm/[email protected] None 0 138 kB joshglazebrook
npm/[email protected] network Transitive: environment +5 376 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 +617 287 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 +56 3.2 MB ljharb
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] Transitive: eval +56 3.2 MB ljharb
npm/[email protected] Transitive: environment, filesystem, shell, unsafe +40 4.2 MB alangpierce
npm/[email protected] None +2 18.4 kB sindresorhus
npm/[email protected] None 0 32.1 kB fluffynuts
npm/[email protected] environment +2 147 kB jounqin
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +73 18 MB evilebottnawi
npm/[email protected] environment, eval Transitive: filesystem, shell +9 3.31 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 +289 492 MB kul
npm/[email protected] environment, filesystem, unsafe Transitive: shell +30 475 MB blakeembrey
npm/[email protected] environment, filesystem, unsafe +4 355 kB jonaskello
npm/[email protected] environment, eval, filesystem Transitive: network, shell, unsafe +171 905 MB egoist
npm/[email protected] Transitive: eval +16 324 kB ljharb
npm/[email protected] Transitive: eval +16 330 kB ljharb
npm/[email protected] Transitive: eval +16 330 kB ljharb
npm/[email protected] Transitive: eval +16 335 kB ljharb
npm/[email protected] None 0 68.8 MB typescript-bot
npm/[email protected] None 0 66.7 kB pi0
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 9.04 MB mattiasbuelens
npm/[email protected] None 0 19.3 kB domenic
npm/[email protected] None +4 160 kB evilebottnawi
npm/[email protected] environment, filesystem, network, unsafe Transitive: eval, shell +73 18 MB evilebottnawi
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/@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], 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 Jan 30, 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]
New author 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]
New author npm/[email protected]
Deprecated npm/[email protected]
  • Reason: Breaking node 16
New author npm/[email protected]
Shell access npm/@lavamoat/[email protected]
Network access npm/[email protected]
Network access npm/[email protected]
Network access npm/[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.

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 [474748b]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [e66dac8]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [2583a76]

Storybook: Storybook

@@ -34,7 +34,7 @@ jobs:
- run:
name: Postinstall
command: |
yarn setup
yarn
Copy link
Collaborator Author

@georgewrmarshall georgewrmarshall Jan 30, 2024

Choose a reason for hiding this comment

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

The yarn setup script was previously used in our project as a means to include Lavamoat's allow-scripts. This was necessary at the time due to certain limitations in Lavamoat's developer experience. However, recent improvements in Lavamoat have eliminated these hindrances, particularly when updating dependencies.

"setup": "yarn install && yarn allow-scripts",

As a result, the yarn setup script, which essentially ran yarn install and yarn allow-scripts, has become redundant. Many projects, including ours, are now moving away from using it.

In this pull request, we have removed every instance of the yarn setup script, as shown in the attached screenshot. This change simplifies our scripts and aligns with current best practices

Screenshot 2024-01-30 at 3 39 28 PM

@@ -48,7 +48,7 @@ jobs:
at: .
- run:
name: build:storybook
command: yarn build-storybook
command: yarn build:storybook
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yarn build-storybook has been updated to yarn build:storybook to follow the colon format. All instances have been updated

Screenshot 2024-01-30 at 3 40 54 PM

@metamaskbot
Copy link
Collaborator

Builds ready [c88403b]

Storybook: Storybook

@@ -5,7 +5,6 @@ module.exports = {
'@storybook/addon-essentials',
'@storybook/preset-scss',
'@storybook/addon-a11y',
'@storybook/addon-mdx-gfm',
Copy link
Collaborator Author

@georgewrmarshall georgewrmarshall Jan 31, 2024

Choose a reason for hiding this comment

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

Only used for mdx migration which we don't require

@metamaskbot
Copy link
Collaborator

Builds ready [53a1011]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [96473c6]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [7e4e97b]

Storybook: Storybook

@@ -1,4 +1,5 @@
# Changelog
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updating changelog with linting fixes to see if it fixes the below

Screenshot 2024-01-31 at 4 10 17 PM

@metamaskbot
Copy link
Collaborator

Builds ready [cb1a715]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [6670fa5]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [cbb2654]

Storybook: Storybook

@metamaskbot
Copy link
Collaborator

Builds ready [1371482]

Storybook: Storybook

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

Choose a reason for hiding this comment

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

Hey @mcmire I'm not sure why buy when I run yarn lint it picks up that the yarnpkg are missing dependencies?

    "@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.

This makes sense. All of these dependencies are used by Yarn, and depcheck is unable to see that these are used, since they're never imported anywhere. So this is the right call.

@metamaskbot
Copy link
Collaborator

Builds ready [4e20e78]

Storybook: Storybook


start().catch((error) => {
console.error(error);
process.exit(1);
});

async function start() {
const fetch = (await import('node-fetch')).default;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Screenshot 2024-01-31 at 6 13 54 PM

@georgewrmarshall
Copy link
Collaborator Author

Have checked and all high severity socket dev warnings will be mitigated by lavamoat I'm pretty sure

Screenshot 2024-01-31 at 6 17 42 PM

@georgewrmarshall georgewrmarshall requested review from legobeat and removed request for mcmire, brianacnguyen, garrettbear and legobeat February 1, 2024 02:25
@georgewrmarshall
Copy link
Collaborator Author

Closing in favor of #601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file team-design-system All issues relating to design system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants