Skip to content

Commit 9ea7cba

Browse files
feat!: drop node8 support, support for async iterators (#339)
BREAKING CHANGE: The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM. New feature: methods with pagination now support async iteration.
1 parent 57ae878 commit 9ea7cba

31 files changed

+9594
-4598
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}

packages/google-cloud-dataproc/.eslintrc.yml

-15
This file was deleted.

packages/google-cloud-dataproc/.prettierrc

-8
This file was deleted.
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+
}

packages/google-cloud-dataproc/package.json

+6-4
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.13.0"
8+
"node": ">=10"
99
},
1010
"repository": "googleapis/nodejs-dataproc",
1111
"main": "build/src/index.js",
@@ -42,19 +42,20 @@
4242
"prepare": "npm run compile"
4343
},
4444
"dependencies": {
45-
"google-gax": "^1.14.1",
45+
"google-gax": "^2.0.1",
4646
"protobufjs": "^6.8.6"
4747
},
4848
"devDependencies": {
4949
"@types/mocha": "^7.0.1",
5050
"@types/node": "^12.0.0",
51+
"@types/sinon": "^7.5.2",
5152
"c8": "^7.1.0",
5253
"codecov": "^3.0.2",
5354
"eslint": "^6.0.0",
5455
"eslint-config-prettier": "^6.0.0",
5556
"eslint-plugin-node": "^11.0.0",
5657
"eslint-plugin-prettier": "^3.0.0",
57-
"gts": "^1.0.0",
58+
"gts": "2.0.0-alpha.9",
5859
"jsdoc": "^3.6.2",
5960
"jsdoc-fresh": "^1.0.1",
6061
"jsdoc-region-tag": "^1.0.2",
@@ -63,8 +64,9 @@
6364
"null-loader": "^3.0.0",
6465
"pack-n-play": "^1.0.0-2",
6566
"prettier": "^1.13.3",
67+
"sinon": "^9.0.1",
6668
"ts-loader": "^6.2.1",
67-
"typescript": "^3.7.0",
69+
"typescript": "^3.8.3",
6870
"webpack": "^4.41.2",
6971
"webpack-cli": "^3.3.10"
7072
}

0 commit comments

Comments
 (0)