@mastra/evals 1.2.2-alpha.0 → 1.2.2

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,24 @@
1
1
  # @mastra/evals
2
2
 
3
+ ## 1.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed prebuilt LLM-judge scorers (faithfulness, answer relevancy, bias, hallucination, toxicity, …) crashing with `TypeError: output.find is not a function` when used against workflows, inline tasks, or string targets. The shared input/output helpers and scorer run types now also accept `string`, `ModelMessage[]`, `{ prompt }` (workflow input), `{ text }` / `{ content }` (workflow / task output), and a single assistant message object — alongside the existing agent shape. ([#15805](https://github.com/mastra-ai/mastra/pull/15805))
8
+
9
+ ```ts
10
+ // Previously crashed; now works.
11
+ await createFaithfulnessScorer({ model, options: { context: ['Paris is the capital of France.'] } }).run({
12
+ input: { prompt: 'What is the capital of France?' },
13
+ output: { text: 'Paris is the capital of France.' },
14
+ });
15
+ ```
16
+
17
+ Fixes [#15615](https://github.com/mastra-ai/mastra/issues/15615).
18
+
19
+ - Updated dependencies [[`6db978c`](https://github.com/mastra-ai/mastra/commit/6db978c42e94e75540a504f7230086f0b5cd35f9), [`512a013`](https://github.com/mastra-ai/mastra/commit/512a013f285aa9c0aa8f08a35b2ce09f9938b017), [`e9becde`](https://github.com/mastra-ai/mastra/commit/e9becdeed9176b9f8392e557bde12b933f99cf7a), [`703a443`](https://github.com/mastra-ai/mastra/commit/703a44390c587d9c0b8ae94ec4edd8afb2a74044), [`808df1b`](https://github.com/mastra-ai/mastra/commit/808df1b39358b5f10b7317107e42b1fda7c87185)]:
20
+ - @mastra/core@1.29.1
21
+
3
22
  ## 1.2.2-alpha.0
4
23
 
5
24
  ### Patch Changes
@@ -3,7 +3,7 @@ name: mastra-evals
3
3
  description: Documentation for @mastra/evals. Use when working with @mastra/evals APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/evals"
6
- version: "1.2.2-alpha.0"
6
+ version: "1.2.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.2-alpha.0",
2
+ "version": "1.2.2",
3
3
  "package": "@mastra/evals",
4
4
  "exports": {},
5
5
  "modules": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/evals",
3
- "version": "1.2.2-alpha.0",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -76,12 +76,12 @@
76
76
  "typescript": "^6.0.3",
77
77
  "vitest": "4.1.5",
78
78
  "zod": "^4.3.6",
79
- "@internal/lint": "0.0.87",
80
- "@internal/llm-recorder": "0.0.23",
81
- "@internal/types-builder": "0.0.62",
82
- "@internal/ai-sdk-v5": "0.0.34",
83
- "@internal/test-utils": "0.0.23",
84
- "@mastra/core": "1.29.1-alpha.2"
79
+ "@internal/ai-sdk-v5": "0.0.35",
80
+ "@internal/lint": "0.0.88",
81
+ "@internal/test-utils": "0.0.24",
82
+ "@internal/types-builder": "0.0.63",
83
+ "@internal/llm-recorder": "0.0.24",
84
+ "@mastra/core": "1.29.1"
85
85
  },
86
86
  "engines": {
87
87
  "node": ">=22.13.0"