@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
-
@celo/react-celo Release Notes (Beta 1)
Breaking changes
The Name
@celo-tools/use-contractkit
became@celo/react-celo
The previous name had 3 issues we believe the new one addresses
use
implied it was just a react hook (no UI or Modal)contractkit
implied it was primarily about @celo/contractkit.MiniContractKit
@celo/[email protected] or later is required as
useCelo
now uses and returns aMiniContractKit
instead 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
Network
is no longer an enum and so can’t be used a typeBackwards Compatible changes
useContractKit
was renamed touseCelo
, but the alias still exists. It will be removed in v5ContractKitProvider
was renamed toCeloProvider
, but the alias still exists. It will be removed in v5New Features
Network
name can now be any string (other chains can be used more easily)Minor New Features
supportsFeeCurrency
to connectors to show which actually will update feeCurrencycontractsCache
prop for dApps that were usingkit.contracts
8973256Bug Fixes
Environment
Dependency Changes
react-loader-spinner
unstated-next
qrcode.react
withqrcode
react-helmet
react-modal
This discussion was created from the release @celo/react-celo v4.0.0 Beta 1 Release.
Beta Was this translation helpful? Give feedback.
All reactions