Skip to content

Commit 86e4edf

Browse files
authored
chore!: drop support for EOL Node.js versions <18 (#801)
BREAKING CHANGE: removes support for older Node.js versions in `package.json` engines and CI jobs.
1 parent b08a217 commit 86e4edf

File tree

15 files changed

+24
-19
lines changed

15 files changed

+24
-19
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
node: [14, 16, 18, 19]
12-
include:
13-
- node: 14
14-
npm-version: ^7
11+
node: [18, 20, 22, 24]
1512
steps:
1613
- uses: actions/checkout@v4
1714
- uses: actions/setup-node@v4
1815
with:
1916
node-version: ${{ matrix.node }}
20-
# TODO: remove once node 14 is dropped
21-
- name: Install npm@${{ matrix.npm-version }}
22-
if: matrix.npm-version
23-
run: npm install -g npm@${{ matrix.npm-version }}
2417
- run: |
2518
node --version
2619
npm --version
@@ -38,7 +31,7 @@ jobs:
3831
- uses: actions/checkout@v4
3932
- uses: actions/setup-node@v4
4033
with:
41-
node-version: 19
34+
node-version: 24
4235
- run: npm install
4336
- run: npm run lint
4437

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenTelemetry Operations Exporters for JavaScript
22

3-
The packages in this repository support all [officially supported Node.js versions](https://nodejs.org/en/about/releases/) (10, 12, 14, 16).
3+
The packages in this repository support all [officially supported Node.js versions](https://nodejs.org/en/about/releases/) (18, 20, 22, 24).
44

55
To get started with instrumentation in Google Cloud, see [Generate traces and metrics with
66
Node.js](https://cloud.google.com/stackdriver/docs/instrumentation/setup/nodejs).

cloudbuild-e2e-cloud-functions-gen2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ steps:
4646
args:
4747
- cloud-functions-gen2
4848
- --functionsource=/workspace/e2e-test-server/dist/function-source.zip
49-
- --runtime=nodejs16
49+
- --runtime=nodejs20
5050
- --entrypoint=cloudFunctionHandler
5151

5252
logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs

e2e-test-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"license": "Apache-2.0",
1414
"keywords": [],
1515
"engines": {
16-
"node": ">=14"
16+
"node": ">=18"
1717
},
1818
"scripts": {
1919
"lint": "gts lint",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"author": "Google Inc.",
2727
"license": "Apache-2.0",
2828
"engines": {
29-
"node": ">=14"
29+
"node": ">=18"
3030
},
3131
"devDependencies": {
3232
"lerna": "7.4.2"

packages/opentelemetry-cloud-monitoring-exporter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"author": "Google Inc.",
2626
"license": "Apache-2.0",
2727
"engines": {
28-
"node": ">=14"
28+
"node": ">=18"
2929
},
3030
"files": [
3131
"build/src/**/*.js",

packages/opentelemetry-cloud-trace-exporter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"author": "Google Inc.",
2626
"license": "Apache-2.0",
2727
"engines": {
28-
"node": ">=14"
28+
"node": ">=18"
2929
},
3030
"files": [
3131
"build/src/**/*.js",

packages/opentelemetry-cloud-trace-propagator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"author": "Google Inc.",
2525
"license": "Apache-2.0",
2626
"engines": {
27-
"node": ">=14"
27+
"node": ">=18"
2828
},
2929
"files": [
3030
"build/src/**/*.js",

packages/opentelemetry-resource-util/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"author": "Google Inc.",
2626
"license": "Apache-2.0",
2727
"engines": {
28-
"node": ">=14"
28+
"node": ">=18"
2929
},
3030
"files": [
3131
"build/src/**/*.js",

samples/instrumentation-quickstart/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
],
1111
"license": "Apache-2.0",
1212
"keywords": [],
13+
"engines": {
14+
"node": ">=18"
15+
},
1316
"scripts": {
1417
"test": "echo \"Error: no test specified\" && exit 1",
1518
"lint": "gts lint",

0 commit comments

Comments
 (0)