Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit e357efc

Browse files
build!: drop support for node.js 8.x (#1239)
1 parent 7f6bf7e commit e357efc

119 files changed

Lines changed: 2623 additions & 1940 deletions

File tree

Some content is hidden

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

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
**/node_modules
2-
src/**/doc/*
32
build/
43
docs/
54
protos/
5+
test/fixtures
6+
src/plugins/types

.eslintrc.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node: [8, 10, 12, 13]
12+
node: [10, 12, 13]
1313
# Docker containers to run for database RPC tracing integration tests.
1414
services:
1515
mongo:

.prettierignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
node_modules/*
2-
samples/node_modules/*
3-
src/**/doc/*
1+
**/node_modules
2+
build/
3+
docs/
4+
protos/
5+
test/fixtures
6+
src/plugins/types

.prettierrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

AUTHORS

Lines changed: 0 additions & 17 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

codecov.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
"repository": "googleapis/cloud-trace-nodejs",
88
"scripts": {
99
"init-test-fixtures": "npm run script init-test-fixtures",
10-
"test": "npm run script npm-check npm-compile npm-init-test-fixtures npm-unit-test npm-license-check",
10+
"test": "npm run script npm-compile npm-init-test-fixtures npm-unit-test npm-license-check",
1111
"unit-test": "npm run script run-unit-tests",
1212
"non-interference": "npm run script test-non-interference",
1313
"presystem-test": "npm run compile",
1414
"system-test": "c8 mocha build/system-test --timeout 60000",
1515
"check-install": "npm run script check-install",
1616
"get-plugin-types": "npm run script get-plugin-types",
1717
"coverage": "npm run script run-unit-tests-with-coverage report-coverage",
18-
"check": "gts check",
1918
"lint": "gts check",
2019
"clean": "rimraf build/src",
2120
"compile-all": "npm run script compile-auto",
@@ -51,7 +50,7 @@
5150
"author": "Google Inc.",
5251
"license": "Apache-2.0",
5352
"engines": {
54-
"node": ">=8.10.0"
53+
"node": ">=10"
5554
},
5655
"devDependencies": {
5756
"@compodoc/compodoc": "1.1.11",
@@ -85,7 +84,7 @@
8584
"gaxios": "^3.0.2",
8685
"glob": "^7.0.3",
8786
"grpc": "1.24.2",
88-
"gts": "^1.0.0",
87+
"gts": "^2.0.0",
8988
"js-green-licenses": "^1.0.0",
9089
"linkinator": "^2.0.0",
9190
"mocha": "^7.0.0",
@@ -108,6 +107,7 @@
108107
"continuation-local-storage": "^3.2.1",
109108
"extend": "^3.0.2",
110109
"gcp-metadata": "^4.0.0",
110+
"google-auth-library": "^6.0.0",
111111
"hex2dec": "^1.0.1",
112112
"is": "^3.2.0",
113113
"methods": "^1.1.1",

samples/app.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,12 @@ const DISCOVERY_URL = 'https://www.googleapis.com/discovery/v1/apis';
3131
app.get('/', async (req, res) => {
3232
// This outgoing HTTP request should be captured by Trace
3333
try {
34-
const { body } = await got(DISCOVERY_URL, { json: true });
35-
const names = body.items.map((item) => item.name);
36-
res
37-
.status(200)
38-
.send(names.join('\n'))
39-
.end();
40-
}
41-
catch (err) {
34+
const {body} = await got(DISCOVERY_URL, {json: true});
35+
const names = body.items.map(item => item.name);
36+
res.status(200).send(names.join('\n')).end();
37+
} catch (err) {
4238
console.error(err);
43-
res
44-
.status(500)
45-
.end();
39+
res.status(500).end();
4640
}
4741
});
4842

0 commit comments

Comments
 (0)