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

ci(repo): ESM Migration & Bump Deps #2331

Merged
merged 77 commits into from
May 31, 2024

Conversation

AtelyPham
Copy link
Member

@AtelyPham AtelyPham commented May 24, 2024

Summary of changes

Provide a detailed description of proposed changes.

  • Removed unused anchors & signature bridge addresses in the config.
  • Migrated to Nx v19 which supports ESM migration and utilizes nx-release to improve the release process.
  • Migrated all libraries to ESM:
    • Updated the rollup build with consistent bundles & types.
    • Updated the tsc build for consistent bundles & types.
  • Migrated apps to ESM
  • Updated minimum requirement engines
    • Node >=18.12.x
    • Yarn 4.2.2
  • Bumped 88 dependencies & 164 dev dependencies with breaking changes
  • Upgraded to Storybook v8.1.1 with breaking changes
  • Removed Sentry on apps
  • Upgraded github action packages with breaking changes
  • Migrated to wagmi v2
  • Fixed the secondaryMessage not showing on the notification
  • Fixed rainbow wallet connection
  • Handled wallet not installed error with multiple injected providers by utilizing EIP-6963 providers
  • Migrated to Eslint v9 & Prettier v3
    • Tried flat config feature of eslint v9 but it seems nx still not supported flat config with esm modules pretty well!
  • Replaced built-in hooks with hooks from a library
  • Migrated to Modern Yarn v4

Instruction to migrate to Modern Yarn v4 (cc @yurixander @devpavan04 @vutuanlinh2k2)

  1. Make sure the minimum Node requirement >=18.12.x
  2. Run corepack enable to activate Corepack
  3. Go into your project directory
  4. Run yarn set version 4.2.2

For more information about the migration, refer to the Yarn documentation.

Proposed area of change

Put an x in the boxes that apply.

  • apps/bridge-dapp
  • apps/hubble-stats
  • apps/stats-dapp
  • apps/tangle-dapp
  • apps/testnet-leaderboard
  • apps/faucet
  • apps/zk-explorer
  • libs/webb-ui-components

Reference issue to close (if applicable)

Specify any issues that can be closed from these changes (e.g. Closes #233).

Handle wallet not install error inside the wallet connect modal
@devpavan04
Copy link
Member

Transfer (Substrate address to Substrate address and Substrate address to EVM address) ✅

CleanShot.2024-05-30.at.08.15.09.mp4

@devpavan04
Copy link
Member

First-time nominator (step 1 - select validators) runtime error ❌

CleanShot.2024-05-30.at.08.27.06.mp4

CleanShot 2024-05-30 at 08 27 50

@devpavan04
Copy link
Member

First-time nomination (Substrate) ✅

CleanShot.2024-05-30.at.08.42.52.mp4

@devpavan04
Copy link
Member

Add stake -bond extra (Substrate) ✅

CleanShot.2024-05-30.at.08.46.37.mp4

@devpavan04
Copy link
Member

Unbond (Substrate) ✅

CleanShot.2024-05-30.at.08.48.36.mp4

@devpavan04
Copy link
Member

Rebond (Substrate) ✅

CleanShot.2024-05-30.at.08.50.12.mp4

@devpavan04
Copy link
Member

devpavan04 commented May 30, 2024

Change reward destination (Substrate) ✅

CleanShot.2024-05-30.at.08.56.54.mp4

@devpavan04
Copy link
Member

Stop nomination (Substrate) ✅

CleanShot.2024-05-30.at.09.08.52.mp4

@yurixander
Copy link
Member

yurixander commented May 30, 2024

EVM transaction QA checklist:

  • Setup nominator
  • ⚠️ Update nominations
    • Won't let me update nominations / select other nominators:
      image
  • Bond more
  • Set payee
  • Unbond
  • Rebond
  • Withdraw
  • Transfer EVM -> Substrate
  • Transfer EVM -> EVM
  • Chill / stop nomination

@AtelyPham AtelyPham merged commit 7876949 into develop May 31, 2024
11 checks passed
@AtelyPham AtelyPham deleted the trung-tin/esm-migration-and-upgrade-deps branch May 31, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review 👓 Pull request needs a review
Projects
Status: Completed ✅
Development

Successfully merging this pull request may close these issues.

[TASK] Migrate Applications and Libraries to ESM Format
4 participants