Skip to content

Commit

Permalink
Bump typescript from 5.0.3 to 5.1.6 (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Aug 8, 2023
1 parent 3dc1768 commit cd4c74d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 46 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-node": "^11.1.0",
"prettier": "^3.0.0",
"typescript": "5.0.3"
"typescript": "5.1.6"
}
}
2 changes: 1 addition & 1 deletion packages/connect-web-bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ it like a web server would usually do.

| code generator | bundle size | minified | compressed |
|----------------|-------------------:|-----------------------:|---------------------:|
| connect | 112,246 b | 49,500 b | 13,336 b |
| connect | 112,186 b | 49,484 b | 13,326 b |
| grpc-web | 414,071 b | 300,352 b | 53,255 b |
37 changes: 0 additions & 37 deletions packages/connect/src/protocol/async-iterable.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,43 +77,6 @@ describe("slowly consuming an async iterable", function () {
});
});

describe("consuming an async iterable with for-await and throwing an error", function () {
it("should leave source dangling", async function () {
const sourceLog: string[] = [];

// eslint-disable-next-line @typescript-eslint/require-await
async function* source() {
try {
sourceLog.push("yield a");
yield "a";
sourceLog.push("yield b");
yield "b";
} finally {
sourceLog.push("finally");
}
}

const consumerLog: string[] = [];

async function consume(source: AsyncIterable<string>) {
for await (const chunk of source) {
consumerLog.push("received " + chunk);
throw "CONSUMER_ERROR";
}
}

try {
await consume(source());
fail("expected error");
} catch (e) {
expect(e).toBe("CONSUMER_ERROR");
}

expect(sourceLog).toEqual(["yield a"]);
expect(consumerLog).toEqual(["received a"]);
});
});

describe("pipe()", function () {
it("should apply transforms", async function () {
const iterable = pipe(
Expand Down
2 changes: 1 addition & 1 deletion packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"@bufbuild/protoc-gen-es": "^1.2.1",
"@types/express": "^4.17.15",
"esbuild": "^0.16.12",
"typescript": "^5.0.3"
"typescript": "^5.1.6"
}
}

0 comments on commit cd4c74d

Please sign in to comment.