@mastra/client-js 0.10.16 → 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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/resources/base.ts +3 -1
- package/src/types.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/client-js@0.10.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
[34mCLI[39m Cleaning output folder
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[34mCJS[39m Build start
|
|
12
|
+
[32mESM[39m [1mdist/index.js [22m[32m73.73 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 2020ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m74.04 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 2038ms
|
|
12
16
|
[34mDTS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[32mESM[39m ⚡️ Build success in 2160ms
|
|
17
|
-
[32mDTS[39m ⚡️ Build success in 18246ms
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m46.04 KB[39m
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m46.04 KB[39m
|
|
17
|
+
[32mDTS[39m ⚡️ Build success in 17627ms
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m46.08 KB[39m
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m46.08 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
|
|
3
21
|
## 0.10.16
|
|
4
22
|
|
|
5
23
|
### 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
package/dist/index.d.ts
CHANGED
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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",
|
package/src/resources/base.ts
CHANGED
|
@@ -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 &&
|
|
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