Skip to content

Commit

Permalink
feat!: drop Node 16 support (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyco130 committed Dec 31, 2023
1 parent 37a3f6a commit 848b2e3
Show file tree
Hide file tree
Showing 58 changed files with 1,989 additions and 2,479 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18]
node_version: [20]
include:
- os: ubuntu-latest
node_version: 16
node_version: 18
- os: ubuntu-latest
node_version: 20
node_version: 21
fail-fast: false
name: "CI tests on node-${{ matrix.node_version }}, ${{ matrix.os }}"
steps:
Expand All @@ -41,7 +41,7 @@ jobs:
version: 8

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: "pnpm"
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/cq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@ defaults:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node_version: [18]
fail-fast: false
name: "Code quality checks on node-${{ matrix.node_version }}, ${{ matrix.os }}"
runs-on: ubuntu-latest
name: "Code quality checks"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -35,10 +30,10 @@ jobs:
with:
version: 8

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v3
- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
node-version: 20
cache: "pnpm"

- name: Install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
with:
version: 8

- name: Set node version to 18
uses: actions/setup-node@v3
- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: "https://registry.npmjs.org"
cache: "pnpm"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
with:
version: 8

- name: Set node version to 18
uses: actions/setup-node@v3
- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: "https://registry.npmjs.org"
cache: "pnpm"

Expand Down
12 changes: 6 additions & 6 deletions ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"private": true,
"type": "module",
"scripts": {
"ci": "vitest run --reporter=verbose --no-threads"
"ci": "vitest run --reporter=verbose"
},
"dependencies": {
"@types/node": "^20.6.5",
"@types/node": "^20.10.6",
"kill-port": "^2.0.1",
"node-fetch": "^3.3.2",
"ps-tree": "^1.2.0",
"puppeteer": "^21.3.4",
"typescript": "^5.2.2",
"vitest": "^0.34.5"
"puppeteer": "^21.6.1",
"typescript": "^5.3.3",
"vitest": "^1.1.0"
},
"devDependencies": {
"@types/ps-tree": "^1.1.3"
"@types/ps-tree": "^1.1.6"
}
}
8 changes: 4 additions & 4 deletions examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"dist"
],
"devDependencies": {
"@types/express": "^4.17.18",
"@types/node": "^20.6.5",
"typescript": "^5.2.2",
"@types/express": "^4.17.21",
"@types/node": "^20.10.6",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0"
"vite": "^5.0.10"
},
"dependencies": {
"express": "^4.18.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/express/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ npx degit cyco130/vavite/examples/express
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
20 changes: 10 additions & 10 deletions examples/fastify-vite-plugin-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
"start": "cross-env NODE_ENV=production node dist/server/index.mjs"
},
"dependencies": {
"@fastify/static": "^6.11.2",
"@types/node": "^20.6.5",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.2.0",
"@fastify/static": "^6.12.0",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"cross-env": "^7.0.3",
"fastify": "^4.23.2",
"fastify": "^4.25.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vike": "^0.4.147",
"vite": "^5.0.0"
"vike": "^0.4.152",
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion examples/fastify-vite-plugin-ssr/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ npx degit cyco130/vavite/examples/fastify-vite-plugin-ssr
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
8 changes: 4 additions & 4 deletions examples/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"dist"
],
"devDependencies": {
"@types/node": "^20.6.5",
"typescript": "^5.2.2",
"@types/node": "^20.10.6",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0"
"vite": "^5.0.10"
},
"dependencies": {
"fastify": "^4.23.2"
"fastify": "^4.25.2"
}
}
2 changes: 1 addition & 1 deletion examples/fastify/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ npx degit cyco130/vavite/examples/fastify
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
6 changes: 3 additions & 3 deletions examples/hapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"dist"
],
"devDependencies": {
"@types/node": "^20.6.5",
"typescript": "^5.2.2",
"@types/node": "^20.10.6",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0"
"vite": "^5.0.10"
},
"dependencies": {
"@hapi/hapi": "^21.3.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/hapi/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ npx degit cyco130/vavite/examples/hapi
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
14 changes: 7 additions & 7 deletions examples/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"dist"
],
"devDependencies": {
"@types/koa": "^2.13.9",
"@types/koa__router": "^12.0.1",
"@types/node": "^20.6.5",
"typescript": "^5.2.2",
"@types/koa": "^2.13.12",
"@types/koa__router": "^12.0.4",
"@types/node": "^20.10.6",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0"
"vite": "^5.0.10"
},
"dependencies": {
"@koa/router": "^12.0.0",
"koa": "^2.14.2"
"@koa/router": "^12.0.1",
"koa": "^2.15.0"
}
}
2 changes: 1 addition & 1 deletion examples/koa/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ npx degit cyco130/vavite/examples/koa
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
32 changes: 16 additions & 16 deletions examples/nestjs-vite-plugin-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@
"dist"
],
"devDependencies": {
"@swc/core": "^1.3.88",
"@types/express": "^4.17.18",
"@types/node": "^20.6.5",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.2.0",
"@swc/core": "^1.3.101",
"@types/express": "^4.17.21",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"cross-env": "^7.0.3",
"rollup-plugin-swc3": "^0.10.1",
"typescript": "^5.2.2",
"rollup-plugin-swc3": "^0.11.0",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0",
"vite-tsconfig-paths": "^4.2.1"
"vite": "^5.0.10",
"vite-tsconfig-paths": "^4.2.3"
},
"dependencies": {
"@nestjs/common": "^10.2.6",
"@nestjs/core": "^10.2.6",
"@nestjs/platform-express": "^10.2.6",
"@nestjs/common": "^10.3.0",
"@nestjs/core": "^10.3.0",
"@nestjs/platform-express": "^10.3.0",
"@nestjs/serve-static": "^4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-streaming": "0.3.14",
"reflect-metadata": "^0.1.13",
"react-streaming": "0.3.18",
"reflect-metadata": "^0.2.1",
"rxjs": "^7.8.1",
"vike": "^0.4.147"
"vike": "^0.4.152"
}
}
2 changes: 1 addition & 1 deletion examples/nestjs-vite-plugin-ssr/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ npx degit cyco130/vavite/examples/nestjs-vite-plugin-ssr
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
20 changes: 10 additions & 10 deletions examples/nestjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"dist"
],
"devDependencies": {
"@swc/core": "^1.3.88",
"@types/express": "^4.17.18",
"@types/node": "^20.6.5",
"rollup-plugin-swc3": "^0.10.1",
"typescript": "^5.2.2",
"@swc/core": "^1.3.101",
"@types/express": "^4.17.21",
"@types/node": "^20.10.6",
"rollup-plugin-swc3": "^0.11.0",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0"
"vite": "^5.0.10"
},
"dependencies": {
"@nestjs/common": "^10.2.6",
"@nestjs/core": "^10.2.6",
"@nestjs/platform-express": "^10.2.6",
"reflect-metadata": "^0.1.13",
"@nestjs/common": "^10.3.0",
"@nestjs/core": "^10.3.0",
"@nestjs/platform-express": "^10.3.0",
"reflect-metadata": "^0.2.1",
"rxjs": "^7.8.1"
}
}
2 changes: 1 addition & 1 deletion examples/nestjs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ npx degit cyco130/vavite/examples/nestjs
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
2 changes: 1 addition & 1 deletion examples/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
- [simple-standalone](simple-standalone): Simple standalone example ([Stackblitz](https://stackblitz.com/github/cyco130/vavite/tree/main/examples/simple-standalone))
- [express](express): Integrating with Express ([Stackblitz](https://stackblitz.com/github/cyco130/vavite/tree/main/examples/express))
Expand Down
6 changes: 3 additions & 3 deletions examples/simple-standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"build": "vite build --ssr --mode=production"
},
"devDependencies": {
"@types/node": "^20.6.5",
"typescript": "^5.2.2",
"@types/node": "^20.10.6",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0"
"vite": "^5.0.10"
}
}
2 changes: 1 addition & 1 deletion examples/simple-standalone/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ npx degit cyco130/vavite/examples/simple-standalone
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
8 changes: 4 additions & 4 deletions examples/socket-io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"dist"
],
"devDependencies": {
"@types/express": "^4.17.18",
"@types/node": "^20.6.5",
"typescript": "^5.2.2",
"@types/express": "^4.17.21",
"@types/node": "^20.10.6",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0"
"vite": "^5.0.10"
},
"dependencies": {
"express": "^4.18.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/socket-io/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ npx degit cyco130/vavite/examples/socket-io
> All examples have `"type": "module"` in their `package.json`.
>
> - For Vite v2, remove it to use CommonJS (CJS).
> - If you want to use CommonJS with Vite v3, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
> - If you want to use CommonJS with Vite v3+, add `legacy.buildSsrCjsExternalHeuristics: true` to your Vite config.
14 changes: 7 additions & 7 deletions examples/ssr-react-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"start": "node dist/server"
},
"devDependencies": {
"@types/express": "^4.17.18",
"@types/node": "^20.6.5",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.2.0",
"typescript": "^5.2.2",
"@types/express": "^4.17.21",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.3.3",
"vavite": "3.0.0",
"vite": "^5.0.0"
"vite": "^5.0.10"
},
"dependencies": {
"express": "^4.18.2",
Expand Down
Loading

0 comments on commit 848b2e3

Please sign in to comment.