@mastra/convex 1.0.10-alpha.0 → 1.0.10-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 +9 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/convex
|
|
2
2
|
|
|
3
|
+
## 1.0.10-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed `@mastra/convex` workflow snapshot persistence when snapshots contain `$`-prefixed JSON Schema keys (for example `$schema` and `$ref`). ([#16169](https://github.com/mastra-ai/mastra/pull/16169))
|
|
8
|
+
Snapshots are now stored safely, preventing Convex validation failures during workflow runs. Fixes `#16110`.
|
|
9
|
+
- Updated dependencies [[`ca28c23`](https://github.com/mastra-ai/mastra/commit/ca28c232a2f18801a6cf20fe053479237b4d4fb0)]:
|
|
10
|
+
- @mastra/core@1.32.0-alpha.3
|
|
11
|
+
|
|
3
12
|
## 1.0.10-alpha.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -939,7 +939,11 @@ var WorkflowsConvex = class extends storage.WorkflowsStorage {
|
|
|
939
939
|
workflow_name: workflowName,
|
|
940
940
|
run_id: runId,
|
|
941
941
|
resourceId,
|
|
942
|
-
|
|
942
|
+
// Convex rejects any field whose name starts with `$` (reserved prefix).
|
|
943
|
+
// Workflow snapshots embed tool outputs whose serialized Zod->JSON Schemas
|
|
944
|
+
// contain $schema/$ref/$defs/$id keys, so we serialize the snapshot here.
|
|
945
|
+
// loadWorkflowSnapshot / ensureSnapshot already handle the string case.
|
|
946
|
+
snapshot: JSON.stringify(snapshot),
|
|
943
947
|
createdAt: existing?.createdAt ?? (createdAt ? new Date(createdAt).toISOString() : now.toISOString()),
|
|
944
948
|
updatedAt: updatedAt ? new Date(updatedAt).toISOString() : now.toISOString()
|
|
945
949
|
}
|