Skip to content

chore: upgrade pnpm to 10.33.1 - #7350

Merged
KATT merged 3 commits into
mainfrom
cursor/upgrade-pnpm-latest-32a4
Apr 22, 2026
Merged

KATT merged 3 commits into
mainfrom
cursor/upgrade-pnpm-latest-32a4

Conversation

@KATT

@KATT KATT commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Closes #

🎯 Changes

  • upgrade the monorepo's pnpm version pins to 10.33.1
  • align shared/example GitHub workflows that explicitly install pnpm so CI uses the same version everywhere

βœ… Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.
Open in WebΒ Open in CursorΒ 

Summary by CodeRabbit

  • Bug Fixes

    • Fixed an issue where the CLI would fail to write output when the destination directory didn't exist.
  • Chores

    • Updated package manager to pnpm 10.33.1.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b9475e0e-5926-41da-8f0d-d8c47f53e796

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 3791733 and ba97907.

πŸ“’ Files selected for processing (9)
  • .github/workflows/main.yml
  • examples/next-prisma-starter/.github/workflows/main.yml
  • examples/next-prisma-websockets-starter/.github/workflows/main.yml
  • examples/next-prisma-websockets-starter/package.json
  • examples/next-websockets-encoder/package.json
  • package.json
  • packages/openapi/src/cli.ts
  • packages/upgrade/test/transforms.test.ts
  • vitest.config.ts

πŸ“ Walkthrough

Walkthrough

Multiple package.json files updated from pnpm 9.12.2 to 10.33.1, GitHub Actions workflows upgraded to pnpm/action-setup v5, test command invocation corrected, OpenAPI CLI fixed to create output directories, and test runner import switched from Node.js to Vitest.

Changes

Cohort / File(s) Summary
GitHub Actions Workflows
.github/workflows/main.yml, examples/next-prisma-starter/.github/workflows/main.yml, examples/next-prisma-websockets-starter/.github/workflows/main.yml
Updated pnpm/action-setup from v2 to v5; removed explicit version pinning in favor of v5 defaults. Root workflow also changed test command from pnpm test -- --coverage to pnpm test --coverage.
Package Manager Version Bumps
package.json, examples/next-prisma-websockets-starter/package.json, examples/next-websockets-encoder/package.json
Updated packageManager field from [email protected] to [email protected] across root and example projects; root also updated engines.pnpm range to match.
CLI and Test Infrastructure
packages/openapi/src/cli.ts, packages/upgrade/test/transforms.test.ts, vitest.config.ts
OpenAPI CLI now creates output directory recursively before writing files; test file switched describe import from node:test to vitest; Vitest coverage config added exclusion pattern for coverage directories.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

♻️ autoupdate

Suggested reviewers

  • Nick-Lucas

Poem

🐰 Package versions hop so high,
pnpm nine to ten we fly!
Workflows dance in actions new,
Directories born before their due! ✨

πŸš₯ Pre-merge checks | βœ… 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
βœ… Passed checks (4 passed)
Check name Status Explanation
Title check βœ… Passed The title 'chore: upgrade pnpm to 10.33.1' directly and accurately summarizes the primary change: upgrading pnpm across the monorepo to version 10.33.1.
Description check βœ… Passed The description follows the required template with all necessary sections completed: issue reference, Changes section detailing both pnpm version upgrades and workflow alignment, and a completed Checklist.
Linked Issues check βœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check βœ… Passed Check 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 docstrings
  • Create stacked PR
  • Commit on current branch
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/upgrade-pnpm-latest-32a4

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

@railway-app

railway-app Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

πŸš… Deployed to the trpc-pr-7350 environment in trpc-sse-and-websockets

Service Status Web Updated (UTC)
next-sse-chat 😴 Sleeping (View Logs) Web Apr 22, 2026 at 1:25 pm
next-prisma-websockets-starter 😴 Sleeping (View Logs) Apr 22, 2026 at 1:24 pm

@vercel

vercel Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
next-prisma-starter Ready Ready Preview Apr 22, 2026 1:12pm
og-image Ready Ready Preview, Comment Apr 22, 2026 1:12pm

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/@trpc/client@7350

@trpc/next

npm i https://pkg.pr.new/@trpc/next@7350

@trpc/openapi

npm i https://pkg.pr.new/@trpc/openapi@7350

@trpc/react-query

npm i https://pkg.pr.new/@trpc/react-query@7350

@trpc/server

npm i https://pkg.pr.new/@trpc/server@7350

@trpc/tanstack-react-query

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

@trpc/upgrade

npm i https://pkg.pr.new/@trpc/upgrade@7350

commit: ba97907

Comment thread .github/setup/action.yml Outdated
Comment on lines +7 to +8
with:
version: 10.33.1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

do we need to pass this?

@KATT
KATT merged commit 60c89fc into main Apr 22, 2026
46 checks passed

Copilot AI 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.

Pull request overview

Updates the repository’s pnpm version pins and GitHub workflow setup to standardize pnpm usage across the monorepo and included examples.

Changes:

  • Bump pnpm pins (engines.pnpm / packageManager) to 10.33.1 in the root and selected examples.
  • Update example workflows to use pnpm/action-setup@v5 (removing the old hardcoded pnpm version).
  • Small ancillary updates: tweak Vitest coverage excludes, align test imports to Vitest, and ensure OpenAPI CLI output directories are created before writing.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Updates root pnpm engine and packageManager pin to 10.33.1.
examples/next-websockets-encoder/package.json Pins example packageManager to pnpm 10.33.1.
examples/next-prisma-websockets-starter/package.json Pins example packageManager to pnpm 10.33.1.
examples/next-prisma-websockets-starter/.github/workflows/main.yml Switches pnpm setup action to pnpm/action-setup@v5.
examples/next-prisma-starter/.github/workflows/main.yml Switches pnpm setup action to pnpm/action-setup@v5 in both jobs.
.github/workflows/main.yml Adjusts how coverage is requested when running tests in CI.
vitest.config.ts Excludes **/coverage/** from coverage instrumentation.
packages/upgrade/test/transforms.test.ts Uses Vitest’s describe instead of node:test.
packages/openapi/src/cli.ts Creates the output directory before writing the generated OpenAPI document.

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 128 to 131
const outputPath = path.resolve(args.output);
fs.mkdirSync(path.dirname(outputPath), { recursive: true });
fs.writeFileSync(outputPath, JSON.stringify(doc, null, 2) + '\n', 'utf8');
console.log(`OpenAPI document written to: ${outputPath}`);

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

The PR description focuses on upgrading pnpm pins and aligning workflows, but this change adds new CLI behavior (creating the output directory automatically). Please either update the PR description to mention this functional change or move it into a separate PR to keep the upgrade scoped.

Copilot uses AI. Check for mistakes.
- uses: ./.github/setup

- run: MUTE_REACT_ACT_WARNINGS=1 pnpm test -- --coverage
- run: MUTE_REACT_ACT_WARNINGS=1 pnpm test --coverage

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

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

pnpm test --coverage likely won’t forward --coverage to the test script (Vitest), since pnpm generally requires a -- separator for script args. This can result in pnpm treating --coverage as a pnpm CLI flag (and failing) or running tests without coverage, which would break the subsequent Codecov upload. Use pnpm test -- --coverage (or pnpm run test -- --coverage) so the flag is reliably passed to Vitest.

Suggested change
- run: MUTE_REACT_ACT_WARNINGS=1 pnpm test --coverage
- run: MUTE_REACT_ACT_WARNINGS=1 pnpm test -- --coverage

Copilot uses AI. Check for mistakes.
@coderabbitai coderabbitai Bot mentioned this pull request Apr 22, 2026
2 of 3 tasks
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 23, 2026
@KATT
KATT deleted the cursor/upgrade-pnpm-latest-32a4 branch October 31, 2026 21:11

This branch was successfully deployed

5 active deployments
Preview – www β€” ba979079 Deployed Apr 22, 2026 by vercel[bot]
Preview – examples-todomvc β€” ba979079 Deployed Apr 22, 2026 by vercel[bot]
Preview – next-prisma-starter β€” ba979079 Deployed Apr 22, 2026 by vercel[bot]
Preview – og-image β€” ba979079 Deployed Apr 22, 2026 by vercel[bot]
Preview – trpc-next-app-dir β€” ba979079 Deployed Apr 22, 2026 by vercel[bot]
trpc-sse-and-websockets / trpc-pr-7350 β€” ba979079 Deployed Apr 22, 2026 by railway-app[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants