Skip to content

chore(deps): update dependency cross-spawn to v8 - #589

Open
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/cross-spawn-8.x
Open

renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/cross-spawn-8.x

Conversation

@renovate-bot

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cross-spawn ^7.0.3 → ^8.0.0 age 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.

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

Labels

None yet

2 participants