Skip to content

chore(ai-openrouter): update OpenRouter SDK#824

Open
AdemBenAbdallah wants to merge 1 commit into
TanStack:mainfrom
AdemBenAbdallah:chore/update-openrouter-sdk
Open

chore(ai-openrouter): update OpenRouter SDK#824
AdemBenAbdallah wants to merge 1 commit into
TanStack:mainfrom
AdemBenAbdallah:chore/update-openrouter-sdk

Conversation

@AdemBenAbdallah

@AdemBenAbdallah AdemBenAbdallah commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #712.

Updates @openrouter/sdk from 0.12.35 to 0.12.79.

The currently pinned SDK version includes a duplicate rootDir key in its published tsconfig.json. The newer 0.12.79 tarball no longer has the duplicate key while staying on the same 0.12.x release line.

testing/e2e is updated to the same SDK version to satisfy the workspace's single-version dependency check.

A patch changeset is included because this updates a published package dependency.

Validation

pnpm install --frozen-lockfile
pnpm test:sherif
pnpm test:knip
pnpm --filter @tanstack/ai-openrouter test:types
pnpm --filter @tanstack/ai-openrouter test:build

I also checked pnpm --filter @tanstack/ai-openrouter test:lib; it currently fails on clean upstream main with the existing OpenRouter structured output > flows through core chat() entrypoint with strict transformation assertion, so this PR does not address that unrelated pre-existing failure.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the AI OpenRouter integration to the latest patch release for improved package compatibility.
    • Fixed a packaging metadata issue that could affect how the SDK is published and consumed.

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e612b378-696b-4ddd-85d6-d153ab7c9c8a

📥 Commits

Reviewing files that changed from the base of the PR and between 2e59b77 and 2e10ffc.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • .changeset/fresh-openrouter-sdk.md
  • packages/ai-openrouter/package.json
  • testing/e2e/package.json

📝 Walkthrough

Walkthrough

Bumps the @openrouter/sdk dependency from 0.12.35 to 0.12.79 in packages/ai-openrouter/package.json and testing/e2e/package.json. Adds a Changesets entry declaring a patch release for @tanstack/ai-openrouter to track the update.

Changes

@openrouter/sdk version bump

Layer / File(s) Summary
Dependency bump and changeset
.changeset/fresh-openrouter-sdk.md, packages/ai-openrouter/package.json, testing/e2e/package.json
@openrouter/sdk bumped from 0.12.35 to 0.12.79 in both the ai-openrouter package and the e2e test environment; a patch changeset is added for @tanstack/ai-openrouter.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • AlemTuzlak

Poem

🐇 A rabbit hopped in, sniffed the SDK with care,
"Duplicate rootDir? That's more than we can bear!"
So version bump it was, from .35 to .79,
The metadata is clean now, everything's just fine.
Hop hop hooray, the package is aligned! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: updating the OpenRouter SDK.
Description check ✅ Passed The PR description covers the changes, validation, and release impact, and mostly matches the required template.
Linked Issues check ✅ Passed The SDK bump to 0.12.79 and matching e2e dependency update address the reported duplicate rootDir packaging issue.
Out of Scope Changes check ✅ Passed The diff is limited to the SDK version bump, changeset, and workspace dependency sync, with no unrelated changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​openrouter/​sdk@​0.12.799410010098100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate key "rootDir" in @openrouter+sdk@0.12.35

1 participant