Commit Graph

  • ca36ae9530 update README with new enableReconnect() behavior. master fiatjaf 2025-12-05 21:59:52 -03:00
  • 0b6543e1a8 use setInterval() instead of nested setTimeout()s for pingpong. 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
  • b076c34a2f tag new minor because of the pingpong stuff. v2.16.0 fiatjaf 2025-08-01 14:12:53 -03:00
  • 4bb3eb2d40 remove unnecessary normalizeURL() call that can throw sometimes. fiatjaf 2025-08-01 14:11:19 -03:00
  • 87f2c74bb3 Get pingpong working in the browser with dummy REQ (#499) Chris McCormick 2025-07-24 22:22:15 +08:00
  • 4b6cc19b9c cleanup. v2.15.2 fiatjaf 2025-07-23 16:22:25 -03:00
  • b2f3a01439 nip46: remove deprecated getRelays() fiatjaf 2025-07-23 16:22:16 -03:00
  • 6ec19b618c WIP: pingpong with logging. Chris McCormick 2025-07-22 11:00:03 +08:00
  • b3cc9f50e5 WIP: hack in pingpong #495 Chris McCormick 2025-07-20 14:50:14 +08:00
  • 719462f041 something node-websocket fiatjaf 2025-07-19 10:41:48 -03:00
  • de1cf0ed60 Fix JSON syntax of jsr.json vornis101 2025-07-19 09:52:37 +02:00
  • d706ef961f pool: closed relays must be eliminated. v2.15.1 fiatjaf 2025-07-17 23:26:31 -03:00
  • 2f529b3f8a enhance parseConnectionString to support double slash URL format SondreB 2025-07-12 11:35:00 +02:00
  • f0357805c3 catch errors on function passed to auth() and log them. v2.15.0 fiatjaf 2025-06-10 10:16:50 -03:00
  • ffa7fb926e remove deprecated unused _onauth hook. fiatjaf 2025-06-10 10:16:11 -03:00
  • 12acb900ab SubCloser.close() can take a reason string optionally. fiatjaf 2025-06-10 10:15:58 -03:00
  • d773012658 proper auth support on pool.publish(). v2.14.3 fiatjaf 2025-06-06 22:36:07 -03:00
  • b8f91c37fa and there was an error in jsr.json v2.14.2 fiatjaf 2025-06-05 14:37:56 -03:00
  • 2da3528362 forgot to expose blossom, as usual. v2.14.1 fiatjaf 2025-06-05 01:29:54 -03:00
  • 315e9a472c expose signer module. v2.14.0 fiatjaf 2025-06-04 21:47:17 -03:00
  • a2b1bf0338 blossom test. fiatjaf 2025-06-04 21:45:43 -03:00
  • 861a77e2b3 nipB7 (blossom) and a generic signer interface. fiatjaf 2025-06-04 21:28:33 -03:00
  • 9132b722f3 improve signature for decode function (#489) v2.13.3 António Conselheiro 2025-06-01 11:08:57 -03:00
  • ae2f97655b remove two deprecated things. fiatjaf 2025-05-31 20:04:46 -03:00
  • 5b78a829c7 ignore error when sending on a CLOSE to a closed connection. fiatjaf 2025-05-31 12:29:24 -03:00
  • de26ee98c5 failed to connect to a websocket should reject the promise. v2.13.2 fiatjaf 2025-05-31 11:16:22 -03:00
  • 1437bbdb0f update removed function in test. v2.13.1 fiatjaf 2025-05-28 14:52:28 -03:00
  • 57354b9fb4 expose hexToBytes and bytesToHex helpers. fiatjaf 2025-05-28 14:50:25 -03:00
  • 924075b803 nip57: get sats amount from bolt11 helper. fiatjaf 2025-05-20 09:19:58 -03:00
  • 666a02027e readme updated Anderson Juhasc 2025-05-19 09:55:20 -03:00
  • eff9ea9579 remove deprecated subscribeManyMap() fiatjaf 2025-05-17 18:51:26 -03:00
  • ca174e6cd8 publish to jsr before npm. fiatjaf 2025-05-12 05:26:30 -03:00
  • 4ba9c8886b forgot to remove nip96 from export lists. v2.13.0 fiatjaf 2025-05-12 05:24:57 -03:00
  • 7dbd86eb5c fix types from latest nip19 type change. fiatjaf 2025-05-12 05:23:54 -03:00
  • 3e839db6f2 tag v2.13.0 (breaking because stuff is removed). fiatjaf 2025-05-12 05:20:04 -03:00
  • cb370fbf4f nip46: fix crash caused by endless resubscribe codytseng 2025-05-11 23:59:07 +08:00
  • c015b6e794 fix bug where concurrent auth calls returned only one response codytseng 2025-05-09 10:36:20 +08:00
  • 52079f6e75 saner nip19 types. fiatjaf 2025-04-26 09:00:23 -03:00
  • ef28b2eb73 nip46: toBunkerURL() function. fiatjaf 2025-04-21 23:40:15 -03:00
  • 2a422774fb fix pool.publish() example in README. fiatjaf 2025-04-17 17:17:34 -03:00
  • b80f8a0bcc nip07: return a VerifiedEvent fiatjaf 2025-04-11 17:31:57 -03:00
  • dd603e47d8 some small bugs codebuff found. fiatjaf 2025-04-03 23:31:34 -03:00
  • ba26b92973 get rid of nip96 and unnecessary dependencies. fiatjaf 2025-04-02 11:51:02 -03:00
  • aec8ff5946 fix for updated typescript. v2.12.0 fiatjaf 2025-04-02 11:44:41 -03:00
  • e498c9144d nip46: auto-reconnect. fiatjaf 2025-04-02 10:58:26 -03:00
  • 42d47abba1 update readme and add more examples. fiatjaf 2025-04-02 10:46:50 -03:00
  • 303c35120c pool: deprecate subscribeManyMap and introduce subscribe/subscribeEose methods that take a single filter. fiatjaf 2025-04-02 10:37:10 -03:00
  • 4a738c93d0 nip46: stop supporting nip04-encrypted messages. fiatjaf 2025-04-02 10:25:19 -03:00
  • 2a11c9ec91 nip04: functions shouldn't be async. fiatjaf 2025-04-02 10:19:27 -03:00
  • cbe3a9d683 pool subscribe methods accept an onauth param. v2.11.1 fiatjaf 2025-04-01 19:16:12 -03:00
  • 2944a932b8 nip46: mark connection as closed when relays disconnect. fiatjaf 2025-03-29 18:03:39 -03:00
  • 6b39de04d7 Fix auth() not returning on consecutive calls codytseng 2025-03-17 22:25:35 +08:00
  • 9a612e59a2 update nip11 test. v2.11.0 fiatjaf 2025-03-14 09:29:14 -03:00
  • 266dbdf766 nip27: rewrite to support urls and references in a simpler API for rich UIs. fiatjaf 2025-03-14 01:46:46 -03:00
  • 19ae9837a7 nip19: decodeNostrURI() function that doesn't throw. fiatjaf 2025-03-02 11:51:31 -03:00
  • 4188f2c596 Generic repost António Conselheiro 2025-03-10 01:58:00 -03:00
  • 97bded8f5b prevent a relay from eoseing then closing and causing pool handlers to fire twice. fiatjaf 2025-03-02 01:25:06 -03:00
  • 174d36a440 nip07: remove getRelays() fiatjaf 2025-03-01 19:44:33 -03:00
  • 0177b130c3 nip55: remove getRelays() fiatjaf 2025-03-01 19:44:13 -03:00
  • 05eb62da5b support subscription label, not only an absolute id. fiatjaf 2025-03-01 19:41:17 -03:00
  • 3c4019a154 nip54 normalizeIdentifier function Baris Aydek 2025-02-25 19:28:28 +03:00
  • e7e8db1dbd nip46: take EventTemplate instead of UnsignedEvent. fiatjaf 2025-02-24 14:48:42 -03:00
  • 44a679e642 added support for zapping replaceable events (#424) bitcoinpirate 2025-02-23 16:46:51 +01:00
  • c1172caf1d mark getRelays and get_relays as deprecated. Asai Toshiya 2025-02-22 00:26:30 +09:00
  • 86f37d6003 Clean up nip96 upload validation and make it less strict Jon Staab 2025-02-11 10:17:52 -08:00
  • 3daade322c export retention details Sandwich 2025-02-10 09:18:59 +07:00
  • fcf10541c8 rename "parameterized replaceable" to "addressable". Asai Toshiya 2025-01-24 01:06:08 +09:00
  • 548abb5d4a nip18: tweak test data. Asai Toshiya 2025-01-23 20:03:52 +09:00