@mastra/client-js 1.1.0-alpha.1 → 1.1.0-alpha.2

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,16 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.1.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Stored agent edits no longer fail silently. PATCH requests now save changes correctly. ([#12504](https://github.com/mastra-ai/mastra/pull/12504))
8
+
9
+ - Fix PATCH request JSON-body handling in `@mastra/client-js` so stored agent edit flows work correctly. Fix stored agent schema migration in `@mastra/libsql` and `@mastra/pg` to drop and recreate the versions table when the old snapshot-based schema is detected, clean up stale draft records from partial create failures, and remove lingering legacy tables. Restores create and edit flows for stored agents. ([#12504](https://github.com/mastra-ai/mastra/pull/12504))
10
+
11
+ - Updated dependencies:
12
+ - @mastra/core@1.1.0-alpha.2
13
+
3
14
  ## 1.1.0-alpha.1
4
15
 
5
16
  ### Minor Changes
@@ -30,4 +30,4 @@ docs/
30
30
  ## Version
31
31
 
32
32
  Package: @mastra/client-js
33
- Version: 1.1.0-alpha.1
33
+ Version: 1.1.0-alpha.2
@@ -5,7 +5,7 @@ description: Documentation for @mastra/client-js. Includes links to type definit
5
5
 
6
6
  # @mastra/client-js Documentation
7
7
 
8
- > **Version**: 1.1.0-alpha.1
8
+ > **Version**: 1.1.0-alpha.2
9
9
  > **Package**: @mastra/client-js
10
10
 
11
11
  ## Quick Navigation
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0-alpha.1",
2
+ "version": "1.1.0-alpha.2",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -1280,7 +1280,7 @@ var BaseResource = class _BaseResource {
1280
1280
  const response = await fetchFn(`${baseUrl.replace(/\/$/, "")}${fullPath}`, {
1281
1281
  ...options,
1282
1282
  headers: {
1283
- ...options.body && !(options.body instanceof FormData) && (options.method === "POST" || options.method === "PUT") ? { "content-type": "application/json" } : {},
1283
+ ...options.body && !(options.body instanceof FormData) && (options.method === "POST" || options.method === "PUT" || options.method === "PATCH") ? { "content-type": "application/json" } : {},
1284
1284
  ...headers,
1285
1285
  ...options.headers
1286
1286
  // TODO: Bring this back once we figure out what we/users need to do to make this work with cross-origin requests