From 2f3b656af510a9b2d44a3ab68d9e87c9ce8b21ef Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 17 Jun 2024 17:29:01 -0500 Subject: [PATCH] Upgrade Nostrify to v0.23.3, remove normalizeFilters call in EventsDB (NDatabase does this now) --- deno.json | 2 +- deno.lock | 8 ++++---- src/storages/EventsDB.ts | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/deno.json b/deno.json index 18c88749..724d74ec 100644 --- a/deno.json +++ b/deno.json @@ -24,7 +24,7 @@ "@db/sqlite": "jsr:@db/sqlite@^0.11.1", "@isaacs/ttlcache": "npm:@isaacs/ttlcache@^1.4.1", "@noble/secp256k1": "npm:@noble/secp256k1@^2.0.0", - "@nostrify/nostrify": "jsr:@nostrify/nostrify@^0.23.2", + "@nostrify/nostrify": "jsr:@nostrify/nostrify@^0.23.3", "@scure/base": "npm:@scure/base@^1.1.6", "@sentry/deno": "https://deno.land/x/sentry@7.112.2/index.mjs", "@soapbox/kysely-deno-sqlite": "jsr:@soapbox/kysely-deno-sqlite@^2.1.0", diff --git a/deno.lock b/deno.lock index faca92e0..9c44395b 100644 --- a/deno.lock +++ b/deno.lock @@ -10,7 +10,7 @@ "jsr:@nostrify/nostrify@^0.22.1": "jsr:@nostrify/nostrify@0.22.5", "jsr:@nostrify/nostrify@^0.22.4": "jsr:@nostrify/nostrify@0.22.4", "jsr:@nostrify/nostrify@^0.22.5": "jsr:@nostrify/nostrify@0.22.5", - "jsr:@nostrify/nostrify@^0.23.2": "jsr:@nostrify/nostrify@0.23.2", + "jsr:@nostrify/nostrify@^0.23.3": "jsr:@nostrify/nostrify@0.23.3", "jsr:@soapbox/kysely-deno-sqlite@^2.1.0": "jsr:@soapbox/kysely-deno-sqlite@2.2.0", "jsr:@soapbox/stickynotes@^0.4.0": "jsr:@soapbox/stickynotes@0.4.0", "jsr:@std/assert@^0.217.0": "jsr:@std/assert@0.217.0", @@ -122,8 +122,8 @@ "npm:zod@^3.23.8" ] }, - "@nostrify/nostrify@0.23.2": { - "integrity": "c880fd91b5fe69a6239f98cae62297ffccc2a78d160af4d376dd05899352daf0", + "@nostrify/nostrify@0.23.3": { + "integrity": "868b10dd094801e28f4982ef9815f0d43f2a807b6f8ad291c78ecb3eb291605a", "dependencies": [ "jsr:@std/encoding@^0.224.1", "npm:@scure/base@^1.1.6", @@ -1360,7 +1360,7 @@ "dependencies": [ "jsr:@bradenmacdonald/s3-lite-client@^0.7.4", "jsr:@db/sqlite@^0.11.1", - "jsr:@nostrify/nostrify@^0.23.2", + "jsr:@nostrify/nostrify@^0.23.3", "jsr:@soapbox/kysely-deno-sqlite@^2.1.0", "jsr:@soapbox/stickynotes@^0.4.0", "jsr:@std/assert@^0.225.1", diff --git a/src/storages/EventsDB.ts b/src/storages/EventsDB.ts index 7ce9bde4..51a75af7 100644 --- a/src/storages/EventsDB.ts +++ b/src/storages/EventsDB.ts @@ -7,7 +7,6 @@ import { nip27 } from 'nostr-tools'; import { Conf } from '@/config.ts'; import { DittoTables } from '@/db/DittoTables.ts'; -import { normalizeFilters } from '@/filter.ts'; import { RelayError } from '@/RelayError.ts'; import { purifyEvent } from '@/storages/hydrate.ts'; import { isNostrId, isURL } from '@/utils.ts'; @@ -264,7 +263,7 @@ class EventsDB implements NStore { } } - return normalizeFilters(filters); // Improves performance of `{ kinds: [0], authors: ['...'] }` queries. + return filters; } }