diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0ee8c01..816df2d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.3.0" + ".": "0.3.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 335ccda..bb5bb1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.3.1 (2026-01-07) + +Full Changelog: [v0.3.0...v0.3.1](https://github.com/warpdotdev/warp-sdk-typescript/compare/v0.3.0...v0.3.1) + +### Chores + +* break long lines in snippets into multiline ([98aa96c](https://github.com/warpdotdev/warp-sdk-typescript/commit/98aa96ceed31e121df6b97593289bbc663178a8c)) + ## 0.3.0 (2026-01-05) Full Changelog: [v0.2.0...v0.3.0](https://github.com/warpdotdev/warp-sdk-typescript/compare/v0.2.0...v0.3.0) diff --git a/package.json b/package.json index c073db8..824464d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-agent-sdk", - "version": "0.3.0", + "version": "0.3.1", "description": "The official TypeScript library for the Warp API API", "author": "Warp API <>", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 88f4d40..99a66ad 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.3.0'; // x-release-please-version +export const VERSION = '0.3.1'; // x-release-please-version diff --git a/tests/index.test.ts b/tests/index.test.ts index a9e3bed..a8817a0 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -87,7 +87,11 @@ describe('instantiate client', () => { error: jest.fn(), }; - const client = new WarpAPI({ logger: logger, logLevel: 'debug', apiKey: 'My API Key' }); + const client = new WarpAPI({ + logger: logger, + logLevel: 'debug', + apiKey: 'My API Key', + }); await forceAPIResponseForClient(client); expect(debugMock).toHaveBeenCalled(); @@ -107,7 +111,11 @@ describe('instantiate client', () => { error: jest.fn(), }; - const client = new WarpAPI({ logger: logger, logLevel: 'info', apiKey: 'My API Key' }); + const client = new WarpAPI({ + logger: logger, + logLevel: 'info', + apiKey: 'My API Key', + }); await forceAPIResponseForClient(client); expect(debugMock).not.toHaveBeenCalled(); @@ -157,7 +165,11 @@ describe('instantiate client', () => { }; process.env['WARP_API_LOG'] = 'debug'; - const client = new WarpAPI({ logger: logger, logLevel: 'off', apiKey: 'My API Key' }); + const client = new WarpAPI({ + logger: logger, + logLevel: 'off', + apiKey: 'My API Key', + }); await forceAPIResponseForClient(client); expect(debugMock).not.toHaveBeenCalled(); @@ -173,7 +185,11 @@ describe('instantiate client', () => { }; process.env['WARP_API_LOG'] = 'not a log level'; - const client = new WarpAPI({ logger: logger, logLevel: 'debug', apiKey: 'My API Key' }); + const client = new WarpAPI({ + logger: logger, + logLevel: 'debug', + apiKey: 'My API Key', + }); expect(client.logLevel).toBe('debug'); expect(warnMock).not.toHaveBeenCalled(); }); @@ -267,7 +283,11 @@ describe('instantiate client', () => { return new Response(JSON.stringify({}), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new WarpAPI({ baseURL: 'http://localhost:5000/', apiKey: 'My API Key', fetch: testFetch }); + const client = new WarpAPI({ + baseURL: 'http://localhost:5000/', + apiKey: 'My API Key', + fetch: testFetch, + }); await client.patch('/foo'); expect(capturedRequest?.method).toEqual('PATCH'); @@ -345,7 +365,11 @@ describe('instantiate client', () => { describe('withOptions', () => { test('creates a new client with overridden options', async () => { - const client = new WarpAPI({ baseURL: 'http://localhost:5000/', maxRetries: 3, apiKey: 'My API Key' }); + const client = new WarpAPI({ + baseURL: 'http://localhost:5000/', + maxRetries: 3, + apiKey: 'My API Key', + }); const newClient = client.withOptions({ maxRetries: 5, @@ -385,7 +409,11 @@ describe('instantiate client', () => { }); test('respects runtime property changes when creating new client', () => { - const client = new WarpAPI({ baseURL: 'http://localhost:5000/', timeout: 1000, apiKey: 'My API Key' }); + const client = new WarpAPI({ + baseURL: 'http://localhost:5000/', + timeout: 1000, + apiKey: 'My API Key', + }); // Modify the client properties directly after creation client.baseURL = 'http://localhost:6000/'; @@ -531,7 +559,11 @@ describe('retries', () => { return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new WarpAPI({ apiKey: 'My API Key', timeout: 10, fetch: testFetch }); + const client = new WarpAPI({ + apiKey: 'My API Key', + timeout: 10, + fetch: testFetch, + }); expect(await client.request({ path: '/foo', method: 'get' })).toEqual({ a: 1 }); expect(count).toEqual(2); @@ -561,7 +593,11 @@ describe('retries', () => { return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new WarpAPI({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 }); + const client = new WarpAPI({ + apiKey: 'My API Key', + fetch: testFetch, + maxRetries: 4, + }); expect(await client.request({ path: '/foo', method: 'get' })).toEqual({ a: 1 }); @@ -585,7 +621,11 @@ describe('retries', () => { capturedRequest = init; return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new WarpAPI({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 }); + const client = new WarpAPI({ + apiKey: 'My API Key', + fetch: testFetch, + maxRetries: 4, + }); expect( await client.request({ @@ -647,7 +687,11 @@ describe('retries', () => { capturedRequest = init; return new Response(JSON.stringify({ a: 1 }), { headers: { 'Content-Type': 'application/json' } }); }; - const client = new WarpAPI({ apiKey: 'My API Key', fetch: testFetch, maxRetries: 4 }); + const client = new WarpAPI({ + apiKey: 'My API Key', + fetch: testFetch, + maxRetries: 4, + }); expect( await client.request({