Skip to content

Releases: coinbase/onchainkit

v0.33.5

08 Oct 22:10
cb8a451
Compare
Choose a tag to compare

Patch Changes

v0.33.4

04 Oct 16:42
372a186
Compare
Choose a tag to compare

Patch Changes

  • 1bf3c38: -feat: Added SwapDefault component which renders suggested implementation of Swap. By @abcrane123 #1303 -feat: Added WalletDefault component which renders suggested implementation of Wallet. By @abcrane123 #1302 -feat: Added TransactionDefault component which renders suggested implementation of Transaction. By @abcrane123 #1350 -feat: Added [Pay] component. by @0xAlec #1349

v0.33.3

01 Oct 18:19
392cce0
Compare
Choose a tag to compare

Patch Changes

v0.33.2

27 Sep 19:11
bccd6f8
Compare
Choose a tag to compare

Patch Changes

v0.33.1

24 Sep 20:16
a0c168f
Compare
Choose a tag to compare

Patch Changes

v0.33.0

20 Sep 16:47
1baacd4
Compare
Choose a tag to compare

Minor Changes

  • 8904699: - feat: set v2 as default API for Swap. by @0xAlec #1254

    • chore: updated SwapSettingsSlippageInput to use the input config defaultMaxSlippage value. By @cpcramer #1263
    • feat: added batched Swap transactions from ERC-20. by @0xAlec #1272

    Breaking Changes

    Updated LifecycleStatus in Swap component for swaps from ERC-20 tokens.
    Previously, there were 2 transactions when swapping from an ERC-20 token.
    Now, there is an extra approval. (Approve ERC-20 against Permit2 -> Approve Uniswap to spend the approved ERC-20s on Permit2 -> Execute Swap Transaction)
    Additionally, for Coinbase Smart Wallet users, transaction calls are now batched so only one transactionApproved lifecycle status will be emitted under the Batched transaction type for swaps from ERC-20s.
    If you're listening to the LifecycleStatus in Swap, please make sure your app accounts for the extra transaction.

v0.32.0

17 Sep 15:07
adf2a7c
Compare
Choose a tag to compare

Minor Changes

  • feat: re-typed walletCapabilities object in OnchainKitConfig. By @0xAlec #1238
  • fix: removed mt-4 from <TransactionButton>, ensuring the primary component maintains a clean and consistent design without outer margin. By @Zizzamia #1258
  • fix: renamed LifeCycle to Lifecycle. By @Zizzamia #1257
  • fix: SwapSlippageInput was visually resetting to default value on error. By @cpcramer #1250
  • fix: removed context states and use lifecyclestatus as the source of truth, also persisted all lifecycle status data (except errors). By @alessey #1249
  • fix: extracting SwapMessage to constants to avoid circular dependency. By @alessey #1255
  • feat: enhanced Framegear Home component with layout, loading state, and placeholder improvements. By @adarshswaminath #1241

Breaking Changes

Removed walletCapabilities from the OnchainKitConfig and improved the internal types by using the native Viem wallet capabilities type. This update ensures that wallet capabilities are now used solely as read info, avoiding accidental changes to wallet capabilities.

The <TransactionButton> will no longer have a preset margin, allowing you to customize your app's spacing. Please check your app to see if you need to add a 4px margin. We aim to provide more neutral spacing, giving you the flexibility to add margin as needed.

The LifeCycleStatus type is now renamed LifecycleStatus. This update aligns with React's lifecycle naming best practices, ensuring a smoother experience with your app. Please take note of this improvement.

v0.31.6

12 Sep 21:37
5d9d1fb
Compare
Choose a tag to compare

Patch Changes

  • 6147155: - feat: added custom max slippage support in the Swap component along with a new settings dropdown UI. By @cpcramer #1176 #1248
    • feat: added type LifecycleStatusDataShared to the LifeCycleStatus to hold shared lifeCycle state. By @Zizzamia #1234 #1240
    • feat: introduced config for the Swap component, with the first option for maxSlippage. By @Zizzamia & @cpcramer #1242
    • fix: added spacing between swap input and token select. By @alessey #1229

v0.31.5

10 Sep 20:37
379cd72
Compare
Choose a tag to compare

Patch Changes

v0.31.4

05 Sep 22:13
582cd72
Compare
Choose a tag to compare

Patch Changes