-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: add missing router-core peer dependency to ssr-query packages #6382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -69,6 +69,7 @@ | |||||||||||||||||
| }, | ||||||||||||||||||
| "peerDependencies": { | ||||||||||||||||||
| "@tanstack/query-core": ">=5.90.0", | ||||||||||||||||||
| "@tanstack/router-core": ">=1.127.0", | ||||||||||||||||||
| "@tanstack/vue-query": ">=5.90.0", | ||||||||||||||||||
|
Comment on lines
70
to
73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major 🧩 Analysis chain🏁 Script executed: # First, find the package.json file and see its context
find . -name "package.json" -type f | head -20Repository: TanStack/router Length of output: 1158 🏁 Script executed: # Check the specific file mentioned in the review
cat packages/vue-router-ssr-query/package.json | head -80Repository: TanStack/router Length of output: 2262 🏁 Script executed: # Look for other package.json files in the packages directory to see how internal deps are handled
find packages -name "package.json" -type f | xargs grep -l "@tanstack/router-core" | head -10Repository: TanStack/router Length of output: 460 🏁 Script executed: # Check if workspace:* is used for internal dependencies in other package.json files
rg '"@tanstack/[^"]+": "workspace:\*' packages --type jsonRepository: TanStack/router Length of output: 7838 🏁 Script executed: # Search for workspace:* in peerDependencies sections
rg -A 20 '"peerDependencies"' packages --type json | grep -E '(peerDependencies|workspace:\*|@tanstack)'Repository: TanStack/router Length of output: 5257 🏁 Script executed: # Check specific examples of internal packages' peerDependencies to see the pattern
cat packages/react-router-ssr-query/package.json | grep -A 10 '"peerDependencies"'Repository: TanStack/router Length of output: 331 🏁 Script executed: # Check vue-router's peerDependencies as well
cat packages/vue-router/package.json | grep -A 10 '"peerDependencies"'Repository: TanStack/router Length of output: 108 🏁 Script executed: # Check the most similar packages to vue-router-ssr-query (other devtools packages)
echo "=== Vue Router Devtools peerDependencies ===" && \
cat packages/vue-router-devtools/package.json | grep -A 5 '"peerDependencies"'
echo "=== React Router Devtools peerDependencies ===" && \
cat packages/react-router-devtools/package.json | grep -A 5 '"peerDependencies"'
echo "=== Router Devtools Core peerDependencies ===" && \
cat packages/router-devtools-core/package.json | grep -A 5 '"peerDependencies"'Repository: TanStack/router Length of output: 699 🏁 Script executed: # Check if there's a pattern: when was workspace:^ introduced vs version constraints
# Look at start-static-server-functions which uses workspace:* in peerDependencies
cat packages/start-static-server-functions/package.json | grep -A 10 '"peerDependencies"'Repository: TanStack/router Length of output: 323 🏁 Script executed: # Check if there's a distinction between how workspace:* vs workspace:^ is used
# across different types of internal packages
rg '"workspace:\^"' packages --type json | head -20Repository: TanStack/router Length of output: 913 🏁 Script executed: # See if there's any documentation or pattern in the repo about this choice
find . -name "CONTRIBUTING*" -o -name "README*" | xargs grep -l "workspace" 2>/dev/null | head -5Repository: TanStack/router Length of output: 76 🏁 Script executed: # Check CONTRIBUTING.md for workspace protocol guidance
cat CONTRIBUTING.md | grep -A 5 -B 5 "workspace"Repository: TanStack/router Length of output: 634 Use
🔧 Suggested change- "@tanstack/router-core": ">=1.127.0",
+ "@tanstack/router-core": "workspace:*",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| "@tanstack/vue-router": ">=1.127.0", | ||||||||||||||||||
| "vue": "^3.3.0" | ||||||||||||||||||
|
|
||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: TanStack/router
Length of output: 94
🏁 Script executed:
# Check the file in question and its full content cat packages/solid-router-ssr-query/package.jsonRepository: TanStack/router
Length of output: 2472
🏁 Script executed:
Repository: TanStack/router
Length of output: 5238
Use
workspace:*for internal peer dependencies.@tanstack/router-coreis an internal monorepo package and should use the workspace protocol. This aligns with the workspace protocol requirement for package.json entries and matches the pattern used in similar packages like@tanstack/solid-router-devtoolsand@tanstack/vue-router-devtools.🔧 Suggested change
📝 Committable suggestion
🤖 Prompt for AI Agents