Skip to content

Commit

Permalink
Require Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 31, 2023
1 parent 8039e1b commit 33e8029
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .github/security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Security Policy

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
- 14
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
9 changes: 5 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export type Browser = {
name: string;

/**
Unique ID for the browser on the current platform:
- On macOS, it's the ID in LaunchServices.
- On Linux, it's the desktop file ID (from `xdg-mime`).
- On Windows, it's an invented ID as Windows doesn't have IDs.
The unique identifier for the browser on the current platform:
- On macOS, it's the app's bundle identifier.
- On Linux, it's the desktop file identifier (from `xdg-mime`).
- On Windows, it's an invented identifier, because apps on Windows does not have identifiers.
*/
id: string;
};
Expand All @@ -18,6 +18,7 @@ Get the default browser for the current platform.
@returns A promise for the browser.
@example
```
import defaultBrowser from 'default-browser';
Expand Down
25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"engines": {
"node": ">=14.16"
"node": ">=18"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"windows.js",
"index.d.ts"
"index.d.ts",
"windows.js"
],
"keywords": [
"macos",
Expand All @@ -39,14 +42,14 @@
"applescript"
],
"dependencies": {
"bundle-name": "^3.0.0",
"default-browser-id": "^3.0.0",
"execa": "^7.1.1",
"titleize": "^3.0.0"
"bundle-name": "^4.0.0",
"default-browser-id": "^4.0.0",
"execa": "^8.0.1",
"titleize": "^4.0.0"
},
"devDependencies": {
"ava": "^5.2.0",
"tsd": "^0.28.0",
"xo": "^0.53.1"
"ava": "^5.3.1",
"tsd": "^0.29.0",
"xo": "^0.56.0"
}
}

0 comments on commit 33e8029

Please sign in to comment.