Skip to content

Commit c21dc6f

Browse files
feat!: drop node8 support, support for async iterators (#298)
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 600baf4 commit c21dc6f

15 files changed

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

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

-15
This file was deleted.

packages/google-cloud-redis/.prettierrc

-8
This file was deleted.
+17
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-redis/package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "Apache-2.0",
66
"author": "Google LLC",
77
"engines": {
8-
"node": ">=8.10.0"
8+
"node": ">=10"
99
},
1010
"repository": "googleapis/nodejs-redis",
1111
"main": "build/src/index.js",
@@ -42,18 +42,19 @@
4242
"prelint": "cd samples; npm link ../; npm i"
4343
},
4444
"dependencies": {
45-
"google-gax": "^1.11.1"
45+
"google-gax": "^2.0.1"
4646
},
4747
"devDependencies": {
4848
"@types/mocha": "^7.0.0",
4949
"@types/node": "^12.0.0",
50+
"@types/sinon": "^7.5.2",
5051
"c8": "^7.0.0",
5152
"codecov": "^3.1.0",
5253
"eslint": "^6.0.0",
5354
"eslint-config-prettier": "^6.0.0",
5455
"eslint-plugin-node": "^11.0.0",
5556
"eslint-plugin-prettier": "^3.0.0",
56-
"gts": "^1.0.0",
57+
"gts": "2.0.0-alpha.9",
5758
"jsdoc": "^3.5.5",
5859
"jsdoc-fresh": "^1.0.1",
5960
"jsdoc-region-tag": "^1.0.2",
@@ -62,8 +63,9 @@
6263
"null-loader": "^3.0.0",
6364
"pack-n-play": "^1.0.0-2",
6465
"prettier": "^1.11.1",
66+
"sinon": "^9.0.1",
6567
"ts-loader": "^6.2.1",
66-
"typescript": "3.6.4",
68+
"typescript": "^3.8.3",
6769
"webpack": "^4.41.2",
6870
"webpack-cli": "^3.3.10"
6971
}

0 commit comments

Comments
 (0)