Commit Graph

  • bd02fc3287 pass the relay URL to verifyEvent() so trusted-relay policies can be implemented. master fiatjaf 2026-07-20 13:01:28 -03:00
  • c66469dc75 declare a missing type. fiatjaf 2026-07-17 20:55:14 -03:00
  • 05c2836218 add favorite follow sets kind. fiatjaf 2026-07-16 21:08:11 -03:00
  • fa21fd6671 replace ad-hoc regexes with isHex32(). fiatjaf 2026-07-16 20:22:13 -03:00
  • 585258516b blossom: optimize hash extraction from url. fiatjaf 2026-07-16 20:22:02 -03:00
  • cbb1b9688d subscribeMap's onClose is now called with {url, reason}[] instead of reason[]. fiatjaf 2026-07-14 13:17:29 -03:00
  • b1406da48e blossom: send content-type header when uploading. v2.23.12 fiatjaf 2026-07-13 22:27:57 -03:00
  • 514678b102 automatically closed unused relay connections after a while. v2.23.11 fiatjaf 2026-07-13 11:24:56 -03:00
  • 21d11f1496 export new modules to jsr. fiatjaf 2026-07-01 00:49:15 -03:00
  • 08b676a8a4 nip45 helpers and pool.countMany() with HLL. fiatjaf 2026-07-01 00:17:27 -03:00
  • e07ed919c5 relay.countWithHLL() fiatjaf 2026-06-30 23:43:51 -03:00
  • cf1c218bfc add a nipb0.ts with blossom helpers. fiatjaf 2026-06-26 19:00:17 -03:00
  • 73ff3660ac add a bunch of kind numbers. fiatjaf 2026-06-26 18:59:47 -03:00
  • c5f7f3cbe1 catch EVENT/COUNT sending errors. fiatjaf 2026-06-25 22:20:47 -03:00
  • e9b40dca7c nip46: support client metadata for the bunker:// flow. fiatjaf 2026-06-23 09:16:02 -03:00
  • dab630de34 nip10/nip22: guard against malformed tags. fiatjaf 2026-06-22 21:20:09 -03:00
  • 455124eecd fix(reconnect): don't permanently kill subscriptions on a single failed reconnect attempt hoppe 2026-06-20 19:31:25 +09:00
  • 3575368176 nip19: TLV infinite loop again. fiatjaf 2026-06-15 18:22:48 -03:00
  • e17366cd2e add AUTH recommendations to README. fiatjaf 2026-06-10 22:08:19 -03:00
  • 7b1574d45c Fix linting hzrd149 2026-06-10 12:27:08 -05:00
  • 3defeeb796 nip46: add logout method hzrd149 2026-06-10 12:12:18 -05:00
  • 5de4f4549b fix jsr export. fiatjaf 2026-05-18 21:11:05 -03:00
  • ed47ef8ef7 bump version. v2.23.5 fiatjaf 2026-05-18 20:52:28 -03:00
  • a9e89e16e3 nip22: like nip10, but for kind:1111 and adjacent kinds. fiatjaf 2026-05-18 20:25:07 -03:00
  • 3cd26d7d76 nip44: fix test sha256. fiatjaf 2026-05-18 20:04:17 -03:00
  • 33fe4d8d28 nip22: like nip10, but for kind:1111 and adjacent kinds. v2.23.4 fiatjaf 2026-05-18 20:25:07 -03:00
  • d9f117cec9 nip44: fix test sha256. fiatjaf 2026-05-18 20:04:17 -03:00
  • e1f3ffdece fix: format pool.test.ts and relay.test.ts (pre-existing) Kai 2026-04-25 08:07:26 +02:00
  • 1f2c967b04 feat(nip47): support multiple relays in parseConnectionString Kai 2026-04-25 12:04:59 +02:00
  • 6b8c242282 fix(nip42): catch SendingOnClosedConnection during automatic AUTH Kai 2026-04-14 12:04:54 +02:00
  • 8260e6245d nip44: support encryption of payloads larger than 65535 bytes (#527) Alex Gleason 2026-04-10 21:21:52 -05:00
  • 007e0b41d0 feat(nip46): add skipSwitchRelays option to BunkerSignerParams Kai 2026-03-28 03:04:16 +01:00
  • 8be6d08a43 fix(nip47): support multiple relays in parseConnectionString Kai 2026-03-27 03:04:51 +01:00
  • 1b955bdbcb fix: window.printer is undefined in AbstractRelay._onmessage d3vv3 2026-02-27 22:44:13 +01:00
  • 56a2a8fb8d fix: window.printer is undefined in AbstractRelay._onmessage v2.23.3 d3vv3 2026-02-27 22:44:13 +01:00
  • 1c1e2cc51a verify event should catch exceptions from basic validation. v2.23.2 fiatjaf 2026-02-26 18:10:17 -03:00
  • 54199504a7 oninvalidevent arthurfranca 2026-02-26 18:08:17 -03:00
  • e45a9987e2 pool: prevent edge case with undefined subcloser. v2.23.1 fiatjaf 2026-02-12 15:06:27 -03:00
  • 0c2c2cd4d8 nip13: improve mining by skipping hex. fiatjaf 2026-02-08 01:06:01 -03:00
  • 28f7553187 fix a type so jsr is happy. v2.23.0 fiatjaf 2026-02-02 18:49:17 -03:00
  • ca29d9b515 ok, we need the prepareSubscription method. fiatjaf 2026-02-02 18:46:50 -03:00
  • ab802c8dbe automatic prune broken relay objects and keep track of relay idleness so they can be pruned. fiatjaf 2026-02-02 17:30:54 -03:00
  • 9db705d86c delete queue test since we don't have queues anymore. fiatjaf 2026-02-02 17:01:59 -03:00
  • be9b91318f relay: get rid of the message queue, because js is single-threaded. fiatjaf 2026-02-02 09:06:56 -03:00
  • c2423f7f31 nip27: fix hashtag parsing after newline or other characters. fiatjaf 2026-02-02 08:56:18 -03:00
  • 05b1fba511 export source files so they can be imported by other ts apps and libraries better. fiatjaf 2026-02-02 00:38:15 -03:00
  • 2d1345096b subscribeMany and subscribeManyEose are the same as subscribe/subscribeEose. fiatjaf 2026-02-01 17:19:58 -03:00
  • 6fc7788a4f utils: merging two (reverse) sorted lists of events. fiatjaf 2026-02-01 08:44:49 -03:00
  • 2180c7a1fe add onRelayConnectionSuccess to pair with onRelayConnectionFailure. fiatjaf 2026-01-31 14:19:26 -03:00
  • b4bec2097d finally stop reconnecting when the first connection fails once and for all. fiatjaf 2026-01-31 14:14:59 -03:00
  • fb7de7f1aa prevent reconnections when initial connection fails. fiatjaf 2026-01-31 13:57:33 -03:00
  • ccb9641fb9 pool: maxWaitForConnection parameter. fiatjaf 2026-01-31 00:27:54 -03:00
  • b624ad4059 pool: hooks to notify when a relay fails to connect, then ask whether a connection should be attempted. v2.22.1 fiatjaf 2026-01-30 15:21:25 -03:00
  • b3d314643a make everything dependent on npm again. v2.22.0 fiatjaf 2026-01-30 07:15:16 -03:00
  • 30ac8a02c2 readme to point only to jsr because npm is awful. fiatjaf 2026-01-28 17:28:27 -03:00
  • aea4bf702e go jsr only and eliminate index.ts. v2.21.0 fiatjaf 2026-01-27 23:56:37 -03:00
  • 42c9c7554d migrate to jsr dependencies for @noble and @scure. fiatjaf 2026-01-27 23:54:50 -03:00
  • 3588d30044 do the same for @noble/ciphers and @scure packages. fiatjaf 2026-01-27 22:43:54 -03:00
  • b40f59af74 Upgrade to @noble/curves ^2.0.1 and @noble/hashes ^2.0.1 lemonknowsall 2026-01-23 23:37:46 -08:00
  • bfa40da316 nip46: improve fromURI() and implement "switch_relays". v2.20.0 fiatjaf 2026-01-22 21:50:03 -03:00
  • 9078f45a64 optionally take an AbortSignal on subscriptions. fiatjaf 2026-01-22 21:49:39 -03:00
  • 6ebe59f123 nip27: support note1 entities for now, but treat them like nevent. v2.19.4 fiatjaf 2025-12-17 17:48:33 -03:00
  • 0235b490fa nip27: fix trailing / in urls. fiatjaf 2025-12-11 21:23:32 -03:00
  • e290f98a86 label forced ping subscription. fiatjaf 2025-12-10 21:06:31 -03:00
  • 7a50d9328d add some more kinds. v2.19.3 fiatjaf 2025-12-09 10:56:43 -03:00
  • 65412e5b85 NostrEvent > Event. fiatjaf 2025-12-06 12:21:56 -03:00
  • ca36ae9530 update README with new enableReconnect() behavior. fiatjaf 2025-12-05 21:59:52 -03:00
  • 0b6543e1a8 use setInterval() instead of nested setTimeout()s for pingpong. v2.19.2 fiatjaf 2025-12-05 21:44:41 -03:00
  • 693b262b7c CLOSED answers to dummyReq are also ok. fiatjaf 2025-12-05 21:03:34 -03:00
  • 85c964be3d enableReconnect() always update the filters to the time of the last received event on each subscription. v2.19.1 fiatjaf 2025-12-05 13:21:20 -03:00
  • de7d459f6f only transform filters with enableReconnect() when we're actually reconnecting. v2.19.0 fiatjaf 2025-12-05 09:20:36 -03:00
  • 21ec5bb2dc allow automatically performing AUTH against all relays. fiatjaf 2025-12-05 09:12:59 -03:00
  • e959409c14 fix classifyKind() test. v2.18.2 fiatjaf 2025-11-25 22:20:52 -03:00
  • 8a76c4e329 fix normalizeUrl to make websocket urls out of http urls. fiatjaf 2025-11-25 22:20:38 -03:00
  • 34a1d8db47 kinds: more reliable regular/replaceable kind figuring. v2.18.1 fiatjaf 2025-11-24 20:07:44 -03:00
  • d3ddd490c2 nip27: test emoji behavior when no tags. fiatjaf 2025-11-22 22:23:03 -03:00
  • 7730e321a5 nip27: support more image, audio and video extensions. fiatjaf 2025-11-22 20:36:01 -03:00
  • 400d132612 nip77: negentropy tests and small fixes. v2.18.0 fiatjaf 2025-11-21 19:51:55 -03:00
  • 01880b6fb5 nip27: parse emoji shortcodes and hashtags too. fiatjaf 2025-11-20 09:46:41 -03:00
  • e87ffc433c build "core" although we shouldn't. fiatjaf 2025-11-20 23:15:31 -03:00
  • c45e861493 fire subscriptions. v2.17.4 fiatjaf 2025-11-19 14:52:47 -03:00
  • 66cc55c7f0 nip77: negentropy implementation and nip77 interface. v2.17.3 fiatjaf 2025-11-18 09:29:00 -03:00
  • 5841b0936b throw when subscription is created without filters. fiatjaf 2025-11-18 08:09:44 -03:00
  • f5d0c0eb0f fix prettier checks on nip77 related *ts files max-gy 2025-11-10 13:29:55 +01:00
  • e19db61bec nip77: adds wrapper for negentropy and fallback for yieldThread MessageChannel max-gy 2025-10-14 20:00:13 +02:00
  • 1e0f393268 Fix subscribeMap EOSE grouping. Fixes #514 v2.17.2 Chris McCormick 2025-10-29 14:28:11 +08:00
  • 1bec9fa365 Ping pong memory leak fix for #511 (#512) v2.17.1 Chris McCormick 2025-10-27 10:14:33 +08:00
  • e8927d78e6 nip57: lud16 must take precedence over lud06 雪猫 2025-10-12 15:31:39 +09:00
  • bc1294e4e6 Reconnect with exponential backoff flag: enableReconnect (#507) Chris McCormick 2025-09-30 21:01:07 +08:00
  • 226d7d07e2 Improvements to enablePing() & tests (#506) Chris McCormick 2025-09-29 21:41:40 +08:00
  • c9ff51e278 subscribeMap() now sends multiple filters to the same relay in the same REQ. v2.17.0 fiatjaf 2025-09-20 16:54:07 -03:00
  • 23aebbd341 update NIP-27 example in README Anderson Juhasc 2025-08-27 10:27:18 -03:00
  • a3fcd79545 ensures consistency for .jpg/.JPG, .mp4/.MP4, etc Anderson Juhasc 2025-08-27 10:17:29 -03:00
  • 0e6e7af934 chore: Bump version and document NIP-46 usage tajava2006 2025-08-25 22:04:47 +09:00
  • 8866042edf relay: ensure onclose callback is triggered codytseng 2025-08-04 22:21:52 +08:00
  • ebe7df7b9e feat(nip46): Add support for client-initiated connections in BunkerSigner (#502) hoppe 2025-08-25 03:53:01 +09:00
  • 86235314c4 deduplicate relay URLs in pool.subscribe() and pool.subscribeMany() v2.16.2 fiatjaf 2025-08-06 10:37:14 -03:00
  • b39dac3551 nip57: include "e" tag. Don 2025-08-04 20:27:13 +09:00
  • 929d62bbbb nip57: cleanup useless tests. v2.16.1 fiatjaf 2025-08-01 20:28:49 -03:00
  • b575e47844 nip57: include "k" tag. fiatjaf 2025-08-01 19:26:46 -03:00