Commit Graph

  • bf55ad6b5a bump to v1.6.0 v1.6.0 fiatjaf 2023-02-20 22:51:49 -03:00
  • 04a46b815c include the exports property in the root package.json to allow node environments to use cjs or esm bundles Moe Jangda 2023-02-19 16:27:52 -06:00
  • 165ff44dff include package.json with type: module near esm bundle so that it's usable Moe Jangda 2023-02-19 16:27:13 -06:00
  • 7bfd23af3c update close() usage BilligsterUser 2023-02-17 22:54:15 +01:00
  • 3d93ec8446 remove resolveClose, close() is now fire-and-forget. fiatjaf 2023-02-17 14:51:56 -03:00
  • 0f841138cd bump to v1.5.0 v1.5.0 fiatjaf 2023-02-17 14:26:13 -03:00
  • 336948b1d1 zap request validator. fiatjaf 2023-02-17 14:23:11 -03:00
  • d46794c681 Also fix signEvent() type. Callum Macdonald 2023-02-17 17:53:41 +01:00
  • 93cef5d886 Type unsigned events. fix #117 Callum Macdonald 2023-02-17 17:41:23 +01:00
  • 2324f9548e fail on null amount on zaprequest creation. fiatjaf 2023-02-16 13:55:40 -03:00
  • f9748d9cc3 doc: fix order of commands to connect to relay Roland Bewick 2023-02-16 20:53:52 +07:00
  • 3a22dd3da6 doc: add installation instructions Roland Bewick 2023-02-16 20:57:29 +07:00
  • d13039dc11 finishEvent() takes an EventTemplate and returns an Event. fiatjaf 2023-02-16 11:58:13 -03:00
  • 95b03902cc add support for naddr. fiatjaf 2023-02-16 11:27:50 -03:00
  • ab5ea8de36 another nip57 helper and bump version. v1.4.2 fiatjaf 2023-02-16 09:29:21 -03:00
  • a330b97590 partial nip57 support. fiatjaf 2023-02-15 21:04:40 -03:00
  • 24406b5679 more automatic cleanup of event listeners. fiatjaf 2023-02-15 20:36:22 -03:00
  • 6dbcc87d93 delete listeners when closing a relay connection. fiatjaf 2023-02-15 20:31:25 -03:00
  • 0ddcfdce68 remove "seen" event from Pub. fiatjaf 2023-02-15 20:21:27 -03:00
  • 87bf349ce8 fill in missing kinds on enum. fiatjaf 2023-02-14 16:04:18 -03:00
  • 54dfc7b972 validate that the event is an object. fiatjaf 2023-02-14 15:18:39 -03:00
  • 32793146a4 remove untilOpen promise that was causing memory leaks when a connection was never opened. v1.4.1 fiatjaf 2023-02-14 11:24:06 -03:00
  • c42cd925ce bump noble-hashes. v1.4.0 fiatjaf 2023-02-13 21:26:30 -03:00
  • 43ccb72476 docs: import SimplePool fix RbnRncn 2023-02-12 11:44:39 +01:00
  • b2b7999517 notice about just. fiatjaf 2023-02-09 22:02:05 -03:00
  • a568afc295 remove this extraneous file. fiatjaf 2023-02-09 22:00:25 -03:00
  • 9bcaed6e60 fix tests, .seenOn() method for pools. fiatjaf 2023-02-09 15:10:42 -03:00
  • 5a9cbbb557 feat(deps): upgrade dependencies Fernando López Guevara 2023-02-09 18:25:10 -03:00
  • d46c5f947c fix tests, .seenOn() method for pools. v1.3.2 fiatjaf 2023-02-09 15:10:42 -03:00
  • e9acc59809 just publish. fiatjaf 2023-02-09 12:09:16 -03:00
  • 18fe9637b9 do not run tests on tag pushes. fiatjaf 2023-02-09 12:08:50 -03:00
  • ff3bf4a51c improvements and fixes on pool. v1.3.1 fiatjaf 2023-02-09 11:58:39 -03:00
  • 7ff97b5488 list() and get() methods. v1.3.0 fiatjaf 2023-02-08 16:37:53 -03:00
  • df169ea42b fix just. v1.2.4 fiatjaf 2023-02-08 15:29:05 -03:00
  • 341f2bcb8d bump version to 1.2.4 fiatjaf 2023-02-08 14:16:20 -03:00
  • b2d1dd2110 a better way to do pubs and subs with SimplePool. fiatjaf 2023-02-08 14:15:29 -03:00
  • 75d7be5a54 use per-subscription alreadyHaveEvent handler instead of per-relay. fiatjaf 2023-02-08 12:37:27 -03:00
  • b5c8255b2f fakejson match subscription id. fiatjaf 2023-02-08 12:14:17 -03:00
  • 4485c8ed5e remove broken globalThis error type. fiatjaf 2023-02-08 11:46:49 -03:00
  • 3710866430 replace package.json scripts with just. fiatjaf 2023-02-08 09:46:26 -03:00
  • da59e3ce90 when in pool, automatically and efficiently deduplicate. fiatjaf 2023-02-08 09:46:05 -03:00
  • cc8e34163d most simple relay pool. v1.2.3 fiatjaf 2023-02-08 08:17:12 -03:00
  • 9082953ede fix error event v1.2.2 gaodeng 2023-02-07 11:38:16 +08:00
  • 61f397463d nip05 supports uppercase Luis Miguel 2023-01-31 14:09:24 +01:00
  • 312b6fd035 add fast insert-into-sorted-list utils. v1.2.1 fiatjaf 2023-01-28 18:07:02 -03:00
  • 7f1bd4f4a8 tag v1.2.0 v1.2.0 fiatjaf 2023-01-22 10:34:04 -03:00
  • 26089ef958 refactor previous commit a little, add fakejson module for simple parsing that doesn't use regex. fiatjaf 2023-01-22 10:32:18 -03:00
  • 2e305b7cd4 incoming message queue, alreadyHaveEvent check, msg.send catch Martti Malmi 2023-01-21 10:20:35 +02:00
  • 51c1a54ddf test every pull request. fiatjaf 2023-01-20 17:00:48 -03:00
  • cb05ee188f increase bech32 max size to 5000. v1.1.2 fiatjaf 2023-01-18 17:31:37 -03:00
  • fa9e169c46 test(nip06): add nip06 jaonoctus 2023-01-17 05:23:01 -03:00
  • bb1e3f2fa6 feat(nip06): add passphrase optional param jaonoctus 2023-01-17 05:17:53 -03:00
  • 160987472f Update README.md David Strayhorn 2023-01-14 01:40:46 -05:00
  • 8b18341ebb Minor typo fix Callum Macdonald 2023-01-09 15:22:13 +01:00
  • 901445dea1 tag v1.1.1 v1.1.1 fiatjaf 2023-01-04 10:16:15 -03:00
  • 91b67cd0d5 fix readme signing example. fiatjaf 2023-01-04 10:14:47 -03:00
  • 1e696e0f3b increase nprofile, encodeBytes, nprofileEncode string length parameter to 1500 bayernator 2023-01-03 19:10:17 +01:00
  • 4b36848b2d fix signing functions to be more strict and correct. fiatjaf 2022-12-29 18:26:18 -03:00
  • 3cb351a5f4 fix typo pseudozach 2022-12-28 02:36:54 -08:00
  • 5db1934fa4 fixed security issue around event verification François-Xavier Thoorens 2022-12-27 17:23:36 +01:00
  • 50c3f24b25 replace two packages with a @scure dependency that already existed. v1.1.0 fiatjaf 2022-12-27 11:26:05 -03:00
  • 39ea47660d use a different relay for tests. v1.0.1 fiatjaf 2022-12-25 16:01:31 -03:00
  • 8071e2f4fa Make opts arg optional for sub method Tristan 2022-12-25 13:30:52 +01:00
  • cc2250da1f Add missing "error" event to on and off type definitions Tristan 2022-12-25 13:43:38 +01:00
  • c37d10bb9d Fix resolveClose rkfg 2022-12-25 01:02:37 +03:00
  • 97e28fdf9a Fix connect/close return types and race condition rkfg 2022-12-24 21:24:15 +03:00
  • 87c0f0d061 tag v1.0.0 v1.0.0 fiatjaf 2022-12-23 20:51:36 -03:00
  • 83c397b839 do event signature and verification synchronously. fiatjaf 2022-12-23 17:32:13 -03:00
  • cd7d1cec48 implement nip26 delegation. fiatjaf 2022-12-23 17:29:46 -03:00
  • 613a843838 Add Kind enum for easier client development (#61) adamritter 2022-12-23 19:38:59 +00:00
  • 74a0d5454a guard against some nonexisting arrays of event listeners. v1.0.0-rc2 fiatjaf 2022-12-23 15:15:19 -03:00
  • c0d1e41424 always recompute the hash when signing. fiatjaf 2022-12-23 15:06:20 -03:00
  • f7e510e1c8 nip05 regex name check. fiatjaf 2022-12-23 15:04:24 -03:00
  • c08bdac7a7 catch usage of global fetch for nodejs. fiatjaf 2022-12-23 11:36:36 -03:00
  • c5b64404f6 Add limit to filter rkfg 2022-12-23 11:11:31 +03:00
  • c7b26fdba2 Don't expose external API to hex representation of mnemoic adamritter 2022-12-23 12:39:19 +00:00
  • ac698ef67d make relay.connect() an awaitable thing. v1.0.0-rc1 fiatjaf 2022-12-22 08:52:34 -03:00
  • 8262a81cb2 make crypto available as a global on nip04 test. v1.0.0-beta2 fiatjaf 2022-12-21 17:12:50 -03:00
  • 26e6da6ba3 we need websocket polyfill on relay tests. fiatjaf 2022-12-21 17:09:00 -03:00
  • 8aa31bb437 remove websocket-polyfill, instruct nodejs users to install it manually. fiatjaf 2022-12-21 16:23:47 -03:00
  • 4bd4469357 remove useless readable-stream dependency. fiatjaf 2022-12-21 16:19:59 -03:00
  • 89ae21f796 remove buffer usage everywhere. fiatjaf 2022-12-21 16:04:09 -03:00
  • 41a1614d89 remove browserify-cipher, use crypto.subtle for nip04. fiatjaf 2022-12-21 16:04:00 -03:00
  • 0500415a4e remove all the auto-reconnection code from relay. fiatjaf 2022-12-21 15:31:57 -03:00
  • cee4357cab Merge pull request #50 from mmalmi/patch-1 fiatjaf 2022-12-21 08:50:29 -03:00
  • d5cf5930d1 Fix example code in readme, resolves #47 Sandwich 2022-12-21 04:05:45 +01:00
  • a78e2036aa status code 3 (closed) for un-opened connection Martti Malmi 2022-12-21 11:15:36 +02:00
  • adc1854ac6 relay.status() returns 0 when ws not created Martti Malmi 2022-12-21 11:08:10 +02:00
  • 83148e8bdf fix small things in README. fiatjaf 2022-12-20 22:34:19 -03:00
  • 364c37cac5 fix autopublishing to npm. v1.0.0-beta fiatjaf 2022-12-20 20:15:43 -03:00
  • 385cdb4ac6 README examples for nip05 and nip19. fiatjaf 2022-12-20 18:42:24 -03:00
  • 3f1025f551 nip05.queryProfile() and test. fiatjaf 2022-12-20 18:36:49 -03:00
  • 482c5affd4 add nip19. fiatjaf 2022-12-20 18:26:30 -03:00
  • 679ac0c133 fix standalone script URL. fiatjaf 2022-12-20 17:01:35 -03:00
  • b96159ad36 better publishing built files. v1.0.0-alpha2 fiatjaf 2022-12-20 16:43:15 -03:00
  • 6dede4a688 use semisol relay that has our desired event on test. fiatjaf 2022-12-20 16:26:55 -03:00
  • 50c8bb72f9 v1.0.0-alpha v1.0.0-alpha fiatjaf 2022-12-20 16:10:39 -03:00
  • 72781e0eab nip05 typescript fixes. fiatjaf 2022-12-20 15:50:01 -03:00
  • 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