Skip to content

Commit 402b656

Browse files
committed
feat: Change minimum version to nodejs 22, which is the oldest version still in maintenance.
1 parent 0908606 commit 402b656

6 files changed

Lines changed: 1374 additions & 2513 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
name: Unit tests
3131
strategy:
3232
matrix:
33-
node-version: [18, 20, 22]
33+
node-version: [24, 26]
3434
os: [ubuntu-latest, macos-latest, windows-latest]
3535
fail-fast: false
3636

@@ -108,7 +108,7 @@ jobs:
108108
(github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
109109
strategy:
110110
matrix:
111-
node-version: [18, 20, 22]
111+
node-version: [24, 26]
112112
os: [ubuntu-latest, macos-latest, windows-latest]
113113
fail-fast: false
114114
permissions:
@@ -250,7 +250,7 @@ jobs:
250250
- name: Setup Node.js
251251
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
252252
with:
253-
node-version: 22
253+
node-version: 24
254254

255255
- name: Install dependencies
256256
run: npm ci

.prettierrc.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2026 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
module.exports = {
2-
...require('gts/.prettierrc.json')
3-
}
16+
...require('gts/.prettierrc.json'),
17+
};

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function lint() {
6868

6969
## deps - updates project dependencies to latest
7070
function deps() {
71-
version=${1:-18}
71+
version=${1:-24}
7272

7373
# Use NVM
7474
if [[ ! -d "$NVM_DIR" ]] ; then
@@ -95,7 +95,7 @@ function deps() {
9595
function test_deps() {
9696
source "$HOME/.nvm/nvm.sh"
9797

98-
for v in 22 20 18 ; do
98+
for v in 24 26 ; do
9999
echo
100100
echo "*"
101101
echo "* Running tests with node v$v"

0 commit comments

Comments
 (0)