Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

build!: update library to use Node 12 #789

Merged
merged 3 commits into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ branchProtectionRules:
- "ci/kokoro: System test"
- docs
- lint
- test (10)
- test (12)
- test (14)
- test (16)
- cla/google
- windows
- OwlBot Post Processor
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10, 12, 14]
node: [12, 14, 16]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
34 changes: 0 additions & 34 deletions .kokoro/continuous/node10/common.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions .kokoro/continuous/node10/docs.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions .kokoro/continuous/node10/lint.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/continuous/node10/samples-test.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/continuous/node10/system-test.cfg

This file was deleted.

9 changes: 0 additions & 9 deletions .kokoro/continuous/node10/test.cfg

This file was deleted.

24 changes: 0 additions & 24 deletions .kokoro/continuous/node8/common.cfg

This file was deleted.

Empty file removed .kokoro/continuous/node8/test.cfg
Empty file.
34 changes: 0 additions & 34 deletions .kokoro/presubmit/node10/common.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions .kokoro/presubmit/node10/docs.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions .kokoro/presubmit/node10/lint.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/presubmit/node10/samples-test.cfg

This file was deleted.

7 changes: 0 additions & 7 deletions .kokoro/presubmit/node10/system-test.cfg

This file was deleted.

Empty file removed .kokoro/presubmit/node10/test.cfg
Empty file.
24 changes: 0 additions & 24 deletions .kokoro/presubmit/node8/common.cfg

This file was deleted.

Empty file removed .kokoro/presubmit/node8/test.cfg
Empty file.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=10"
"node": ">=12.0.0"
},
"repository": "googleapis/nodejs-translate",
"main": "build/src/index.js",
Expand Down Expand Up @@ -51,7 +51,7 @@
"@google-cloud/promisify": "^2.0.0",
"arrify": "^2.0.0",
"extend": "^3.0.2",
"google-gax": "^2.24.1",
"google-gax": "^3.0.1",
"is-html": "^2.0.0",
"protobufjs": "^6.8.8"
},
Expand All @@ -65,16 +65,16 @@
"c8": "^7.0.0",
"codecov": "^3.0.2",
"google-auth-library": "^6.0.0",
"gts": "^3.0.0",
"gts": "^3.1.0",
"http2spy": "^2.0.0",
"jsdoc": "^3.6.2",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^2.0.0",
"mocha": "^8.0.0",
"mocha": "^9.2.2",
"pack-n-play": "^1.0.0-2",
"proxyquire": "^2.0.1",
"sinon": "^14.0.0",
"typescript": "^3.8.3"
"typescript": "^4.6.4"
}
}
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"!test/"
],
"engines": {
"node": ">=10"
"node": ">=12.0.0"
},
"scripts": {
"test": "mocha --recursive --timeout 240000"
Expand Down
2 changes: 1 addition & 1 deletion system-test/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ describe('translate', () => {
parent: `projects/${projectId}`,
});
} catch (_err) {
err = _err;
err = _err as Error;
}
assert(err);
assert(
Expand Down