@mastra/client-js 1.32.0-alpha.12 → 1.32.0-alpha.13

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,35 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.32.0-alpha.13
4
+
5
+ ### Minor Changes
6
+
7
+ - Added caller-defined dataset item identities for safe retries across all dataset storage adapters. ([#19384](https://github.com/mastra-ai/mastra/pull/19384))
8
+
9
+ Dataset items can now include an `externalId` when calling `addItem` or `addItems`:
10
+
11
+ ```ts
12
+ await dataset.addItem({
13
+ externalId: 'source-item-123',
14
+ input: { prompt: 'Hello' },
15
+ });
16
+ ```
17
+
18
+ Retrying with the same identity and payload returns the existing item. Reusing an identity with different content returns a typed conflict, including during concurrent writes. Updates and deletes preserve the identity, Spanner retries transactions without changing the outcome, and MySQL batch writes now preserve every supported dataset item field.
19
+
20
+ ### Patch Changes
21
+
22
+ - Type structured Agent Controller notification message content so Web clients can render notification provenance from live and persisted transcript messages. ([#19446](https://github.com/mastra-ai/mastra/pull/19446))
23
+
24
+ ```ts
25
+ if (part.type === 'notification') {
26
+ renderNotification(part.message, part.source);
27
+ }
28
+ ```
29
+
30
+ - Updated dependencies [[`a99eae8`](https://github.com/mastra-ai/mastra/commit/a99eae8908e500c1b2d12f9d277be616b98617a5), [`fd13f8e`](https://github.com/mastra-ai/mastra/commit/fd13f8e21990f9904c3eedba3a626bb4a929cdb8), [`f703f87`](https://github.com/mastra-ai/mastra/commit/f703f878de072d51fda557f9c50867d8252bef05), [`0ad646f`](https://github.com/mastra-ai/mastra/commit/0ad646f71a530f2454664299e5e01bfd13fa12e5)]:
31
+ - @mastra/core@1.51.0-alpha.13
32
+
3
33
  ## 1.32.0-alpha.12
4
34
 
5
35
  ### Patch Changes
@@ -3,7 +3,7 @@ name: mastra-client-js
3
3
  description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/client-js"
6
- version: "1.32.0-alpha.12"
6
+ version: "1.32.0-alpha.13"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.32.0-alpha.12",
2
+ "version": "1.32.0-alpha.13",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {
5
5
  "RequestContext": {