Skip to content

Commit

Permalink
refactor!: drop node 14&16 (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Nov 18, 2023
1 parent a2aabf8 commit 4b7be52
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Expand Up @@ -141,13 +141,13 @@ module.exports = defineConfig({
'node/no-unsupported-features/es-builtins': [
'error',
{
version: '^14.18.0 || >=16.0.0',
version: '^18.0.0 || >=20.0.0',
},
],
'node/no-unsupported-features/node-builtins': [
'error',
{
version: '^14.18.0 || >=16.0.0',
version: '^18.0.0 || >=20.0.0',
},
],
'@typescript-eslint/explicit-module-boundary-types': 'off',
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node_version: [14, 16, 18, 20]
node_version: [18, 20]
include:
# Active LTS + other OS
- os: macos-latest
Expand All @@ -50,13 +50,8 @@ jobs:
uses: actions/checkout@v4

- name: Install pnpm
if: ${{ matrix.node_version != 14 }}
uses: pnpm/action-setup@v2

- name: Install pnpm 8 (node 14)
if: ${{ matrix.node_version == 14 }}
run: npm install -g @pnpm/exe@next-8

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"engines": {
"node": "^14.18.0 || >=16.0.0"
"node": "^18.0.0 || >=20.0.0"
},
"homepage": "https://github.com/vitejs/vite-plugin-vue/",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue-jsx/package.json
Expand Up @@ -22,7 +22,7 @@
"prepublishOnly": "npm run build"
},
"engines": {
"node": "^14.18.0 || >=16.0.0"
"node": "^18.0.0 || >=20.0.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue/package.json
Expand Up @@ -22,7 +22,7 @@
"prepublishOnly": "npm run build"
},
"engines": {
"node": "^14.18.0 || >=16.0.0"
"node": "^18.0.0 || >=20.0.0"
},
"repository": {
"type": "git",
Expand Down
3 changes: 0 additions & 3 deletions vitest.config.e2e.ts
Expand Up @@ -21,7 +21,4 @@ export default defineConfig({
return false
},
},
esbuild: {
target: 'node14',
},
})
3 changes: 0 additions & 3 deletions vitest.config.ts
Expand Up @@ -10,7 +10,4 @@ export default defineConfig({
],
testTimeout: 20000,
},
esbuild: {
target: 'node14',
},
})

0 comments on commit 4b7be52

Please sign in to comment.