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 web3 to 1.0.0-beta.48 #141

Merged
merged 3 commits into from Mar 13, 2019
Merged

Conversation

cryptokat
Copy link
Contributor

@cryptokat cryptokat commented Mar 11, 2019

fix #135

@cryptokat cryptokat changed the title Fix 135 Upgrade web3 to 1.0.0-beta.48 Mar 11, 2019
@coveralls
Copy link

coveralls commented Mar 11, 2019

Pull Request Test Coverage Report for Build 181

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 88.522%

Totals Coverage Status
Change from base Build 177: 0.02%
Covered Lines: 393
Relevant Lines: 428

💛 - Coveralls

@eswarasai
Copy link
Contributor

@cryptokat -- I think this PR is looking good to generate typings for web3@1.0.0-beta with default typings. But dropping the legacy support isn't really good idea at this stage as there might be lot of projects out there relying upon web3@0.20.x. I'm sure @krzkaczor will agree on this.

@cryptokat
Copy link
Contributor Author

@eswarasai I decided to drop legacy support because of broken test/package-test that needs web3@1.0.0-beta.48 to be working, otherwise the dependencies on the sub packages of web3 such as web3-core will cause compilation error.

@krzkaczor
Copy link
Member

Dropping legacy support is a no-go. Personally, I feel like web3 0.20.x is way more stable. Please revert the removal and tmrw I will help you fixing those failing tests (sorry it's late at night here).

@cryptokat
Copy link
Contributor Author

cryptokat commented Mar 11, 2019

@eswarasai @krzkaczor I reverted the removal of legacy support and fixed the error of package-test by excluding it from tsc compilation ddc6ae0 . Please have a look if that's alright.

@cryptokat
Copy link
Contributor Author

In case that you are not aware of the error I mentioned above, here's the error I was getting from package-test before excluding it from tsc compilation:
Selection_096

@krzkaczor
Copy link
Member

@cryptokat thanks! Frankly, I can't reproduce these problems that you were encountering but I think ignoring package-test in global tsconfig.json file makes sense.

@krzkaczor
Copy link
Member

btw. i think this is slightly related to: #129

@krzkaczor
Copy link
Member

@cryptokat @eswarasai PR looks fine for me. Did anyone of you tested it locally in your projects? I can merge this and publish new version today.

@eswarasai
Copy link
Contributor

@krzkaczor -- I haven't tested this locally but the changes are looking good to me. I think we're missing a use case here where people might be using web3.js and the types from @types/web3 in their existing codebase and might not be easy for them to upgrade to the types within web3.js.

It might help devs to know what are the breaking changes within this release and what's not supported going forward in the README.md. Let me know if that makes sense. Thanks!

@krzkaczor
Copy link
Member

@eswarasai yeah I imagine that people would use current ie. 0.3.11 version if they want to stick with older web3.js (without embedded types).

Yes, I will for sure leave a note about it in the changelog once it's merged. Thanks for reminder 😆

@krzkaczor krzkaczor merged commit f466287 into dethcrypto:master Mar 13, 2019
@krzkaczor
Copy link
Member

Thank you for contributing! @cryptokat 🎉

Released as typechain@0.3.12

@iambryanwho
Copy link

In my project the Transaction parameter taken by the send() is the wrong interface after updating and following this thread. It requires all values to be passed in as seen here:

Screen Shot 2019-04-01 at 6 32 06 PM

which leads to this error Im getting:

Screen Shot 2019-04-03 at 10 38 33 AM

I think it has something to do with the Transaction object web3-core is importing in the type.d.ts file. The value should be of type any

Screen Shot 2019-04-03 at 11 04 42 AM

Is anyone else encountering this issue? Fore reference I am using the latest web3 and typechain

@krzkaczor
Copy link
Member

Hey @BryanWho could you create small repo example? I will get this sorted out

@iambryanwho
Copy link

@krzkaczor just sent you an invite to a skeleton repo

@iambryanwho
Copy link

Hey @krzkaczor any follow up on this: https://github.com/bryanwho/TypeChainTesting

@jimmygchen
Copy link

@BryanWho @krzkaczor I'm having the same issue mentioned above with the latest web3 and typechain. Please see this repo

https://github.com/jchen86/typechain-web3-pr-114/blob/2debfa4278029f30923c5c047ae4fb6c06187a0e/test/simple-storage.test.ts#L6

Screenshot 2019-05-07 at 11 02 45

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.

Support web3@^1.0.0-beta.38
6 participants