Skip to content

chore: update dependency cross-spawn to v8 - #11928

Draft
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/cross-spawn-8.x
Draft

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/cross-spawn-8.x

Conversation

@renovate

@renovate renovate Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
cross-spawn ^7.1.2 → ^8.0.0 age adoption passing confidence

Release Notes

moxystudio/node-cross-spawn (cross-spawn)

v8.0.0

Compare Source

⚠ BREAKING CHANGES
  • cross-spawn now requires Node.js 22.13 or later, the first release that can require() an ES module without a warning. Node.js 8 to 22.12 can keep using cross-spawn 7.
  • cross-spawn is now an ES module with named exports only: there's no default export anymore, and spawn.sync() is now spawnSync(). Use import { spawn, spawnSync } from 'cross-spawn' or const { spawn, spawnSync } = require('cross-spawn'). Only the package itself can be imported, not its internal files, such as cross-spawn/lib/parse, and the private _parse and _enoent exports were removed.
  • spawnSync() results no longer have error: null when there's no error, like Node.js's. Check result.error for truthiness, or compare it with undefined.
  • On Windows, as on other platforms, the command must be the name or path of a single program, with its arguments passed separately: spawn('npm install') now fails with ENOENT.
  • On Windows, commands that can't be run safely through cmd.exe now throw a TypeError: commands containing double quotes, e.g. spawn('"C:\\Program Files\\tool.exe"'), ^ or %, commands ending with a dot or whitespace, e.g. spawn('tool.bat '), and commands that resolve to a file whose path contains ^ or %, e.g. a program found in a PATH entry such as C:\tools\100%.
  • On Windows, the ENOENT error for a command that doesn't exist now comes from Node.js, with a numeric errno, and an exit code of 1 is never reported as ENOENT, including with shell: true. Shell built-ins such as dir or echo need shell: true, like with Node.js's own spawn.
  • On Windows, batch files are run by their resolved path, which they see in %0 instead of the command as written, and they no longer print the commands they run, even if they turn echo on with @echo on.
Features
  • rewrite as ES modules (0977245)
  • ship TypeScript types (4b27af5)
  • use the ERR_INVALID_ARG_VALUE code for values that can't be escaped (807cc2f)
Bug Fixes
  • always quote commands run through cmd.exe (ea02faf), closes #​150
  • don't report ENOENT for commands run with shell: true (bf607dc)
  • leave error unset in spawnSync() results when there is no error (d2b3b92), closes #​151
  • let Node.js report ENOENT for commands that don't exist (4d7b621), closes #​104
  • look up commands without which or changing the process cwd (8a6c8c4)
  • read shebangs of short files without a trailing newline (2adf5ce)
  • reject ^ and % in all commands and the files they resolve to (c27e742)
  • reject commands ending with a dot or whitespace on Windows (561245f)
  • resolve relative shebangs in worker threads (d60bb95)
  • run batch files by their resolved path, and reject ^ and % in it (6577a1b)
  • turn echo off when running commands through cmd.exe (cfb63a8), closes #​135
7.1.2 (2026-11-29)
Bug Fixes
  • run batch files by their resolved path on Windows (fe027b8), closes #​203
7.1.1 (2026-11-28)
Bug Fixes
  • always quote commands run through cmd.exe (d0ead35)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • 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.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Nov 30, 2026
@renovate renovate Bot changed the title chore: update dependency cross-spawn to v8 chore: update dependency cross-spawn to v8 - autoclosed Dec 2, 2026
@renovate renovate Bot closed this Dec 2, 2026
@renovate
renovate Bot deleted the renovate/cross-spawn-8.x branch December 2, 2026 11:57
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate Bot changed the title chore: update dependency cross-spawn to v8 - autoclosed chore: update dependency cross-spawn to v8 Dec 5, 2026
@renovate renovate Bot reopened this Dec 5, 2026
@renovate
renovate Bot force-pushed the renovate/cross-spawn-8.x branch from dc546ac to 141ecb2 Compare December 5, 2026 02:15

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants