Skip to content

chore: enforce pnpm 11 - #10749

Merged
TkDodo merged 3 commits into
TanStack:mainfrom
Sheraff:opencode/enforce-pnpm-11
May 22, 2026
Merged

chore: enforce pnpm 11#10749
TkDodo merged 3 commits into
TanStack:mainfrom
Sheraff:opencode/enforce-pnpm-11

Conversation

@Sheraff

@SheraffSheraff commented May 21, 2026

Copy link
Copy Markdown
Contributor

Adds engines.pnpm >=11.0.0 to TanStack/query.

ScenarioResult
pnpm@11+ installAllowed
pnpm@11+ run ...Allowed
pnpm@9 installBlocked by engines.pnpm
pnpm@9 run ...Blocked by engines.pnpm
pnpm@10 install with default pnpm version managementUsually hands off to packageManager and runs as the declared pnpm version
pnpm@10 run ... with default pnpm version managementUsually hands off to packageManager and runs as the declared pnpm version
pnpm@10 install with version handoff disabledBlocked by engines.pnpm
pnpm@10 run ... with version handoff disabledBlocked by engines.pnpm
pnpm@9/10 listNot blocked
pnpm@9/10 exec ...Not blocked
FieldWhat It Does
packageManagerHelps tools/newer pnpm select or hand off to the declared pnpm version
engines.pnpm: \">=11.0.0\"Fails important project workflows when an older pnpm is actually executing them
engines.pnpmDoes not intercept every pnpm subcommand

Summary by CodeRabbit

  • Chores
    • Updated package manager requirement to pnpm >= 11.0.0.
    • No other package metadata, scripts, dependencies, or configuration were changed.

Review Change Stack

@coderabbitai

coderabbitaiBot commented May 21, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: dc919012-f39d-4f96-84b5-0bd033774770

📥 Commits

Reviewing files that changed from the base of the PR and between f33186c and bb0ead4.

📒 Files selected for processing (1)
  • package.json
✅ Files skipped from review due to trivial changes (1)
  • package.json

📝 Walkthrough

Walkthrough

Root package.json now enforces a minimum pnpm version of >=11.0.0 via an engines field. No other package metadata, scripts, or dependencies changed.

Changes

Minimum pnpm version requirement

Layer / File(s)Summary
Add pnpm version requirement
package.json
New engines field specifies pnpm >=11.0.0 as the minimum required package manager version.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 I hopped through JSON, neat and spry,
I nudged a version to eleven high.
A tiny line to set the bar,
pnpm sings — we've raised the spar.
📦✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check nameStatusExplanationResolution
Description check❓ InconclusiveThe description provides detailed explanation of the change and its effects, but is missing the required checklist items and release impact sections from the template.Complete the description by adding the checklist (Contributing guide, testing confirmation) and Release Impact section to match the repository template requirements.
✅ Passed checks (4 passed)
Check nameStatusExplanation
Title check✅ PassedThe title 'chore: enforce pnpm 11' accurately and concisely describes the main change: adding an engines constraint to enforce pnpm version 11 or higher.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud

nx-cloudBot commented May 21, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit bb0ead4

CommandStatusDurationResult
nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded5m 57sView ↗
nx run-many --target=build --exclude=examples/*...✅ Succeeded9sView ↗

☁️ Nx Cloud last updated this comment at 2026-05-22 16:31:33 UTC

@coderabbitaicoderabbitaiBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@package.json`:
- Around line 8-11: The package.json has a mismatch between packageManager
("packageManager") set to "pnpm@10.24.0" and the engines constraint
("engines.pnpm") requiring ">=11.0.0"; update the packageManager entry to a pnpm
11.x pin (for example "pnpm@11.0.0" or an appropriate 11.x version) so both
packageManager and engines.pnpm align, or alternatively relax engines.pnpm to
allow 10.24.0—change the packageManager field to match the engines.pnpm
requirement to resolve the contradiction.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 43e05f84-48aa-4947-97da-e0136824cbe4

📥 Commits

Reviewing files that changed from the base of the PR and between c00ea27 and f33186c.

📒 Files selected for processing (1)
  • package.json

Comment threadpackage.json Outdated
@TkDodo

Copy link
Copy Markdown
Collaborator

hmm setup tools fails:

Run pnpm install --frozen-lockfile
ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)
Your pnpm version is incompatible with "/home/runner/work/query/query".
Expected version: >=11.0.0
Got: 10.24.0

@Sheraff

Sheraff commented May 22, 2026

Copy link
Copy Markdown
ContributorAuthor

hmm setup tools fails:

Run pnpm install --frozen-lockfile
ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)
Your pnpm version is incompatible with "/home/runner/work/query/query".
Expected version: >=11.0.0
Got: 10.24.0

Ah yeah sorry I thought this one had been merged #10699

@TkDodo

Copy link
Copy Markdown
Collaborator

Ah yeah sorry I thought this one had been merged #10699

merged it now

@pkg-pr-new

pkg-pr-newBot commented May 22, 2026

Copy link
Copy Markdown
More templates

@tanstack/angular-query-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-experimental@10749

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@10749

@tanstack/lit-query

npm i https://pkg.pr.new/@tanstack/lit-query@10749

@tanstack/preact-query

npm i https://pkg.pr.new/@tanstack/preact-query@10749

@tanstack/preact-query-devtools

npm i https://pkg.pr.new/@tanstack/preact-query-devtools@10749

@tanstack/preact-query-persist-client

npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@10749

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@10749

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@10749

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@10749

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@10749

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@10749

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@10749

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@10749

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@10749

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@10749

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@10749

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@10749

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@10749

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@10749

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@10749

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@10749

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@10749

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@10749

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@10749

commit: bb0ead4

@TkDodoTkDodo closed this May 22, 2026
@TkDodoTkDodo reopened this May 22, 2026
@TkDodo
TkDodo merged commit c066ab8 into TanStack:mainMay 22, 2026
18 checks passed
@coderabbitaicoderabbitaiBot mentioned this pull request Jun 24, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Sheraff@TkDodo