diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 466df71..2be9c43 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0" + ".": "0.2.0" } diff --git a/.stats.yml b/.stats.yml index 0ef90e7..1403a41 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 7 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/xtrace/xtrace-memory-manager-b5b65b567b4e89a5dc0426f6ee10f96a63b62a9850b3ba8de85a1a225a16a257.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/xtrace/xtrace-memory-manager-44c3f332a6859f61260ca687d5500b395bc4048c65b23d0e35320121aebedb97.yml openapi_spec_hash: f5b0148c800f181ccee41a1195070c8b -config_hash: 75a4fefef124d2fed596e3cb3f403745 +config_hash: 57e728b5795fc791e7088360a8418b7c diff --git a/CHANGELOG.md b/CHANGELOG.md index 68e6f9c..b180eab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.2.0 (2026-05-20) + +Full Changelog: [v0.1.0...v0.2.0](https://github.com/XTraceAI/memory-sdk-ts/compare/v0.1.0...v0.2.0) + +### Features + +* **api:** manual updates ([3cac1dc](https://github.com/XTraceAI/memory-sdk-ts/commit/3cac1dc853574504877610aeda9cc1a15db094b4)) + + +### Bug Fixes + +* **typescript:** upgrade tsc-multi so that it works with Node 26 ([52a48ca](https://github.com/XTraceAI/memory-sdk-ts/commit/52a48ca20281d052cdb9a2d7fc4ed73bda1be451)) + + +### Chores + +* **tests:** remove redundant File import ([2d2565c](https://github.com/XTraceAI/memory-sdk-ts/commit/2d2565ca269b84ebe907ed91491d76dd0a7fa0dd)) + ## 0.1.0 (2026-05-16) Full Changelog: [v0.0.1...v0.1.0](https://github.com/XTraceAI/memory-sdk-ts/compare/v0.0.1...v0.1.0) diff --git a/package.json b/package.json index d5c93a4..a24e8d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xtraceai/memory", - "version": "0.1.0", + "version": "0.2.0", "description": "The official TypeScript library for the Xtraceai API", "author": "Xtraceai ", "types": "dist/index.d.ts", @@ -43,7 +43,7 @@ "publint": "^0.2.12", "ts-jest": "^29.1.0", "ts-node": "^10.5.0", - "tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz", + "tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.11/tsc-multi.tgz", "tsconfig-paths": "^4.0.0", "tslib": "^2.8.1", "typescript": "5.8.3", diff --git a/src/client.ts b/src/client.ts index 97b6acf..8aca705 100644 --- a/src/client.ts +++ b/src/client.ts @@ -43,7 +43,7 @@ import { import { isEmptyObj } from './internal/utils/values'; const environments = { - production: 'https://api.xtrace.ai', + production: 'https://api.production.xtrace.ai', staging: 'https://api.staging.xtrace.ai', }; type Environment = keyof typeof environments; @@ -63,7 +63,7 @@ export interface ClientOptions { * Specifies the environment to use for the API. * * Each environment maps to a different base URL: - * - `production` corresponds to `https://api.xtrace.ai` + * - `production` corresponds to `https://api.production.xtrace.ai` * - `staging` corresponds to `https://api.staging.xtrace.ai` */ environment?: Environment | undefined; @@ -162,7 +162,7 @@ export class Xtraceai { * @param {string} opts.apiKey * @param {string} opts.orgID * @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API. - * @param {string} [opts.baseURL=process.env['XTRACEAI_BASE_URL'] ?? https://api.xtrace.ai] - Override the default base URL for the API. + * @param {string} [opts.baseURL=process.env['XTRACEAI_BASE_URL'] ?? https://api.production.xtrace.ai] - Override the default base URL for the API. * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out. * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls. * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation. diff --git a/src/version.ts b/src/version.ts index 1baa228..bade2ff 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.1.0'; // x-release-please-version +export const VERSION = '0.2.0'; // x-release-please-version diff --git a/tests/index.test.ts b/tests/index.test.ts index 92aff86..11d7a9c 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -354,13 +354,13 @@ describe('instantiate client', () => { test('empty env variable', () => { process.env['XTRACEAI_BASE_URL'] = ''; // empty const client = new Xtraceai({ apiKey: 'My API Key', orgID: 'My Org ID' }); - expect(client.baseURL).toEqual('https://api.xtrace.ai'); + expect(client.baseURL).toEqual('https://api.production.xtrace.ai'); }); test('blank env variable', () => { process.env['XTRACEAI_BASE_URL'] = ' '; // blank const client = new Xtraceai({ apiKey: 'My API Key', orgID: 'My Org ID' }); - expect(client.baseURL).toEqual('https://api.xtrace.ai'); + expect(client.baseURL).toEqual('https://api.production.xtrace.ai'); }); test('env variable with environment', () => { @@ -383,7 +383,7 @@ describe('instantiate client', () => { baseURL: null, environment: 'production', }); - expect(client.baseURL).toEqual('https://api.xtrace.ai'); + expect(client.baseURL).toEqual('https://api.production.xtrace.ai'); }); test('in request options', () => { diff --git a/tests/uploads.test.ts b/tests/uploads.test.ts index 2dbe39b..0cbeaa2 100644 --- a/tests/uploads.test.ts +++ b/tests/uploads.test.ts @@ -1,7 +1,6 @@ import fs from 'fs'; import type { ResponseLike } from '@xtraceai/memory/internal/to-file'; import { toFile } from '@xtraceai/memory/core/uploads'; -import { File } from 'node:buffer'; class MyClass { name: string = 'foo'; diff --git a/yarn.lock b/yarn.lock index 18e7cbd..00842e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3192,9 +3192,9 @@ ts-node@^10.5.0: v8-compile-cache-lib "^3.0.0" yn "3.1.1" -"tsc-multi@https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz": - version "1.1.9" - resolved "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz#777f6f5d9e26bf0e94e5170990dd3a841d6707cd" +"tsc-multi@https://github.com/stainless-api/tsc-multi/releases/download/v1.1.11/tsc-multi.tgz": + version "1.1.11" + resolved "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.11/tsc-multi.tgz#010247051be13b55abdc98f787c017285149f4f2" dependencies: debug "^4.3.7" fast-glob "^3.3.2"