Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/remove-toon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@openrouter/ai-sdk-provider": patch
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaking change removes public API exports and should be marked as a major version bump, not a patch. Consider changing 'patch' to 'major' to follow semantic versioning conventions.

Suggested change
"@openrouter/ai-sdk-provider": patch
"@openrouter/ai-sdk-provider": major

Copilot uses AI. Check for mistakes.
---

Remove TOON encoding/decoding helper functions

BREAKING CHANGE: Removes @toon-format/toon dependency and related exports (encodeToon, decodeToon, ToonEncodeOptions, ToonDecodeOptions, JsonValue). Users who were using these helpers should import directly from @toon-format/toon instead.
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"@changesets/changelog-github": "0.5.1",
"@changesets/cli": "2.29.7",
"@edge-runtime/vm": "5.0.0",
"@toon-format/toon": "2.0.1",
"@types/node": "24.2.0",
"ai": "5.0.104",
"dotenv": "17.2.1",
Expand All @@ -63,15 +62,9 @@
"zod": "3.25.76"
},
"peerDependencies": {
"@toon-format/toon": "^2.0.0",
"ai": "^5.0.0",
"zod": "^3.24.1 || ^v4"
},
"peerDependenciesMeta": {
"@toon-format/toon": {
"optional": true
}
},
"engines": {
"node": ">=18"
},
Expand Down
8 changes: 0 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import type { ParseResult } from '@ai-sdk/provider-utils';
import type { FinishReason } from 'ai';
import type { z } from 'zod/v4';
import type { ReasoningDetailUnion } from '@/src/schemas/reasoning-details';
import type { FileAnnotation } from '../schemas/provider-metadata';
import type { OpenRouterUsageAccounting } from '@/src/types/index';
import type { FileAnnotation } from '../schemas/provider-metadata';
import type {
OpenRouterChatModelId,
OpenRouterChatSettings,
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './facade';
export * from './provider';
export * from './toon';
export * from './types';
116 changes: 0 additions & 116 deletions src/toon/index.ts

This file was deleted.

107 changes: 0 additions & 107 deletions src/toon/toon.test.ts

This file was deleted.