@mastra/client-js 0.10.1-alpha.2 → 0.10.1-alpha.3

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.1-alpha.2 build /home/runner/work/mastra/mastra/client-sdks/client-js
2
+ > @mastra/client-js@0.10.1-alpha.3 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 43.30 KB
13
- ESM ⚡️ Build success in 1577ms
14
- CJS dist/index.cjs 43.59 KB
15
- CJS ⚡️ Build success in 1577ms
12
+ ESM dist/index.js 43.40 KB
13
+ ESM ⚡️ Build success in 891ms
14
+ CJS dist/index.cjs 43.69 KB
15
+ CJS ⚡️ Build success in 892ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 14357ms
17
+ DTS ⚡️ Build success in 14678ms
18
18
  DTS dist/index.d.ts 31.64 KB
19
19
  DTS dist/index.d.cts 31.64 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 0.10.1-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 267773e: Show map config on workflow graph
8
+ Highlight borders for conditions too on workflow graph
9
+ Fix watch stream
10
+
3
11
  ## 0.10.1-alpha.2
4
12
 
5
13
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1033,7 +1033,11 @@ var Workflow = class extends BaseResource {
1033
1033
  throw new Error("Response body is null");
1034
1034
  }
1035
1035
  for await (const record of this.streamProcessor(response.body)) {
1036
- onRecord(record);
1036
+ if (typeof record === "string") {
1037
+ onRecord(JSON.parse(record));
1038
+ } else {
1039
+ onRecord(record);
1040
+ }
1037
1041
  }
1038
1042
  }
1039
1043
  /**
package/dist/index.js CHANGED
@@ -1027,7 +1027,11 @@ var Workflow = class extends BaseResource {
1027
1027
  throw new Error("Response body is null");
1028
1028
  }
1029
1029
  for await (const record of this.streamProcessor(response.body)) {
1030
- onRecord(record);
1030
+ if (typeof record === "string") {
1031
+ onRecord(JSON.parse(record));
1032
+ } else {
1033
+ onRecord(record);
1034
+ }
1031
1035
  }
1032
1036
  }
1033
1037
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.10.1-alpha.2",
3
+ "version": "0.10.1-alpha.3",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -319,7 +319,11 @@ export class Workflow extends BaseResource {
319
319
  }
320
320
 
321
321
  for await (const record of this.streamProcessor(response.body)) {
322
- onRecord(record);
322
+ if (typeof record === 'string') {
323
+ onRecord(JSON.parse(record));
324
+ } else {
325
+ onRecord(record);
326
+ }
323
327
  }
324
328
  }
325
329