This repository was archived by the owner on Dec 11, 2024. It is now read-only.
@celo/react-celo v4.0.0 Beta 1 Release #237
aaronmgdr
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@celo/react-celo Release Notes (Beta 1)
Breaking changes
The Name
@celo-tools/use-contractkitbecame@celo/react-celoThe previous name had 3 issues we believe the new one addresses
useimplied it was just a react hook (no UI or Modal)contractkitimplied it was primarily about @celo/contractkit.MiniContractKit
@celo/[email protected] or later is required as
useCelonow uses and returns aMiniContractKitinstead ofContractKit. By not loading the wrappers and ABIs for all celo core contracts this cut the size of files imported from celo packages in half: From 73k gzipped to 36k gzipped.Minor Breaking Changes
Networkis no longer an enum and so can’t be used a typeBackwards Compatible changes
useContractKitwas renamed touseCelo, but the alias still exists. It will be removed in v5ContractKitProviderwas renamed toCeloProvider, but the alias still exists. It will be removed in v5New Features
Networkname can now be any string (other chains can be used more easily)Minor New Features
supportsFeeCurrencyto connectors to show which actually will update feeCurrencycontractsCacheprop for dApps that were usingkit.contracts8973256Bug Fixes
Environment
Dependency Changes
react-loader-spinnerunstated-nextqrcode.reactwithqrcodereact-helmetreact-modalThis discussion was created from the release @celo/react-celo v4.0.0 Beta 1 Release.
Beta Was this translation helpful? Give feedback.
All reactions