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

Chore/update packages (Ready) #597

Merged
merged 19 commits into from
Oct 22, 2024
Merged

Chore/update packages (Ready) #597

merged 19 commits into from
Oct 22, 2024

Conversation

Sharqiewicz
Copy link
Collaborator

@Sharqiewicz Sharqiewicz commented Oct 15, 2024

🦈 The goal of the PR is to update all the outdated packages. Some of them are even 18 months old.

👷 Removed packages

  • stellar-sdk/stellar-base (deprecated) => installed @stellar/stellar-sdk
  • sass => we had only 1 file using sass, I changed it plain css and removed sass
  • semantic-relase (CHANGELOD.md + release.config.js)
  • @testing-library/react-hooks (not used)

To investigate:

  • If we need luxon package. We use it only once.
  • If we need Babel for JEST. Our transpiler is esbuild, we don't need Babel for transpilation. Our testing enviroment was configured long time ago to use Babel. I think we should consider changing it to remove Babel from our repo. (it creates confusion) - create a task
  • Move from react-lottie to react-lottie-player ( react-lottie-player doesn't use eval )

I did not

  • investigate graphql dependencies
  • migrate from preact to react

Changed the minimum version of yarn to be >=4.0.0

  • Fixed package manager warnings. The rest of the warnings will be resolved once we migrate from Preact to React.

Note: Recent DaisyUI generates css-syntax-error on build. Can be ignored.

Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for rococo-souffle-a625f5 ready!

Name Link
🔨 Latest commit 8648874
🔍 Latest deploy log https://app.netlify.com/sites/rococo-souffle-a625f5/deploys/671231cf80e63f00087a4532
😎 Deploy Preview https://deploy-preview-597--rococo-souffle-a625f5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Sharqiewicz Sharqiewicz changed the title Chore/update packages (WIP) Chore/update packages (Ready) Oct 17, 2024
@Sharqiewicz Sharqiewicz requested a review from ebma October 17, 2024 11:50
@Sharqiewicz
Copy link
Collaborator Author

@ebma Ready for review

Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great changes, looks good to me 👍

If we need luxon package. We use it only once.

I'm fine to remove it, we just need to replace that one function call with custom logic.

If we need Babel for JEST. Our transpiler is esbuild, we don't need Babel for transpilation. Our testing enviroment was configured long time ago to use Babel. I think we should consider changing it to remove Babel from our repo. (it creates confusion) - create a task

Agreed. Can you create the task @Sharqiewicz?

Move from react-lottie to react-lottie-player ( react-lottie-player doesn't use eval )

What's the benefit?


When linting, I always get the error

yarn lint
=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=4.7.4 <5.5.0

YOUR TYPESCRIPT VERSION: 5.6.3

Please only submit bug reports when using the officially supported version.

Should we consider upgrading our eslint dependencies, or did you look into this and there is not much we can do at the moment @Sharqiewicz?

@Sharqiewicz
Copy link
Collaborator Author

Sharqiewicz commented Oct 18, 2024

@ebma

I created tasks:

‘eval’ is a pass-through for XSS attacks, the best practice is to always eliminate it from the application.

@ebma
Copy link
Member

ebma commented Oct 18, 2024

Cool 👍 how about you tackle those issues in about a month when the monthly reminder fires again?

@Sharqiewicz
Copy link
Collaborator Author

@ebma I think we can ignore the warning. We won't use any TS features from versions greater than 5.5.0

@Sharqiewicz
Copy link
Collaborator Author

Sharqiewicz commented Oct 18, 2024

created task for react-lottie package replacement: #603

@Sharqiewicz
Copy link
Collaborator Author

@ebma I think it's ready

@ebma
Copy link
Member

ebma commented Oct 18, 2024

Nice, let's go 🚀

Edit: Okay, actually it might make sense to have the @pendulum-chain/product also have a quick look and briefly test all features to make sure we are not missing some sneaky regressions due to the update.

@prayagd
Copy link
Collaborator

prayagd commented Oct 22, 2024

@ebma what features to be tested all the portal features?

@Sharqiewicz
Copy link
Collaborator Author

@prayagd @arjun There are no new features in this update. I have updated nearly all of the key packages we use for development. We just need to verify that everything works correctly and ensure there are no regressions.

@prayagd
Copy link
Collaborator

prayagd commented Oct 22, 2024

We just need to verify that everything works correctly and ensure there are no regressions.

Dumb question: How do i check if there are no regressions?

@Sharqiewicz
Copy link
Collaborator Author

@prayagd I think in order to test if there is no regression, we have to ensure that every Portal feature is working correctly. So we should test staking, forex amm and spacewalk

@prayagd
Copy link
Collaborator

prayagd commented Oct 22, 2024

Will do

Copy link
Collaborator

@prayagd prayagd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Staking, unstaking and claim worked
  • Swap, adding liquidity to swap pool and bsp worked
  • Issue and Redeem works
    LGTM

@Sharqiewicz Sharqiewicz merged commit 6d03bd1 into main Oct 22, 2024
5 checks passed
@Sharqiewicz Sharqiewicz deleted the chore/update-packages branch October 22, 2024 14:55
@ebma
Copy link
Member

ebma commented Oct 22, 2024

I think in order to test if there is no regression, we have to ensure that every Portal feature is working correctly. So we should test staking, forex amm and spacewalk.

Yes exactly, that's what I meant. Thanks @Sharqiewicz for pointing it out and @prayagd for testing.

@Sharqiewicz Sharqiewicz mentioned this pull request Oct 23, 2024
2 tasks
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.

3 participants