Skip to content

Commit 2e59b77

Browse files
authored
chore(ai-event-client): drop unused @tanstack/ai peerDependency (#694)
ai-event-client mirrors the middleware types it needs locally and imports nothing from @tanstack/ai, so the peer dependency only manufactured a package-manifest cycle (@tanstack/ai already depends on ai-event-client). Remove it along with the matching `!@tanstack/ai` Nx implicitDependencies workaround so the build graph stays a clean DAG. Verified: pnpm install no longer warns about cyclic workspace dependencies; build, test:types, test:lib, and publint --strict pass, and nx affected build is clean across all consumers. Closes #552
1 parent a571f48 commit 2e59b77

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/ai-event-client': patch
3+
---
4+
5+
Drop the unused `@tanstack/ai` peerDependency. `@tanstack/ai-event-client` mirrors the middleware types it needs locally and imports nothing from `@tanstack/ai`, so the peer dep only manufactured a package-manifest cycle (`@tanstack/ai` already depends on `@tanstack/ai-event-client`). Removing it — and the matching `!@tanstack/ai` Nx `implicitDependencies` workaround — keeps the build graph a clean DAG and unblocks devtools-only consumers.

packages/ai-event-client/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
"dependencies": {
4545
"@tanstack/devtools-event-client": "^0.4.1"
4646
},
47-
"peerDependencies": {
48-
"@tanstack/ai": "workspace:*"
49-
},
5047
"devDependencies": {
5148
"@vitest/coverage-v8": "4.0.14"
5249
},
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"name": "@tanstack/ai-event-client",
3-
"implicitDependencies": ["!@tanstack/ai"]
2+
"name": "@tanstack/ai-event-client"
43
}

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)