Skip to content

Commit

Permalink
chore!: minimum supported Node.js version is 18.12.0 (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 authored Jan 16, 2024
1 parent 011ab04 commit c82cfea
Show file tree
Hide file tree
Showing 18 changed files with 2,894 additions and 1,849 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 21.x]
webpack-version: [latest]

runs-on: ${{ matrix.os }}
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ type sources =
tag: string,
attribute: string,
attributes: string,
resourcePath: string
resourcePath: string,
) => boolean;
}>;
urlFilter?: (
attribute: string,
value: string,
resourcePath: string
resourcePath: string,
) => boolean;
scriptingEnabled?: boolean;
};
Expand Down Expand Up @@ -210,7 +210,7 @@ type list = Array<{
tag: string,
attribute: string,
attributes: string,
resourcePath: string
resourcePath: string,
) => boolean;
}>;
```
Expand Down Expand Up @@ -411,7 +411,7 @@ Type:
type urlFilter = (
attribute: string,
value: string,
resourcePath: string
resourcePath: string,
) => boolean;
```

Expand Down Expand Up @@ -492,7 +492,7 @@ Type:
```ts
type preprocessor = (
content: string | Buffer,
loaderContext: LoaderContext
loaderContext: LoaderContext,
) => HTMLElement;
```

Expand Down Expand Up @@ -876,7 +876,7 @@ a {
**file.html**

```html
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = (api) => {
"@babel/preset-env",
{
targets: {
node: "14.15.0",
node: "18.12.0",
},
},
],
Expand Down
5 changes: 4 additions & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
"*": ["prettier --write --ignore-unknown", "cspell"],
"*": [
"prettier --cache --write --ignore-unknown",
"cspell --cache --no-must-find-files",
],
"*.js": ["eslint --cache --fix"],
};
Loading

0 comments on commit c82cfea

Please sign in to comment.