Skip to content

Commit

Permalink
Require Node.js 14
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 4, 2022
1 parent 882cb84 commit 52f2290
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface Options {
export type Options = {
/**
@default 'http:'
Expand Down Expand Up @@ -280,7 +280,7 @@ export interface Options {
```
*/
readonly sortQueryParameters?: boolean;
}
};

/**
[Normalize](https://en.wikipedia.org/wiki/URL_normalization) a URL.
Expand Down
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"engines": {
"node": ">=12.20"
"node": ">=14.16"
},
"scripts": {
"test": "xo && c8 ava && tsd"
Expand All @@ -38,10 +41,10 @@
"canonical"
],
"devDependencies": {
"ava": "^4.0.1",
"c8": "^7.11.0",
"tsd": "^0.19.1",
"xo": "^0.47.0"
"ava": "^5.0.1",
"c8": "^7.12.0",
"tsd": "^0.24.1",
"xo": "^0.52.4"
},
"c8": {
"reporter": [
Expand Down
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,5 @@ test('ignore custom schemes', t => {
t.is(normalizeUrl('tel:004346382763'), 'tel:004346382763');
t.is(normalizeUrl('mailto:office@foo.com'), 'mailto:office@foo.com');
t.is(normalizeUrl('sindre://www.sindresorhus.com'), 'sindre://www.sindresorhus.com');
t.is(normalizeUrl('foo:bar'), 'foo:bar');
});

0 comments on commit 52f2290

Please sign in to comment.