Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #81

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update dependencies #81

wants to merge 2 commits into from

Conversation

hakim-adamik
Copy link
Member

Copy link

vercel bot commented Dec 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
adamik-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 27, 2024 5:28pm

Copy link

what-the-diff bot commented Dec 27, 2024

PR Summary

  • Introduced New Launch Configurations
    A new file named launch.json was added in the .vscode directory to assist with setting up the configurations needed to launch the application.

  • Updated Package Dependencies
    Several dependencies in the package.json file were updated to more recent versions. Notable updates include the @cosmos-kit/keplr package, the @metamask/sdk-react package, as well as react and react-dom. There were also several updates in the @radix-ui/* package.

  • Enhanced Transaction and Validator APIs
    The getTransaction function in src/api/adamik/transaction.ts was modified to return null if a transaction result isn't available. Similarly, the getValidators function in src/api/adamik/validators.ts was modified to return a Promise<ValidatorResponse | null>. In both functions, error handling was enhanced for logging JSON stringified error responses.

  • Improved Code Cleanliness
    Unnecessary ref attributes were removed from several components, and minor updates were made to form handling in order to remove unused imports. This led to more streamlined, cleaner code.

  • Enhanced Type Safety
    The ref types were updated from React.ElementRef to React.ComponentRef across many components for enhanced type safety.

  • Simplified Component Implementations
    Several component implementations were simplified, with the removal of unnecessary ref attributes and consistent usage of the key prop, which improves React's reconciliation process.

  • Updated Component Handling
    The Toast related components were updated for better type handling, and the refactor meant to use React.ComponentRef instead of React.ElementRef. Also, the unnecessary ref props were removed from these components.

  • Made Modifications in MetamaskConnect Component
    In the MetamaskConnect component, the type of the metamaskAddresses variable was modified to include undefined. The comments were also clarified regarding how the Metamask addresses are handled.

  • Refactored ChainProvider to CosmosChainsProvider
    The ChainProvider was renamed to CosmosChainsProvider in WalletProvider.tsx. A new walletConnectOptions prop was also added to CosmosChainsProvider with a placeholder project ID.

  • Updated tsconfig.json
    The tsconfig.json file was updated to set the target to es2020 for more modern JavaScript syntax usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant