Releases: MyTonSwap/widget
1.0.2
Changelog
Version 1.0.2 - 2024-10-26
Refactors:
- TonConnectInstance Handling:
- Updated the handling of
TonConnectInstance
inSwap.tsx
to improve performance and ensure more reliable connection management.
- Updated the handling of
Release Note
This release refines the handling of TonConnectInstance in the Swap component, providing better performance and reliability for user connections.
Full Changelog: 1.0.1...1.0.2
1.0.1
Changelog
Version 1.0.1 - 2024-10-26
Refactors:
- TonConnectUIProvider:
- Updated
TonConnectUIProvider
toTonConnectUI
inSwap.stories.tsx
for better clarity and integration.
- Updated
Chores:
- Peer Dependencies:
- Updated peer dependencies in
package.json
andpnpm-lock.yaml
to ensure compatibility with the latest versions.
- Updated peer dependencies in
Styling:
- Toaster Component:
- Refined the styling of the
Toaster
component inSwap.tsx
for improved visual consistency.
- Refined the styling of the
- Card-Rate Class:
- Adjusted text alignment and added line-clamping in the
card-rate
class for cleaner text presentation.
- Adjusted text alignment and added line-clamping in the
Release Note
This release includes various refactors and styling improvements, enhancing both the usability and visual elements of the widget.
Full Changelog: 1.0.0...1.0.1
1.0.0
Changelog
Version 1.0.0 - 2024-10-26
Style Adjustments:
-
Text Alignment Update:
- Adjusted text alignment within the
card-rate
class for improved readability.
- Adjusted text alignment within the
-
Text Color Update:
- Updated text color for in-progress components to black, enhancing visibility across components.
Release Note
This release includes styling adjustments, focusing on better text alignment in the card-rate
class and improved visibility with black text for in-progress components, contributing to a more polished and user-friendly interface.
Full Changelog: 0.3.14...1.0.0
0.3.14
Changelog
Version 0.3.14 - 2024-10-24
Refactors:
- WaitingForWallet Component Refactor:
- Refactored the
WaitingForWallet
component to use thetonConnectInstance
for handling disconnection, improving the user experience during wallet connection flows.
- Refactored the
Release Note
This release refines the WaitingForWallet
component by utilizing the tonConnectInstance
for disconnection, enhancing connection management.
Full Changelog: 0.3.13...0.3.14
0.3.13
Changelog
Version 0.3.13 - 2024-10-24
Refactors:
- Wallet Component Refactor:
- Refactored the
Wallet
component to utilize thetonConnectInstance
for handling disconnection, improving the disconnection flow.
- Refactored the
Release Note
This version enhances the disconnection functionality in the Wallet
component by refactoring it to use the tonConnectInstance
.
Full Changelog: 0.3.12...0.3.13
0.3.12
Changelog
Version 0.3.12 - 2024-10-24
Refactors:
- useEffect Dependency Refactors:
- Refactored
useEffect
dependencies in both theSwapComponent
andConfirmationModal
to enhance performance and behavior consistency.
- Refactored
Release Note
This release includes improvements to the useEffect
dependencies within the SwapComponent
and ConfirmationModal
, optimizing functionality and performance.
Full Changelog: 0.3.11...0.3.12
0.3.11
Changelog
Version 0.3.11 - 2024-10-24
Refactors:
- useOptionsStore Optimization:
- Refactored
useOptionsStore
to prevent setting thetonConnectInstance
multiple times, ensuring better state management.
- Refactored
Release Note
This version improves state management by optimizing the useOptionsStore
function, preventing redundant setting of the tonConnectInstance
.
Full Changelog: 0.3.10...0.3.11
0.3.10
Changelog
Version 0.3.10 - 2024-10-24
Refactors:
- Swap Component useEffect Dependencies:
- Refactored the
useEffect
dependencies in theSwap
component to improve performance and ensure correct behavior.
- Refactored the
Release Note
This release includes a refactor of the useEffect
dependencies within the Swap
component, improving performance and enhancing functionality.
Full Changelog: 0.3.9...0.3.10
0.3.9
Changelog
Version 0.3.9 - 2024-10-24
Refactors:
- Unused Imports Removal:
- Removed the unused import of
useTonConnectUI
from various components. - Cleaned up commented code related to
useTonConnectUI
.
- Removed the unused import of
Release Note
This version includes a refactor to remove unused imports and commented-out code, streamlining the codebase for better maintainability.
Full Changelog: 0.3.8...0.3.9
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