Commit Graph

  • bf120c1348 relay examples on README. fiatjaf 2022-12-20 15:34:53 -03:00
  • 3630d377e5 test every commit on github actions. fiatjaf 2022-12-20 15:27:15 -03:00
  • 53b0091bf4 some fixes on relay.ts and tests. fiatjaf 2022-12-20 15:24:54 -03:00
  • 1a7cc5f21f updated readme with nicer examples. fiatjaf 2022-12-19 20:13:08 -03:00
  • 1162935f58 add a bunch of tests. fiatjaf 2022-12-19 19:51:55 -03:00
  • a49d971f6a reorganize index.ts to use "export *". fiatjaf 2022-12-19 19:51:38 -03:00
  • 897919be3b get rid of create-hash, use noble hashes. fiatjaf 2022-12-19 19:50:41 -03:00
  • 39aca167fb build for commonjs, esm and a standalone bundle. fiatjaf 2022-12-19 15:46:31 -03:00
  • de8bdd8370 fix typescript types everywhere, delete pool.js and refactor relay.js to use event listeners everywhere. fiatjaf 2022-12-18 17:02:19 -03:00
  • 46a0a342db event fields (#37) Íñigo Aréjula Aísa 2022-12-17 17:09:25 +01:00
  • 4fe2a9c91a use default fetch if in service worker (#23) Leo Wandersleb 2022-12-17 13:08:59 -03:00
  • e62b833464 Merge pull request #41 from monlovesmango/cb-api fiatjaf 2022-12-17 13:06:30 -03:00
  • 100c77d2aa finalize cb api monica 2022-12-07 22:26:51 -06:00
  • 12be5a5338 Fix tag type Íñigo Aréjula Aísa 2022-12-05 19:08:46 +01:00
  • b955ba2a09 initial refactor of cb api monica 2022-12-04 21:57:15 -06:00
  • ec805be4ab expose nip 4 functions to TS (#39) Íñigo Aréjula Aísa 2022-11-30 23:41:10 +01:00
  • 92fb339afb Update relay.js Íñigo Aréjula Aísa 2022-11-27 13:57:21 +01:00
  • f8f125270a fix return value getRelayList Íñigo Aréjula Aísa 2022-11-26 14:47:56 +01:00
  • 1b798b2eee Expose relay funcs (#31) Íñigo Aréjula Aísa 2022-11-26 03:21:33 +01:00
  • ae717a1a4a Documentation pool.js (#30) Íñigo Aréjula Aísa 2022-11-26 03:20:22 +01:00
  • b2015c8fe5 Filter type with optional atributtes Íñigo Aréjula Aísa 2022-11-24 21:33:50 +01:00
  • c5d2e3b037 github action to publish to npm on tag. fiatjaf 2022-11-21 20:26:58 -03:00
  • 0ef5d1e19c Merge pull request #27 from monlovesmango/Expose-EOSE-Relay-URL fiatjaf 2022-11-21 20:24:01 -03:00
  • 7d9d10fdb1 add relay url arg to eoseCb monlovesmango 2022-11-21 16:11:30 -06:00
  • a1e1ce131a include eoseCb in sub monlovesmango 2022-11-21 16:09:23 -06:00
  • cdb07bb175 replace micro-bip with @scure/bip, fix #25 Fred 2022-10-24 14:01:06 +08:00
  • 1f1bcff803 EOSE nip-15 Leo Wandersleb 2022-09-29 00:02:31 -03:00
  • 896af30619 release v0.24.1 v0.24.1 fiatjaf 2022-09-06 15:19:29 -03:00
  • a8542c4b56 fix: CJK characters are garbled after decryption bjong 2022-09-07 01:10:30 +08:00
  • 9f9e822c6d allow skipping signature verification. v0.24.0 fiatjaf 2022-08-05 16:35:56 -03:00
  • 821a8f7895 TypeScript definitions (#18) Lennon Day-Reynolds 2022-07-15 11:49:49 -07:00
  • 2f7e3f8473 bump version. v0.23.4 fiatjaf 2022-06-22 20:08:48 -03:00
  • 536dbcbffe Update pool.js monlovesmango 2022-06-22 15:18:49 -05:00
  • ed52d2a8d4 updating cb property for subControllers entries monlovesmango 2022-06-22 14:49:26 -05:00
  • faf8e62120 maybe fix a bug with calling sub.sub() v0.23.3 fiatjaf 2022-06-04 18:34:54 -03:00
  • dc489bf387 build esm module that can be imported from browsers. v0.23.1 fiatjaf 2022-05-08 20:49:33 -03:00
  • 60ce13e17d chore: bump version to 0.23.0 v0.23.0 Ricardo Arturo Cabral Mejia 2022-04-10 22:48:14 +00:00
  • 727bcb05a8 feat: add beforeSend hook to sub() Ricardo Arturo Cabral Mejia 2022-04-10 22:44:54 +00:00
  • c236e41f80 import 'Buffer' monlovesmango 2022-04-06 16:05:42 -05:00
  • f04bc0cee1 fix filter on statusCallback: id -> ids v0.22.2 fiatjaf 2022-02-15 21:03:27 -03:00
  • e63479ee7f nip05 more strict. enforce the presence of "_" for domain names. fiatjaf 2022-02-12 20:37:23 -03:00
  • c47f091d9b update noble secp256k1 and ensure we always return hex. v0.22.1 fiatjaf 2022-02-11 16:20:30 -03:00
  • 84e4fb1f92 update noble secp256k1 and ensure we always return hex. v0.22.0 fiatjaf 2022-02-11 16:20:30 -03:00
  • 4c785279bc remove => from onEvent function in README.md. Melvin Carvalho 2022-02-02 23:48:14 +01:00
  • 6786641b1d are you kidding me? v0.21.4 fiatjaf 2022-01-25 17:06:26 -03:00
  • 0396db5ed6 nip04 string key is actually x and y, so we must get only 32 bytes of x. v0.21.3 fiatjaf 2022-01-25 16:25:10 -03:00
  • 0c8e7a74f5 fix previous commit because noble is returning different values depending on [unknown], sometimes uint8array, sometimes hex. v0.21.2 fiatjaf 2022-01-25 15:41:47 -03:00
  • c66a2acda1 encrypt uint8array to hex. v0.21.1 fiatjaf 2022-01-24 21:00:51 -03:00
  • 6f07c756e5 change nip04 functions interfaces. v0.21.0 fiatjaf 2022-01-24 20:21:26 -03:00
  • f6bcda8d8d support _ names in nip05. v0.20.1 fiatjaf 2022-01-17 17:12:48 -03:00
  • 4b666e421b update nip05 to well-known version. v0.20.0 fiatjaf 2022-01-17 16:37:19 -03:00
  • 454366f6a2 allow signing events with a custom signing function on pool.publish() v0.19.0 fiatjaf 2022-01-12 22:32:45 -03:00
  • 3d6f9a41e0 prevent blocking waiting times on publish (unless "wait" is set in the pool policy). v0.18.0 fiatjaf 2022-01-12 17:39:24 -03:00
  • e3631ba806 fix and update nip06. fiatjaf 2022-01-06 21:46:17 -03:00
  • 89f11e214d fix filter matching for tags. v0.16.2 fiatjaf 2022-01-02 19:46:17 -03:00
  • bb09e25512 fix tag in matchFilter for kinds and ids. v0.16.1 fiatjaf 2022-01-01 21:18:37 -03:00
  • 1b5c314436 nip-01 update: everything as arrays on filters. v0.16.0 fiatjaf 2022-01-01 20:49:05 -03:00
  • 2230f32d11 use randomBytes from @noble/hashes. fiatjaf 2022-01-01 14:59:12 -03:00
  • b271d6c06b fix .kind filter validator. v0.15.1 fiatjaf 2022-01-01 10:26:55 -03:00
  • 76624a0f23 validateEvent() function. v0.15.0 fiatjaf 2022-01-01 10:04:36 -03:00
  • 1f1a6380f0 fix getPublicKey to return the bip340 key. v0.14.3 fiatjaf 2022-01-01 10:03:26 -03:00
  • a46568d55c fix argument to micro-bip32 fiatjaf 2021-12-31 23:09:43 -03:00
  • ff4e63ecdf fix param order for verifySignature. v0.14.1 fiatjaf 2021-12-31 22:53:27 -03:00
  • 01dd5b7a3c bring back @noble/secp256k1 along with micro-bip32. v0.14.0 fiatjaf 2021-12-31 22:47:43 -03:00
  • 16536340e5 small fix on pool.removeRelay() fiatjaf 2021-12-31 22:25:33 -03:00
  • 1037eee335 trim relay url on normalize. fiatjaf 2021-12-31 22:03:02 -03:00
  • 5ce1b4c9f7 only initiate subscriptions for new relays added with read:true fiatjaf 2021-12-31 20:49:51 -03:00
  • 7bc9083bc5 randomChoice pool policy. v0.13.0 fiatjaf 2021-12-30 21:46:44 -03:00
  • ce214ebbab small tweaks on relayConnect. v0.12.4 fiatjaf 2021-12-30 15:02:05 -03:00
  • 800beb37f1 cut out the first byte of pubkeys. v0.12.3 fiatjaf 2021-12-29 15:15:53 -03:00
  • 6d4916e6f7 eslint and minor fixes. v0.12.2 fiatjaf 2021-12-29 14:35:28 -03:00
  • 60fc0d7940 use tiny-secp256k1, updated nip06 and other utils. v0.12.1 fiatjaf 2021-12-29 14:29:43 -03:00
  • faa308049f always add event.id fiatjaf 2021-12-28 20:44:35 -03:00
  • 7b0220c1b8 use browserify-cipher for aes. v0.11.0 fiatjaf 2021-12-18 20:30:54 -03:00
  • d8eee25e3a another typo: null != undefined. v0.10.3 fiatjaf 2021-12-14 22:06:31 -03:00
  • d5e93e0c30 fix a typo in matchFilter function. v0.10.2 fiatjaf 2021-12-14 22:02:56 -03:00
  • fff31b5ff4 automatically run received events through the filters they should pass (double-check the work made by the relay). v0.10.1 fiatjaf 2021-12-14 22:00:42 -03:00
  • cd7ffb8911 add local event filter functions. v0.10.0 fiatjaf 2021-12-14 21:56:07 -03:00
  • 4f0cae0eb8 add missing id arguments. v0.9.1 fiatjaf 2021-12-13 21:21:26 -03:00
  • 06e867b675 stop sending repeated REQs. v0.9.0 fiatjaf 2021-12-13 20:58:49 -03:00
  • 22e895c7c2 use exponential backoff for reconnections. v0.8.1 fiatjaf 2021-12-12 11:39:43 -03:00
  • 02cacd4446 return sub object from .sub() and other methods. v0.8.0 fiatjaf 2021-12-12 06:47:49 -03:00
  • a99188e4cf remove log line for events with invalid signature. v0.7.2 fiatjaf 2021-12-12 05:54:34 -03:00
  • 93b22e48a6 add nip06. v0.7.1 fiatjaf 2021-12-11 19:28:00 -03:00
  • 7447524028 add nip06. v0.7.0 fiatjaf 2021-12-11 19:28:00 -03:00
  • 57b9bac9b1 end the rollup madness, just ship the source. fiatjaf 2021-12-11 09:00:25 -03:00
  • 31ab318387 end the rollup madness, just ship the source. v0.6.5 fiatjaf 2021-12-11 09:00:25 -03:00
  • 625b3bb3ba fix buffer import and use rollup for transpiling the package. v0.6.4 fiatjaf 2021-12-11 07:53:44 -03:00
  • 0d0557b9a2 fix buffer import and use rollup for transpiling the package. v0.6.3 fiatjaf 2021-12-11 07:53:44 -03:00
  • 8edcea2ed3 fix buffer import and use rollup for transpiling the package. v0.6.2 fiatjaf 2021-12-11 07:53:44 -03:00
  • 56ac558401 fix buffer import and use rollup for transpiling the package. v0.6.1 fiatjaf 2021-12-11 07:53:44 -03:00
  • cc2ced1558 update secp256k1 library, add nip04.js v0.6.0 fiatjaf 2021-12-10 21:41:05 -03:00
  • 1ce00bd3b6 nip05. fiatjaf 2021-07-19 08:28:14 -03:00
  • dc698a5c90 fix getBlankEvent. fiatjaf 2021-05-23 14:21:46 -03:00
  • d3d120cd7c fix some important bugs so it is actually usable. fiatjaf 2021-05-22 22:14:25 -03:00
  • fc4ddad068 add channel reusing and cancellation to README. fiatjaf 2021-05-22 21:24:19 -03:00
  • e2956ab937 support getBlankEvent() function. fiatjaf 2021-05-22 21:20:30 -03:00
  • 28443710e3 improve reconnection attempts to relays and print less errors. fiatjaf 2021-05-15 18:12:03 -03:00
  • 2d2d9863d1 add example with multiple filters to readme. fiatjaf 2021-02-23 00:20:15 -03:00
  • b7e33c512c fix many bugs. fiatjaf 2021-02-23 00:17:22 -03:00