Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.440.0"
".": "0.441.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5a71b48efd87b38f1e7fd01e83a58b902b2c262b2606c4bf8e1ad0d7f562772e.yml
openapi_spec_hash: a159f26827b08d4900b7b354854535c7
config_hash: 4b562e97b3d8b4cba758a87d4927a76d
config_hash: b881baa4e0bc537d0caf02152712bd28
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.441.0 (2026-02-24)

Full Changelog: [v0.440.0...v0.441.0](https://github.com/Increase/increase-typescript/compare/v0.440.0...v0.441.0)

### Features

* **api:** api update ([51d9c60](https://github.com/Increase/increase-typescript/commit/51d9c60c80d55490a5333ef6fae7e48f722bf3cf))

## 0.440.0 (2026-02-24)

Full Changelog: [v0.439.0...v0.440.0](https://github.com/Increase/increase-typescript/compare/v0.439.0...v0.440.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "increase",
"version": "0.440.0",
"version": "0.441.0",
"description": "The official TypeScript library for the Increase API",
"author": "Increase <dev-feedback@increase.com>",
"types": "dist/index.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,11 @@ export class Increase {
throw new Errors.APIConnectionError({ cause: response });
}

const responseInfo = `[${requestLogID}${retryLogStr}] ${req.method} ${url} ${
const specialHeaders = [...response.headers.entries()]
.filter(([name]) => name === 'Idempotent-Replayed')
.map(([name, value]) => ', ' + name + ': ' + JSON.stringify(value))
.join('');
const responseInfo = `[${requestLogID}${retryLogStr}${specialHeaders}] ${req.method} ${url} ${
response.ok ? 'succeeded' : 'failed'
} with status ${response.status} in ${headersTime - startTime}ms`;

Expand Down
3 changes: 3 additions & 0 deletions src/core/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ export class APIError<
/** JSON body of the response that caused the error */
readonly error: TError;

readonly idempotentReplayed: string | null | undefined;

constructor(status: TStatus, error: TError, message: string | undefined, headers: THeaders) {
super(`${APIError.makeMessage(status, error, message)}`);
this.status = status;
this.headers = headers;
this.idempotentReplayed = headers?.get('Idempotent-Replayed');
this.error = error;
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.440.0'; // x-release-please-version
export const VERSION = '0.441.0'; // x-release-please-version