Skip to content

Commit c177f3c

Browse files
committed
Breaking: drop Node.js < 16 and Electron < 18
Category: removal
1 parent d5bad80 commit c177f3c

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ updates:
1010
- dependency-name: node-gyp
1111
# ESM-only
1212
- dependency-name: tempy
13+
14+
# Stay on the 3rd or 4th oldest stable release, per
15+
# https://www.electronjs.org/docs/latest/tutorial/electron-timelines#version-support-policy
16+
- dependency-name: electron
1317
- package-ecosystem: github-actions
1418
directory: /
1519
schedule:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up node
4141
uses: actions/setup-node@v3
4242
with:
43-
node-version: 14
43+
node-version: 16
4444
architecture: ${{ matrix.arch }}
4545
# Temporary fix for https://github.com/nodejs/node-gyp/issues/2869
4646
# TODO: instead bump node-gyp to >= 10.0.0 (drops Node.js < 16.14)

.github/workflows/smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Set up node
4242
uses: actions/setup-node@v3
4343
with:
44-
node-version: 14
44+
node-version: 16
4545
architecture: ${{ matrix.arch }}
4646
# Temporary fix for https://github.com/nodejs/node-gyp/issues/2869
4747
# TODO: instead bump node-gyp to >= 10.0.0 (drops Node.js < 16.14)

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
matrix:
99
# At the time of writing macos-latest is mac 10; we need 11 to build a universal binary.
1010
os: [ubuntu-latest, macos-11, windows-latest]
11-
node: [12, 14, 16]
11+
node: [16, 18, 20]
1212
arch: [x86, x64]
1313
exclude:
1414
- { os: ubuntu-latest, arch: x86 }
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
file: coverage/lcov.info
4444
- name: Test Electron
45-
if: ${{ matrix.node == '14' }}
45+
if: ${{ matrix.node == '16' }}
4646
uses: GabrielBB/xvfb-action@v1
4747
with:
4848
run: npm run test-electron

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const xyz = db.sublevel<string, any>('xyz', { valueEncoding: 'json' })
142142

143143
## Supported Platforms
144144

145-
We aim to support _at least_ Active LTS and Current Node.js releases, Electron 5.0.0, as well as any future Node.js and Electron releases thanks to [Node-API](https://nodejs.org/api/n-api.html).
145+
We aim to support _at least_ Active LTS and Current Node.js releases, Electron >= 18, as well as any future Node.js and Electron releases thanks to [Node-API](https://nodejs.org/api/n-api.html).
146146

147147
The `classic-level` npm package ships with prebuilt binaries for popular 64-bit platforms as well as ARM, M1, Android, Alpine (musl), Windows 32-bit, Linux flavors with an old glibc (Debian 8, Ubuntu 14.04, RHEL 7, CentOS 7) and is known to work on:
148148

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"cross-env": "^7.0.3",
3939
"dependency-check": "^4.1.0",
4040
"du": "^1.0.0",
41-
"electron": "^21.0.1",
41+
"electron": "^18.3.15",
4242
"glob": "^8.0.1",
4343
"hallmark": "^4.1.0",
4444
"mkfiletree": "^2.0.0",
@@ -66,6 +66,6 @@
6666
"level"
6767
],
6868
"engines": {
69-
"node": ">=12"
69+
"node": ">=16"
7070
}
7171
}

0 commit comments

Comments
 (0)