Skip to content

Releases: zama-ai/sdk

v2.0.0-alpha.4

19 Mar 17:55

Choose a tag to compare

v2.0.0-alpha.4 Pre-release
Pre-release

2.0.0-alpha.4 (2026-03-19)

Features

  • sdk: persist FHE public key and params with artifact-level revalidation (#110) (e2dd6ae)

v2.0.0-alpha.3

19 Mar 17:12

Choose a tag to compare

v2.0.0-alpha.3 Pre-release
Pre-release

2.0.0-alpha.3 (2026-03-19)

Features

  • examples: add example-hoodi — ERC-7984 demo on Hoodi testnet (#111) (438f90a)

v2.0.0-alpha.2

18 Mar 19:54

Choose a tag to compare

v2.0.0-alpha.2 Pre-release
Pre-release

2.0.0-alpha.2 (2026-03-18)

Bug Fixes

  • sdk: detect session expiry with 30s staleTime on isAllowed query (#124) (532fb92)

v2.0.0-alpha.1

18 Mar 12:05

Choose a tag to compare

v2.0.0-alpha.1 Pre-release
Pre-release

2.0.0-alpha.1 (2026-03-18)

⚠ BREAKING CHANGES

  • useUserDecryptFlow removed, useUserDecrypt now has the
    flow hook's signature. Old low-level useUserDecrypt accepting
    UserDecryptParams is removed.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

  • docs(react-sdk): fix stale JSDoc example in useEncrypt

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

  • refactor(sdk,react-sdk): extract userDecryptMutationOptions and remove decryptionKeys wrapper

Move the user-decrypt orchestration logic (credential resolution, handle
grouping, relayer calls) into userDecryptMutationOptions in the SDK query
module so it can be shared. The react-sdk useUserDecrypt hook now delegates
to these options instead of reimplementing the logic inline.

Also remove the decryptionKeys indirection — all code now uses
zamaQueryKeys.decryption.handle() directly from @zama-fhe/sdk/query.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

  • refactor(sdk,react-sdk): extract all relayer mutation options into SDK query module

Move all remaining inline relayer mutation logic from react-sdk hooks into
shared mutation option factories in @zama-fhe/sdk/query. Hooks now delegate
to these options instead of calling sdk.relayer.* directly.

New SDK mutation options:

  • generateKeypairMutationOptions
  • createEIP712MutationOptions
  • createDelegatedUserDecryptEIP712MutationOptions
  • delegatedUserDecryptMutationOptions
  • publicDecryptMutationOptions
  • requestZKProofVerificationMutationOptions

Also adds onSuccess to MutationFactoryOptions using TanStack Query v5's
MutationFunctionContext — decrypt mutations now populate the query cache via
context.client.setQueryData() directly in the options, removing the need for
hooks to manage cache population.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

  • chore: regenerate API reports after mutation options refactor

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Documentation

  • improve documentation for useEncrypt and useUserDecrypt (#81) (5ce5f2e), closes #114

v1.2.0-alpha.5

18 Mar 10:32

Choose a tag to compare

v1.2.0-alpha.5 Pre-release
Pre-release

1.2.0-alpha.5 (2026-03-18)

v1.2.0-alpha.4

18 Mar 09:33

Choose a tag to compare

v1.2.0-alpha.4 Pre-release
Pre-release

1.2.0-alpha.4 (2026-03-18)

v1.2.0-alpha.3

17 Mar 13:19

Choose a tag to compare

v1.2.0-alpha.3 Pre-release
Pre-release

1.2.0-alpha.3 (2026-03-17)

Bug Fixes

  • sdk: auto-detect browser extensions and fall back to file-based worker URL (292bd3b)
  • sdk: fix extension runtime fallback and revoke blob URL after worker creation (e7c6d07)
  • sdk: inline worker code via blob URL to eliminate Vite optimizeDeps workaround (60f09b1)
  • sdk: make worker blob URL creation lazy to avoid SSR crashes (9a9311a)
  • sdk: support browser extensions and lazy worker creation (c0fcd44)
  • sdk: use proper TypeScript assertion type narrowing in utility guards (632bb80)
  • test: use forks pool for react-sdk in CI instead of default (4eca9aa)

Performance Improvements

  • test: use vmForks locally, vmThreads in CI for both test projects (d6f9de9)

v1.2.0-alpha.2

16 Mar 15:34

Choose a tag to compare

v1.2.0-alpha.2 Pre-release
Pre-release

1.2.0-alpha.2 (2026-03-16)

Bug Fixes

  • remove ABI re-exports from react-sdk that are no longer in sdk public API (ad24185)

Performance Improvements

  • reduce bundle size by inlining slim ABI fragments (613321c)

v1.2.0-alpha.1

16 Mar 10:58

Choose a tag to compare

v1.2.0-alpha.1 Pre-release
Pre-release

1.2.0-alpha.1 (2026-03-16)

Features

v1.1.0

13 Mar 16:13

Choose a tag to compare

1.1.0 (2026-03-13)

Features

  • add activity feed, batch transfer, and resume unshield e2e tests (0b05774)
  • add cleartext fhEVM feature (#51) (f951673)
  • add wagmi v2 compatibility shim for useConnection/getConnection (0741649)
  • cache decrypted balances in storage to eliminate spinner on reload (f90d649)
  • expose WASM thread pool option for RelayerWeb [SDK-10] (#28) (11dae99)
  • implement 10 SDK backlog items — types, hooks, callbacks, status tracking (Vibe Kanban) (#57) (b59e222), closes #ensureAllowance
  • react-sdk: audit improvements — consistent imports, optimistic shieldETH, error docs, mergeEnabled (Vibe Kanban) (#100) (d6efb4f)
  • read-only signer mode & gitbook import audit (#65) (03366c2)
  • sdk: add configurable session TTL for wallet sessions [SDK-11] (#56) (f6655d0), closes #hasLegacySignature
  • sdk: cleartext flat config refactor (#78) (b052bb9)
  • session-scoped signatures & SDK API improvements [SDK-6] (#25) (116ae85), closes CredentialsManager#sessionSignatures #reSign #storeKey #onEvent #lastChainId #unsubscribeSigner
  • test-components: add 11 shared form/panel components (28a29c2)
  • test-components: add shared responsive sidebar nav (ded5823)
  • test-components: add token-table with framework-agnostic LinkComponent prop (df48d0f)
  • test-components: scaffold shared test components package (3ff61a9)
  • test-vite: add React Router, Tailwind CSS, and extract pages (8c8c2fa)
  • test-vite: migrate to rolldown-vite (7488eef)

Bug Fixes

  • add viem as dep of sdk, fix examples (#74) (3cf92cd)
  • address integrator friction — gas limits, worker IIFE, CDN localhost, StrictMode restart, Sepolia /v2 (a18079c)
  • ci: add Vite build step before running e2e tests (66ee3d8)
  • deps: pin minimatch to 10.2.4 to resolve ReDoS vulnerabilities (#69) (3861748)
  • playwright: drain in-flight route handlers before reverting chain state (de35aab)
  • playwright: use uniform 30s timeout for nextjs project (d65cd82)
  • release: remove registry-url to fix npm trusted publishing (aa515ee)
  • replace < 2M with prose in JSDoc to silence tsdoc-malformed-html-name (2a777b4)
  • replace importScripts with fetch+eval in worker to fix MIME-type errors (54dbee8)
  • sdk: add /v2 path to mainnet relayer URL (84978f1)
  • security: resolve 3 high-severity Dependabot alerts (#41) (9c81b97), closes #3 #4 #2
  • security: resolve CodeQL code scanning alerts (#42) (27d54b6)
  • test-components: add non-null assertion for array index access (7e3efec)
  • test-nextjs: correct theme.css import path in globals.css (2b52c60)
  • test-nextjs: correct USDT contract address to match hardhat deployment (3e40812)
  • test-nextjs: replace CONTRACTS.confidentialToken with CONTRACTS.cUSDT (8762b14)
  • use real hardhat-deployed addresses, add missing transferBatcher approval (#50) (06c6428)

Performance Improvements

Reverts

  • remove premature localhost CDN validation & document balance cache (a17f191)