Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Apr 10, 2024
1 parent 267120a commit 0d15751
Show file tree
Hide file tree
Showing 22 changed files with 750 additions and 558 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: pnpm install --strict-peer-dependencies=false --no-frozen-lockfile
run: pnpm install --strict-peer-dependencies=false
- name: Run lint
run: pnpm lint
- name: Run format
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"release": "pnpm build && pnpm changeset publish"
},
"devDependencies": {
"@biomejs/biome": "^1.0.0",
"@changesets/changelog-github": "^0.4.7",
"@changesets/cli": "^2.25.2",
"@types/jest": "^29.2.4",
"@types/node": "^18.11.9",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"turbo": "^1.2.16",
"typescript": "^4.8.4"
"@biomejs/biome": "^1.6.4",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.27.1",
"@types/jest": "^29.5.12",
"@types/node": "^18.19.31",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"turbo": "^1.13.2",
"typescript": "^4.9.5"
}
}
6 changes: 1 addition & 5 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
"default": "./dist/starknet/index.js"
}
},
"files": [
"dist",
"src",
"README.md"
],
"files": ["dist", "src", "README.md"],
"scripts": {
"build": "tsc",
"test": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer/src/config.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertType, describe, test } from "vitest";

import { Config } from "./config";
import type { Config } from "./config";

describe("Config", () => {
test("without any network or sink type", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer/src/sink/console.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertType, describe, test } from "vitest";

import { Console } from "./console";
import type { Console } from "./console";

describe("Console", () => {
test("accepts any option", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer/src/starknet/block.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertType, describe, test } from "vitest";

import { Block, BlockHeader, Transaction, TransactionMeta } from "./block";
import type { Block, BlockHeader, Transaction, TransactionMeta } from "./block";
import { FieldElement } from "./felt";

const address =
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer/src/starknet/block.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FieldElement } from "./felt";
import type { FieldElement } from "./felt";

export type Block = Partial<{
/** Block header. */
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer/src/starknet/filter.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assertType, describe, test } from "vitest";

import { FieldElement } from "./felt";
import {
import type {
EventFilter,
Filter,
L2ToL1MessageFilter,
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer/src/starknet/filter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FieldElement } from "./felt";
import type { FieldElement } from "./felt";

export type Filter = {
/** Header information. */
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer/src/starknet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export * from "./block";
export { FieldElement, getSelector } from "./felt";
export { Contract } from "./parser";

import { Filter } from "./filter";
import type { Filter } from "./filter";

/** Starknet network type and data filter. */
export type Starknet = {
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer/src/starknet/parser.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Contract } from "./parser";
import { describe, expect, it } from "vitest";
import { FieldElement } from "./felt";
import type { FieldElement } from "./felt";
import { EventAbi } from "starknet";

describe("Contract", () => {
Expand Down
6 changes: 3 additions & 3 deletions packages/indexer/src/starknet/parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Abi, EventAbi } from "starknet";
import type { Abi, EventAbi } from "starknet";

import { FieldElement, getSelector } from "./felt";
import { EventFilter } from "./filter";
import { type FieldElement, getSelector } from "./felt";
import type { EventFilter } from "./filter";

/** Build a stream filter from a contract ABI. */
export class Contract {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config } from "jest";
import type { Config } from "jest";

const config: Config = {
preset: "ts-jest",
Expand Down
6 changes: 1 addition & 5 deletions packages/protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"src",
"README.md"
],
"files": ["dist", "src", "README.md"],
"scripts": {
"prebuild": "pnpm run protobuf && pnpm run gen-types",
"build": "tsc",
Expand Down
10 changes: 5 additions & 5 deletions packages/protocol/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
CallCredentials,
ChannelCredentials,
ClientDuplexStream,
ClientOptions,
type ClientDuplexStream,
type ClientOptions,
Metadata,
StatusObject,
type StatusObject,
} from "@grpc/grpc-js";
import { CallMetadataGenerator } from "@grpc/grpc-js/build/src/call-credentials";
import type { CallMetadataGenerator } from "@grpc/grpc-js/build/src/call-credentials";
import { v1alpha2 } from "./proto";
import { StreamDataRequest } from "./request";

Expand Down Expand Up @@ -188,7 +188,7 @@ export class StreamClient {
while (true) {
let retryCount = 1;
let cursor = null;
let clock;
let clock: string | number | NodeJS.Timeout | undefined;
try {
// this check is to make ts happy
if (!this.stream) {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/src/cursor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Long from "long";
import { ICursor } from "./proto/v1alpha2";
import type { ICursor } from "./proto/v1alpha2";

export const Cursor = {
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/src/request.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Long from "long";
import { v1alpha2 } from "./proto";
import type Long from "long";
import type { v1alpha2 } from "./proto";

export const StreamDataRequest = {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/starknet/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config } from "jest";
import type { Config } from "jest";

const config: Config = {
preset: "ts-jest",
Expand Down
6 changes: 1 addition & 5 deletions packages/starknet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"src",
"README.md"
],
"files": ["dist", "src", "README.md"],
"scripts": {
"prebuild": "pnpm run protobuf && pnpm run gen-proto",
"build": "tsc && cp src/proto/generated.d.ts dist/proto/generated.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/starknet/src/cursor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Long from "long";
import { FieldElement } from "./felt";
import { v1alpha2 } from "./proto";
import type { v1alpha2 } from "./proto";

export const StarkNetCursor = {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/starknet/src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ function createFilter<T, B>(
filterOrBuilder: IEncodable<T> | ((builder: B) => IEncodable<T>),
mk: () => B,
) {
let filter;
let filter: IEncodable<T>;
if (typeof filterOrBuilder === "function") {
filter = filterOrBuilder(mk());
} else {
Expand Down
Loading

0 comments on commit 0d15751

Please sign in to comment.