Skip to content

Releases: MyTonSwap/widget

1.0.2

26 Oct 09:03
Compare
Choose a tag to compare

Changelog

Version 1.0.2 - 2024-10-26

Refactors:

  • TonConnectInstance Handling:
    • Updated the handling of TonConnectInstance in Swap.tsx to improve performance and ensure more reliable connection management.

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

26 Oct 08:36
Compare
Choose a tag to compare

Changelog

Version 1.0.1 - 2024-10-26

Refactors:

  • TonConnectUIProvider:
    • Updated TonConnectUIProvider to TonConnectUI in Swap.stories.tsx for better clarity and integration.

Chores:

  • Peer Dependencies:
    • Updated peer dependencies in package.json and pnpm-lock.yaml to ensure compatibility with the latest versions.

Styling:

  • Toaster Component:
    • Refined the styling of the Toaster component in Swap.tsx for improved visual consistency.
  • Card-Rate Class:
    • Adjusted text alignment and added line-clamping in the card-rate class for cleaner text presentation.

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

26 Oct 06:44
Compare
Choose a tag to compare

Changelog

Version 1.0.0 - 2024-10-26

Style Adjustments:

  • Text Alignment Update:

    • Adjusted text alignment within the card-rate class for improved readability.
  • 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

24 Oct 18:43
Compare
Choose a tag to compare

Changelog

Version 0.3.14 - 2024-10-24

Refactors:

  • WaitingForWallet Component Refactor:
    • Refactored the WaitingForWallet component to use the tonConnectInstance for handling disconnection, improving the user experience during wallet connection flows.

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

24 Oct 18:27
Compare
Choose a tag to compare

Changelog

Version 0.3.13 - 2024-10-24

Refactors:

  • Wallet Component Refactor:
    • Refactored the Wallet component to utilize the tonConnectInstance for handling disconnection, improving the disconnection flow.

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

24 Oct 18:21
Compare
Choose a tag to compare

Changelog

Version 0.3.12 - 2024-10-24

Refactors:

  • useEffect Dependency Refactors:
    • Refactored useEffect dependencies in both the SwapComponent and ConfirmationModal to enhance performance and behavior consistency.

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

24 Oct 17:55
Compare
Choose a tag to compare

Changelog

Version 0.3.11 - 2024-10-24

Refactors:

  • useOptionsStore Optimization:
    • Refactored useOptionsStore to prevent setting the tonConnectInstance multiple times, ensuring better state management.

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

24 Oct 17:36
Compare
Choose a tag to compare

Changelog

Version 0.3.10 - 2024-10-24

Refactors:

  • Swap Component useEffect Dependencies:
    • Refactored the useEffect dependencies in the Swap component to improve performance and ensure correct behavior.

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

24 Oct 17:22
Compare
Choose a tag to compare

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.

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

24 Oct 17:13
Compare
Choose a tag to compare

Changelog

Version 0.3.8 - 2024-10-24

Refactors:

  • Unused Imports Removal:

    • Removed the unused import of useTonConnectUI from lib/components/Header/Wallet.tsx and lib/components/Swap/Swap.tsx.
    • Removed commented code related to useTonConnectUI in these components.
  • Swap Component Rendering:

    • Further optimized the rendering of the Swap component in lib/components/Swap/Swap.tsx, removing unnecessary imports and code for better performance.

Bug Fixes:

  • Error Handling:
    • Improved error handling and reporting in lib/components/Header/Wallet.tsx, lib/components/Swap/Swap.tsx, and lib/components/SwapButton/ConfirmationModal.tsx.

Features:

  • createSwap Function:

    • Added a new createSwap function to lib/components/index.tsx, enabling the creation of swaps via the widget's API.
  • TonConnectUI Integration:

    • Updated the options store in lib/store/options.store.ts to include a TonConnectUI instance and added a new action setTonConnectInstance.

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