Commit Graph
250 Commits
Author SHA1 Message Date
Eggeandfiatjaf_ 73decbc8e0 added connect to ensureRelay if status != 1 2023-03-06 11:13:08 -03:00
BilligsterUserandfiatjaf_ b3d95cecdd add search field to filter (NIP-50) 2023-03-05 08:08:36 -03:00
ramigsandfiatjaf_ 82228036ef close relay's websocket only if it's in state OPEN 2023-03-04 12:57:50 -03:00
fiatjaf 01435ab9f5 test decode nip19 with relays.
closes https://github.com/nbd-wtf/nostr-tools/issues/147
2023-03-02 21:32:53 -03:00
fiatjaf 63cbc4133a nip05 domain must have a dot. 2023-03-02 21:32:53 -03:00
BilligsterUserandfiatjaf_ 049f183d27 update actions/checkout to v3
fixes ci warning

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
2023-03-02 09:38:10 -03:00
BilligsterUserandfiatjaf_ f9e3119ab4 package.json add License field 2023-03-02 09:34:54 -03:00
fiatjaf f992c9c967 cleanup lib/ so we can only publish the esm file under esm/ v1.7.3 v1.7.4 2023-03-02 08:36:43 -03:00
fiatjaf dbf625d6ac fix justfile emit-types. 2023-03-02 08:27:44 -03:00
fiatjaf 8622bd11dd replace test relays. 2023-03-02 08:24:50 -03:00
fiatjaf 0970eee70f remove log from test. 2023-03-02 08:22:30 -03:00
fiatjaf 086f8830e3 catch fetch error on nip05. v1.7.2 2023-03-02 08:21:17 -03:00
Eggeandfiatjaf_ e48d722227 Fixed readme for publishing with pool 2023-03-01 15:29:24 -03:00
Fernando López GuevaraandGitHub 0d77013aab chore(dx): add format script 💅 (#128) 2023-02-28 12:19:10 -03:00
BilligsterUserandfiatjaf_ 4c415280aa ci emit types on publish 2023-02-27 22:17:52 -03:00
fiatjaf 4188aaf7c8 just type-check 2023-02-27 19:53:12 -03:00
BilligsterUserandfiatjaf_ 673f4abab8 add type definition
fixes #138
2023-02-27 19:51:19 -03:00
BilligsterUserandfiatjaf_ bcefaa0757 update repo url 2023-02-27 19:49:00 -03:00
fiatjaf 649af36a86 one more nip19 test. 2023-02-27 16:10:26 -03:00
Simonandfiatjaf_ 96a6f7af87 ensure kind has type 'number' in validateEvent 2023-02-27 14:22:36 -03:00
fiatjaf a4c713efcb fix readme example.
fixes https://github.com/nbd-wtf/nostr-tools/issues/136
2023-02-27 12:43:24 -03:00
fiatjaf 9d345a8f01 configurable list and get timeout on relay. v1.7.1 2023-02-26 21:23:09 -03:00
fiatjaf c362212778 make pool.publish() return a single Pub object. v1.7.0 2023-02-26 17:44:51 -03:00
fiatjaf a8938a3a0f wait a second before failing to send on a not yet connected websocket. v1.6.3 2023-02-26 16:53:03 -03:00
fiatjaf a21329da3f make timeouts configurable for pool. 2023-02-26 16:50:49 -03:00
fiatjaf 63f4a49a69 increase pool timeouts. v1.6.2 2023-02-26 15:05:26 -03:00
fiatjaf 27749d91b8 fix nip19: relays TLV items are optional. v1.6.1 2023-02-26 07:44:22 -03:00
michaelhall923andfiatjaf_ 9530849f0a Fix pool sub example 2023-02-26 07:43:35 -03:00
fiatjaf b8aa75b6e1 change a map to a forEach. 2023-02-24 09:41:26 -03:00
fiatjaf 344762820c handle connection failure on pool according to @chmac.
fixes https://github.com/nbd-wtf/nostr-tools/issues/130
2023-02-24 09:34:23 -03:00
Fernando López Guevaraandfiatjaf_ f43d23d344 fix(relay): prevent accesing to ws if it is undefined 2023-02-23 15:20:10 -03:00
fiatjaf bf55ad6b5a bump to v1.6.0 v1.6.0 2023-02-20 22:51:49 -03:00
Moe Jangdaandfiatjaf_ 04a46b815c include the exports property in the root package.json to allow node environments to use cjs or esm bundles 2023-02-19 20:54:55 -03:00
Moe Jangdaandfiatjaf_ 165ff44dff include package.json with type: module near esm bundle so that it's usable 2023-02-19 20:54:55 -03:00
BilligsterUserandfiatjaf 7bfd23af3c update close() usage
Signed-off-by: BilligsterUser <billigsteruser@protonmail.com>
2023-02-17 21:07:59 -03:00
fiatjaf 3d93ec8446 remove resolveClose, close() is now fire-and-forget. 2023-02-17 14:51:56 -03:00
fiatjaf 0f841138cd bump to v1.5.0 v1.5.0 2023-02-17 14:31:08 -03:00
fiatjaf 336948b1d1 zap request validator. 2023-02-17 14:30:49 -03:00
Callum Macdonaldandfiatjaf d46794c681 Also fix signEvent() type. 2023-02-17 14:30:27 -03:00
Callum Macdonaldandfiatjaf 93cef5d886 Type unsigned events. fix #117 2023-02-17 14:30:27 -03:00
fiatjaf 2324f9548e fail on null amount on zaprequest creation. 2023-02-16 13:56:47 -03:00
Roland Bewickandfiatjaf f9748d9cc3 doc: fix order of commands to connect to relay 2023-02-16 12:35:13 -03:00
Roland Bewickandfiatjaf 3a22dd3da6 doc: add installation instructions 2023-02-16 12:29:09 -03:00
fiatjaf d13039dc11 finishEvent() takes an EventTemplate and returns an Event. 2023-02-16 11:58:17 -03:00
fiatjaf 95b03902cc add support for naddr. 2023-02-16 11:27:50 -03:00
fiatjaf ab5ea8de36 another nip57 helper and bump version. v1.4.2 2023-02-16 09:29:21 -03:00
fiatjaf a330b97590 partial nip57 support. 2023-02-15 21:06:38 -03:00
fiatjaf 24406b5679 more automatic cleanup of event listeners. 2023-02-15 20:36:22 -03:00
fiatjaf 6dbcc87d93 delete listeners when closing a relay connection. 2023-02-15 20:31:25 -03:00
fiatjaf 0ddcfdce68 remove "seen" event from Pub.
too complicated. if anyone wants this they can do it themselves.
2023-02-15 20:21:29 -03:00