Skip to content

chore(deps): update dependency cross-env to v10 #1731

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 25, 2025

This PR contains the following updates:

Package Change Age Confidence
cross-env ^7.0.3 -> ^10.0.0 age confidence

Release Notes

kentcdodds/cross-env (cross-env)

v10.0.0

Compare Source

TL;DR: You should probably not have to change anything if:

  • You're using a modern maintained version of Node.js (v20+ is tested)
  • You're only using the CLI (most of you are as that's the intended purpose)

In this release (which should have been v8 except I had some issues with automated releases 🙈), I've updated all the things and modernized the package. This happened in #​261

Was this needed? Not really, but I just thought it'd be fun to modernize this package.

Here's the highlights of what was done.

  • Replace Jest with Vitest for testing
  • Convert all source files from .js to .ts with proper TypeScript types
  • Use zshy for ESM-only builds (removes CJS support)
  • Adopt @​epic-web/config for TypeScript, ESLint, and Prettier
  • Update to Node.js >=20 requirement
  • Remove kcd-scripts dependency
  • Add comprehensive e2e tests with GitHub Actions matrix testing
  • Update GitHub workflow with caching and cross-platform testing
  • Modernize documentation and remove outdated sections
  • Update all dependencies to latest versions
  • Add proper TypeScript declarations and exports

The tool maintains its original functionality while being completely modernized with the latest tooling and best practices

BREAKING CHANGES
  • This is a major rewrite that changes the module format from CommonJS to ESM-only. The package now requires Node.js >=20 and only exports ESM modules (not relevant in most cases).

Configuration

📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

@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.

Bug: Node.js Version Conflict with Dependency

Node.js version incompatibility: The project's engines.node field (>=18.0.0) conflicts with the updated cross-env v10.0.0 dependency, which requires Node.js >=20. This causes runtime failures on Node.js 18 and 19 when executing npm scripts using cross-env, despite the project claiming support for these versions. Update engines.node to >=20.0.0.

package.json#L70-L73

apify-docs/package.json

Lines 70 to 73 in 898a4f2

"@docusaurus/core": "^3.8.1",
"@docusaurus/faster": "^3.8.1",
"@docusaurus/plugin-client-redirects": "^3.8.1",
"@docusaurus/plugin-content-docs": "^3.8.1",

package.json#L50-L51

apify-docs/package.json

Lines 50 to 51 in 898a4f2

"babel-plugin-styled-components": "^2.1.4",
"cross-env": "^10.0.0",

Fix in CursorFix in Web


Comment bugbot run to trigger another review on this PR

@apify-service-account
Copy link

Preview for this PR was built for commit 898a4f2 and is ready at https://pr-1731.preview.docs.apify.com!

@renovate renovate bot force-pushed the renovate/cross-env-10.x branch from 898a4f2 to 9eccf89 Compare July 31, 2025 00:00
@apify-service-account
Copy link

Preview for this PR was built for commit 9eccf89 and is ready at https://pr-1731.preview.docs.apify.com!

@renovate renovate bot force-pushed the renovate/cross-env-10.x branch from 9eccf89 to 700b374 Compare August 5, 2025 08:53
@renovate renovate bot force-pushed the renovate/cross-env-10.x branch from 700b374 to 65439b2 Compare August 5, 2025 08:53
@apify-service-account
Copy link

Preview for this PR was built for commit 65439b2 and is ready at https://pr-1731.preview.docs.apify.com!

1 similar comment
@apify-service-account
Copy link

Preview for this PR was built for commit 65439b2 and is ready at https://pr-1731.preview.docs.apify.com!

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.

1 participant