sdk-v0.9.2
SDK
QVAC SDK v0.9.2
📦 NPM: https://www.npmjs.com/package/@qvac/sdk/v/0.9.2
Hotfix patch release. Single-fix patch — no API, behavioral, or model changes.
🐞 Fixes
Fix TypeError: z.xor is not a function for consumers on zod < 4.3
The SDK's finetune schemas used z.xor([z.number(), z.nan()]) in 8 places, an API only available in zod ≥ 4.3.0. The package declared "zod": "^4.0.17", so consumer projects whose tree resolved zod to a 4.0.x / 4.1.x / 4.2.x version crashed at runtime when finetune schemas loaded.
Two coordinated changes:
- Replaced
z.xor([z.number(), z.nan()])withz.union([z.number(), z.nan()])inpackages/sdk/schemas/finetune.ts. In zod v4,z.number()rejectsNaNby default, soz.number()andz.nan()are disjoint —z.xorandz.unionare semantically identical here. - Bumped the declared
zodfloor from^4.0.17to^4.3.0to align the declared range with the version of zod the SDK is actually built and tested against.
Consumers who hit _zod.z.xor is not a function on 0.9.1 will be unblocked at runtime after upgrading to 0.9.2.
See PR #1790 for full details and reasoning.
Stay updated
Never miss a release
New versions, breaking changes and migration notes - straight to your inbox. No spam, unsubscribe anytime.