@mastra/client-js 0.10.15 → 0.10.17-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mastra/client-js@0.10.15-alpha.3 build /home/runner/work/mastra/mastra/client-sdks/client-js
2
+ > @mastra/client-js@0.10.17-alpha.0 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
3
  > tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,11 +9,11 @@
9
9
  CLI Cleaning output folder
10
10
  ESM Build start
11
11
  CJS Build start
12
- ESM dist/index.js 73.69 KB
13
- ESM ⚡️ Build success in 2670ms
14
- CJS dist/index.cjs 74.00 KB
15
- CJS ⚡️ Build success in 2673ms
12
+ ESM dist/index.js 73.73 KB
13
+ ESM ⚡️ Build success in 2020ms
14
+ CJS dist/index.cjs 74.04 KB
15
+ CJS ⚡️ Build success in 2038ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 18155ms
18
- DTS dist/index.d.ts 46.04 KB
19
- DTS dist/index.d.cts 46.04 KB
17
+ DTS ⚡️ Build success in 17627ms
18
+ DTS dist/index.d.ts 46.08 KB
19
+ DTS dist/index.d.cts 46.08 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 0.10.17-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 6bd354c: Should not send content type if body instance of FormData
8
+ - b641ba3: fix: save score params
9
+ - Updated dependencies [510e2c8]
10
+ - Updated dependencies [2f72fb2]
11
+ - Updated dependencies [3f89307]
12
+ - Updated dependencies [9eda7d4]
13
+ - Updated dependencies [9d49408]
14
+ - Updated dependencies [2ecf658]
15
+ - Updated dependencies [7a7754f]
16
+ - Updated dependencies [fc92d80]
17
+ - Updated dependencies [23a6a7c]
18
+ - Updated dependencies [09bca64]
19
+ - @mastra/core@0.12.0-alpha.0
20
+
21
+ ## 0.10.16
22
+
23
+ ### Patch Changes
24
+
25
+ - @mastra/core@0.11.1
26
+
3
27
  ## 0.10.15
4
28
 
5
29
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -253,7 +253,7 @@ var BaseResource = class {
253
253
  const response = await fetch(`${baseUrl.replace(/\/$/, "")}${path}`, {
254
254
  ...options,
255
255
  headers: {
256
- ...options.body && (options.method === "POST" || options.method === "PUT") ? { "content-type": "application/json" } : {},
256
+ ...options.body && !(options.body instanceof FormData) && (options.method === "POST" || options.method === "PUT") ? { "content-type": "application/json" } : {},
257
257
  ...headers,
258
258
  ...options.headers
259
259
  // TODO: Bring this back once we figure out what we/users need to do to make this work with cross-origin requests
package/dist/index.d.cts CHANGED
@@ -403,7 +403,7 @@ interface GetScoresByEntityIdParams {
403
403
  perPage?: number;
404
404
  }
405
405
  interface SaveScoreParams {
406
- score: ScoreRowData;
406
+ score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>;
407
407
  }
408
408
  interface GetScoresResponse {
409
409
  pagination: {
package/dist/index.d.ts CHANGED
@@ -403,7 +403,7 @@ interface GetScoresByEntityIdParams {
403
403
  perPage?: number;
404
404
  }
405
405
  interface SaveScoreParams {
406
- score: ScoreRowData;
406
+ score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>;
407
407
  }
408
408
  interface GetScoresResponse {
409
409
  pagination: {
package/dist/index.js CHANGED
@@ -247,7 +247,7 @@ var BaseResource = class {
247
247
  const response = await fetch(`${baseUrl.replace(/\/$/, "")}${path}`, {
248
248
  ...options,
249
249
  headers: {
250
- ...options.body && (options.method === "POST" || options.method === "PUT") ? { "content-type": "application/json" } : {},
250
+ ...options.body && !(options.body instanceof FormData) && (options.method === "POST" || options.method === "PUT") ? { "content-type": "application/json" } : {},
251
251
  ...headers,
252
252
  ...options.headers
253
253
  // TODO: Bring this back once we figure out what we/users need to do to make this work with cross-origin requests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.10.15",
3
+ "version": "0.10.17-alpha.0",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -34,13 +34,13 @@
34
34
  "rxjs": "7.8.1",
35
35
  "zod": "^3.25.67",
36
36
  "zod-to-json-schema": "^3.24.5",
37
- "@mastra/core": "0.11.0"
37
+ "@mastra/core": "0.12.0-alpha.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "zod": "^3.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@babel/preset-env": "^7.27.2",
43
+ "@babel/preset-env": "^7.28.0",
44
44
  "@babel/preset-typescript": "^7.27.1",
45
45
  "@tsconfig/recommended": "^1.0.9",
46
46
  "@types/json-schema": "^7.0.15",
@@ -48,7 +48,7 @@
48
48
  "tsup": "^8.5.0",
49
49
  "typescript": "^5.8.3",
50
50
  "vitest": "^3.2.4",
51
- "@internal/lint": "0.0.21"
51
+ "@internal/lint": "0.0.23"
52
52
  },
53
53
  "scripts": {
54
54
  "build": "tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting",
@@ -24,7 +24,9 @@ export class BaseResource {
24
24
  const response = await fetch(`${baseUrl.replace(/\/$/, '')}${path}`, {
25
25
  ...options,
26
26
  headers: {
27
- ...(options.body && (options.method === 'POST' || options.method === 'PUT')
27
+ ...(options.body &&
28
+ !(options.body instanceof FormData) &&
29
+ (options.method === 'POST' || options.method === 'PUT')
28
30
  ? { 'content-type': 'application/json' }
29
31
  : {}),
30
32
  ...headers,
package/src/types.ts CHANGED
@@ -475,7 +475,7 @@ export interface GetScoresByEntityIdParams {
475
475
  }
476
476
 
477
477
  export interface SaveScoreParams {
478
- score: ScoreRowData;
478
+ score: Omit<ScoreRowData, 'id' | 'createdAt' | 'updatedAt'>;
479
479
  }
480
480
 
481
481
  export interface GetScoresResponse {