Major Changes
-
#86
34f408dThanks @MaximusHaximus! - Generated clients'TransportErrorandResponseValidationErrornow extend@polygonlabs/verror'sVErrorinstead of the bareErrorglobal, so consumers getVError.info(),serializeError(), and cause-chain helpers for free on wrapper-emitted errors.Breaking change
Install the new required runtime peer dependency, then regenerate your client:
pnpm add @polygonlabs/verror
Behaviour changes
.messagenow includes the accumulated cause message. The as-constructed message alone is available as.shortMessage.ResponseValidationError.bodyis now a getter backed byVError'sinfobag —error.bodystill reads the same way, andVError.info(error).body/serializeError(error)now see it too.isTransportError,isResponseValidationError,isWrapperError, and their marker symbols are unchanged — existing narrowing code keeps working.