2.1.5
- Re-did error handling to a have following structure:
sdkApiError({
status, // HTTP status (number)
statusText, // Usually HTTP error status text (string)
hoprdErrorPayload, // optional HoprdErrorPayload
});
// optional HoprdErrorPayload structure:
export const ApiErrorResponse = z.object({
status: z.string(),
error: z.string().optional()
});
Change from unpublished 2.1.3 release:
- add multiaddr to PeerAnnouncedType