diff --git a/index.js b/index.js index 306a081e17..dd14df7607 100644 --- a/index.js +++ b/index.js @@ -86,11 +86,6 @@ function handleArgs(command, args, options = {}) { }); } - // TODO: Remove in the next major release - if (options.stripEof === false) { - options.stripFinalNewline = false; - } - options.stdio = stdio(options); if (process.platform === 'win32' && path.basename(command, '.exe') === 'cmd') { diff --git a/test.js b/test.js index 3b9a249945..31e48193e2 100644 --- a/test.js +++ b/test.js @@ -120,11 +120,6 @@ test('skip throwing when using reject option in sync mode', t => { t.is(error.exitCode, 2); }); -test('stripEof option (legacy)', async t => { - const {stdout} = await execa('noop', ['foo'], {stripEof: false}); - t.is(stdout, 'foo\n'); -}); - test('stripFinalNewline option', async t => { const {stdout} = await execa('noop', ['foo'], {stripFinalNewline: false}); t.is(stdout, 'foo\n');