@mastra/nestjs 0.1.5-alpha.3 → 0.1.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/nestjs
2
2
 
3
+ ## 0.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed `@mastra/nestjs` coercing query parameter values to booleans, `null`, numbers, and parsed JSON objects/arrays before route schema validation. A route declaring `queryParamSchema: z.object({ filter: z.string() })` could reject a valid request like `?filter={"a":1}` because the adapter had already turned the string into an object. NestJS now forwards query values as the raw strings (or string arrays) the HTTP layer delivered — matching `@mastra/hono`, `@mastra/express`, `@mastra/fastify`, and `@mastra/koa`. ([#16268](https://github.com/mastra-ai/mastra/pull/16268))
8
+
9
+ Routes that want type coercion should opt in via the schema, e.g. `z.coerce.boolean()`, `z.coerce.number()`, or a JSON preprocessor on the field.
10
+
11
+ Fixes #16114.
12
+
13
+ - Updated dependencies [[`20787de`](https://github.com/mastra-ai/mastra/commit/20787de5965234a1af28fe35f49437c537dbfa0d), [`784ad98`](https://github.com/mastra-ai/mastra/commit/784ad989549de91dc5d33ab8ef36caa6f7dcd34e), [`fceae1f`](https://github.com/mastra-ai/mastra/commit/fceae1f5f5db4722cb078a663c6eb4bd22944123), [`090a647`](https://github.com/mastra-ai/mastra/commit/090a647ba5a66d36f203f9f49457e03a1ff4e6fb), [`bf02acb`](https://github.com/mastra-ai/mastra/commit/bf02acbb8a6110f638ac844e89f1ebf04cb7fe74), [`090a647`](https://github.com/mastra-ai/mastra/commit/090a647ba5a66d36f203f9f49457e03a1ff4e6fb), [`bdb4cbf`](https://github.com/mastra-ai/mastra/commit/bdb4cbf8ba4b685d7481f28bb9dc3de6c79c9ed2), [`0fd3fbe`](https://github.com/mastra-ai/mastra/commit/0fd3fbe40fb63657aedd72f6e7b38c8e8ee6940d), [`f84447d`](https://github.com/mastra-ai/mastra/commit/f84447d6c80f3471836a9b300d246b331fb47e0d), [`a1a5b3e`](https://github.com/mastra-ai/mastra/commit/a1a5b3e42ab2ca5161ea21db59ebf28442680fa7), [`af84f57`](https://github.com/mastra-ai/mastra/commit/af84f571ed762e92e8e61c5f9a72363520914274), [`8b3c6f9`](https://github.com/mastra-ai/mastra/commit/8b3c6f90f7879833ba7d1bc70937e1d8f69d0804), [`fed0475`](https://github.com/mastra-ai/mastra/commit/fed0475ccfea31e4fc251469ac05640d0742c1f0), [`0d53730`](https://github.com/mastra-ai/mastra/commit/0d53730c1ed87ef80c87caa5701c4170ea8028e6), [`8dd8859`](https://github.com/mastra-ai/mastra/commit/8dd8859020a7b90113e5ccd19dcb936d33d05395), [`522f44d`](https://github.com/mastra-ai/mastra/commit/522f44d947214bfc06cff50599bae1ef3494880d)]:
14
+ - @mastra/core@1.34.0
15
+ - @mastra/server@1.34.0
16
+
3
17
  ## 0.1.5-alpha.3
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/nestjs",
3
- "version": "0.1.5-alpha.3",
3
+ "version": "0.1.5",
4
4
  "description": "Mastra NestJS adapter for the server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
23
  "@fastify/busboy": "^3.2.0",
24
- "@mastra/server": "1.34.0-alpha.3"
24
+ "@mastra/server": "1.34.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@nestjs/common": "^10.4.15",
@@ -43,15 +43,15 @@
43
43
  "typescript": "^6.0.3",
44
44
  "vitest": "^3.2.4",
45
45
  "zod": "^3.25.0",
46
- "@internal/lint": "0.0.94",
47
- "@internal/server-adapter-test-utils": "0.0.19",
48
- "@internal/storage-test-utils": "0.0.90",
49
- "@internal/types-builder": "0.0.69",
46
+ "@internal/lint": "0.0.95",
47
+ "@internal/server-adapter-test-utils": "0.0.20",
48
+ "@internal/types-builder": "0.0.70",
49
+ "@internal/storage-test-utils": "0.0.91",
50
50
  "@mastra/evals": "1.2.2",
51
- "@mastra/core": "1.34.0-alpha.3",
52
- "@mastra/memory": "1.18.1-alpha.0",
51
+ "@mastra/libsql": "1.10.1",
52
+ "@mastra/core": "1.34.0",
53
53
  "@mastra/observability": "1.12.0",
54
- "@mastra/libsql": "1.10.1"
54
+ "@mastra/memory": "1.18.1"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@mastra/core": ">=1.32.0-0 <2.0.0-0",