@mastra/editor 0.7.20 → 0.7.21-alpha.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @mastra/editor
2
2
 
3
+ ## 0.7.21-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed template variable interpolation for arrays and objects. Previously, using {{products}} where products is an array of objects would render as [object Object],[object Object]. Now arrays and objects are automatically JSON-stringified, so {{products}} correctly renders the full JSON representation. ([#15927](https://github.com/mastra-ai/mastra/pull/15927))
8
+
9
+ ## 0.7.21-alpha.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [[`95b001f`](https://github.com/mastra-ai/mastra/commit/95b001f750af6947ad9d174cd47abffc776663a5)]:
14
+ - @mastra/memory@1.17.3-alpha.0
15
+
3
16
  ## 0.7.20
4
17
 
5
18
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -270,6 +270,9 @@ function renderTemplate(template, context) {
270
270
  (match, variablePath, singleFallback, doubleFallback) => {
271
271
  const resolved = resolvePath2(context, variablePath);
272
272
  if (resolved !== void 0 && resolved !== null) {
273
+ if (typeof resolved === "object") {
274
+ return JSON.stringify(resolved);
275
+ }
273
276
  return String(resolved);
274
277
  }
275
278
  const fallback = singleFallback ?? doubleFallback;
package/dist/index.js CHANGED
@@ -222,6 +222,9 @@ function renderTemplate(template, context) {
222
222
  (match, variablePath, singleFallback, doubleFallback) => {
223
223
  const resolved = resolvePath2(context, variablePath);
224
224
  if (resolved !== void 0 && resolved !== null) {
225
+ if (typeof resolved === "object") {
226
+ return JSON.stringify(resolved);
227
+ }
225
228
  return String(resolved);
226
229
  }
227
230
  const fallback = singleFallback ?? doubleFallback;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/editor",
3
- "version": "0.7.20",
3
+ "version": "0.7.21-alpha.1",
4
4
  "description": "Mastra Editor for agent management and instantiation",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -65,7 +65,7 @@
65
65
  "@arcadeai/arcadejs": "^2.3.0",
66
66
  "@composio/core": "^0.6.5",
67
67
  "@composio/mastra": "^0.6.5",
68
- "@mastra/memory": "1.17.2",
68
+ "@mastra/memory": "1.17.3-alpha.0",
69
69
  "@mastra/schema-compat": "1.2.9"
70
70
  },
71
71
  "devDependencies": {
@@ -76,10 +76,10 @@
76
76
  "vitest": "4.1.5",
77
77
  "zod": "^3.25.76",
78
78
  "@internal/ai-sdk-v4": "0.0.34",
79
- "@internal/ai-v6": "0.0.34",
80
79
  "@internal/ai-sdk-v5": "0.0.34",
81
- "@mastra/core": "1.29.0",
82
- "@mastra/hono": "1.4.8",
80
+ "@internal/ai-v6": "0.0.34",
81
+ "@mastra/core": "1.29.1-alpha.1",
82
+ "@mastra/hono": "1.4.9-alpha.1",
83
83
  "@mastra/mcp": "1.6.0",
84
84
  "@mastra/libsql": "1.9.0"
85
85
  },