Skip to content

chore: Bump Yarn to 4.16.0#4019

Merged
Mrtenz merged 4 commits into
mainfrom
mrtenz/yarn-4.16.0
Jun 2, 2026
Merged

chore: Bump Yarn to 4.16.0#4019
Mrtenz merged 4 commits into
mainfrom
mrtenz/yarn-4.16.0

Conversation

@Mrtenz
Copy link
Copy Markdown
Member

@Mrtenz Mrtenz commented Jun 2, 2026

This bumps Yarn to 4.16.0.


Note

Low Risk
Small plugin-only change to dependency loading; no auth, data, or product logic touched.

Overview
Updates the local plugin-workspaces-filter plugin so it stays compatible with Yarn 4.16.0 after the bump.

In both FilterListCommand and FilterRunCommand, minimatch is no longer loaded with dynamic import('minimatch'). It now uses Node’s createRequire(__filename) so the dependency resolves from the repo (e.g. root devDependencies) instead of Yarn’s restricted plugin require sandbox.

No runtime behavior change for --include / --exclude glob filtering—only how minimatch is resolved at command execution time.

Reviewed by Cursor Bugbot for commit cb3187c. Bugbot is set up for automated code reviews on this repo. Configure here.

@Mrtenz Mrtenz requested a review from a team as a code owner June 2, 2026 12:29
Comment thread .yarnrc.yml
- path: .yarn/plugins/local/plugin-workspaces-filter.js
- path: .yarn/plugins/local/plugin-lifecycle-scripts.js

yarnPath: .yarn/releases/yarn-4.14.1.cjs
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.

Handled by Corepack (matching module template).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does Yarn just default to that when you don't specify yarnPath?

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.

Yeah.

Comment on lines -74 to -77
// Note: We have to import `minimatch` here, because Yarn will always
// load the plugin, even if the command is not used, and `minimatch`
// may not be installed.
const { minimatch } = await import('minimatch');
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.

This broke in Node.js 20 for some reason. 😕

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Strange

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 62cd8b7. Configure here.

Comment thread .yarn/plugins/local/plugin-workspaces-filter.js Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.58%. Comparing base (33458a1) to head (cb3187c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4019   +/-   ##
=======================================
  Coverage   98.58%   98.58%           
=======================================
  Files         425      425           
  Lines       12364    12364           
  Branches     1948     1948           
=======================================
  Hits        12189    12189           
  Misses        175      175           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Mrtenz Mrtenz enabled auto-merge June 2, 2026 13:12
@Mrtenz Mrtenz added this pull request to the merge queue Jun 2, 2026
Merged via the queue into main with commit 06df849 Jun 2, 2026
129 checks passed
@Mrtenz Mrtenz deleted the mrtenz/yarn-4.16.0 branch June 2, 2026 13:13
Sign up for free to 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