@mastra/deployer 1.47.0-alpha.2 → 1.47.0-alpha.4

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,21 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.47.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`462a769`](https://github.com/mastra-ai/mastra/commit/462a769da61850862ca1be3d74134d33078ee6a7), [`f328049`](https://github.com/mastra-ai/mastra/commit/f3280498c324afd2a8d36cd828f5b9f94a2dddc1), [`e545228`](https://github.com/mastra-ai/mastra/commit/e54522856934a5dc030b7b6385771e3548020d59)]:
8
+ - @mastra/core@1.47.0-alpha.4
9
+ - @mastra/server@1.47.0-alpha.4
10
+
11
+ ## 1.47.0-alpha.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`bf3fe49`](https://github.com/mastra-ai/mastra/commit/bf3fe49f9467dbbdb8f9eaf74e0f7971ffb19559), [`24ceaea`](https://github.com/mastra-ai/mastra/commit/24ceaea0bdd8609cabbab764380608ca6621a194), [`9e45902`](https://github.com/mastra-ai/mastra/commit/9e4590208e745055cecca202e2db0e5c65e17d3c), [`6ccf67b`](https://github.com/mastra-ai/mastra/commit/6ccf67bf075753754927a57bc2e1734ba2c820c5), [`825d8de`](https://github.com/mastra-ai/mastra/commit/825d8def9fa64c2bcc3d8dd6b49e09342c3ac5c7), [`ffa09e7`](https://github.com/mastra-ai/mastra/commit/ffa09e772a5c92270eabe2090fc42d45bd8ec4b7), [`461a7c5`](https://github.com/mastra-ai/mastra/commit/461a7c501449295287f4f0ee4b0b42344f39fcf8), [`4211472`](https://github.com/mastra-ai/mastra/commit/4211472a5a2bd319c60cd2e42d9109c3eef7ac1c), [`9e45902`](https://github.com/mastra-ai/mastra/commit/9e4590208e745055cecca202e2db0e5c65e17d3c), [`5c0df77`](https://github.com/mastra-ai/mastra/commit/5c0df776c40efa420f8c07a2f3ee66010296618e)]:
16
+ - @mastra/core@1.47.0-alpha.3
17
+ - @mastra/server@1.47.0-alpha.3
18
+
3
19
  ## 1.47.0-alpha.2
4
20
 
5
21
  ### 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.47.0-alpha.2"
6
+ version: "1.47.0-alpha.4"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.47.0-alpha.2",
2
+ "version": "1.47.0-alpha.4",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {
5
5
  "Deps": {
@@ -3292,11 +3292,15 @@ var MastraServer = class extends serverAdapter.MastraServer {
3292
3292
  const result = await route.handler(handlerParams);
3293
3293
  return this.sendResponse(route, c, result, prefix);
3294
3294
  } catch (error) {
3295
- this.mastra.getLogger()?.error("Error calling handler", {
3296
- error: error instanceof Error ? { message: error.message, stack: error.stack } : error,
3297
- path: route.path,
3298
- method: route.method
3299
- });
3295
+ const httpStatus = error && typeof error === "object" && "status" in error ? error.status : void 0;
3296
+ const isClientError = typeof httpStatus === "number" && httpStatus >= 400 && httpStatus < 500;
3297
+ if (!isClientError) {
3298
+ this.mastra.getLogger()?.error("Error calling handler", {
3299
+ error: error instanceof Error ? { message: error.message, stack: error.stack } : error,
3300
+ path: route.path,
3301
+ method: route.method
3302
+ });
3303
+ }
3300
3304
  if (error && typeof error === "object") {
3301
3305
  if ("status" in error) {
3302
3306
  const status = error.status;