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.1.0"
".": "0.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 <contact@example.com>",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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.
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.1.0'; // x-release-please-version
export const VERSION = '0.2.0'; // x-release-please-version
6 changes: 3 additions & 3 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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', () => {
Expand Down
1 change: 0 additions & 1 deletion tests/uploads.test.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading