Skip to content

Releases: internxt/sdk

v1.15.2

06 Mar 09:05
b54c39b

Choose a tag to compare

  • Add abort signal to upload requests.

v1.15.1

27 Feb 17:31

Choose a tag to compare

  • Get rid of direct uuid package dependency, replacing its use with a simple regex

v1.15.0

24 Feb 15:44
4ac58ae

Choose a tag to compare

Adds a retryWithBackoff utility that automatically retries HTTP requests when a 429 – Too Many
Requests response is received.

Key points

  • Retries are based on the retry-after response header.
  • Integrated into all HttpClient HTTP methods via an execute wrapper.
  • Retry is disabled by default — enable it globally through HttpClient.enableGlobalRetry, or
    per-service by passing retryOptions inside the ApiSecurity object.
  • Per-service options take priority over global options.

Behavior details

  • Retries only on 429 Too Many Requests.
  • Delay is read from the retry-after header (seconds).
  • Delay is capped at maxRetryAfter (default: 70000ms) regardless of header value.
  • If the header is missing or invalid, the error is thrown immediately.
  • After all retries are exhausted, the original error is re-thrown with a Max retries exceeded
    prefix.
  • Setting maxRetries to 0 in enableGlobalRetry is a compile-time error via the NonZero type
    constraint.

Configuration examples

// Per-service: only Storage retries
Storage.client(apiUrl, appDetails, { token, retryOptions: { maxRetries: 3 } }); 
Auth.client(apiUrl, appDetails); // no retry

// Global: all services retry
HttpClient.enableGlobalRetry({ maxRetries: 5 });

// Per-service overrides global
HttpClient.enableGlobalRetry({ maxRetries: 5 }); 
Storage.client(apiUrl, appDetails, { token, retryOptions: { maxRetries: 2 } }); // uses 2

v1.14.2

19 Feb 15:24
9d7fea7

Choose a tag to compare

  • Add Mail API

v1.13.1

12 Feb 15:56
84df350

Choose a tag to compare

  • Update schema with file version modificationTime field

v1.13.0

11 Feb 15:36
670d8e9

Choose a tag to compare

  • Migrated tests to vitest
  • Updated dependencies

v1.12.6

10 Feb 08:43
033b19e

Choose a tag to compare

What's new:

  • Remove useless headers for location API EPs

v1.12.5

09 Feb 12:41
c0cc071

Choose a tag to compare

  • Added Send sdk integration

v1.12.4

09 Feb 10:15
bac1984

Choose a tag to compare

  • Refactoring location class to allow basic headers.

v1.12.3

04 Feb 09:30
b499036

Choose a tag to compare

What's Changed

  • Added support for custom interceptors in HttpClient

Full Changelog: v1.12.2...v1.12.3