Scripts: Relax @wordpress/env peer dependency to allow newer versions#76192
Scripts: Relax @wordpress/env peer dependency to allow newer versions#76192
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Pull request overview
Relaxes the @wordpress/scripts optional peer dependency constraint for @wordpress/env to resolve npm peer resolution conflicts when consumers use newer @wordpress/env releases (per #76026).
Changes:
- Update
@wordpress/envpeer dependency inpackages/scriptsfrom^10.0.0to>=10.0.0. - Regenerate
package-lock.jsonto reflect the updated peer dependency range.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/scripts/package.json | Broadens the @wordpress/env optional peer dependency range to allow newer majors. |
| package-lock.json | Updates the lockfile’s packages/scripts peer dependency entry to match. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Size Change: 0 B Total Size: 6.89 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 2843765. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22793837347
|
73a24e4 to
292a1ac
Compare
What?
@wordpress/scriptsforces@wordpress/envversion10.xas a peer-dependency, so@wordpress/envversion 11 or higher cannot be installed. This PR relaxes this and allows@wordpress/envversion to 10 or higher.Testing Instructions
I can't think of a good way to test this locally. I'd be happy to include this in the next plugin release and test whether it works correctly.