Skip to content

Commit 9607d47

Browse files
Version Packages (#233)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2b49df4 commit 9607d47

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.changeset/relax-schemas.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @openrouter/ai-sdk-provider
22

3+
## 1.2.3
4+
5+
### Patch Changes
6+
7+
- [#232](https://github.com/OpenRouterTeam/ai-sdk-provider/pull/232) [`2b49df4`](https://github.com/OpenRouterTeam/ai-sdk-provider/commit/2b49df448550e393312f129bcfbf260d429e17c7) Thanks [@subtleGradient](https://github.com/subtleGradient)! - Relax zod schemas with passthrough to allow unexpected API fields
8+
9+
Add `.passthrough()` to all zod object schemas to prevent validation failures when the API returns extra fields not in our schema definitions. This ensures forward compatibility with API changes and prevents breaking when new fields are added to responses.
10+
311
## 1.2.2
412

513
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openrouter/ai-sdk-provider",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"license": "Apache-2.0",
55
"sideEffects": false,
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)