@mastra/deployer 0.20.1-alpha.4 → 0.20.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 +24 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.20.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: custom API routes now properly respect authentication requirements ([#8469](https://github.com/mastra-ai/mastra/pull/8469))
|
|
8
|
+
|
|
9
|
+
Fixed a critical bug where custom routes were bypassing authentication when they should have been protected by default. The issue was in the `isProtectedPath` function which only checked pattern-based protection but ignored custom route configurations.
|
|
10
|
+
- Custom routes are now protected by default or when specified with `requiresAuth: true`
|
|
11
|
+
- Custom routes properly inherit protection from parent patterns (like `/api/*`)
|
|
12
|
+
- Routes with explicit `requiresAuth: false` continue to work as public endpoints
|
|
13
|
+
- Enhanced `isProtectedPath` to consider both pattern matching and custom route auth config
|
|
14
|
+
|
|
15
|
+
This fixes issue #8421 where custom routes were not being properly protected by the authentication system.
|
|
16
|
+
|
|
17
|
+
- Correctly handle errors in streams. Errors (e.g. rate limiting) before the stream begins are now returned with their code. Mid-stream errors are passed as a chunk (with `type: 'error'`) to the stream. ([#8567](https://github.com/mastra-ai/mastra/pull/8567))
|
|
18
|
+
|
|
19
|
+
- Mutable shared workflow run state ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
|
|
20
|
+
|
|
21
|
+
- Fix bug when lodash dependencies where used in subdependencies ([#8537](https://github.com/mastra-ai/mastra/pull/8537))
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`c621613`](https://github.com/mastra-ai/mastra/commit/c621613069173c69eb2c3ef19a5308894c6549f0), [`12b1189`](https://github.com/mastra-ai/mastra/commit/12b118942445e4de0dd916c593e33ec78dc3bc73), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`076b092`](https://github.com/mastra-ai/mastra/commit/076b0924902ff0f49d5712d2df24c4cca683713f), [`2aee9e7`](https://github.com/mastra-ai/mastra/commit/2aee9e7d188b8b256a4ddc203ccefb366b4867fa), [`c582906`](https://github.com/mastra-ai/mastra/commit/c5829065a346260f96c4beb8af131b94804ae3ad), [`fa2eb96`](https://github.com/mastra-ai/mastra/commit/fa2eb96af16c7d433891a73932764960d3235c1d), [`ee9108f`](https://github.com/mastra-ai/mastra/commit/ee9108fa29bb8368fc23df158c9f0645b2d7b65c), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`a739d0c`](https://github.com/mastra-ai/mastra/commit/a739d0c8b37cd89569e04a6ca0827083c6167e19), [`603e927`](https://github.com/mastra-ai/mastra/commit/603e9279db8bf8a46caf83881c6b7389ccffff7e), [`cd45982`](https://github.com/mastra-ai/mastra/commit/cd4598291cda128a88738734ae6cbef076ebdebd), [`874f74d`](https://github.com/mastra-ai/mastra/commit/874f74da4b1acf6517f18132d035612c3ecc394a), [`b728a45`](https://github.com/mastra-ai/mastra/commit/b728a45ab3dba59da0f5ee36b81fe246659f305d), [`0baf2ba`](https://github.com/mastra-ai/mastra/commit/0baf2bab8420277072ef1f95df5ea7b0a2f61fe7), [`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0), [`a6d69c5`](https://github.com/mastra-ai/mastra/commit/a6d69c5fb50c0875b46275811fece5862f03c6a0), [`84199af`](https://github.com/mastra-ai/mastra/commit/84199af8673f6f9cb59286ffb5477a41932775de), [`7f431af`](https://github.com/mastra-ai/mastra/commit/7f431afd586b7d3265075e73106eb73167edbb86), [`26e968d`](https://github.com/mastra-ai/mastra/commit/26e968db2171ded9e4d47aa1b4f19e1e771158d0), [`cbd3fb6`](https://github.com/mastra-ai/mastra/commit/cbd3fb65adb03a7c0df193cb998aed5ac56675ee)]:
|
|
24
|
+
- @mastra/core@0.20.1
|
|
25
|
+
- @mastra/server@0.20.1
|
|
26
|
+
|
|
3
27
|
## 0.20.1-alpha.4
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.20.1
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"rollup-plugin-node-externals": "^8.0.1",
|
|
115
115
|
"tinyglobby": "^0.2.15",
|
|
116
116
|
"typescript-paths": "^1.5.1",
|
|
117
|
-
"@mastra/server": "^0.20.1
|
|
117
|
+
"@mastra/server": "^0.20.1"
|
|
118
118
|
},
|
|
119
119
|
"devDependencies": {
|
|
120
120
|
"@hono/node-server": "^1.19.5",
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
"typescript": "^5.8.3",
|
|
135
135
|
"vitest": "^3.2.4",
|
|
136
136
|
"zod": "^3.25.76",
|
|
137
|
-
"@internal/
|
|
138
|
-
"@
|
|
139
|
-
"@mastra/mcp": "^0.13.4
|
|
140
|
-
"@
|
|
137
|
+
"@internal/lint": "0.0.47",
|
|
138
|
+
"@mastra/core": "0.20.1",
|
|
139
|
+
"@mastra/mcp": "^0.13.4",
|
|
140
|
+
"@internal/types-builder": "0.0.22"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {
|
|
143
143
|
"@mastra/core": ">=0.20.1-0 <0.21.0-0",
|