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

Commit 9bd4f11

Browse files
authored
chore: upgrade gRPC, ts to newest compatible version (#907)
1 parent 03d0c9e commit 9bd4f11

File tree

74 files changed

+2114
-4363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2114
-4363
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
## Unreleased
66
- chore(stackdriver): upgrade google-auth-library, drop node8 (#887)
7+
- chore: upgrade gRPC, ts to newest compatible version (#907)
8+
BREAKING CHANGE: upgrade to TypeScript 3.x
79

810
## 0.0.22 - 2020-05-18
911
- fix(deps): update dependency uuid to v8 (#807)

examples/grpc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@opencensus/exporter-stackdriver": "^0.0.20",
2525
"@opencensus/instrumentation-grpc": "^0.0.20",
2626
"@opencensus/nodejs": "^0.0.20",
27-
"grpc": "^1.18.0"
27+
"grpc": "^1.24.10"
2828
},
2929
"devDependencies": {
3030
"semistandard": "^13.0.1"

package-lock.json

Lines changed: 16 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
"access": "public"
4242
},
4343
"devDependencies": {
44-
"@types/node": "^10.12.12",
44+
"@types/node": "^10.17.60",
4545
"lerna": "^2.11.0",
4646
"typedoc": "^0.17.0",
47-
"typescript": "^3.0.0"
47+
"typescript": "^3.9.10"
4848
}
4949
}

packages/opencensus-core/package-lock.json

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opencensus-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
"access": "public"
5353
},
5454
"devDependencies": {
55-
"@types/continuation-local-storage": "^3.2.1",
55+
"@types/continuation-local-storage": "3.2.1",
5656
"@types/mocha": "^7.0.0",
57-
"@types/node": "^10.12.12",
57+
"@types/node": "^10.17.60",
5858
"@types/once": "^1.4.0",
5959
"@types/semver": "^7.0.0",
6060
"@types/shimmer": "^1.0.1",
@@ -66,7 +66,7 @@
6666
"nyc": "14.1.1",
6767
"ts-mocha": "^7.0.0",
6868
"ts-node": "^8.0.0",
69-
"typescript": "~2.9.0"
69+
"typescript": "^3.9.10"
7070
},
7171
"dependencies": {
7272
"continuation-local-storage": "^3.2.1",

packages/opencensus-core/src/internal/cls-ah.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class AsyncHooksNamespace implements CLSNamespace {
9292
const contextWrapper = function(this: {}) {
9393
const oldContext = current;
9494
current = boundContext;
95+
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'IArguments' is not assignable to... Remove this comment to see the full error message
9596
const res = cb.apply(this, arguments) as T;
9697
current = oldContext;
9798
return res;
@@ -118,6 +119,7 @@ class AsyncHooksNamespace implements CLSNamespace {
118119
if (ee[method]) {
119120
shimmer.wrap(ee, method, oldMethod => {
120121
return function(this: {}, event: string, cb: Func<void>) {
122+
// @ts-expect-error ts-migrate(2684) FIXME: The 'this' context of type '((event: string | symb... Remove this comment to see the full error message
121123
return oldMethod.call(this, event, ns.bind(cb));
122124
};
123125
});

packages/opencensus-core/test/test-cumulative.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ describe('CUMULATIVE', () => {
6666
EMPTY_CONSTANT_LABELS
6767
);
6868

69+
// @ts-expect-error ts-migrate(2741) FIXME: Property 'bigint' is missing in type '() => [numbe... Remove this comment to see the full error message
6970
process.hrtime = () => [100, 1e7];
7071
Date.now = () => 1450000000000;
7172
// Force the clock to recalibrate the time offset with the mocked time
@@ -194,6 +195,7 @@ describe('CUMULATIVE', () => {
194195
const point = instance.getDefaultTimeSeries();
195196
point.inc(10);
196197

198+
// @ts-expect-error ts-migrate(2741) FIXME: Property 'bigint' is missing in type '() => [numbe... Remove this comment to see the full error message
197199
process.hrtime = () => [100, 1e7];
198200
Date.now = () => 1480000000000;
199201
// Force the clock to recalibrate the time offset with the mocked time

packages/opencensus-core/test/test-derived-cumulative.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ describe('DerivedCumulative', () => {
6565
startime
6666
);
6767

68+
// @ts-expect-error ts-migrate(2741) FIXME: Property 'bigint' is missing in type '() => [numbe... Remove this comment to see the full error message
6869
process.hrtime = () => [100, 1e7];
6970
Date.now = () => 1450000000000;
7071
// Force the clock to recalibrate the time offset with the mocked time

packages/opencensus-core/test/test-derived-gauge.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ describe('DerivedGauge', () => {
6363
EMPTY_CONSTANT_LABELS
6464
);
6565

66+
// @ts-expect-error ts-migrate(2741) FIXME: Property 'bigint' is missing in type '() => [numbe... Remove this comment to see the full error message
6667
process.hrtime = () => [100, 1e7];
6768
Date.now = () => 1450000000000;
6869
// Force the clock to recalibrate the time offset with the mocked time

0 commit comments

Comments
 (0)