Commit Graph

  • dd8f555094 Make Filter a generic type accepting Kind Alex Gleason 2023-05-02 20:07:31 -05:00
  • 87f5ea4291 test(event): add test for getBlankEvent eosxx 2023-05-01 18:42:14 +00:00
  • 595ae21baf feat(event): getBlankEvent can accept a kind eosxx 2023-05-01 18:41:08 +00:00
  • 9fa554ca8e Make Event a generic type accepting Kind Alex Gleason 2023-04-29 21:21:00 -05:00
  • 1647601727 fix: check crypto and webcrypto eosxx 2023-04-28 08:50:24 +00:00
  • b66ca1787a fix(nip04): crypto.subtle is undefined eosxx 2023-04-28 07:49:46 +00:00
  • 278cdda9c2 Merge pull request #195 from alexgleason/get-signature fiatjaf_ 2023-04-24 07:28:06 -03:00
  • 552530fa3f Add back deprecated signEvent function with a warning Alex Gleason 2023-04-24 00:11:05 -05:00
  • 13e9b4aa3e Add NIP-25 utils futpib 2023-04-24 00:50:13 +04:00
  • 9a3e05ce5f Rename signEvent to getSignature Alex Gleason 2023-04-23 11:12:44 -05:00
  • 55ff796b9f v1.10.1 v1.10.1 fiatjaf 2023-04-22 21:59:41 -03:00
  • 3ef2ad5bc4 Merge pull request #194 from alexgleason/nip27 fiatjaf_ 2023-04-22 21:58:36 -03:00
  • 45c07a5f45 nip27: make matchAll a generator function Alex Gleason 2023-04-22 19:22:06 -05:00
  • 6a037d1658 nip27.find --> nip27.matchAll Alex Gleason 2023-04-22 19:06:53 -05:00
  • dcf101c6c2 yarn format Alex Gleason 2023-04-22 18:33:09 -05:00
  • eb97dbd9ef Add NIP-21 and NIP-27 modules for parsing nostr URIs Alex Gleason 2023-04-22 18:13:20 -05:00
  • 92988051c6 Add Unlicense Alex Gleason 2023-04-20 09:52:51 -04:00
  • bf7e00d32a hotfix types. v1.10.0 fiatjaf 2023-04-18 15:29:28 -03:00
  • 9241089997 v1.10.0 with @noble/secp256k1 back, nip42 support and nip19 typing improvements. fiatjaf 2023-04-18 15:17:57 -03:00
  • 32c47e9bd8 relay: separate auth() and publish() methods Lynn Zenn 2023-04-18 19:37:41 +02:00
  • 6e58fe371c relay: add support for NIP42 authentication Lynn Zenn 2023-04-18 15:10:12 +02:00
  • 26e35d50e0 relay: fix type errors Lynn Zenn 2023-04-18 15:11:27 +02:00
  • ef3184a6e0 remove @noble/curves. people are not ready for it, causes BigInt issues. fiatjaf 2023-04-18 15:07:10 -03:00
  • 56fe3dd5dd nip19: improve return type Alex Gleason 2023-04-17 20:53:19 -04:00
  • f1bb5030c8 Add support for count Jonathan Staab 2023-03-13 13:48:29 -05:00
  • ac212cb5c8 tag v1.9.0 using @noble/curves. v1.9.0 fiatjaf 2023-04-14 17:09:28 -03:00
  • 204ae0eff1 Switch from noble-secp256k1 to noble-curves Paul Miller 2023-04-14 16:26:33 +00:00
  • f17ab41d72 NIP-19: Add nrelay encoding and decoding Alejandro Gomez 2023-04-14 17:46:06 +02:00
  • f6f5ee8223 tag v1.8.4 v1.8.4 fiatjaf 2023-04-11 18:23:04 -03:00
  • a05506468d Add NIP-13 (proof-of-work) module Alex Gleason 2023-04-11 15:49:08 -05:00
  • 674ff66b6f added badge events Agustin Kassis 2023-04-11 10:18:08 -03:00
  • 731705047a fix(nip05): allow dot in name channelninja 2023-04-09 16:38:35 +02:00
  • 94b382a49f Fix validateEvent type checking Alex Gleason 2023-04-08 15:14:52 -05:00
  • 199411a971 yarn.lock with deduped packages. v1.8.3 fiatjaf 2023-04-08 15:42:32 -03:00
  • a1dc6f41b9 fix conflict in noble dependencies. fiatjaf 2023-04-08 15:39:36 -03:00
  • 5b59b93d86 validateEvent: use assertion function Alex Gleason 2023-03-27 14:12:43 -05:00
  • 12acd7bdca scripts: add npm build, format and test scripts OFF0 2023-04-07 11:08:47 +02:00
  • 3bdb68020d nip01: add support for filter prefix in authors and ids OFF0 2023-03-12 16:31:08 +01:00
  • b0a58e2ca4 fix: Event type has id and sig field. Susumu OTA 2023-04-06 15:37:14 +09:00
  • b063be76ae fix: must be tag not ref. Susumu OTA 2023-04-06 15:15:43 +09:00
  • 52cd6490fe max keys 256. nip41 fiatjaf 2023-01-14 14:25:11 -03:00
  • 3248b8b166 add nip41: stateless revocations. fiatjaf 2022-12-29 18:10:04 -03:00
  • e3cea5db16 tag v1.8.2 v1.8.2 fiatjaf 2023-04-04 10:26:10 -03:00
  • 9ee58bd6c7 fix async race condition that caused pool.publish() callbacks to not be called. fiatjaf 2023-04-04 10:23:26 -03:00
  • f1eb9a3bc7 Reuse connectionPromise for relay connect. Steve Perkins 2023-04-03 21:55:40 -04:00
  • ce081bb4cb Rename pubkeys to profiles (NIP-10) futpib 2023-04-02 16:50:42 +04:00
  • 7413072e9f Fix pubkey relays lost in NIP-10 parsing futpib 2023-04-02 04:20:11 +04:00
  • 4c464b39cf Fix explicit NIP-10 root/reply/mention markers parsed incorrectly futpib 2023-04-02 04:01:12 +04:00
  • 11ef43abdc Run prettier futpib 2023-04-02 03:52:20 +04:00
  • 3e67f9b014 Add NIP-10 thread root/reply/mention parsing futpib 2023-04-01 04:08:59 +04:00
  • 0933fba6d5 Add .editorconfig futpib 2023-04-01 03:04:25 +04:00
  • 51b8f42529 bump to v1.8.1 v1.8.1 fiatjaf 2023-03-27 10:41:10 -03:00
  • 24d885aaeb Revert "earlier .add() on pool _knownIds." fiatjaf 2023-03-27 10:27:42 -03:00
  • 74c77a2e9f add 17 test cases for nip57 (#166) Sepehr Safari 2023-03-27 02:08:33 +03:30
  • ce73b96565 bump to v1.8.0 v1.8.0 fiatjaf 2023-03-26 09:45:03 -03:00
  • 8818e4f88a add parseReferences() for NIP-10 and NIP-27. fiatjaf 2023-03-26 09:44:33 -03:00
  • 5a63c75f24 nevent author is not mandatory. fiatjaf 2023-03-26 09:35:42 -03:00
  • 60e01a9006 edit filter.test.js and add more test cases (#165) Sepehr Safari 2023-03-26 13:43:02 +03:30
  • 687f387385 earlier .add() on pool _knownIds. fiatjaf 2023-03-26 07:10:41 -03:00
  • 6d116a2f7f add author on nevent TLV. fiatjaf 2023-03-26 07:10:13 -03:00
  • 51c3aec788 add another test case for event file Sepehr Safari 2023-03-23 23:00:38 +03:30
  • 613b2c177f add more test cases for event file Sepehr Safari 2023-03-23 22:47:00 +03:30
  • 24f5068fdb bump to v1.7.5 v1.7.5 fiatjaf 2023-03-19 09:09:19 -03:00
  • 5733f9c4e4 reject promise on WebSocket initiation failure. fiatjaf 2023-03-19 09:07:16 -03:00
  • 6b73bbf8a3 Type sub event handler (#156) BilligsterUser 2023-03-12 12:51:38 +01:00
  • d244b62c7a type Relay EventHandler (#121) BilligsterUser 2023-03-11 19:24:52 +01:00
  • b00af9a30a call ensurerelay() before calling pool.publish() BilligsterUser 2023-03-09 02:39:16 +01:00
  • be7c981c14 NIP-39: validate github BilligsterUser 2023-03-10 23:09:28 +01:00
  • 5539e5cf89 Pool: Sub use provided alreadyHaveEvent Fn BilligsterUser 2023-03-06 17:16:16 +01:00
  • 73decbc8e0 added connect to ensureRelay if status != 1 Egge 2023-03-06 09:42:32 +01:00
  • b3d95cecdd add search field to filter (NIP-50) BilligsterUser 2023-03-05 01:50:30 +01:00
  • 82228036ef close relay's websocket only if it's in state OPEN ramigs 2023-03-04 14:59:33 +00:00
  • 01435ab9f5 test decode nip19 with relays. fiatjaf 2023-03-02 21:30:20 -03:00
  • 63cbc4133a nip05 domain must have a dot. fiatjaf 2023-03-02 08:41:06 -03:00
  • 049f183d27 update actions/checkout to v3 BilligsterUser 2023-03-02 13:15:05 +01:00
  • f9e3119ab4 package.json add License field BilligsterUser 2023-03-02 13:19:01 +01:00
  • f992c9c967 cleanup lib/ so we can only publish the esm file under esm/ v1.7.4 v1.7.3 fiatjaf 2023-03-02 08:36:43 -03:00
  • dbf625d6ac fix justfile emit-types. fiatjaf 2023-03-02 08:27:44 -03:00
  • 8622bd11dd replace test relays. fiatjaf 2023-03-02 08:24:50 -03:00
  • 0970eee70f remove log from test. fiatjaf 2023-03-02 08:22:30 -03:00
  • 086f8830e3 catch fetch error on nip05. v1.7.2 fiatjaf 2023-03-02 08:20:13 -03:00
  • e48d722227 Fixed readme for publishing with pool Egge 2023-03-01 18:41:49 +01:00
  • 0d77013aab chore(dx): add format script 💅 (#128) Fernando López Guevara 2023-02-28 12:19:10 -03:00
  • 4c415280aa ci emit types on publish BilligsterUser 2023-02-27 23:57:57 +01:00
  • 4188aaf7c8 just type-check fiatjaf 2023-02-27 19:53:12 -03:00
  • 673f4abab8 add type definition BilligsterUser 2023-02-27 23:40:16 +01:00
  • bcefaa0757 update repo url BilligsterUser 2023-02-27 23:11:21 +01:00
  • 649af36a86 one more nip19 test. fiatjaf 2023-02-27 16:10:09 -03:00
  • 96a6f7af87 ensure kind has type 'number' in validateEvent Simon 2023-02-27 16:46:42 +01:00
  • a4c713efcb fix readme example. fiatjaf 2023-02-27 12:43:23 -03:00
  • 9d345a8f01 configurable list and get timeout on relay. v1.7.1 fiatjaf 2023-02-26 21:23:09 -03:00
  • c362212778 make pool.publish() return a single Pub object. v1.7.0 fiatjaf 2023-02-26 17:44:51 -03:00
  • a8938a3a0f wait a second before failing to send on a not yet connected websocket. v1.6.3 fiatjaf 2023-02-26 16:53:03 -03:00
  • a21329da3f make timeouts configurable for pool. fiatjaf 2023-02-26 16:49:50 -03:00
  • 63f4a49a69 increase pool timeouts. v1.6.2 fiatjaf 2023-02-26 15:05:26 -03:00
  • 27749d91b8 fix nip19: relays TLV items are optional. v1.6.1 fiatjaf 2023-02-26 07:44:00 -03:00
  • 9530849f0a Fix pool sub example michaelhall923 2023-02-25 19:15:03 -05:00
  • b8aa75b6e1 change a map to a forEach. fiatjaf 2023-02-24 09:41:26 -03:00
  • 344762820c handle connection failure on pool according to @chmac. fiatjaf 2023-02-24 09:34:19 -03:00
  • f43d23d344 fix(relay): prevent accesing to ws if it is undefined Fernando López Guevara 2023-02-23 14:43:04 -03:00