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

Commit 9f41047

Browse files
chore!: drop support for node.js 8 (#554)
1 parent 63175e0 commit 9f41047

23 files changed

Lines changed: 298 additions & 298 deletions

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**/node_modules
2-
src/**/doc/*
2+
**/.coverage
33
build/
44
docs/
55
protos/

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}

.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
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v1

.mocharc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
1415
const config = {
1516
"enable-source-maps": true,
1617
"throw-deprecation": true,

.prettierignore

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

.prettierrc

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

.prettierrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2020 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+
// http://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+
15+
module.exports = {
16+
...require('gts/.prettierrc.json'),
17+
}

package.json

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "Apache-2.0",
66
"author": "Google Inc.",
77
"engines": {
8-
"node": ">=8.10.0"
8+
"node": ">=10"
99
},
1010
"repository": "googleapis/nodejs-common",
1111
"main": "./build/src/index.js",
@@ -17,10 +17,8 @@
1717
"scripts": {
1818
"docs": "compodoc src/",
1919
"test": "c8 mocha build/test",
20-
"posttest": "npm run lint && npm run license-check",
2120
"prepare": "npm run compile",
2221
"pretest": "npm run compile",
23-
"license-check": "jsgl --local .",
2422
"compile": "tsc -p .",
2523
"fix": "gts fix",
2624
"lint": "gts check",
@@ -33,39 +31,37 @@
3331
"dependencies": {
3432
"@google-cloud/projectify": "^2.0.0",
3533
"@google-cloud/promisify": "^2.0.0",
36-
"arrify": "^2.0.0",
37-
"duplexify": "^3.6.0",
34+
"arrify": "^2.0.1",
35+
"duplexify": "^4.1.1",
3836
"ent": "^2.2.0",
3937
"extend": "^3.0.2",
40-
"google-auth-library": "^5.5.0",
41-
"retry-request": "^4.0.0",
42-
"teeny-request": "^6.0.0"
38+
"google-auth-library": "^5.10.1",
39+
"retry-request": "^4.1.1",
40+
"teeny-request": "^6.0.3"
4341
},
4442
"devDependencies": {
45-
"@compodoc/compodoc": "^1.1.9",
43+
"@compodoc/compodoc": "^1.1.11",
4644
"@types/ent": "^2.2.1",
4745
"@types/extend": "^3.0.1",
48-
"@types/mocha": "^7.0.0",
46+
"@types/mocha": "^7.0.2",
4947
"@types/mv": "^2.1.0",
50-
"@types/ncp": "^2.0.1",
51-
"@types/node": "^11.13.0",
48+
"@types/ncp": "^2.0.3",
49+
"@types/node": "^12.12.31",
5250
"@types/proxyquire": "^1.3.28",
53-
"@types/request": "^2.48.1",
54-
"@types/sinon": "^7.0.10",
51+
"@types/request": "^2.48.4",
52+
"@types/sinon": "^7.5.2",
5553
"@types/tmp": "0.1.0",
56-
"codecov": "^3.2.0",
57-
"gts": "^1.0.0",
58-
"ink-docstrap": "^1.3.2",
59-
"js-green-licenses": "^1.0.0",
60-
"linkinator": "^2.0.0",
61-
"mocha": "^7.0.0",
54+
"c8": "^7.1.0",
55+
"codecov": "^3.6.5",
56+
"gts": "^2.0.0-alpha.6",
57+
"linkinator": "^2.0.4",
58+
"mocha": "^7.1.1",
6259
"mv": "^2.1.1",
6360
"ncp": "^2.0.0",
64-
"nock": "^12.0.0",
65-
"c8": "^7.0.0",
66-
"proxyquire": "^2.1.0",
67-
"sinon": "^9.0.0",
61+
"nock": "^12.0.3",
62+
"proxyquire": "^2.1.3",
63+
"sinon": "^9.0.1",
6864
"tmp": "0.1.0",
69-
"typescript": "3.6.4"
65+
"typescript": "~3.8.3"
7066
}
7167
}

samples/quickstart.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
/*!
2-
* Copyright 2018 Google LCC. All Rights Reserved.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
// Copyright 2018 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+
// http://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.
1614

1715
console.warn(`no samples available 👎`);

0 commit comments

Comments
 (0)