Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

v4.0.0 Release

Choose a tag to compare

@aaronmgdr aaronmgdr released this 02 Jun 17:51
· 126 commits to stable since this release
c25b25b

Breaking changes

The Name

@celo-tools/use-contractkit became @celo/react-celo

The previous name had 3 issues we believe the new one addresses

  1. The library was often confused with @celo/contractkit.
  2. use implied it was just a react hook (no UI or Modal)
  3. contractkit implied it was primarily about @celo/contractkit.

MiniContractKit

@celo/ContractKit@2.0.0 or later is required as useCelo now uses and returns a MiniContractKit instead of ContractKit. 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

Backwards Compatible changes

  • useContractKit was renamed to useCelo, but the alias still exists. It will be removed in v5
  • ContractKitProvider was renamed to CeloProvider, but the alias still exists. It will be removed in v5

New Features

Minor New Features

Bug Fixes

Environment

Dependency Changes

  • Removes react-loader-spinner
  • Removes unstated-next
  • Replace qrcode.react with qrcode
  • Adds react-helmet
  • Upgrades react-modal