Commit Graph

  • 8e932f0c5a Merge pull request #295 from AsaiToshiya/patch-1 Alex Gleason 2023-09-10 22:59:46 -05:00
  • f9a048679f Improve example for finishEvent Asai Toshiya 2023-09-11 12:53:25 +09:00
  • 6db8b94275 nip13: add minePow function Alex Gleason 2023-09-10 13:40:57 -05:00
  • 13bc2ad5a8 trick typescript into accepting our types. v1.15.0 fiatjaf 2023-09-10 15:44:16 -03:00
  • 55f032d0a4 tag v1.15.0 fiatjaf 2023-09-10 15:16:04 -03:00
  • c890e29290 nip13: use a simpler implementation Alex Gleason 2023-09-10 10:51:50 -05:00
  • c18f050468 relay: sub.events async iterator Alex Gleason 2023-09-09 14:57:49 -05:00
  • 401b9c7864 Make TypeScript >= 5.0.0 an optional peer dependency Alex Gleason 2023-09-03 13:57:08 -05:00
  • c175f6c804 Merge pull request #289 from alexgleason/verified fiatjaf_ 2023-09-03 15:47:50 -03:00
  • 41265a19f5 event.test: tamper with things in a more evil way Alex Gleason 2023-09-03 12:12:42 -05:00
  • d88761907a verifySignature: set verifiedSymbol to false on failure, DRY return values Alex Gleason 2023-09-02 18:08:09 -05:00
  • 8325d4351e just format Alex Gleason 2023-09-02 17:40:00 -05:00
  • 62bf592d72 finishEvent: return a VerifiedEvent Alex Gleason 2023-09-02 17:36:53 -05:00
  • 54f3bedf38 verifySignature: return false if the id is invalid Alex Gleason 2023-09-02 17:31:39 -05:00
  • 34e0ad8c41 Add a symbol to verified events Alex Gleason 2023-09-02 14:18:43 -05:00
  • e9eac28bab Added eoseSubTimeout to pool's SubscriptionOptions (#284) Egge 2023-09-01 12:50:12 +02:00
  • 85035d61f2 Merge pull request #287 from alexgleason/prettier fiatjaf_ 2023-09-01 07:48:06 -03:00
  • cf46560619 ci: ensure just is available to the runner Alex Gleason 2023-08-31 13:52:56 -05:00
  • e7aa23cb1d README: add a note about typescript 5.0 Alex Gleason 2023-08-31 13:51:17 -05:00
  • 5977d68ec2 nip98.test: remove outdated/failing test Alex Gleason 2023-08-31 13:47:16 -05:00
  • 48767d382d relay.test: increase querying timeout to 10s Alex Gleason 2023-08-31 13:45:24 -05:00
  • 718032022c just format Alex Gleason 2023-08-31 13:42:15 -05:00
  • 2a70bb18ff pool: use triple-equals Alex Gleason 2023-08-31 13:41:40 -05:00
  • 9effe807d1 filter: remove unused import for Kind Alex Gleason 2023-08-31 13:41:25 -05:00
  • 899c2bd0dc eslint: remove conflicting generator-star-spacing rule Alex Gleason 2023-08-31 13:41:06 -05:00
  • 918d514a25 Upgrade all eslint deps Alex Gleason 2023-08-31 13:37:45 -05:00
  • 48cb9046c4 Add eslint-config-prettier to solve conflicts between prettier and eslint Alex Gleason 2023-08-31 13:27:28 -05:00
  • 864dd28b26 justfile: improve lint/format commands Alex Gleason 2023-08-31 13:25:30 -05:00
  • fa085367c9 Add eslint to just format Alex Gleason 2023-08-31 13:22:43 -05:00
  • 350951b88e Add eslint to just lint Alex Gleason 2023-08-31 13:21:10 -05:00
  • c6133f7160 ci: run prettier on every commit Alex Gleason 2023-08-31 13:14:16 -05:00
  • 470512bbeb prettier: increase printWidth, enable bracketSpacing, alphabetize Alex Gleason 2023-08-31 13:00:50 -05:00
  • c3acb82464 Upgrade Prettier to v3.0.3 Alex Gleason 2023-08-31 12:59:54 -05:00
  • fc23d05764 Merge pull request #283 from jiftechnify/fix-code-samples Alex Gleason 2023-08-27 12:14:32 -05:00
  • 8296ce897c fix a code sample in README - add pool.close() usage jiftechnify 2023-08-28 01:54:33 +09:00
  • 3ca78c0e13 fix code samples in README jiftechnify 2023-08-28 01:47:35 +09:00
  • 837a05e54d Add kinds module to classify events by kind Alex Gleason 2023-08-26 13:32:15 -05:00
  • 32fd25556b added new event kind 1063 v1.14.2 ffaex 2023-08-21 15:01:15 +00:00
  • 0925f5db81 add batchedList method to SimplePool Sepehr Safari 2023-08-21 15:07:29 +03:30
  • bce976fecd get rid of httpmethod enum. fiatjaf 2023-08-16 14:07:26 -03:00
  • 45e479d7aa let it throw. fiatjaf 2023-08-16 13:59:31 -03:00
  • b92407b156 nip44 updates (#278) Jon Staab 2023-08-16 09:53:37 -07:00
  • 2431896921 fix(nip98): Add support for HEAD, PUT, CONNECT, OPTIONS, TRACE and PATCH http methods Pierre Buyle 2023-08-14 19:02:30 -04:00
  • d13eecad4a Add support for nip44 Jonathan Staab 2023-08-11 17:18:00 -07:00
  • df6f887d7e Event, Filter: allow any kind number Fixes https://github.com/nbd-wtf/nostr-tools/issues/275 Alex Gleason 2023-08-12 17:11:42 -05:00
  • e00362e7c9 Filter: let tag queries be undefined Alex Gleason 2023-08-12 12:25:55 -05:00
  • 9efdd16e26 fix check for undefined ws fiatjaf 2023-08-11 07:09:39 -03:00
  • de7e128818 Merge pull request #267 from Airtune/nip98-extract-pubkey Alex Gleason 2023-08-08 08:48:29 -05:00
  • 4978c858e7 Update nip98.ts examples Airtune 2023-08-08 02:45:23 -04:00
  • 16c7ae2a70 +nip98.unpackEventFromToken +nip98.validateEvent Airtune 2023-08-07 22:16:23 -04:00
  • 3368e8c00e bump minor version because of the breaking change on publish() v1.14.0 fiatjaf 2023-07-31 23:05:31 -03:00
  • e5a3ad9855 Export nip28 functions in index.ts and bump version (#265) Airtune 2023-07-31 22:04:45 -04:00
  • 03185c654b Create nip28.ts and nip28.test.ts (#264) Airtune 2023-07-31 07:29:45 -04:00
  • 9d690814ca turn .publish() into a normal async function returning a promise. fiatjaf 2023-07-30 12:19:11 -03:00
  • 17590cce91 tag v1.13.1 v1.13.1 fiatjaf 2023-07-23 10:15:00 -03:00
  • ee9f37e192 Update package.json to upgrade scure/bip39 (#254) Pavan Joshi 2023-07-23 18:11:53 +05:30
  • c1848d78a0 tag v1.13.0 v1.13.0 fiatjaf 2023-07-17 13:12:04 -03:00
  • 81776ba811 fix(nip98): add export Dolu 2023-07-17 13:58:43 +02:00
  • 915d6d729b feat(nip98): add getToken and validateToken Dolu 2023-07-17 13:36:45 +02:00
  • 1a23f5ee01 keep up with the latest specs for since/until filter jiftechnify 2023-07-15 11:51:28 +09:00
  • fec40490a2 Merge pull request #249 from alexgleason/fix-nip27-type Alex Gleason 2023-07-13 11:02:33 -05:00
  • bb3e41bb89 Also remove failing nip05 test due to server down (this should be mocked) Alex Gleason 2023-07-13 10:57:30 -05:00
  • 27b971eef3 Fix nip27 type Alex Gleason 2023-07-13 10:48:22 -05:00
  • 0041008b22 Add an option to disable seenOn futpib 2023-07-06 11:54:34 +04:00
  • ae5bf4c72c Fix with "wordlists/english.js" Details are here: https://github.com/nbd-wtf/nostr-tools/issues/25 Perlover 2023-07-04 20:05:19 +02:00
  • 75fc836cf6 Merge pull request #241 from alexgleason/nip19-cool-type Alex Gleason 2023-07-02 12:22:04 -05:00
  • 70b025b8da nip19: use a DRY type Alex Gleason 2023-07-01 22:42:00 -05:00
  • c9bc702d90 nip19: use template literal types Alex Gleason 2023-07-01 21:12:28 -05:00
  • 7652318185 Fix nip27 test Alex Gleason 2023-06-29 13:28:59 -05:00
  • d81a2444b3 release v1.12.1 v1.12.1 fiatjaf 2023-06-29 15:25:32 -03:00
  • 7507943253 Fix nip27.matchAll crash on invalid nip19 Alex Gleason 2023-06-29 13:18:09 -05:00
  • b9a7f814aa Update Kind for ProfileBadge and BadgeDefinition PMK 2023-06-20 18:34:48 +00:00
  • 0e364701da link to ndk and snort system. fiatjaf 2023-06-17 08:37:20 -03:00
  • a55fb8465f mergeFilters() v1.12.0 fiatjaf 2023-06-09 23:00:57 -03:00
  • 472a01af6a fix infinite loop bug caused by malformed TLVs on nip19. v1.11.2 fiatjaf 2023-06-08 10:33:15 -03:00
  • bb5acfc197 Merge pull request #214 from Egge7/messagequeue fiatjaf_ 2023-05-20 08:20:56 -03:00
  • 1c6f39e4ae v1.11.1 v1.11.1 fiatjaf 2023-05-11 06:51:38 -03:00
  • 5b15237b95 replace ArrayList with Queue Egge 2023-05-16 17:16:38 +02:00
  • 4184609a00 added test cases for MessageQueue Egge 2023-05-13 09:44:52 +02:00
  • 97287cad74 comply with eslint config Egge 2023-05-13 09:44:41 +02:00
  • fa21f71ab5 added queue classes Egge 2023-05-12 23:20:03 +02:00
  • 08885ab8da Refactor imports: use file extension, improve tree shaking, update tests Alex Gleason 2023-05-12 11:00:14 -05:00
  • 9f896479d0 update package.json to export declarations Egge 2023-05-10 22:34:51 +02:00
  • 82caa2aad9 Use buildEvent function in more places Alex Gleason 2023-05-10 16:20:27 -05:00
  • 67a8ee23ce Don't build before test (??) Alex Gleason 2023-05-10 16:11:43 -05:00
  • 18e8227123 Convert all tests to TypeScript Alex Gleason 2023-05-10 16:10:19 -05:00
  • 64caef9cda Convert nip05 test to typescript Alex Gleason 2023-05-10 14:46:34 -05:00
  • 6a07d2d9d3 nip05: fix not calling underscored fetch Alex Gleason 2023-05-07 12:02:55 -05:00
  • 341ccc5ac5 nip05: move NIP05Result to the bottom, add another test Alex Gleason 2023-05-07 10:43:43 -05:00
  • d2a9af2586 nip05 refactoring Alex Gleason 2023-05-06 21:40:28 -05:00
  • 5d92be05bb run prettier on tests. fiatjaf 2023-05-07 21:18:12 -03:00
  • 03cc18d53b bring back @noble/curves instead of @noble/secp256k1. Paul Miller 2023-04-14 16:26:33 +00:00
  • ac7598b5e3 Fix reposts without p tag not parsed futpib 2023-05-07 14:40:57 +04:00
  • 424449c773 Add NIP-18 utils futpib 2023-05-07 14:12:09 +04:00
  • ab6abe6815 Improve types of filter.ts Alex Gleason 2023-05-06 18:30:50 -05:00
  • 30fd6b6215 nip57: use Kind enum instead of using the number directly Alex Gleason 2023-05-06 18:03:00 -05:00
  • 8a53b3b8b3 Improve event types Alex Gleason 2023-05-06 16:51:23 -05:00
  • d0bd599ce8 Infer relay event types from filter Alex Gleason 2023-05-06 18:31:47 -05:00
  • 1cbb62e6b9 Move BECH32_REGEX to nip19.ts Alex Gleason 2023-05-03 14:54:03 -05:00
  • 977316915b Fix subtle inconsistency with NIP-04 in the decryption example Luka Dover 2023-05-03 12:39:09 +01:00