Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade typescript to 5.5.3 #2152

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 4 additions & 1 deletion apps/hubble/src/eth/l2EventsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,10 @@ export class L2EventsProvider {
return this.withRetry(
async () => {
if (this._useFilters) {
const filter = await this._publicClient.createContractEventFilter(params);
const filter = (await this._publicClient.createContractEventFilter(
params,
// biome-ignore lint/suspicious/noExplicitAny: viem upgraded needed
)) as any;
return this._publicClient.getFilterLogs({ filter });
} else {
return this._publicClient.getContractEvents(params);
Expand Down
2 changes: 1 addition & 1 deletion apps/hubble/src/profile/gossipProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function computeStats(peerIds: string[], datas: number[][], expected: number): s
return formattedData;
}

const allNodes = [0, 0, 0, 0, 0];
const allNodes: [number, number, number, number, number] = [0, 0, 0, 0, 0];

// Go over all the nodes and compute the stats
for (let i = 0; i < peerIds?.length; i++) {
Expand Down
3 changes: 2 additions & 1 deletion apps/hubble/src/storage/engine/messageDataBytes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ describe("messageDataBytes", () => {
newVarintBytes.push(value);

// Add leading zero to the most significant byte
newVarintBytes[newVarintBytes.length - 1] |= 0x80;
// TS: force cast to number since we know it will exist but typescript can't infer this
(newVarintBytes[newVarintBytes.length - 1] as number) |= 0x80;
newVarintBytes.push(0x00);

// Create the new bytes array with the alternative varint encoding for fid
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"ts-node": "^10.9.1",
"tsup": "^6.5.0",
"turbo": "1.10.3",
"typescript": "^5.4.5"
"typescript": "^5.5.3"
},
"lint-staged": {
"*.ts": ["biome check"],
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11598,10 +11598,10 @@ typed-array-length@^1.0.4:
for-each "^0.3.3"
is-typed-array "^1.1.9"

typescript@^5.4.5:
version "5.4.5"
resolved "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
typescript@^5.5.3:
version "5.5.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz#e1b0a3c394190838a0b168e771b0ad56a0af0faa"
integrity sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==

uint8-varint@^1.0.1, uint8-varint@^1.0.2:
version "1.0.4"
Expand Down
Loading