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

[Snyk] Upgrade web3 from 1.6.0 to 4.11.1 #10

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

OKEAMAH
Copy link
Member

@OKEAMAH OKEAMAH commented Aug 16, 2024

snyk-top-banner

Snyk has created this PR to upgrade web3 from 1.6.0 to 4.11.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 326 versions ahead of your current version.

  • The recommended version was released on 23 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Prototype Pollution
SNYK-JS-JSONSCHEMA-1920922
300 No Known Exploit
high severity Prototype Poisoning
SNYK-JS-QS-3153490
300 Proof of Concept
high severity Prototype Poisoning
SNYK-JS-QS-3153490
300 Proof of Concept
high severity Information Exposure
SNYK-JS-SIMPLEGET-2361683
300 Proof of Concept
high severity Denial of Service (DoS)
SNYK-JS-DECODEURICOMPONENT-3149970
300 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-ES5EXT-6095076
300 Proof of Concept
medium severity Open Redirect
SNYK-JS-GOT-2932019
300 No Known Exploit
medium severity Open Redirect
SNYK-JS-GOT-2932019
300 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-COOKIEJAR-3149984
300 Proof of Concept
medium severity Open Redirect
SNYK-JS-EXPRESS-6474509
300 No Known Exploit
Release notes
Package name: web3
  • 4.11.1 - 2024-07-24

    [4.11.1]

    Fixed

    web3-errors

    • Fixed the undefined data in Eip838ExecutionError constructor (#6905)

    web3-eth

    • Adds transaction property to be an empty list rather than undefined when no transactions are included in the block (#7151)
    • Change method getTransactionReceipt to not be casted as TransactionReceipt to give proper return type (#7159)

    web3

    • Remove redundant constructor of contractBuilder (#7150)

    What's Changed

    New Contributors

    Full Changelog: v4.11.0...v4.11.1

  • 4.11.1-dev.e5efe49.0 - 2024-07-22
  • 4.11.1-dev.cbcfc18.0 - 2024-07-22
  • 4.11.1-dev.9afaa61.0 - 2024-07-16
  • 4.11.1-dev.6b80cf0.0 - 2024-07-12
  • 4.11.1-dev.5f6deeb.0 - 2024-07-22
  • 4.11.1-dev.5ad7e5b.0 - 2024-07-17
  • 4.11.1-dev.463d070.0 - 2024-07-11
  • 4.11.0 - 2024-07-11

    [4.11.0]

    Fixed

    web3-eth-abi

    • fix encodedata in EIP-712 (#7095)

    web3-utils

    • _sendPendingRequests will catch unhandled errors from _sendToSocket (#6968)

    web3-eth

    • Fixed geth issue when running a new instance, transactions will index when there are no blocks created (#7098)

    Changed

    web3-eth-accounts

    • baseTransaction method updated (#7095)

    web3-providers-ws

    • Update dependancies (#7109)

    web3-rpc-providers

    • Change request return type Promise<ResultType> to Promise<JsonRpcResponseWithResult<ResultType>> (#7102)

    Added

    web3-eth-contract

    • populateTransaction was added to contract methods (#7124)
    • Contract has setTransactionMiddleware and getTransactionMiddleware for automatically passing to sentTransaction for deploy and send functions (#7138)

    web3-rpc-providers

    • When error is returned with code 429, throw rate limit error (#7102)

    web3

    • web3.eth.Contract will get transaction middleware and use it, if web3.eth has transaction middleware. (#7138)
  • 4.10.1-dev.89711ab.0 - 2024-07-10
  • 4.10.1-dev.1436228.0 - 2024-07-09
  • 4.10.0 - 2024-06-17

    [4.10.0]

    Added

    web3

    • Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

    web3-core

    • Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

    web3-eth

    • sendTransaction in rpc_method_wrappers accepts optional param of TransactionMiddleware (#7088)
    • WebEth has setTransactionMiddleware and getTransactionMiddleware for automatically passing to sentTransaction (#7088)

    web3-eth-ens

    • getText now supports first param Address
    • getName has optional second param checkInterfaceSupport

    web3-types

    • Added result as optional never and error as optional never in type JsonRpcNotification` (#7091)
    • Added JsonRpcNotfication as a union type in JsonRpcResponse (#7091)

    web3-rpc-providers

    • Alpha release

    Fixed

    web3-eth-ens

    • getName reverse resolution

    What's Changed

    Full Changelog: v4.9.0...v4.10.0

  • 4.9.1-dev.fd2982d.0 - 2024-05-23
  • 4.9.1-dev.f687df6.0 - 2024-05-29
  • 4.9.1-dev.b63af9f.0 - 2024-05-30
  • 4.9.1-dev.962b99f.0 - 2024-05-24
  • 4.9.1-dev.9086b98.0 - 2024-05-30
  • 4.9.1-dev.7537f03.0 - 2024-05-23
  • 4.9.1-dev.692987a.0 - 2024-05-24
  • 4.9.1-dev.683be62.0 - 2024-05-28
  • 4.9.1-dev.22c07ad.0 - 2024-05-27
  • 4.9.1-dev.7084665.0 - 2024-05-29
  • 4.9.0 - 2024-05-23

    What's Changed

    New Contributors

    Full Changelog: v4.8.0...v4.9.0

  • 4.8.1-dev.f4e55bd.0 - 2024-05-22
  • 4.8.1-dev.f44dc5b.0 - 2024-05-09
  • 4.8.1-dev.f216540.0 - 2024-05-06
  • 4.8.1-dev.ed2781f.0 - 2024-04-25
  • 4.8.1-dev.ebbbf1e.0 - 2024-04-30
  • 4.8.1-dev.e29deea.0 - 2024-04-18
  • 4.8.1-dev.e0fc158.0 - 2024-05-22
  • 4.8.1-dev.de3e8f8.0 - 2024-04-26
  • 4.8.1-dev.dd172c7.0 - 2024-04-18
  • 4.8.1-dev.d4e937d.0 - 2024-04-19
  • 4.8.1-dev.c62ef79.0 - 2024-05-06
  • 4.8.1-dev.b413ebd.0 - 2024-05-02
  • 4.8.1-dev.ac2e180.0 - 2024-05-22
  • 4.8.1-dev.93296c2.0 - 2024-04-18
  • 4.8.1-dev.88b7e2e.0 - 2024-05-02
  • 4.8.1-dev.866469d.0 - 2024-05-14
  • 4.8.1-dev.7be0060.0 - 2024-04-23
  • 4.8.1-dev.7a470c9.0 - 2024-05-01
  • 4.8.1-dev.5fd9dbb.0 - 2024-04-23
  • 4.8.1-dev.5d2f2aa.0 - 2024-05-06
  • 4.8.1-dev.553f270.0 - 2024-05-21
  • 4.8.1-dev.53e2466.0 - 2024-04-22
  • 4.8.1-dev.419c8d3.0 - 2024-04-25
  • 4.8.1-dev.3904a46.0 - 2024-05-22
  • 4.8.1-dev.32b6b29.0 - 2024-05-21
  • 4.8.1-dev.2f73aa5.0 - 2024-05-16
  • 4.8.1-dev.1ab7a6b.0 - 2024-04-18
  • 4.8.1-dev.12c2515.0 - 2024-05-13
  • 4.8.1-dev.408125.0 - 2024-05-13
  • 4.8.0 - 2024-04-18

    [4.8.0]

    Changed

    web3-eth-abi

    • Dependencies updated

    web3-eth-accounts

    • Dependencies updated

    Fixed

    web3-eth-contract

    • Fix an issue with smart contract function overloading (#6922)

    web3-utils

    • fixed toHex incorrectly hexing Uint8Arrays and Buffer (#6957)
    • fixed isUint8Array not returning true for Buffer (#6957)

    Added

    web3-eth-contract

    • Added a console warning in case of an ambiguous call to a solidity method with parameter overloading (#6942)
    • Added contract.deploy(...).decodeData(...) and contract.decodeMethodData(...) that decode data based on the ABI (#6950)

    web3-eth

    • method getBlock now includes properties of eip 4844, 4895, 4788 when returning block (#6933)
    • update type withdrawalsSchema, blockSchema and blockHeaderSchema schemas to include properties of eip 4844, 4895, 4788 (#6933)

    web3-types

    • Added signature to type AbiFunctionFragment (#6922)
    • update type Withdrawals, block and BlockHeaderOutput to include properties of eip 4844, 4895, 4788 (#6933)

    New Contributors

  • 4.7.1-dev.ce59737.0 - 2024-04-07
  • 4.7.1-dev.bfb4f6f.0 - 2024-04-08
  • 4.7.1-dev.a173a8f.0 - 2024-03-26
  • 4.7.1-dev.67d8a74.0 - 2024-04-04
  • 4.7.1-dev.5a579fa.0 - 2024-04-05
  • 4.7.1-dev.578ebb6.0 - 2024-04-15
  • 4.7.1-dev.5341c3a.0 - 2024-03-29
  • 4.7.1-dev.526c6f5.0 - 2024-03-27
  • 4.7.1-dev.1c03666.0 - 2024-04-15
  • 4.7.0 - 2024-03-26

    [4.7.0]

    added

    web3-eth-contract

    • Types ContractDeploySend, ContractMethodSend, Web3PromiEvent was exported (#6883)

    web3-eth-ens

    • Added function getText and getName in ENS and resolver classes (#6914)

    fixed

    web3-validator

    • Multi-dimensional arrays(with a fix length) are now handled properly when parsing ABIs (#6798)

    web3-utils

    • fixed erroneous parsing of big numbers in the toNumber(...) function (#6880)

    Contributors

    Thank you to the community who have contributed to this release 😄:
    @ sgerodes

Snyk has created this PR to upgrade web3 from 1.6.0 to 4.11.1.

See this package in npm:
web3

See this project in Snyk:
https://app.snyk.io/org/okeamah/project/869ee4ad-d114-493b-a423-22f6f1fab974?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
  • We don't review packaging changes - Let us know if you'd like us to change this.

@OKEAMAH OKEAMAH self-assigned this Sep 9, 2024
Copy link
Member Author

@OKEAMAH OKEAMAH left a comment

Choose a reason for hiding this comment

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

Cool

@OKEAMAH OKEAMAH merged commit 5b9523a into main Sep 9, 2024
4 of 5 checks passed
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.

2 participants