@mastra/react 0.2.0-alpha.2 → 0.2.0
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 +33 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @mastra/react
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added `apiPrefix` prop to `MastraClientProvider` for connecting to servers with custom API route prefixes (defaults to `/api`). ([#12295](https://github.com/mastra-ai/mastra/pull/12295))
|
|
8
|
+
|
|
9
|
+
**Default usage (no change required):**
|
|
10
|
+
|
|
11
|
+
```tsx
|
|
12
|
+
<MastraClientProvider baseUrl="http://localhost:3000">{children}</MastraClientProvider>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**Custom prefix usage:**
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
<MastraClientProvider baseUrl="http://localhost:3000" apiPrefix="/mastra">
|
|
19
|
+
{children}
|
|
20
|
+
</MastraClientProvider>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
See #12261 for more details.
|
|
24
|
+
|
|
25
|
+
- Added useCancelWorkflowRun hook to @mastra/react for canceling workflow runs. This hook was previously only available internally in playground-ui and is now exported for use in custom applications. ([#12142](https://github.com/mastra-ai/mastra/pull/12142))
|
|
26
|
+
|
|
27
|
+
- Added useStreamWorkflow hook to @mastra/react for streaming workflow execution. This hook supports streaming, observing, resuming, and time-traveling workflows. It accepts tracingOptions and onError as parameters for better customization. ([#12151](https://github.com/mastra-ai/mastra/pull/12151))
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Use useExecuteWorkflow hook from @mastra/react instead of local implementation in playground-ui ([#12138](https://github.com/mastra-ai/mastra/pull/12138))
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [[`deea43e`](https://github.com/mastra-ai/mastra/commit/deea43eb1366d03a864c5e597d16a48592b9893f), [`60d9d89`](https://github.com/mastra-ai/mastra/commit/60d9d899e44b35bc43f1bcd967a74e0ce010b1af), [`0350626`](https://github.com/mastra-ai/mastra/commit/03506267ec41b67add80d994c0c0fcce93bbc75f), [`3efbe5a`](https://github.com/mastra-ai/mastra/commit/3efbe5ae20864c4f3143457f4f3ee7dc2fa5ca76), [`dc82e6c`](https://github.com/mastra-ai/mastra/commit/dc82e6c5a05d6a9160c522af08b8c809ddbcdb66), [`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334), [`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334)]:
|
|
34
|
+
- @mastra/client-js@1.1.0
|
|
35
|
+
|
|
3
36
|
## 0.2.0-alpha.2
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/react",
|
|
3
|
-
"version": "0.2.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/mastra-ai/mastra.git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lucide-react": "^0.522.0",
|
|
40
40
|
"shiki": "^1.29.2",
|
|
41
41
|
"tailwind-merge": "^3.3.1",
|
|
42
|
-
"@mastra/client-js": "1.1.0
|
|
42
|
+
"@mastra/client-js": "1.1.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": ">=19.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"vite-plugin-dts": "^4.5.4",
|
|
69
69
|
"vitest": "4.0.16",
|
|
70
70
|
"zod": "^3.25.0",
|
|
71
|
-
"@mastra/core": "1.1.0
|
|
71
|
+
"@mastra/core": "1.1.0"
|
|
72
72
|
},
|
|
73
73
|
"eslintConfig": {
|
|
74
74
|
"extends": [
|