Skip to content

Commit

Permalink
refactor!: minimum support Node.js version is 18.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 4, 2024
1 parent b7cdc6c commit 63dfad8
Show file tree
Hide file tree
Showing 26 changed files with 15,368 additions and 8,989 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Expand Up @@ -61,7 +61,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 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
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -5,6 +5,7 @@ logs
*.log
npm-debug.log*
.eslintcache
.cspellcache
/dist
/local
/reports
Expand All @@ -14,4 +15,4 @@ Thumbs.db
*.iml
.vscode
*.sublime-project
*.sublime-workspace
*.sublime-workspace
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/commit-msg
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -674,7 +674,7 @@ type styleTagTransform =
| ((
css: string,
styleElement: HTMLStyleElement,
options: Record<string, any>
options: Record<string, any>,
) => void);
```

Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Expand Up @@ -10,7 +10,7 @@ module.exports = (api) => {
"@babel/preset-env",
{
targets: {
node: "12.13.0",
node: "18.12.0",
},
},
],
Expand Down
5 changes: 4 additions & 1 deletion lint-staged.config.js
@@ -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"],
};

0 comments on commit 63dfad8

Please sign in to comment.