0.3.8
Changelog
Version 0.3.8 - 2024-10-24
Refactors:
-
Unused Imports Removal:
- Removed the unused import of
useTonConnectUI
fromlib/components/Header/Wallet.tsx
andlib/components/Swap/Swap.tsx
. - Removed commented code related to
useTonConnectUI
in these components.
- Removed the unused import of
-
Swap Component Rendering:
- Further optimized the rendering of the
Swap
component inlib/components/Swap/Swap.tsx
, removing unnecessary imports and code for better performance.
- Further optimized the rendering of the
Bug Fixes:
- Error Handling:
- Improved error handling and reporting in
lib/components/Header/Wallet.tsx
,lib/components/Swap/Swap.tsx
, andlib/components/SwapButton/ConfirmationModal.tsx
.
- Improved error handling and reporting in
Features:
-
createSwap Function:
- Added a new
createSwap
function tolib/components/index.tsx
, enabling the creation of swaps via the widget's API.
- Added a new
-
TonConnectUI Integration:
- Updated the options store in
lib/store/options.store.ts
to include aTonConnectUI
instance and added a new actionsetTonConnectInstance
.
- Updated the options store in
Documentation:
- Updated the README file to reflect the latest changes and improvements.
Release Note
This release includes various optimizations, improved error handling, and new functionality such as the addition of the createSwap
function. Integration with TonConnectUI
has also been enhanced for more flexible use.
Full Changelog: 0.3.7...0.3.8