From c44eb9029155dd4801a9155161bba7dd5ff70c59 Mon Sep 17 00:00:00 2001 From: Bastian Krol Date: Wed, 25 Jun 2025 15:48:43 +0200 Subject: [PATCH] fix: only warn for Node.js versions >= 25.x The CI test matrix includes Node.js 24. --- .github/workflows/verify.yaml | 2 ++ src/index.ts | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index 0edfc0d..0a8960f 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -25,6 +25,8 @@ jobs: - '22.x' - '23.x' - '24.x' + # Maintenance note: Update the semver expression `untestedVersionRange` in src/index.ts when adding new + # Node.js versions to the test matrix. steps: - uses: actions/checkout@v4 diff --git a/src/index.ts b/src/index.ts index 92ac5d6..6f5c118 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,10 @@ const versionMapping = [ // OpenTelemetry JS SDK 2.x, supports Node.js >= 18.19.0 || >= 20.6.0 ['>=18.19.0', './2.x/init'], ]; -const untestedVersionRange = '>=24.0.0'; + +// Maintenance note: This needs to be kept in sync with the version ranges in .github/workflows/verify.yaml, property +// jobs.verify.strategy.matrix.node-version. +const untestedVersionRange = '>=25.0.0'; const prefix = 'Dash0 OpenTelemetry Distribution';