Skip to content

Commit e66fc75

Browse files
feat!: drop node8 support (#373)
BREAKING CHANGE: The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM.
1 parent da56504 commit e66fc75

17 files changed

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

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

-15
This file was deleted.

packages/google-cloud-texttospeech/.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-texttospeech/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-text-to-speech",
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.9.0"
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.0.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
}

packages/google-cloud-texttospeech/samples/quickstart.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
'use strict';
1616

17-
function main(
18-
){
17+
function main() {
1918
// [START tts_quickstart]
2019
// Imports the Google Cloud client library
2120
const textToSpeech = require('@google-cloud/text-to-speech');
@@ -26,7 +25,6 @@ function main(
2625
// Creates a client
2726
const client = new textToSpeech.TextToSpeechClient();
2827
async function quickStart() {
29-
3028
// The text to synthesize
3129
const text = 'hello, world!';
3230

packages/google-cloud-texttospeech/smoke-test/text_to_speech_smoke_test.js

+3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414

1515
'use strict';
1616

17+
const {describe, it} = require('mocha');
18+
1719
describe('TextToSpeechSmokeTest', () => {
1820
it('successfully makes a call to the service', done => {
21+
// eslint-disable-next-line node/no-missing-require
1922
const textToSpeech = require('../src');
2023

2124
const client = new textToSpeech.v1beta1.TextToSpeechClient({

0 commit comments

Comments
 (0)