From 524e107884dd3bd55d52b9c5daafe0eec48eac68 Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Mon, 29 Apr 2024 16:15:33 -0400 Subject: [PATCH 1/2] Test node 22 --- .github/workflows/unit-test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 4023a56bd4..f8f526d73c 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -16,6 +16,7 @@ jobs: - "16" - "18" - "20" + - "22" runs-on: ubuntu-latest env: NPM_CONFIG_UNSAFE_PERM: true @@ -31,7 +32,7 @@ jobs: node-version: ${{ matrix.node_version }} - run: npm install -g npm@latest - if: ${{ matrix.node_version == '18' || matrix.node_version == '20' }} + if: ${{ matrix.node_version == '18' || matrix.node_version == '20' || matrix.node_version == '22' }} # npm@10.0.0 drops support for Node.js v14 and v16 - run: npm install -g npm@"<10.0.0" @@ -46,7 +47,7 @@ jobs: - name: Unit tests run: | # TODO(legendecas): webpack https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported - if [ "${{ matrix.node_version }}" = "18" ] || [ "${{ matrix.node_version }}" == "20" ]; then + if [ "${{ matrix.node_version }}" = "18" ] || [ "${{ matrix.node_version }}" == "20" ] || [ "${{ matrix.node_version }}" == "22" ]; then export NODE_OPTIONS=--openssl-legacy-provider fi npm run test From 932ba4e10ccc339b2fa3209829a9d2c49c1d55e3 Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Mon, 29 Apr 2024 16:25:39 -0400 Subject: [PATCH 2/2] Update changelog and readme --- CHANGELOG.md | 2 ++ README.md | 1 + api/CHANGELOG.md | 2 ++ experimental/CHANGELOG.md | 2 ++ 4 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1693317559..5f8a273db2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/ ### :rocket: (Enhancement) +* feat: support node 22 [#4666](https://github.com/open-telemetry/opentelemetry-js/pull/4666) @dyladan + ### :bug: (Bug Fix) * fix(core): align inconsistent behavior of `getEnv()` and `getEnvWithoutDefaults()` when a `process` polyfill is used [#4648](https://github.com/open-telemetry/opentelemetry-js/pull/4648) @pichlermarc diff --git a/README.md b/README.md index 455327b251..d0f6d10ac6 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,7 @@ If you are a library author looking to build OpenTelemetry into your library, pl | Platform Version | Supported | |---------------------|-----------------------------------------------| +| Node.JS `v22` | :heavy_check_mark: | | Node.JS `v20` | :heavy_check_mark: | | Node.JS `v18` | :heavy_check_mark: | | Node.JS `v16` | :heavy_check_mark: | diff --git a/api/CHANGELOG.md b/api/CHANGELOG.md index f33bcbaddf..fbc6f264c1 100644 --- a/api/CHANGELOG.md +++ b/api/CHANGELOG.md @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file. ### :rocket: (Enhancement) +* feat: support node 22 [#4666](https://github.com/open-telemetry/opentelemetry-js/pull/4666) @dyladan + ### :bug: (Bug Fix) ### :books: (Refine Doc) diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 9f1da0eab0..4e5ced7aab 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -14,6 +14,8 @@ All notable changes to experimental packages in this project will be documented ### :rocket: (Enhancement) +* feat: support node 22 [#4666](https://github.com/open-telemetry/opentelemetry-js/pull/4666) @dyladan + ### :bug: (Bug Fix) ### :books: (Refine Doc)