Skip to content

Commit 819c089

Browse files
authored
Update minimum Node version to 22 (#990)
* Update dependencies * Node 22 is now the new minimum version. * changelog. * Begin porting eslint to new config format. * Make linter happy. * Update reqwest to fix SSL issue? * Fix test types * quick check on ubuntu LTS 24.04 * Change cache key * update rust action * revert mocha due to esminess * Remove the only usage of pqueue * Use babel for TS transformations to get around ESM import bug. * Dependency bundle upgrade * Drop babel, not actually used. * lint * lint * update default config (mostly sections moving around)
1 parent 745699a commit 819c089

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+4787
-2068
lines changed

.eslintrc.js

-60
This file was deleted.

.github/workflows/main.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v3
37-
- uses: actions-rs/toolchain@v1
37+
- uses: actions-rust-lang/setup-rust-toolchain@v1
3838
with:
3939
toolchain: stable
40-
profile: minimal
4140
components: rustfmt
4241
- run: cargo fmt --all -- --check
4342
- run: cargo clippy -- -Dwarnings
@@ -66,23 +65,22 @@ jobs:
6665

6766
test:
6867
# Test on LTS-1
69-
runs-on: ubuntu-20.04
68+
runs-on: ubuntu-22.04
7069
strategy:
7170
matrix:
72-
node_version: [20, 21]
71+
node_version: [22, 23]
7372
steps:
7473
- uses: actions/checkout@v3
7574
- name: Use Node.js ${{ matrix.node_version }}
7675
uses: actions/setup-node@v3
7776
with:
7877
node-version: ${{ matrix.node_version }}
79-
- uses: actions-rs/toolchain@v1
78+
- uses: actions-rust-lang/setup-rust-toolchain@v1
8079
with:
8180
toolchain: stable
82-
profile: minimal
8381
- uses: Swatinem/rust-cache@v2
8482
with:
85-
shared-key: rust-cache
83+
shared-key: ubuntu-2204-rust-cache
8684
- run: yarn
8785
- run: yarn test:cover
8886

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ public/
1313
# Generated during build
1414
/src/libRs.d.ts
1515

16+
# Generated during test run
17+
/spec-lib
18+
/hookshot-int-*
19+
1620
book
1721
*.cer
1822
*.pem

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

0 commit comments

Comments
 (0)