diff --git a/package.json b/package.json index e9a0e2b..28f66f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rx-nostr", - "version": "1.8.1", + "version": "2.0.0", "description": "A library based on RxJS, which allows Nostr applications to easily communicate with relays.", "author": "penpenpng", "keywords": [ diff --git a/src/__test__/keep-alive.test.ts b/src/__test__/keep-alive.test.ts index 5c3bfb2..954c9c1 100644 --- a/src/__test__/keep-alive.test.ts +++ b/src/__test__/keep-alive.test.ts @@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, test } from "vitest"; import { createMockRelay, type MockRelay } from "vitest-nostr"; import { createRxForwardReq, createRxNostr, RxNostr } from "../index.js"; -import { disposeMockRelay, faker, spyEvent, stateWillBe } from "./helper.js"; +import { disposeMockRelay, faker, stateWillBe } from "./helper.js"; describe("", () => { const DEFAULT_RELAY = "ws://localhost:1234"; diff --git a/src/__test__/operator.test.ts b/src/__test__/operator.test.ts index 115737f..84c5abf 100644 --- a/src/__test__/operator.test.ts +++ b/src/__test__/operator.test.ts @@ -87,8 +87,8 @@ test("tie()", async () => { })) ); - // eslint-disable-next-line @typescript-eslint/no-explicit-any expectObservable(packet$).toEqual( + // eslint-disable-next-line @typescript-eslint/no-explicit-any of( { ...packets[0], diff --git a/src/rx-nostr/utils.ts b/src/rx-nostr/utils.ts index acce792..9c3986a 100644 --- a/src/rx-nostr/utils.ts +++ b/src/rx-nostr/utils.ts @@ -1,6 +1,4 @@ -import { filter, type OperatorFunction } from "rxjs"; - -import type { LazyFilter, LazyREQ, MessagePacket } from "../packet.js"; +import type { LazyFilter, LazyREQ } from "../packet.js"; import type { RxReq } from "../req.js"; import type { AcceptableDefaultRelaysConfig,