Releases: celo-org/react-celo
v4.0.1 Release
Fixes
CeloProvider props
- the
connectModalProps.hideFromDefaults
once again hides wallets passed in to it from show in the connect modal - connectModalProps.style.overlay once gain allows devs to pass custom styles like zIndex to the modal overlay element (thus ensuring its always as high as it needs to be
CSS
- global css rules for html elements have been removed
- removes excess css delcarations
- fixed bug with
height: -webkit-fill-available;
being set on html causing body background to not go full height.
Misc
Test added for connect modal to prevent further regressions
see https://github.com/celo-org/react-celo/pull/277/files for full details
v4.0.0 Release
Breaking changes
The Name
@celo-tools/use-contractkit
became @celo/react-celo
The previous name had 3 issues we believe the new one addresses
- The library was often confused with @celo/contractkit.
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 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
Network
is no longer an enum and so can’t be used a type
Backwards 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 v5
New Features
- New UI
- New Theming API
- Search for Wallet
Network
name can now be any string (other chains can be used more easily)- On Mobile Browsers Link to MetamaskMobile now Opens dapp automatically
Minor New Features
- Add
supportsFeeCurrency
to connectors to show which actually will update feeCurrency - Add an optional
contractsCache
prop for dApps that were usingkit.contracts
8973256 - Provide a way to see the version of react-celo used by a dapp
Bug Fixes
- Wallet Connections that don’t support paying for gas in other currencies no longer misleadingly allow setting feeCurrency.
- fix wallet connect android timeout issues
- Cancelling a connection request from the wallet should directly close QR code and show feedback
- In desktop browsers, misleading QR code modal description and action when selecting Valora
- Fix: Ledger Connector Failing to change networks
- Fix: Wallet-Connect-Connector sometimes failing initialisation
- Fix: Unable submit/sign transaction with Valora on iOS
Environment
- Add support for for react 18 https://github.com/celo-org/use-contractkit/pull/180/files#r871839105
- Now targets es6 in tsConfig
Dependency Changes
- Removes
react-loader-spinner
- Removes
unstated-next
- Replace
qrcode.react
withqrcode
- Adds
react-helmet
- Upgrades
react-modal
@celo/react-celo v4.0.0 Beta 1 Release
@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
- The library was often confused with @celo/contractkit.
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 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
Network
is no longer an enum and so can’t be used a type
Backwards 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 v5
New Features
- New UI
- New Theming API
- Search for Wallet
Network
name can now be any string (other chains can be used more easily)- On Mobile Browsers Link to MetamaskMobile now Opens dapp automatically
Minor New Features
- Add
supportsFeeCurrency
to connectors to show which actually will update feeCurrency - Add an optional
contractsCache
prop for dApps that were usingkit.contracts
8973256 - Provide a way to see the version of react-celo used by a dapp
Bug Fixes
- Wallet Connections that don’t support paying for gas in other currencies no longer misleadingly allow setting feeCurrency.
- fix wallet connect android timeout issues
- Cancelling a connection request from the wallet should directly close QR code and show feedback
- In desktop browsers, misleading QR code modal description and action when selecting Valora
- Fix: Ledger Connector Failing to change networks
- Fix: Wallet-Connect-Connector sometimes failing initialisation
- Fix: Unable submit/sign transaction with Valora on iOS
Environment
- Add support for for react 18 https://github.com/celo-org/use-contractkit/pull/180/files#r871839105
- Now targets es6 in tsConfig
Dependency Changes
- Removes
react-loader-spinner
- Removes
unstated-next
- Replace
qrcode.react
withqrcode
- Adds
react-helmet
- Upgrades
react-modal
v3.1.0
This release improves support for custom networks, add support for metamask mobile, allows but does not require using contractkit 2.0, and expands modal customization options.
What's Changed
-
feat: add modal customization options by @nicolasbrugneaux in #153
-
feat Fixes #130 - connect to dapp with metamask mobile app by @aaronmgdr in #148
-
feat Add support for using ContractKit 2.0 as peer dep.
-
Fix bug where passing in custom rpc url got reset by @aaronmgdr in #135
-
docs: small readme fixes by @crondinini in #140
-
chore(deps): bump minimist from 1.2.5 to 1.2.6 by @dependabot in #150
New Contributors
- @crondinini made their first contribution in #140
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's Changed
Breaking Changes
Other Changes
- feat: initial metamask improvements by @nicolasbrugneaux in #80
- feat: Add local option for network by @dckesler in #94
- fix: add a gasPrice to the example transfer by @nicolasbrugneaux in #101
- feat: move @celo/contractkit from dependencies to peerDeps by @nicolasbrugneaux in #97
- fix: remove the mainnet restriction by @nicolasbrugneaux in #105
- feat: improve cREAL/cStable Support by @aaronmgdr in #115
- fix: Auto Switch to Valora (or other deeplinked wallet) when signing/approving on mobile by @aaronmgdr in #118
- fix: More explicit storage of feeCurrency field by @dckesler in #120
- fix Some Mobile Browsers are not Auto Opening Valora by @aaronmgdr in #121
Full Changelog: 2.1.2...v3.0.1