Releases: zama-ai/sdk
v2.0.0-alpha.4
2.0.0-alpha.4 (2026-03-19)
Features
v2.0.0-alpha.3
2.0.0-alpha.3 (2026-03-19)
Features
v2.0.0-alpha.2
2.0.0-alpha.2 (2026-03-18)
Bug Fixes
v2.0.0-alpha.1
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
v1.2.0-alpha.5
1.2.0-alpha.5 (2026-03-18)
v1.2.0-alpha.4
1.2.0-alpha.4 (2026-03-18)
v1.2.0-alpha.3
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
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
1.2.0-alpha.1 (2026-03-16)
Features
- add delegated decryption support [SDK-12] (#72) (7bcaeb6), closes #batchDelegationOp #storage #batchDecryptCore
v1.1.0
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
viemas 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
< 2Mwith 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)