decentraland / builder-client

Apache License 2.0
3 stars 5 forks source link

use @dcl/hash fn instead of dcl-catalyst-commons (depcrecated) #36

Closed gonpombo8 closed 2 years ago

gonpombo8 commented 2 years ago

What ?

Remove dcl-catalyst-client dep and use @dcl/hash instead

Why ?

When we try to install @dcl/buidler-client on our linker dapp (CRA app), it fails because dcl-catalyst-common dependency uses a tsconfig target 2020 (i.e. non-nullish operator ??) and with webpack 4 we can't use them in a easy way.

So in order to be able to use this module there are multiple options. (IMO) Update the dcl-catalyst-commons to the latest version which targets to ES2018, or use @dcl/hashing instead of dcl-catalyst-common hashing fn that are deprecated, or update our cra version to react-scripts v5 ( I already tried this and its almost rewrite the entire app).

image

This PR goes with the @dcl/hash alternative but its up to you what to choose. Any option will be ok for us, thanks in advance :)

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2023768709


Totals Coverage Status
Change from base Build 2017049950: 0.0%
Covered Lines: 326
Relevant Lines: 371

💛 - Coveralls