FastPix Node SDK: response-validation and security fixes, plus the move to fastpix.com
FastPix Node SDK: response-validation and security fixes, plus the move to fastpix.com
The FastPix Node SDK (@fastpix/fastpix-node) fixes a response-validation break on newer zod versions, removes accidental logging of the webhook signing secret, and defaults to the fastpix.com hosts. Upgrading is recommended for all installs.
What’s new:
-
Fixed response validation on zod 4.4.0 and later: fresh installs could pull zod
4.4.x, which made valid HTTP 200 responses that omit optional fields (such assummary,chapters,namedEntities, ormoderation) throw aResponseValidationError. Optional fields are now treated as optional on every zod version, and thezodrange is capped to a known-good version. Upgrade to stop these errors. -
Security: webhook signing secret no longer logged: removed debug statements that printed the signing secret and the raw payload.
-
Default hosts moved to fastpix.com: the default server URL is now
https://api.fastpix.com/v1/. If you rely on the defaults, just upgrade and rebuild. If you pass an explicit.ioserverURLoverride or reference.ioplayback, image, or dashboard URLs directly, update them to.combefore the.iohosts are decommissioned. -
SDK and API parity fixes: several responses now match the API exactly, including
frameRateon media-list tracks, preserved wire-format casing (QoeScore,fpSdk/fpSdkVersion), an addederrorIdon view entries, a nullable playbackdata.resolution, and the optionaldata.messageon delete-signing-key responses. -
Dependency cleanup: the published package now declares only
zodas a runtime dependency (removed a boguscryptostub and an accidental self-dependency, and moveddotenvtodevDependencies). Version bumped to2.0.8.