Skip to content

2.1.5

Compare
Choose a tag to compare
@mjadach-iv mjadach-iv released this 22 Aug 13:40
· 13 commits to main since this release
d2a4605
  • 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