Skip to content

Commit f458e05

Browse files
KyleAMathewsclaude
andauthored
Fix TanStack duplicate dependency versions (#952)
fix: use regular dependency for @tanstack/db in all packages Move @tanstack/db from peerDependencies to dependencies in query-db-collection and offline-transactions to match the standard pattern used by other TanStack DB packages. This fixes duplicate @tanstack/db installations when users have multiple packages installed together. Co-authored-by: Claude <noreply@anthropic.com>
1 parent c4b9399 commit f458e05

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@tanstack/query-db-collection": patch
3+
"@tanstack/offline-transactions": patch
4+
---
5+
6+
Use regular dependency for @tanstack/db instead of peerDependency to match the standard pattern used by other TanStack DB packages and prevent duplicate installations

packages/offline-transactions/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@
5050
"typecheck": "tsc --noEmit",
5151
"lint": "eslint src"
5252
},
53-
"dependencies": {},
53+
"dependencies": {
54+
"@tanstack/db": "workspace:*"
55+
},
5456
"devDependencies": {
5557
"@types/node": "^20.0.0",
56-
"@tanstack/db": "workspace:*",
5758
"eslint": "^8.57.1",
5859
"typescript": "^5.5.4",
5960
"vitest": "^3.2.4"
60-
},
61-
"peerDependencies": {
62-
"@tanstack/db": "*"
6361
}
6462
}

packages/query-db-collection/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"description": "TanStack Query collection for TanStack DB",
44
"version": "1.0.5",
55
"dependencies": {
6-
"@standard-schema/spec": "^1.0.0"
6+
"@standard-schema/spec": "^1.0.0",
7+
"@tanstack/db": "workspace:*"
78
},
89
"devDependencies": {
9-
"@tanstack/db": "workspace:*",
1010
"@tanstack/query-core": "^5.90.11",
1111
"@vitest/coverage-istanbul": "^3.2.4"
1212
},
@@ -31,7 +31,6 @@
3131
"module": "dist/esm/index.js",
3232
"packageManager": "pnpm@10.24.0",
3333
"peerDependencies": {
34-
"@tanstack/db": "*",
3534
"@tanstack/query-core": "^5.0.0",
3635
"typescript": ">=4.7"
3736
},

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)