@mastra/deployer 1.3.0 → 1.4.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 +16 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-cloud-providers.md +1 -1
- package/dist/docs/references/docs-deployment-overview.md +1 -1
- package/dist/server/index.cjs +16 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +16 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`7ef618f`](https://github.com/mastra-ai/mastra/commit/7ef618f3c49c27e2f6b27d7f564c557c0734325b), [`b373564`](https://github.com/mastra-ai/mastra/commit/b37356491d43b4d53067f10cb669abaf2502f218), [`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`5fbb1a8`](https://github.com/mastra-ai/mastra/commit/5fbb1a8f68a5953b4c7a60dd6d081c33111223f4), [`b896b41`](https://github.com/mastra-ai/mastra/commit/b896b41343de7fcc14442fb40fe82d189e65bbe2), [`6415277`](https://github.com/mastra-ai/mastra/commit/6415277a438faa00db2af850ead5dee25f40c428), [`0831bbb`](https://github.com/mastra-ai/mastra/commit/0831bbb5bc750c18e9b22b45f18687c964b70828), [`6297864`](https://github.com/mastra-ai/mastra/commit/62978644cd93b0782eae75c9f202fe846e7802d7), [`63f7eda`](https://github.com/mastra-ai/mastra/commit/63f7eda605eb3e0c8c35ee3912ffe7c999c69f69), [`a5b67a3`](https://github.com/mastra-ai/mastra/commit/a5b67a3589a74415feb663a55d1858324a2afde9), [`877b02c`](https://github.com/mastra-ai/mastra/commit/877b02cdbb15e199184c7f2b8f217be8d3ebada7), [`877b02c`](https://github.com/mastra-ai/mastra/commit/877b02cdbb15e199184c7f2b8f217be8d3ebada7), [`d87e96b`](https://github.com/mastra-ai/mastra/commit/d87e96b63cb47f0fe87d9147b915ebd0509f4ca3), [`7567222`](https://github.com/mastra-ai/mastra/commit/7567222b1366f0d39980594792dd9d5060bfe2ab), [`af71458`](https://github.com/mastra-ai/mastra/commit/af71458e3b566f09c11d0e5a0a836dc818e7a24a), [`eb36bd8`](https://github.com/mastra-ai/mastra/commit/eb36bd8c52fcd6ec9674ac3b7a6412405b5983e1), [`3cbf121`](https://github.com/mastra-ai/mastra/commit/3cbf121f55418141924754a83102aade89835947), [`6415277`](https://github.com/mastra-ai/mastra/commit/6415277a438faa00db2af850ead5dee25f40c428)]:
|
|
8
|
+
- @mastra/core@1.4.0
|
|
9
|
+
- @mastra/server@1.4.0
|
|
10
|
+
|
|
11
|
+
## 1.4.0-alpha.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`7ef618f`](https://github.com/mastra-ai/mastra/commit/7ef618f3c49c27e2f6b27d7f564c557c0734325b), [`b373564`](https://github.com/mastra-ai/mastra/commit/b37356491d43b4d53067f10cb669abaf2502f218), [`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`5fbb1a8`](https://github.com/mastra-ai/mastra/commit/5fbb1a8f68a5953b4c7a60dd6d081c33111223f4), [`b896b41`](https://github.com/mastra-ai/mastra/commit/b896b41343de7fcc14442fb40fe82d189e65bbe2), [`6415277`](https://github.com/mastra-ai/mastra/commit/6415277a438faa00db2af850ead5dee25f40c428), [`0831bbb`](https://github.com/mastra-ai/mastra/commit/0831bbb5bc750c18e9b22b45f18687c964b70828), [`6297864`](https://github.com/mastra-ai/mastra/commit/62978644cd93b0782eae75c9f202fe846e7802d7), [`63f7eda`](https://github.com/mastra-ai/mastra/commit/63f7eda605eb3e0c8c35ee3912ffe7c999c69f69), [`a5b67a3`](https://github.com/mastra-ai/mastra/commit/a5b67a3589a74415feb663a55d1858324a2afde9), [`877b02c`](https://github.com/mastra-ai/mastra/commit/877b02cdbb15e199184c7f2b8f217be8d3ebada7), [`877b02c`](https://github.com/mastra-ai/mastra/commit/877b02cdbb15e199184c7f2b8f217be8d3ebada7), [`d87e96b`](https://github.com/mastra-ai/mastra/commit/d87e96b63cb47f0fe87d9147b915ebd0509f4ca3), [`7567222`](https://github.com/mastra-ai/mastra/commit/7567222b1366f0d39980594792dd9d5060bfe2ab), [`af71458`](https://github.com/mastra-ai/mastra/commit/af71458e3b566f09c11d0e5a0a836dc818e7a24a), [`eb36bd8`](https://github.com/mastra-ai/mastra/commit/eb36bd8c52fcd6ec9674ac3b7a6412405b5983e1), [`3cbf121`](https://github.com/mastra-ai/mastra/commit/3cbf121f55418141924754a83102aade89835947), [`6415277`](https://github.com/mastra-ai/mastra/commit/6415277a438faa00db2af850ead5dee25f40c428)]:
|
|
16
|
+
- @mastra/core@1.4.0-alpha.0
|
|
17
|
+
- @mastra/server@1.4.0-alpha.0
|
|
18
|
+
|
|
3
19
|
## 1.3.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ The following guides show how to deploy Mastra to specific cloud providers:
|
|
|
9
9
|
- [Amazon EC2](https://mastra.ai/guides/deployment/amazon-ec2)
|
|
10
10
|
- [AWS Lambda](https://mastra.ai/guides/deployment/aws-lambda)
|
|
11
11
|
- [Azure App Services](https://mastra.ai/guides/deployment/azure-app-services)
|
|
12
|
-
- [Cloudflare](https://mastra.ai/guides/deployment/cloudflare
|
|
12
|
+
- [Cloudflare](https://mastra.ai/guides/deployment/cloudflare)
|
|
13
13
|
- [Digital Ocean](https://mastra.ai/guides/deployment/digital-ocean)
|
|
14
14
|
- [Netlify](https://mastra.ai/guides/deployment/netlify)
|
|
15
15
|
- [Vercel](https://mastra.ai/guides/deployment/vercel)
|
|
@@ -34,7 +34,7 @@ Use this option for auto-scaling, minimal infrastructure management, or when you
|
|
|
34
34
|
- [Amazon EC2](https://mastra.ai/guides/deployment/amazon-ec2)
|
|
35
35
|
- [AWS Lambda](https://mastra.ai/guides/deployment/aws-lambda)
|
|
36
36
|
- [Azure App Services](https://mastra.ai/guides/deployment/azure-app-services)
|
|
37
|
-
- [Cloudflare](https://mastra.ai/guides/deployment/cloudflare
|
|
37
|
+
- [Cloudflare](https://mastra.ai/guides/deployment/cloudflare)
|
|
38
38
|
- [Digital Ocean](https://mastra.ai/guides/deployment/digital-ocean)
|
|
39
39
|
- [Netlify](https://mastra.ai/guides/deployment/netlify)
|
|
40
40
|
- [Vercel](https://mastra.ai/guides/deployment/vercel)
|
package/dist/server/index.cjs
CHANGED
|
@@ -3298,7 +3298,7 @@ var MastraServer = class extends serverAdapter.MastraServer {
|
|
|
3298
3298
|
const queryParams = serverAdapter.normalizeQueryParams(request.queries());
|
|
3299
3299
|
let body;
|
|
3300
3300
|
let bodyParseError;
|
|
3301
|
-
if (route.method === "POST" || route.method === "PUT" || route.method === "PATCH") {
|
|
3301
|
+
if (route.method === "POST" || route.method === "PUT" || route.method === "PATCH" || route.method === "DELETE") {
|
|
3302
3302
|
const contentType = request.header("content-type") || "";
|
|
3303
3303
|
if (contentType.includes("multipart/form-data")) {
|
|
3304
3304
|
try {
|
|
@@ -3517,6 +3517,21 @@ var MastraServer = class extends serverAdapter.MastraServer {
|
|
|
3517
3517
|
}
|
|
3518
3518
|
);
|
|
3519
3519
|
}
|
|
3520
|
+
async registerCustomApiRoutes() {
|
|
3521
|
+
const routes = this.customApiRoutes ?? this.mastra.getServer()?.apiRoutes;
|
|
3522
|
+
if (!routes || routes.length === 0) return;
|
|
3523
|
+
for (const route of routes) {
|
|
3524
|
+
const handler = "handler" in route && route.handler ? route.handler : "createHandler" in route ? await route.createHandler({ mastra: this.mastra }) : void 0;
|
|
3525
|
+
if (!handler) continue;
|
|
3526
|
+
const middlewares = [];
|
|
3527
|
+
if (route.middleware) {
|
|
3528
|
+
middlewares.push(...Array.isArray(route.middleware) ? route.middleware : [route.middleware]);
|
|
3529
|
+
}
|
|
3530
|
+
const allHandlers = [...middlewares, handler];
|
|
3531
|
+
const method = route.method.toLowerCase();
|
|
3532
|
+
this.app[method](route.path, allHandlers[0], ...allHandlers.slice(1));
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3520
3535
|
registerContextMiddleware() {
|
|
3521
3536
|
this.app.use("*", this.createContextMiddleware());
|
|
3522
3537
|
}
|