Skip to content

chore(deps): dependency refresh + @lifi/sdk 4.0.1 + React Router v8 example#798

Merged
chybisov merged 5 commits into
mainfrom
chore/deps-refresh-sdk-rr-v8
Jun 22, 2026
Merged

chore(deps): dependency refresh + @lifi/sdk 4.0.1 + React Router v8 example#798
chybisov merged 5 commits into
mainfrom
chore/deps-refresh-sdk-rr-v8

Conversation

@chybisov

Copy link
Copy Markdown
Member

Which Linear task is linked to this PR?

None — dependency maintenance / housekeeping.

Why was it implemented this way?

A workspace-wide dependency refresh, finalized with a clean pnpm regen so the lockfile is a single, deduplicated artifact. Bundled into one PR (related upgrades that share one regenerated lockfile and were verified together); the commits are split into legible stories.

Commits

  1. chore(deps) — dependency refresh + @lifi/sdk (and @lifi/sdk-provider-*) → 4.0.1, Biome SVG-ignore + recommendedpreset migrate, lockfile regen.
  2. chore(example) — migrate the React Router example 7 → 8.0.1 and rename react-router-7react-router.
  3. fix(examples) — small compat fixes the bump surfaced (see below).

Key decisions

  • @lifi/sdk 4.0.0 → 4.0.1: ranges stay ^4.0.0 (repo convention); the fresh lockfile resolves to the latest 4.x. Single-copy of @lifi/sdk / @lifi/types verified.
  • pnpm regen collapses a wagmi version skew (the bump left 3.6.16 alongside 3.6.17) back to a single 3.6.17 copy — this is what restores the single WagmiProvider React context the widget relies on, fixing runtime crashes in the EVM/iframe/NFT examples.
  • ⚠️ pnpm 11.5.111.8.0 (packageManager field, via corepack use pnpm@latest — part of pnpm regen). This moves the toolchain for every dev + CI. Easy to miss in the lockfile diff — flagging it explicitly. If you'd rather not move pnpm in this PR, that single line reverts cleanly (the 11.8.0 lockfile is still 11.x-compatible).
  • React Router 7 → 8 for the example: removed the now-unused react-router-dom (dropped in v8), bumped engines.node to >=22.22.0 (v8 floor; CI + local on Node 24), dropped a dead baseUrl/paths tsconfig block (TS 6.0 deprecation).
  • fix(examples): nextjs/nextjs15 used widgetEvents.all.clear() (mitt API) — the emitter is now eventemitter3, so switched to per-listener .off(...); and stubbed wagmi tempo's optional import('accounts') in playground-next's next.config so webpack stops failing the build on it.

Visual showcase (Screenshots or Videos)

No UI changes. Verified by running the full e2e render suite (build → serve → Playwright asserting the widget renders): 17/17 active examples pass, including the migrated react-router (v8 SSR, no hydration/router errors). Repo checks all green: frozen-lockfile, biome, check:types, check:circular-deps, build, build:next, widget tests, knip.

Checklist before requesting a review

  • I have performed a self-review and testing of my code.
  • This pull request is focused and addresses a single problem. — bundled dependency-maintenance (deps + SDK + pnpm + RR v8 example + the small fixes the bump surfaced); intentionally one PR since they share one regenerated lockfile.
  • If this PR modifies the Widget API or adds new features that require documentation, I have updated the documentation in the public-docs repository. — N/A; no Widget API change.

chybisov added 3 commits June 19, 2026 15:59
Routine dependency refresh across the workspace via a fresh `pnpm regen`:
MUI 9.1, wagmi 3.6.17, viem ^2.52.2, TanStack Router/Virtual/Query,
i18next 26.3.1, Tron/Sui/Solana wallet adapters, Biome 2.5, Playwright 1.61,
vitest 4.1.9.

- Bump @lifi/sdk + @lifi/sdk-provider-* to 4.0.1 (resolved via the fresh
  lockfile; the ^4.0.0 ranges are intentionally unchanged).
- Regenerating the lockfile collapses wagmi to a single 3.6.17 copy, restoring
  the single WagmiProvider React context the widget relies on.
- Bump pnpm 11.5.1 -> 11.8.0 (corepack use pnpm@latest, part of `pnpm regen`).
- Biome 2.5 now lints standalone .svg files: ignore them, and migrate the
  deprecated `recommended: true` to `preset: "recommended"`.
Upgrade the example from React Router 7 to 8.0.1 (react-router plus all
@react-router/* packages) and rename the folder/package from `react-router-7`
to `react-router`.

- Remove the unused `react-router-dom` (the re-export package is dropped in v8).
- Bump `engines.node` to >=22.22.0 (the v8 floor; CI and local are on Node 24).
- Drop the deprecated tsconfig `baseUrl`/`paths` (the `~/` alias was unused) to
  clear the TypeScript 6.0 deprecation.
- Update the e2e example registry, docs, and smoke-test references.
- nextjs/nextjs15: the widget event emitter moved from mitt to eventemitter3,
  which has no `.all` map. Replace `widgetEvents.all.clear()` with per-listener
  `widgetEvents.off(...)` cleanup so `next build` type-checks again.
- playground-next: stub the optional `accounts` module (wagmi's tempo connector
  loads it via a guarded dynamic import) to false in next.config so webpack
  stops failing the build on the unresolved bare specifier.
@changeset-bot

changeset-bot Bot commented Jun 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8c002c8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 22 packages
Name Type
@lifi/widget Patch
@lifi/wallet-management Patch
@lifi/widget-provider-ethereum Patch
@lifi/widget-provider-solana Patch
@lifi/widget-provider-sui Patch
@lifi/widget-provider-tron Patch
connectkit Patch
deposit-flow Patch
dynamic Patch
nextjs Patch
nextjs15 Patch
nft-checkout Patch
privy-ethers-example Patch
privy Patch
rainbowkit Patch
reown Patch
svelte Patch
tanstack-router-example Patch
vite-project Patch
vue Patch
zustand-widget-config Patch
vite-iframe Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chybisov chybisov added Agent Review Request triggers QA Agent Zeus testing labels Jun 19, 2026
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

✅ E2E Dev Smoke — passing

Check Result
Dev server start (pnpm dev) ✅ started
Smoke tests ✅ passed

4 passed · 0 failed · 0 skipped · 21s

View run

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

E2E Examples — all passed

All examples passed in the latest run.

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

E2E Playground results

passed  158 passed

Details

stats  158 tests across 10 suites
duration  2 minutes, 4 seconds
commit  8c002c8

📥 Download full HTML report (open the run → Artifacts → playwright-report)

…t config

- CLAUDE.md: fix event-bus reference (eventemitter3, not mitt), document the
  wagmi single-copy requirement, add the example E2E commands + registry note,
  and note build-generated artifacts not to commit.
- next.config.mjs: the widget moved off mitt, so the comment justifying
  `ignoreBuildErrors` was stale. The flag is still needed (a pre-existing
  playground type error), so keep it with an accurate comment.
@lifi-qa-agent

lifi-qa-agent Bot commented Jun 19, 2026

Copy link
Copy Markdown

🔍 QA Review — Ticket Required

No Linear ticket could be found for this PR.

Agent review requires a linked ticket to provide context for the review. Without it, acceptance criteria cannot be verified and the review quality is significantly reduced.

To unblock:

  1. Create or link a Linear ticket for this PR
  2. Add the ticket URL to the PR description (e.g. Closes https://linear.app/lifi-linear/issue/EMB-XXX/...)
  3. Re-apply the "Agent Review Request" label — the review will start automatically

💡 Not sure which ticket to link? Check with your team or create a new one. It only takes a minute and makes the review much more useful.

@chybisov chybisov requested a review from effie-ms June 22, 2026 09:52
@chybisov chybisov merged commit 873fd1e into main Jun 22, 2026
38 checks passed
@chybisov chybisov deleted the chore/deps-refresh-sdk-rr-v8 branch June 22, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant