Skip to content

chore(examples): upgrade react-viem to @zama-fhe/sdk 3.1.0-alpha.10#404

Draft
zama-cremaud wants to merge 1 commit into
prereleasefrom
feat/upgrade-react-viem-3.1.0-alpha.5
Draft

chore(examples): upgrade react-viem to @zama-fhe/sdk 3.1.0-alpha.10#404
zama-cremaud wants to merge 1 commit into
prereleasefrom
feat/upgrade-react-viem-3.1.0-alpha.5

Conversation

@zama-cremaud

@zama-cremaud zama-cremaud commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Upgrades the react-viem example to the 3.1.0-alpha.10 SDK line.

What changed

  • Bumps @zama-fhe/sdk and @zama-fhe/react-sdk to 3.1.0-alpha.10.
  • Adopts the 3.1 hook surface: positional address args, renamed permit helpers, EncryptedValue handles, sdk.signer in place of requireSigner.

Verification

  • npm run typecheck → exit 0 against the published 3.1.0-alpha.10 packages.
  • This app uses only high-level token/delegation hooks; it has no decrypt-glossary (useUserDecrypt/userDecrypt…) call-sites, so the upgrade is pin-only on the surfaces it consumes.

Part of the SDK-208 example-app upgrade rollout (one PR per app).

🤖 Generated with Claude Code

@cla-bot cla-bot Bot added the cla-signed label Jun 11, 2026
@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

Public API Changes

✅ No public API changes detected.

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 92.13% (🎯 80%) 3105 / 3370
🔵 Statements 92.21% 3199 / 3469
🔵 Functions 92.45% (🎯 80%) 1041 / 1126
🔵 Branches 84.66% (🎯 80%) 1193 / 1409
File CoverageNo changed files found.
Generated in workflow #2590 for commit 227429c by the Vitest Coverage Report Action

zama-cremaud added a commit that referenced this pull request Jun 15, 2026
…nce result [SDK-208]

The react-viem (#404) + react-ethers (#410) convergence experiment showed the
semantic migration converges perfectly (identical hook call-site API shapes),
with the only residual divergence being incidental line-wrapping. Running oxfmt
collapses both to byte-identical source — so the deterministic gate now formats
before typechecking, making converged-API the bar the apply step has to hit
rather than hand-matching a sibling's whitespace.

- cli.mjs: `apply --gate` now runs bump -> install -> format (oxfmt) -> typecheck;
  format is best-effort (skipped with a warning for external apps lacking oxfmt).
- apply-guide skill + /sdk-upgrade command: document the format-then-typecheck gate.
- plan doc: mark Phase 2 done and record the convergence finding.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@zama-cremaud zama-cremaud force-pushed the feat/upgrade-react-viem-3.1.0-alpha.5 branch from a747386 to 966b0ae Compare June 16, 2026 12:03
@zama-cremaud zama-cremaud changed the title feat(examples): upgrade react-viem to @zama-fhe/sdk 3.1.0-alpha.5 feat(examples): upgrade react-viem to @zama-fhe/sdk 3.1.0-alpha.9 Jun 16, 2026
@zama-cremaud zama-cremaud force-pushed the feat/upgrade-react-viem-3.1.0-alpha.5 branch from 966b0ae to 3a3fc35 Compare June 16, 2026 16:24
@zama-cremaud zama-cremaud changed the title feat(examples): upgrade react-viem to @zama-fhe/sdk 3.1.0-alpha.9 feat(examples): upgrade react-viem to @zama-fhe/sdk 3.1.0-alpha.10 Jun 16, 2026
Migrate the react-viem example to the 3.1 SDK line:
- bump @zama-fhe/sdk and @zama-fhe/react-sdk pins to 3.1.0-alpha.10
- adopt the 3.1 hook surface (positional address args, renamed permit
  helpers, EncryptedValue handles, sdk.signer over requireSigner)

Verified with `npm run typecheck` (exit 0) against the published
3.1.0-alpha.10 packages. No decrypt-glossary call-sites in this app, so
the upgrade is pin-only on the surfaces it consumes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@zama-cremaud zama-cremaud force-pushed the feat/upgrade-react-viem-3.1.0-alpha.5 branch from 3a3fc35 to 227429c Compare June 16, 2026 22:43
@zama-cremaud zama-cremaud changed the title feat(examples): upgrade react-viem to @zama-fhe/sdk 3.1.0-alpha.10 chore(examples): upgrade react-viem to @zama-fhe/sdk 3.1.0-alpha.10 Jun 16, 2026
@ankurdotb ankurdotb added the do not merge This is not ready to be merged, waiting on someone else's work label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed do not merge This is not ready to be merged, waiting on someone else's work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants