Skip to content

chore: update the '@metamask/sdk' to version '0.20.5' #2231

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

Conversation

omridan159
Copy link
Contributor

@omridan159 omridan159 commented Jun 13, 2024

Description

Update the '@metamask/sdk' to version '0.20.5'

PLEASE NOTE- Checklist must be complete prior to review.

Checklist

  • Increment the version field in package.json of the package you have made changes in following semantic versioning and using alpha release tagging
  • Check the box that allows repo maintainers to update this PR
  • Test locally to make sure this feature/fix works
  • Run yarn check-all to confirm there are not any associated errors
  • Confirm this PR passes Circle CI checks
  • Add or update relevant information in the documentation

Docs Checklist

  • Include a screenshot of any changes (see docs README on running locally)
  • Add/update the appropriate package README (if applicable)
  • Add/update the related module in the docs demo (if applicable)
  • Add/update the related package in the docs/package.json file (if applicable)

If this PR includes changes to add an injected wallet or SDK wallet module:

Please complete the following using the internal demo package.
To run this demo use the command yarn && yarn dev to get the project running at http://localhost:8080/

Tests with demo app (injected)

  • send transaction
  • switch chains
  • sign message
  • sign typed message
  • disconnect

Tests with demo app (SDK)

  • send transaction
  • switch chains
  • sign message
  • sign typed message
  • disconnect

@@ -60,7 +60,7 @@
"typescript": "^5.2.2"
},
"dependencies": {
"@metamask/sdk": "^0.20.3",
"@metamask/sdk": "^0.20.5",
Copy link
Contributor

Choose a reason for hiding this comment

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

For a new package to publish the version above this on line 3 of this file needs a bump to 2.1.2-alpha.1 which will result in an alpha version published of @web3-onboard/metamask
We will also want to add this new version update to packages/demo/package.json and run yarn && yarn check-all from the root of the project and ensure there are not any errors

Copy link

socket-security bot commented Jun 13, 2024

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

Package New capabilities Transitives Size Publisher
npm/@esbuild-plugins/node-globals-polyfill@0.2.3 Transitive: environment, filesystem, network, shell +24 227 MB xmorse
npm/@esbuild-plugins/node-modules-polyfill@0.2.2 filesystem Transitive: environment, network, shell, unsafe +30 229 MB xmorse
npm/@ethersproject/basex@5.7.0 None 0 30.1 kB ricmoo
npm/@ethersproject/networks@5.7.0 None 0 46.8 kB ricmoo
npm/@ethersproject/providers@5.5.0 network 0 1.11 MB ricmoo
npm/@ethersproject/web@5.7.0 network 0 127 kB ricmoo
npm/@fontsource/fira-mono@4.5.10 None 0 1.02 MB lotusdevshack
npm/@jridgewell/sourcemap-codec@1.4.14 None 0 40 kB jridgewell
npm/@lit/reactive-element@1.6.1 None +1 800 kB lit-robot
npm/@rollup/plugin-commonjs@25.0.7 filesystem +8 834 kB shellscape
npm/@stablelib/random@1.0.2 None +3 157 kB dchest
npm/@sveltejs/adapter-auto@1.0.0-next.91 environment, filesystem, shell +1 78.4 kB svelte-admin
npm/@sveltejs/kit@1.0.0-next.589 environment, eval, filesystem Transitive: network, unsafe +16 2.69 MB svelte-admin
npm/@types/cookie@0.5.1 None 0 9.76 kB types
npm/@types/estree@1.0.0 None 0 25.7 kB types
npm/@typescript-eslint/eslint-plugin@5.49.0 Transitive: environment, filesystem +12 4.46 MB jameshenry
npm/@typescript-eslint/parser@5.49.0 Transitive: environment, filesystem +5 1.45 MB jameshenry
npm/@walletconnect/jsonrpc-provider@1.0.13 None 0 103 kB gancho_walletconnect
npm/@walletconnect/jsonrpc-types@1.0.3 None +1 188 kB gancho_walletconnect
npm/@walletconnect/jsonrpc-utils@1.0.8 None +1 345 kB gancho_walletconnect
npm/@walletconnect/safe-json@1.0.2 None 0 215 kB gancho_walletconnect
npm/@walletconnect/window-getters@1.0.1 None 0 218 kB bkrem
npm/@web3-onboard/injected-wallets@2.10.1 None +1 524 kB cmeisl
npm/@web3-onboard/walletconnect@2.3.9 Transitive: environment, eval, filesystem, network, unsafe +138 31.1 MB cmeisl
npm/assert@2.1.0 None +3 193 kB ljharb
npm/browserify-aes@1.2.0 None +1 34.6 kB cwmma
npm/browserify-rsa@4.1.0 None 0 3.68 kB cwmma
npm/browserify-zlib@0.2.0 None +1 980 kB dignifiedquire
npm/buffer@6.0.3 None +1 101 kB feross
npm/call-bind@1.0.7 None +5 100 kB ljharb
npm/cipher-base@1.0.4 None 0 7.95 kB cwmma
npm/create-hash@1.2.0 None +1 12.9 kB cwmma
npm/create-hmac@1.1.7 None 0 5.81 kB cwmma
npm/crypto-browserify@3.12.0 None +10 305 kB cwmma
npm/decode-uri-component@0.2.2 None 0 6.09 kB samverschueren
npm/deepmerge@4.3.0 None 0 30.4 kB tehshrike
npm/define-data-property@1.1.4 None +3 62.7 kB ljharb
npm/eslint-config-prettier@8.6.0 None 0 18.2 kB lydell
npm/eslint-plugin-svelte3@4.0.0 None 0 41.3 kB conduitry
npm/eslint@8.33.0 filesystem Transitive: unsafe +8 4.85 MB eslintbot
npm/evp_bytestokey@1.0.3 None +1 12.8 kB dcousens
npm/fast-glob@3.2.12 filesystem 0 91.9 kB mrmlnc
npm/get-intrinsic@1.2.4 eval +4 106 kB ljharb
npm/has-property-descriptors@1.0.2 None +1 22.7 kB ljharb
npm/has-tostringtag@1.0.2 None 0 17.6 kB ljharb
npm/hash-base@3.0.4 None 0 6.03 kB dcousens
npm/ieee754@1.2.1 None 0 6.8 kB feross
npm/is-typedarray@1.0.0 None 0 4.41 kB hughsk
npm/minimist@1.2.6 None 0 33.2 kB substack
npm/normalize-path@3.0.0 None 0 9.22 kB jonschlinkert
npm/parse-asn1@5.1.7 Transitive: unsafe +1 71.4 kB ljharb
npm/pbkdf2@3.1.2 None 0 13.8 kB cwmma
npm/prettier-plugin-svelte@2.9.0 environment 0 254 kB dummdidumm
npm/prettier@2.8.3 environment, filesystem, unsafe 0 11.7 MB prettier-bot
npm/randombytes@2.1.0 None 0 6.36 kB cwmma
npm/readable-stream@2.3.8 environment +5 147 kB matteo.collina
npm/ripemd160@2.0.2 None 0 9.79 kB dcousens
npm/rollup-plugin-polyfill-node@0.12.0 None +3 1.52 MB fredkschott
npm/rollup@3.29.4 environment, filesystem +1 2.68 MB lukastaegert
npm/safe-buffer@5.2.1 None 0 32.1 kB feross
npm/sha.js@2.4.11 None 0 31.1 kB dcousens
npm/stream-browserify@3.0.0 Transitive: environment +2 150 kB goto-bus-stop
npm/string-width@3.1.0 None +3 49.6 kB sindresorhus
npm/svelte-check@3.0.3 Transitive: environment, filesystem +8 4.75 MB svelte-language-tools-deploy
npm/svelte-preprocess@5.0.1 environment, filesystem Transitive: eval +16 2.85 MB dummdidumm
npm/svelte@3.55.1 None 0 9.74 MB conduitry
npm/tslib@2.5.0 None 0 60 kB typescript-bot
npm/uint8arrays@3.1.1 None +1 624 kB achingbrain

🚮 Removed packages: npm/@types/istanbul-lib-coverage@2.0.4, npm/@types/node@17.0.45, npm/@web3-onboard/core@2.22.2-alpha.2, npm/ansi-styles@3.2.1, npm/bluebird@3.7.2, npm/chalk@2.4.2, npm/color-name@1.1.3, npm/escape-string-regexp@1.0.5, npm/lodash@4.17.21, npm/nanoid@4.0.2, npm/prettier-plugin-svelte@2.6.0, npm/prettier@2.5.1, npm/react-dom@18.3.1, npm/rxjs@7.8.1, npm/scheduler@0.23.2, npm/svelte@3.59.2, npm/throat@4.1.0, npm/wsrun@5.2.4

View full report↗︎

Copy link

socket-security bot commented Jun 13, 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 NoteSourceCI
Install scripts npm/svelte-preprocess@5.0.1
  • Install script: postinstall
  • Source: echo "[svelte-preprocess] Don't forget to install the preprocessors packages that will be used: sass, stylus, less, postcss & postcss-load-config, coffeescript, pug, etc..."
Install scripts npm/@sveltejs/kit@1.0.0-next.589
  • Install script: postinstall
  • Source: node postinstall.js
Install scripts npm/esbuild@0.21.5

View full report↗︎

Next steps

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/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/svelte-preprocess@5.0.1
  • @SocketSecurity ignore npm/@sveltejs/kit@1.0.0-next.589
  • @SocketSecurity ignore npm/esbuild@0.21.5

@Adamj1232
Copy link
Contributor

Closing as this change has been implemented and available with the latest alpha version of @web3-onboard/metamask

@Adamj1232 Adamj1232 closed this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants