Skip to content

v8.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 02 Mar 10:56
· 60 commits to main since this release

Breaking

  • Require Node.js 12 cde5c79
  • Removed deprecated url option
  • The app option now accepts an object instead of a string/array:
 await open('https://sindresorhus.com', {
-	app: 'firefox'
+	app: {name: 'firefox'}
 });
 await open('https://sindresorhus.com', {
-	app: ['chrome', '--incognito']
+	app: {name: 'google chrome', arguments: '--incognito'}
 });

Improvements

  • Add open.apps constants, which lets easily open Chrome and Firefox without cross-platform issues

v7.4.2...v8.0.0