Skip to content

Commit 32d47a7

Browse files
committed
Add support for Node 21
We don't support non-LTS versions normally but 21 was requested. We'll support it through at least its Node maintenence window, where it'll at risk of being dropped in any major version bump.
1 parent 95b99d8 commit 32d47a7

File tree

6 files changed

+77
-30
lines changed

6 files changed

+77
-30
lines changed

.github/workflows/publish.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- 16
3131
- 18
3232
- 20
33+
- 21
3334
system:
3435
- os: macos-12
3536
target: x86_64-apple-darwin
@@ -91,6 +92,7 @@ jobs:
9192
- 16
9293
- 18
9394
- 20
95+
- 21
9496
os:
9597
- buildjet-2vcpu-ubuntu-2204
9698
- buildjet-4vcpu-ubuntu-2204-arm
@@ -136,7 +138,7 @@ jobs:
136138
ref: ${{ github.event.release.tag_name }}
137139
- uses: actions/[email protected]
138140
with:
139-
node-version: 16
141+
node-version: 20
140142
cache: yarn
141143
- uses: actions-rs/toolchain@v1
142144
with:

.github/workflows/typescript-napi-ci.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ jobs:
1717
- stable
1818
- beta
1919
node_version:
20-
- 16
20+
- 16 # remove when 22 LTS is out
2121
- 18
2222
- 20
23+
# explicitly asked for, we normally don't support non-LTS versions. Remove when Node support is dropped.
24+
- 21
2325
system:
2426
- os: macos-12
2527
target: x86_64-apple-darwin
@@ -78,6 +80,7 @@ jobs:
7880
- 16
7981
- 18
8082
- 20
83+
- 21
8184
os:
8285
- buildjet-2vcpu-ubuntu-2204
8386
- buildjet-4vcpu-ubuntu-2204-arm

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.10.1
2+
3+
### Changed
4+
5+
- Added support for Node 21 by request. We don't normally support non-LTS Node versions, and this will be dropped when Node drops maintenance support for it.
6+
17
## 0.10.0
28

39
### Breaking Changes

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ This library uses the [Neon Bindings](https://www.neon-bindings.com) toolchain t
99

1010
## Supported Platforms
1111

12-
| | Node 16 | Node 18 | Node 20 |
13-
| ----------------------- | ------- | ------- | ------- |
14-
| Linux x64 - glibc ||||
15-
| Linux x64 - musl-libc ||||
16-
| Linux arm64 - glibc ||||
17-
| Linux arm64 - musl-libc ||||
18-
| OSX x64 ||||
19-
| OSX arm64 ||||
20-
| Windows x64 ||||
12+
| | Node 16 | Node 18 | Node 20 | Node 21 |
13+
| ----------------------- | ------- | ------- | ------- | ------- |
14+
| Linux x64 - glibc |||||
15+
| Linux x64 - musl-libc |||||
16+
| Linux arm64 - glibc |||||
17+
| Linux arm64 - musl-libc |||||
18+
| OSX x64 |||||
19+
| OSX arm64 |||||
20+
| Windows x64 |||||
2121

2222
## Install
2323

flake.lock

+51-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
rust-overlay.url = "github:oxalica/rust-overlay";
66
};
77

8-
outputs = { self, nixpkgs, rust-overlay, flake-utils}:
8+
outputs = { self, nixpkgs, rust-overlay, flake-utils }:
99
flake-utils.lib.eachDefaultSystem (system:
1010
let
1111
lib = import <nixpkgs/lib>;
@@ -15,12 +15,12 @@
1515
rec {
1616
devShell = pkgs.mkShell {
1717
buildInputs = with pkgs.nodePackages; [
18-
pkgs.nodejs-18_x
19-
(pkgs.yarn.override { nodejs = pkgs.nodejs-18_x; })
18+
pkgs.nodejs_20
19+
(pkgs.yarn.override { nodejs = pkgs.nodejs_20; })
2020
pkgs.libiconv
2121
];
2222
nativeBuildInputs = [ pkgs.rust-bin.stable.latest.default ]
23-
++ pkgs.lib.optionals (pkgs.stdenv.isDarwin) [ pkgs.darwin.cctools ];
23+
++ pkgs.lib.optionals (pkgs.stdenv.isDarwin) [ pkgs.darwin.cctools ];
2424
};
2525
});
2626
}

0 commit comments

Comments
 (0)