Git Product home page Git Product logo

Comments (10)

joewagner avatar joewagner commented on September 3, 2024 3
"ethers": "^5.5.1"

I hope that works for you, then we can close this issue.

If I do npm install siwe@beta the issue is fixed for me, Thanks!

from siwe.

w4ll3 avatar w4ll3 commented on September 3, 2024 2

from siwe.

MicahZoltu avatar MicahZoltu commented on September 3, 2024 1

ethers is still hard coded to 5.5.1 on main:

"ethers": "5.5.1"

Unfortunately, ethers v6 is now in beta and I believe it changes the public surface area a bit which might end up in things breaking if someone uses a v6 peer dependency. I don't know if NPM will allow major version changes to peer dependencies automatically with ^5.51 or not, but regardless of whether it does or not I think there needs to be a solution for the transition from ethers v5 to v6, which is likely to happen very slowly across the ecosystem.

Having this library only work with v5 or only work with v6 is going to cause notable pain for some ever-changing portion of the developer base over time.

from siwe.

awoie avatar awoie commented on September 3, 2024

@safisaleem does this issue still exist? otherwise we will close this.

from siwe.

joewagner avatar joewagner commented on September 3, 2024

https://github.com/spruceid/siwe/pull/58/files fixed this in theory, but anyone using the npm registry will still have the issue because #58 doesn't seem to have been published yet

from siwe.

safisaleem avatar safisaleem commented on September 3, 2024

agree with what @joewagner said

from siwe.

obstropolos avatar obstropolos commented on September 3, 2024

ethers is still hard coded to 5.5.1 on main:

"ethers": "5.5.1"

Unfortunately, ethers v6 is now in beta and I believe it changes the public surface area a bit which might end up in things breaking if someone uses a v6 peer dependency. I don't know if NPM will allow major version changes to peer dependencies automatically with ^5.51 or not, but regardless of whether it does or not I think there needs to be a solution for the transition from ethers v5 to v6, which is likely to happen very slowly across the ecosystem.

Having this library only work with v5 or only work with v6 is going to cause notable pain for some ever-changing portion of the developer base over time.

Thanks for the heads up here on a lot of this - we'll work to address!

from siwe.

awoie avatar awoie commented on September 3, 2024

This issue is fixed in our beta release of siwe 2.0.3. Now the dependency is:

"ethers": "^5.5.1"

I hope that works for you, then we can close this issue.

from siwe.

MicahZoltu avatar MicahZoltu commented on September 3, 2024

^ will only do minor and patch updates. It won't do major updates. You can do >5.5.1 would work, but I believe that ethers 6 is not fully API compatible with ethers 5, so I recommend testing before moving forward with this strategy.

from siwe.

awoie avatar awoie commented on September 3, 2024

^ will only do minor and patch updates. It won't do major updates. You can do >5.5.1 would work, but I believe that ethers 6 is not fully API compatible with ethers 5, so I recommend testing before moving forward with this strategy.

@MicahZoltu Ok, we will close this issue and created a new one for ethers 6 upgrade path.

from siwe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.