Skip to content

Commit d5b952f

Browse files
authored
chore(node): drop support for 14 and 16 (#744)
1 parent bd5d43e commit d5b952f

File tree

6 files changed

+12
-22
lines changed

6 files changed

+12
-22
lines changed

.changeset/big-items-shave.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@sveltejs/vite-plugin-svelte-inspector': major
3+
'@sveltejs/vite-plugin-svelte': major
4+
---
5+
6+
breaking: update minimum supported node version to node18

.github/workflows/ci.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
matrix:
3434
# pseudo-matrix for convenience, NEVER use more than a single combination
35-
node: [16]
35+
node: [18]
3636
os: [ubuntu-latest]
3737
steps:
3838
- uses: actions/checkout@v4
@@ -73,16 +73,10 @@ jobs:
7373
strategy:
7474
fail-fast: false
7575
matrix:
76-
node: [16]
76+
node: [18]
7777
os: [ubuntu-latest, macos-latest, windows-latest]
7878
svelte: [4]
7979
include:
80-
- node: 14
81-
os: ubuntu-latest
82-
svelte: 3
83-
- node: 18
84-
os: ubuntu-latest
85-
svelte: 4
8680
- node: 20
8781
os: ubuntu-latest
8882
svelte: 4
@@ -92,17 +86,11 @@ jobs:
9286
with:
9387
node-version: ${{ matrix.node }}
9488
- name: install pnpm
95-
if: matrix.node != 14
9689
shell: bash
9790
run: |
9891
PNPM_VER=$(jq -r '.packageManager | if .[0:5] == "pnpm@" then .[5:] else "packageManager in package.json does not start with pnpm@\n" | halt_error(1) end' package.json)
9992
echo installing pnpm version $PNPM_VER
10093
npm i -g pnpm@$PNPM_VER
101-
- name: install legacy pnpm for node14
102-
if: matrix.node == 14
103-
run: |
104-
npm i -g pnpm@^7.33.0
105-
tmppkg="$(jq '.engines.pnpm = "^7.33.0"' package.json)" && echo -E "${tmppkg}" > package.json && tmppkg=""
10694
- name: use svelte 3
10795
if: matrix.svelte == 3
10896
run: |
@@ -113,11 +101,7 @@ jobs:
113101
cache: 'pnpm'
114102
cache-dependency-path: '**/pnpm-lock.yaml'
115103
- name: install
116-
if: matrix.node != 14 && matrix.svelte != 3
117104
run: pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
118-
- name: install for node14 or svelte3
119-
if: matrix.node == 14 || matrix.svelte == 3
120-
run: pnpm install --no-frozen-lockfile --prefer-offline --ignore-scripts
121105
- name: install playwright chromium
122106
run: pnpm playwright install chromium
123107
- name: run tests

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
# pseudo-matrix for convenience, NEVER use more than a single combination
22-
node: [16]
22+
node: [18]
2323
os: [ubuntu-latest]
2424
steps:
2525
- name: checkout

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"packageManager": "[email protected]",
6060
"engines": {
6161
"pnpm": "^8.6.3",
62-
"node": "^14.18.0 || >= 16"
62+
"node": "^18.0.0 || >=20"
6363
},
6464
"pnpm": {
6565
"overrides": {

packages/vite-plugin-svelte-inspector/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"check:types": "tsc --noEmit"
2020
},
2121
"engines": {
22-
"node": "^14.18.0 || >= 16"
22+
"node": "^18.0.0 || >=20"
2323
},
2424
"repository": {
2525
"type": "git",

packages/vite-plugin-svelte/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"check:types": "tsc --noEmit"
2121
},
2222
"engines": {
23-
"node": "^14.18.0 || >= 16"
23+
"node": "^18.0.0 || >=20"
2424
},
2525
"repository": {
2626
"type": "git",

0 commit comments

Comments
 (0)