chore(frontend): remove unused @ai-sdk/openai dependency#5716
Conversation
There was a problem hiding this comment.
Pull request overview
Removes an unused frontend dependency (@ai-sdk/openai) and cleans up the corresponding Yarn lockfile entries to keep the workspace dependency graph minimal and accurate.
Changes:
- Drop
@ai-sdk/openaifromfrontend/package.jsondependencies. - Regenerate/update
frontend/yarn.lockto remove the now-unreferenced package resolution and dependency entry.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| frontend/package.json | Removes the unused direct dependency entry for @ai-sdk/openai. |
| frontend/yarn.lock | Removes the lockfile resolution and dependency listing for @ai-sdk/openai. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5716 +/- ##
============================================
+ Coverage 53.07% 53.17% +0.10%
+ Complexity 2657 2501 -156
============================================
Files 1094 1076 -18
Lines 42286 41665 -621
Branches 4541 4503 -38
============================================
- Hits 22444 22157 -287
+ Misses 18530 18200 -330
+ Partials 1312 1308 -4
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/request-review @bobbai00 |
|
can we check how was it introduced? |
|
@Yicong-Huang, it is introduced in this pr #4020, which is why I request @bobbai00 for review. |
Thanks, it might be better to put those as related backgound in the PR description. |
### What changes were proposed in this PR? - Remove `@ai-sdk/openai` from `frontend/package.json` dependencies; it is imported nowhere in `frontend/src` and `yarn.lock` lists it only as a direct dependency of the root workspace, not a transitive or peer dependency of the in-use `ai` package. - Regenerate `frontend/yarn.lock` to drop the now-unreferenced resolution. ### Any related issues, documentation, discussions? Closes: apache#5715 ### How was this PR tested? - Run `grep -rn "ai-sdk/openai" frontend/src` and confirm zero matches (the package is genuinely unused). - From `frontend/`, run `yarn install` then `yarn build`; expect the production build to succeed (exit 0), confirming nothing depended on the removed package. This was run locally and passed. ### Was this PR authored or co-authored using generative AI tooling? Co-authored with Claude Opus 4.8 in compliance with ASF
What changes were proposed in this PR?
@ai-sdk/openaifromfrontend/package.jsondependencies; it is imported nowhere infrontend/srcandyarn.locklists it only as a direct dependency of the root workspace, not a transitive or peer dependency of the in-useaipackage.frontend/yarn.lockto drop the now-unreferenced resolution.Any related issues, documentation, discussions?
Closes: #5715
How was this PR tested?
grep -rn "ai-sdk/openai" frontend/srcand confirm zero matches (the package is genuinely unused).frontend/, runyarn installthenyarn build; expect the production build to succeed (exit 0), confirming nothing depended on the removed package. This was run locally and passed.Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF