Commit Graph
147 Commits
Author SHA1 Message Date
fiatjaf c08bdac7a7 catch usage of global fetch for nodejs.
fixes https://github.com/fiatjaf/nostr-tools/issues/53
2022-12-23 11:36:37 -03:00
rkfgandfiatjaf c5b64404f6 Add limit to filter 2022-12-23 11:29:38 -03:00
adamritterandfiatjaf c7b26fdba2 Don't expose external API to hex representation of mnemoic 2022-12-23 11:01:10 -03:00
fiatjaf ac698ef67d make relay.connect() an awaitable thing. v1.0.0-rc1 2022-12-22 08:53:40 -03:00
fiatjaf 8262a81cb2 make crypto available as a global on nip04 test. v1.0.0-beta2 2022-12-21 17:12:50 -03:00
fiatjaf 26e6da6ba3 we need websocket polyfill on relay tests. 2022-12-21 17:09:00 -03:00
fiatjaf 8aa31bb437 remove websocket-polyfill, instruct nodejs users to install it manually. 2022-12-21 16:23:47 -03:00
fiatjaf 4bd4469357 remove useless readable-stream dependency. 2022-12-21 16:19:59 -03:00
fiatjaf 89ae21f796 remove buffer usage everywhere. 2022-12-21 16:04:09 -03:00
fiatjaf 41a1614d89 remove browserify-cipher, use crypto.subtle for nip04. 2022-12-21 16:04:00 -03:00
fiatjaf 0500415a4e remove all the auto-reconnection code from relay. 2022-12-21 15:31:57 -03:00
fiatjafandGitHub cee4357cab Merge pull request #50 from mmalmi/patch-1 2022-12-21 08:50:29 -03:00
Sandwichandfiatjaf d5cf5930d1 Fix example code in readme, resolves #47 2022-12-21 08:44:52 -03:00
Martti MalmiandGitHub a78e2036aa status code 3 (closed) for un-opened connection 2022-12-21 11:15:36 +02:00
Martti MalmiandGitHub adc1854ac6 relay.status() returns 0 when ws not created 2022-12-21 11:08:10 +02:00
fiatjaf 83148e8bdf fix small things in README. 2022-12-20 22:34:19 -03:00
fiatjaf 364c37cac5 fix autopublishing to npm. v1.0.0-beta 2022-12-20 20:15:43 -03:00
fiatjaf 385cdb4ac6 README examples for nip05 and nip19. 2022-12-20 18:42:24 -03:00
fiatjaf 3f1025f551 nip05.queryProfile() and test. 2022-12-20 18:36:49 -03:00
fiatjaf 482c5affd4 add nip19. 2022-12-20 18:26:30 -03:00
fiatjaf 679ac0c133 fix standalone script URL. 2022-12-20 17:01:35 -03:00
fiatjaf b96159ad36 better publishing built files. v1.0.0-alpha2 2022-12-20 16:56:05 -03:00
fiatjaf 6dede4a688 use semisol relay that has our desired event on test. 2022-12-20 16:26:55 -03:00
fiatjaf 50c8bb72f9 v1.0.0-alpha v1.0.0-alpha 2022-12-20 16:16:59 -03:00
fiatjaf 72781e0eab nip05 typescript fixes. 2022-12-20 16:16:59 -03:00
fiatjaf bf120c1348 relay examples on README. 2022-12-20 16:16:59 -03:00
fiatjaf 3630d377e5 test every commit on github actions. 2022-12-20 16:16:59 -03:00
fiatjaf 53b0091bf4 some fixes on relay.ts and tests. 2022-12-20 15:25:34 -03:00
fiatjaf 1a7cc5f21f updated readme with nicer examples. 2022-12-19 20:13:08 -03:00
fiatjaf 1162935f58 add a bunch of tests. 2022-12-19 20:02:01 -03:00
fiatjaf a49d971f6a reorganize index.ts to use "export *". 2022-12-19 19:51:38 -03:00
fiatjaf 897919be3b get rid of create-hash, use noble hashes. 2022-12-19 19:50:41 -03:00
fiatjaf 39aca167fb build for commonjs, esm and a standalone bundle. 2022-12-19 15:46:31 -03:00
fiatjaf de8bdd8370 fix typescript types everywhere, delete pool.js and refactor relay.js to use event listeners everywhere. 2022-12-18 17:02:19 -03:00
Íñigo Aréjula AísaandGitHub 46a0a342db event fields (#37) 2022-12-17 13:09:25 -03:00
Leo WanderslebandGitHub 4fe2a9c91a use default fetch if in service worker (#23) 2022-12-17 13:08:59 -03:00
fiatjafandGitHub e62b833464 Merge pull request #41 from monlovesmango/cb-api
refactor of cb api
2022-12-17 13:06:30 -03:00
monica 100c77d2aa finalize cb api 2022-12-07 22:26:51 -06:00
Íñigo Aréjula Aísaandfiatjaf 12be5a5338 Fix tag type
I realized that tags were an array of array, if it is correct merge, if im wrong just discard
2022-12-05 16:40:47 -03:00
monica b955ba2a09 initial refactor of cb api 2022-12-04 21:57:15 -06:00
Íñigo Aréjula AísaandGitHub ec805be4ab expose nip 4 functions to TS (#39) 2022-11-30 19:41:10 -03:00
Íñigo Aréjula AísaandGitHub 92fb339afb Update relay.js 2022-11-27 13:57:21 +01:00
Íñigo Aréjula Aísaandfiatjaf f8f125270a fix return value getRelayList 2022-11-26 11:16:20 -03:00
Íñigo Aréjula AísaandGitHub 1b798b2eee Expose relay funcs (#31) 2022-11-25 23:21:33 -03:00
Íñigo Aréjula AísaandGitHub ae717a1a4a Documentation pool.js (#30) 2022-11-25 23:20:22 -03:00
Íñigo Aréjula Aísaandfiatjaf b2015c8fe5 Filter type with optional atributtes 2022-11-25 13:03:45 -03:00
fiatjafandGitHub c5d2e3b037 github action to publish to npm on tag. 2022-11-21 20:26:58 -03:00
fiatjafandGitHub 0ef5d1e19c Merge pull request #27 from monlovesmango/Expose-EOSE-Relay-URL 2022-11-21 20:24:01 -03:00
monlovesmangoandGitHub 7d9d10fdb1 add relay url arg to eoseCb 2022-11-21 16:11:30 -06:00
monlovesmangoandGitHub a1e1ce131a include eoseCb in sub 2022-11-21 16:09:23 -06:00