Skip to content

Commit 778cc7a

Browse files
KyleAMathewsclaude
andauthored
fix(query-db-collection): move query-core to peerDependencies (#351)
Co-authored-by: Claude <[email protected]>
1 parent 8e0fd38 commit 778cc7a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.changeset/small-insects-post.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@tanstack/query-db-collection": patch
3+
---
4+
5+
Move @tanstack/query-core from dependencies to peerDependencies to avoid version conflicts when users already have react-query or query-core installed. This is a non-breaking change as the package will continue to work with any 5.x version of query-core.

packages/query-db-collection/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"description": "TanStack Query collection for TanStack DB",
44
"version": "0.1.1",
55
"dependencies": {
6-
"@tanstack/db": "workspace:*",
7-
"@tanstack/query-core": "^5.75.7"
6+
"@tanstack/db": "workspace:*"
87
},
98
"devDependencies": {
9+
"@tanstack/query-core": "^5.0.5",
1010
"@vitest/coverage-istanbul": "^3.0.9"
1111
},
1212
"exports": {
@@ -30,6 +30,7 @@
3030
"module": "dist/esm/index.js",
3131
"packageManager": "[email protected]",
3232
"peerDependencies": {
33+
"@tanstack/query-core": "^5.0.0",
3334
"typescript": ">=4.7"
3435
},
3536
"author": "Kyle Mathews",

pnpm-lock.yaml

Lines changed: 3 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)