Skip to content

Remove the old stdio: [..., 'ipc'] syntax#1245

Merged
sindresorhus merged 1 commit into
mainfrom
remove-ipc
Jul 2, 2026
Merged

Remove the old stdio: [..., 'ipc'] syntax#1245
sindresorhus merged 1 commit into
mainfrom
remove-ipc

Conversation

@sindresorhus

Copy link
Copy Markdown
Owner

It was undocumented and replaced by the ipc: true option. Using 'ipc' as a stdio value now throws.

Fixes #1056

It was undocumented and replaced by the `ipc: true` option. Using `'ipc'` as a `stdio` value now throws.

Fixes #1056
@sindresorhus sindresorhus merged commit dcf611c into main Jul 2, 2026
20 checks passed
@sindresorhus sindresorhus deleted the remove-ipc branch July 2, 2026 12:46
Comment thread lib/stdio/stdio-option.js
// The `stdio: 'ipc'` value (raw `child_process` syntax) was replaced by the `ipc: true` option
const validateIpcStdioOption = stdioArray => {
if (stdioArray.some(stdioOption => Array.isArray(stdioOption) ? stdioOption.includes('ipc') : stdioOption === 'ipc')) {
throw new Error('The `ipc: true` option must be used instead of `stdio: \'ipc\'`.');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice warning message.

@ehmicky

ehmicky commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Great! This looks good. 👍

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.

Deprecating old ipc option

2 participants