@mastra/deployer 1.56.0-alpha.4 → 1.56.0-alpha.5

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,13 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.56.0-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`db4e6ff`](https://github.com/mastra-ai/mastra/commit/db4e6ff744503112eb64deeaf6c2b54bf26a54c7), [`6d19a65`](https://github.com/mastra-ai/mastra/commit/6d19a6517f5da3911023d446b7e2d5dad8adb1cb)]:
8
+ - @mastra/core@1.56.0-alpha.5
9
+ - @mastra/server@1.56.0-alpha.5
10
+
3
11
  ## 1.56.0-alpha.4
4
12
 
5
13
  ### Patch Changes
@@ -3,7 +3,7 @@ name: mastra-deployer
3
3
  description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/deployer"
6
- version: "1.56.0-alpha.4"
6
+ version: "1.56.0-alpha.5"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.56.0-alpha.4",
2
+ "version": "1.56.0-alpha.5",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -2614,14 +2614,18 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
2614
2614
  const shouldApplyBodyLimit = this.bodyLimitOptions && [
2615
2615
  "POST",
2616
2616
  "PUT",
2617
- "PATCH"
2617
+ "PATCH",
2618
+ "DELETE"
2618
2619
  ].includes(route.method.toUpperCase());
2619
2620
  const maxSize = route.maxBodySize ?? this.bodyLimitOptions?.maxSize;
2620
2621
  const middlewares = [];
2621
- if (shouldApplyBodyLimit && maxSize && this.bodyLimitOptions) middlewares.push((0, hono_body_limit.bodyLimit)({
2622
- maxSize,
2623
- onError: this.bodyLimitOptions.onError
2624
- }));
2622
+ if (shouldApplyBodyLimit && maxSize && this.bodyLimitOptions) {
2623
+ const { onError } = this.bodyLimitOptions;
2624
+ middlewares.push((0, hono_body_limit.bodyLimit)({
2625
+ maxSize,
2626
+ onError: (c) => c.json(onError({ error: "Request body too large" }), 413)
2627
+ }));
2628
+ }
2625
2629
  app[route.method.toLowerCase()](`${prefix}${route.path}`, ...middlewares, async (c) => {
2626
2630
  const authResult = await this.checkRouteAuth(route, {
2627
2631
  path: c.req.path,