Skip to content

Commit c82cfea

Browse files
authored
chore!: minimum supported Node.js version is 18.12.0 (#504)
1 parent 011ab04 commit c82cfea

18 files changed

+2894
-1849
lines changed

.github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
matrix:
6262
os: [ubuntu-latest, windows-latest, macos-latest]
63-
node-version: [14.x, 16.x, 18.x, 20.x]
63+
node-version: [18.x, 20.x, 21.x]
6464
webpack-version: [latest]
6565

6666
runs-on: ${{ matrix.os }}

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ type sources =
8282
tag: string,
8383
attribute: string,
8484
attributes: string,
85-
resourcePath: string
85+
resourcePath: string,
8686
) => boolean;
8787
}>;
8888
urlFilter?: (
8989
attribute: string,
9090
value: string,
91-
resourcePath: string
91+
resourcePath: string,
9292
) => boolean;
9393
scriptingEnabled?: boolean;
9494
};
@@ -210,7 +210,7 @@ type list = Array<{
210210
tag: string,
211211
attribute: string,
212212
attributes: string,
213-
resourcePath: string
213+
resourcePath: string,
214214
) => boolean;
215215
}>;
216216
```
@@ -411,7 +411,7 @@ Type:
411411
type urlFilter = (
412412
attribute: string,
413413
value: string,
414-
resourcePath: string
414+
resourcePath: string,
415415
) => boolean;
416416
```
417417

@@ -492,7 +492,7 @@ Type:
492492
```ts
493493
type preprocessor = (
494494
content: string | Buffer,
495-
loaderContext: LoaderContext
495+
loaderContext: LoaderContext,
496496
) => HTMLElement;
497497
```
498498

@@ -876,7 +876,7 @@ a {
876876
**file.html**
877877

878878
```html
879-
<!DOCTYPE html>
879+
<!doctype html>
880880
<html>
881881
<head>
882882
<meta charset="UTF-8" />

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = (api) => {
1010
"@babel/preset-env",
1111
{
1212
targets: {
13-
node: "14.15.0",
13+
node: "18.12.0",
1414
},
1515
},
1616
],

lint-staged.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2-
"*": ["prettier --write --ignore-unknown", "cspell"],
2+
"*": [
3+
"prettier --cache --write --ignore-unknown",
4+
"cspell --cache --no-must-find-files",
5+
],
36
"*.js": ["eslint --cache --fix"],
47
};

0 commit comments

Comments
 (0)