@mastra/editor 0.7.21-alpha.0 → 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 +6 -0
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.7.21-alpha.0
|
|
4
10
|
|
|
5
11
|
### 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.21-alpha.
|
|
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",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"@internal/ai-sdk-v4": "0.0.34",
|
|
79
79
|
"@internal/ai-sdk-v5": "0.0.34",
|
|
80
80
|
"@internal/ai-v6": "0.0.34",
|
|
81
|
-
"@mastra/hono": "1.4.9-alpha.1",
|
|
82
81
|
"@mastra/core": "1.29.1-alpha.1",
|
|
83
|
-
"@mastra/
|
|
84
|
-
"@mastra/mcp": "1.6.0"
|
|
82
|
+
"@mastra/hono": "1.4.9-alpha.1",
|
|
83
|
+
"@mastra/mcp": "1.6.0",
|
|
84
|
+
"@mastra/libsql": "1.9.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@mastra/core": ">=1.7.1-0 <2.0.0-0",
|