Commit Graph

20 Commits

Author SHA1 Message Date
Sepehr Safari ac83eeff1c format with prettier 2024-01-18 11:51:13 -03:00
Alex Gleason 348d118ce4 Add getFilterLimit function 2024-01-04 09:56:02 -03:00
fiatjaf 1f7378ca49
import from core.ts instead of pure.ts whenever possible. 2023-12-21 17:27:32 -03:00
fiatjaf fe87529646
change tests and nips to use the new api. 2023-12-19 13:58:37 -03:00
fiatjaf 6a07e7c1cc
remove the kind type parameter from events and filters. 2023-12-16 10:10:37 -03:00
Alex Gleason 718032022c
just format 2023-08-31 13:42:15 -05:00
Alex Gleason 9effe807d1
filter: remove unused import for Kind 2023-08-31 13:41:25 -05:00
Alex Gleason df6f887d7e Event, Filter: allow any kind number
Fixes https://github.com/nbd-wtf/nostr-tools/issues/275
2023-08-12 20:13:53 -03:00
Alex Gleason e00362e7c9 Filter: let tag queries be undefined 2023-08-12 16:30:24 -03:00
jiftechnify 1a23f5ee01 keep up with the latest specs for since/until filter 2023-07-15 16:08:31 -03:00
fiatjaf a55fb8465f mergeFilters() 2023-06-09 23:00:57 -03:00
Alex Gleason 08885ab8da Refactor imports: use file extension, improve tree shaking, update tests 2023-05-12 17:03:41 -03:00
Alex Gleason ab6abe6815 Improve types of filter.ts 2023-05-06 21:00:25 -03:00
Alex Gleason dd8f555094 Make Filter a generic type accepting Kind 2023-05-02 22:35:04 -03:00
OFF0 3bdb68020d nip01: add support for filter prefix in authors and ids
so clients can filter events by prefix in authors and ids as
described in nip-01, i.e. to subscribe to mined events starting
with zeroes or to add some privacy for clients that may not want
to disclose the exact filter.

see also https://github.com/scsibug/nostr-rs-relay/issues/104
2023-04-07 08:29:00 -03:00
Susumu OTA b0a58e2ca4 fix: Event type has id and sig field. 2023-04-06 06:15:07 -03:00
BilligsterUser b3d95cecdd add search field to filter (NIP-50) 2023-03-05 08:08:36 -03:00
rkfg c5b64404f6 Add limit to filter 2022-12-23 11:29:38 -03:00
fiatjaf 1162935f58
add a bunch of tests. 2022-12-19 20:02:01 -03:00
fiatjaf de8bdd8370
fix typescript types everywhere, delete pool.js and refactor relay.js to use event listeners everywhere. 2022-12-18 17:02:19 -03:00