@mastra/deployer 1.38.0 → 1.39.0-alpha.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 +10 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/index.cjs +9 -2
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +9 -2
- package/dist/server/index.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.39.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Removed Hono from @mastra/core and auth package runtime dependencies. Auth providers now receive framework-agnostic request types that support standard Request objects and Hono-compatible request shapes. MCP and deployer avoid relying on core-bundled Hono context types at package boundaries. ([#17410](https://github.com/mastra-ai/mastra/pull/17410))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`e17e5c1`](https://github.com/mastra-ai/mastra/commit/e17e5c1e1f6c7743d9e48ebce740e25cf4f897e0), [`c973db4`](https://github.com/mastra-ai/mastra/commit/c973db428df1b564ff0c35d4b2a90e8f4f1e13fd), [`552285e`](https://github.com/mastra-ai/mastra/commit/552285e5af43cfc680a0972032cab8de8776c6a0), [`77e686c`](https://github.com/mastra-ai/mastra/commit/77e686c264e493e99ae5024e4dfe3ea5d5a09718), [`4166343`](https://github.com/mastra-ai/mastra/commit/4166343ab4c7b7be725ebd28013e40b205865268), [`ece8dba`](https://github.com/mastra-ai/mastra/commit/ece8dba7ec1a5089eee8c33167cd762bfa91e509), [`e751af2`](https://github.com/mastra-ai/mastra/commit/e751af219433fbf4c7035b2d771b4c9ec8813b05), [`e2a8380`](https://github.com/mastra-ai/mastra/commit/e2a838017a7657850404c1e94c70d79ffdc6f14a), [`be3f1cd`](https://github.com/mastra-ai/mastra/commit/be3f1cd81f0e2a649e8eac15a024d542d814aef8), [`a34d9db`](https://github.com/mastra-ai/mastra/commit/a34d9dbc39fedb722f271318e9355ecee70489ab)]:
|
|
10
|
+
- @mastra/server@1.39.0-alpha.0
|
|
11
|
+
- @mastra/core@1.39.0-alpha.0
|
|
12
|
+
|
|
3
13
|
## 1.38.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/docs/SKILL.md
CHANGED
package/dist/server/index.cjs
CHANGED
|
@@ -4149,7 +4149,13 @@ async function createHonoServer(mastra, options = {
|
|
|
4149
4149
|
const processedRoutes = routes?.map((route) => {
|
|
4150
4150
|
if ("openapi" in route && route.openapi) {
|
|
4151
4151
|
const existingMiddleware = route.middleware ? Array.isArray(route.middleware) ? route.middleware : [route.middleware] : [];
|
|
4152
|
-
return {
|
|
4152
|
+
return {
|
|
4153
|
+
...route,
|
|
4154
|
+
middleware: [
|
|
4155
|
+
describeRoute(route.openapi),
|
|
4156
|
+
...existingMiddleware
|
|
4157
|
+
]
|
|
4158
|
+
};
|
|
4153
4159
|
}
|
|
4154
4160
|
return route;
|
|
4155
4161
|
});
|
|
@@ -4224,7 +4230,8 @@ async function createHonoServer(mastra, options = {
|
|
|
4224
4230
|
const pathname = new URL(c.req.url).pathname;
|
|
4225
4231
|
const method = c.req.method === "OPTIONS" ? c.req.header("Access-Control-Request-Method") ?? c.req.method : c.req.method;
|
|
4226
4232
|
const routeCors = getRouteCorsConfig(processedRoutes, pathname, method);
|
|
4227
|
-
|
|
4233
|
+
const corsOptions = routeCors ? getCorsConfig(routeCors, false) : getCorsConfig(server?.cors, hasAuth);
|
|
4234
|
+
return cors.cors(corsOptions)(c, next);
|
|
4228
4235
|
});
|
|
4229
4236
|
}
|
|
4230
4237
|
app.get(
|