Skip to content

Update TypeScript SDK request handling and types for 3.0.1 - #24

Merged
MudassarTariq merged 3 commits into
masterfrom
fix/sdk-requests-and-types
Nov 5, 2026
Merged

MudassarTariq merged 3 commits into
masterfrom
fix/sdk-requests-and-types

Conversation

@MudassarTariq

Copy link
Copy Markdown
Member

Fix cases where printing a client or logging a request error exposed the configured API key. The built-in client now stops redirects to another server before forwarding lookup data or custom headers. HTTP errors keep their status when the response body is too large or interrupted.

Both 3.0.1 packages support Arabic and include the CDN, proxy, bot and corporate gateway response fields. Typed bulk lookups reject missing or extra rows; raw JSON and XML responses are unchanged. The package declarations work in CommonJS and ES modules, including projects that use both.

Checks: 84 unit tests on Node 22 and 24; Node 18 package checks; a 50,000-row local bulk lookup; live API and browser checks; and clean installs of both npm archives. The types package’s README examples were compiled and run. Existing projects that handle every language explicitly need to add ar to their list.

@MudassarTariq
MudassarTariq marked this pull request as ready for review November 5, 2026 18:33
@MudassarTariq
MudassarTariq merged commit ffd9030 into master Nov 5, 2026
3 checks passed
@MudassarTariq
MudassarTariq deleted the fix/sdk-requests-and-types branch November 5, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant