Releases: hoprnet/hopr-sdk
Releases · hoprnet/hopr-sdk
@hoprnet/hopr-sdk - v3.0.3
@hoprnet/hopr-sdk - v3.0.2
@hoprnet/hopr-sdk - v3.0.0
@hoprnet/hopr-sdk - v2.2.0
@hoprnet/hopr-sdk - v2.1.9
@hoprnet/hopr-sdk - v2.1.8
2.1.7
Changelog:
- Addition of getTicketPrice function to HOPRd API capabilities.
2.1.6
Added 3 new fileds to getInfo:
- indexerBlock: z.number().optional(), //present from HORPd 2.1.3
- indexerChecksum: z.string().optional(), //present from HORPd 2.1.3
- indexBlockPrevChecksum: z.number().optional(), //present from HORPd 2.1.5
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
v2.0.1
Changelog:
Update HOPRd SDK to be compatible with 2.0.1:
- remove
strategyfrom/api/v3/settings