Commit Graph

  • 12147d4fee Merge pull request #358 from sepehr-safari/mock-relay-class fiatjaf_ 2024-01-20 08:36:40 -03:00
  • c453bc5ec3 revert nip11.test.ts with a todo flag Sepehr Safari 2024-01-20 11:50:05 +03:30
  • 2017b3cabd Merge branch 'nbd-wtf:master' into mock-relay-class Sepehr Safari 2024-01-20 11:41:27 +03:30
  • fbcfccda01 update nip42.test.ts with new mock relay class Sepehr Safari 2024-01-20 11:31:18 +03:30
  • 0357e035f4 fix nip11 broken test Sepehr Safari 2024-01-20 11:29:59 +03:30
  • dd0014aee3 refactor pool.test.ts and update with new mock relay class Sepehr Safari 2024-01-20 11:29:46 +03:30
  • 2e9798b8ab increase random range for mock relay urls Sepehr Safari 2024-01-20 11:21:29 +03:30
  • 10b800db3a randomize relay urls in mock relays Sepehr Safari 2024-01-20 11:14:57 +03:30
  • dbad25b2fa use new MockRelay class in relay.test.ts Sepehr Safari 2024-01-20 10:41:05 +03:30
  • 829633b0d6 inhance mock relay and refactor to a class Sepehr Safari 2024-01-20 10:40:15 +03:30
  • b1bbcd6c46 use mock relay in nip42 tests Sepehr Safari 2024-01-20 09:57:25 +03:30
  • 6a9940c850 nip29: make relay property mandatory on Group. fiatjaf 2024-01-19 21:23:44 -03:00
  • 9b08550885 some beginnings of nip29 helpers. v2.1.4 fiatjaf 2024-01-19 16:13:00 -03:00
  • 3b81e5e762 use mock relays on pool tests. fiatjaf 2024-01-19 16:12:02 -03:00
  • 8b2b050c0d unify mock-socket interface into a single implementation. fiatjaf 2024-01-19 16:01:06 -03:00
  • d4090dae2b refactor relay test cases with mock websocket Sepehr Safari 2024-01-18 23:27:44 +03:30
  • 49596d24c3 install mock-socket as dev dependency Sepehr Safari 2024-01-18 23:26:43 +03:30
  • ac83eeff1c format with prettier Sepehr Safari 2024-01-18 18:14:12 +03:30
  • 85b741b39a suppress eqeqeq eslint rule Sepehr Safari 2024-01-18 18:04:58 +03:30
  • c69c528ab0 Merge pull request #352 from sepehr-safari/nip99-implementation fiatjaf_ 2024-01-18 11:00:41 -03:00
  • 1aad9ad0bd Merge pull request #350 from sepehr-safari/nip98-enhancement fiatjaf_ 2024-01-18 11:00:28 -03:00
  • f6ed374f2f remove un-used imports Sepehr Safari 2024-01-18 17:16:24 +03:30
  • 6d7ad22677 add test cases for nip99 Sepehr Safari 2024-01-18 17:13:39 +03:30
  • 340a4a6799 implement nip99 Sepehr Safari 2024-01-18 17:13:31 +03:30
  • 5ec136a365 refactor and add more test cases Sepehr Safari 2024-01-17 18:13:10 +03:30
  • 75eb08b170 fix some bugs, refactor to smaller parts, add docs Sepehr Safari 2024-01-17 17:50:48 +03:30
  • 677b679c2c NIP-57: build lnurl in more secure way Alex Gleason 2024-01-15 16:47:57 -06:00
  • 7b79d6a899 nostr-wasm as optional and v2.1.3 v2.1.3 fiatjaf 2024-01-09 16:58:47 -03:00
  • c1efbbd919 Add NIP-40 module for event expiration Alex Gleason 2024-01-09 12:53:33 -06:00
  • 7d58705e9a Fix typo Akiomi Kamakura 2024-01-08 17:05:04 +09:00
  • f1d315632c Sort kinds Akiomi Kamakura 2024-01-08 16:29:57 +09:00
  • 348d118ce4 Add getFilterLimit function Alex Gleason 2024-01-03 16:59:38 -06:00
  • 498c1603b0 nip57: implement "P" tag for sender. v2.1.2 fiatjaf 2024-01-01 11:39:01 -03:00
  • 4cfc67e294 fix yieldThread memory leak Shusui MOYATANI 2023-12-30 18:30:30 +09:00
  • da51418f04 update readme example. fiatjaf 2023-12-27 11:14:18 -03:00
  • 75df47421f v2.1.1 v2.1.1 fiatjaf 2023-12-26 07:57:36 -03:00
  • 1cfe705baf auth() returns a promise that resolves on OK. fiatjaf 2023-12-26 07:56:20 -03:00
  • 566437fe2e nip19: length 0 on TLV is not forbidden. fiatjaf 2023-12-23 19:28:13 -03:00
  • 5d6c2b9e5d nip19: reverse TLV ordering just to keep other implementations honest. fiatjaf 2023-12-23 19:25:31 -03:00
  • a43f2a708c fix problem when required from CommonJS jiftechnify 2023-12-23 17:38:49 +09:00
  • f727058a3a rename benchmark.ts -> benchmarks.ts v2.1.0 fiatjaf 2023-12-22 11:48:07 -03:00
  • 1de54838d3 changed the relay in the test, must also change the event queried for. fiatjaf 2023-12-22 11:46:02 -03:00
  • 703c29a311 fix things so relays tests work. fiatjaf 2023-12-22 11:38:30 -03:00
  • ddf1064da9 adjust benchmarks to be done in a more realistic scenario. fiatjaf 2023-12-22 11:11:04 -03:00
  • f719d99a11 rename this._push to this._onmessage and use it internally. fiatjaf 2023-12-22 10:54:03 -03:00
  • 6152238d65 update nostr-wasm to fix memory leak bug. fiatjaf 2023-12-22 10:53:08 -03:00
  • 9ac1b63994 a test on pool subscribing to many relays, getting many events then closing on eose. fiatjaf 2023-12-22 08:21:58 -03:00
  • 1890c91ae3 comments. fiatjaf 2023-12-22 08:02:39 -03:00
  • 7067b47cd4 remove last remains of pool-pure.ts fiatjaf 2023-12-22 07:51:17 -03:00
  • 397931f847 mention benchmark results in readme. fiatjaf 2023-12-22 06:59:32 -03:00
  • 5d795c291f fix relay.ts imports after 7f11c0c618. fiatjaf 2023-12-22 06:58:01 -03:00
  • 7adbd30799 streamline and improve benchmarks. fiatjaf 2023-12-22 06:57:23 -03:00
  • 83b6dd7ec3 remove pool-wasm.ts that I had forgotten. fiatjaf 2023-12-21 21:04:27 -03:00
  • d61cc6c9bf just benchmark fiatjaf 2023-12-21 20:59:45 -03:00
  • d7dad8e204 reduce spaces on justfile. fiatjaf 2023-12-21 20:50:42 -03:00
  • daaa2ef0a1 bring back relayConnect() as deprecated. fiatjaf 2023-12-21 19:59:12 -03:00
  • 7f11c0c618 unsplit, backwards-compatibility, wasm relay and pool must be configured manually from the abstract classes. fiatjaf 2023-12-21 19:57:28 -03:00
  • a4ae964ee6 split relay and pool into pure and wasm modules. fiatjaf 2023-12-21 17:25:24 -03:00
  • 1f7378ca49 import from core.ts instead of pure.ts whenever possible. fiatjaf 2023-12-21 16:45:32 -03:00
  • d155bcdcda tag v2.0.3 v2.0.3 fiatjaf 2023-12-21 17:27:25 -03:00
  • 919d29363e export kinds Shusui MOYATANI 2023-12-21 01:39:06 +09:00
  • ef12a451be fix ensureRelay Shusui MOYATANI 2023-12-22 02:16:25 +09:00
  • a9acdada19 fix nip-42 test await. v2.0.2 fiatjaf 2023-12-21 08:55:55 -03:00
  • bf3818e434 Add nip44 v2 Jon Staab 2023-12-18 13:48:00 -08:00
  • b7389be5c7 correctly wait until connection to a relay is established jiftechnify 2023-12-20 23:15:33 +09:00
  • 7552a36ff2 Update README.md Asai Toshiya 2023-12-21 00:06:58 +09:00
  • 1b31a27d89 ensure types are emitted when publishing. v2.0.1 fiatjaf 2023-12-20 10:50:00 -03:00
  • 0cc3c02d84 fix fix yield. fiatjaf 2023-12-20 10:49:08 -03:00
  • 8625d45152 fix yield Shusui MOYATANI 2023-12-20 20:40:35 +09:00
  • 8f03116687 tweak readme. fiatjaf 2023-12-19 14:21:04 -03:00
  • e6d1808fda update readme to mention fragment importing and nostr-wasm. fiatjaf 2023-12-19 14:12:38 -03:00
  • 9648de3470 update build process and list of exports. v2.0.0 fiatjaf 2023-12-19 14:01:28 -03:00
  • fe87529646 change tests and nips to use the new api. fiatjaf 2023-12-19 13:49:03 -03:00
  • 1908e1ee0d revamp core api + option to use nostr-wasm instead of noble-curves. fiatjaf 2023-12-19 12:20:31 -03:00
  • 2571db9afc fix validateEvent() signature. fiatjaf 2023-12-19 10:36:54 -03:00
  • f77b9eab10 remove auto-publishing to npm. fiatjaf 2023-12-19 10:33:06 -03:00
  • 71b412657f .subscribe() is not async. fiatjaf 2023-12-19 10:22:29 -03:00
  • 8840c4d8e2 final adjustments and now even the flaky tests that depend on others's relay should pass most of the time. fiatjaf 2023-12-19 10:01:52 -03:00
  • 804403f574 change the way eose and connection timeouts work. fiatjaf 2023-12-18 17:11:16 -03:00
  • 965ebdb6d1 higher time limit for tests on github. fiatjaf 2023-12-18 13:15:19 -03:00
  • c54fd95b3e decrease default eoseTimeout to 3400ms. fiatjaf 2023-12-18 10:07:53 -03:00
  • 7a6c0754ad fix github actions again and put a badge in the readme. fiatjaf 2023-12-18 09:53:44 -03:00
  • 9e4911160a make pool.subscribe_ methods return synchronously. fiatjaf 2023-12-18 09:53:06 -03:00
  • 73c6630cf7 fix github actions test. fiatjaf 2023-12-17 22:49:58 -03:00
  • 88703e9ea2 update readme with new api. fiatjaf 2023-12-17 22:46:35 -03:00
  • 07d208308f remove broken useless tests. fiatjaf 2023-12-17 22:41:22 -03:00
  • f56f2ae709 pool tests and pool.ts tweaks. fiatjaf 2023-12-17 22:19:28 -03:00
  • a0cb2eecae get rid of RelayTrackingPool, merge it into SimplePool. fiatjaf 2023-12-17 19:15:27 -03:00
  • 2a7fd83be8 rewrite binarySearch so it doesn't have to compare values of the same type. fiatjaf 2023-12-17 18:12:56 -03:00
  • 1ebe098805 binarySearch and improve insertEventInto___List() to use that and .splice() fiatjaf 2023-12-17 18:06:58 -03:00
  • 3bfb50e267 rewrite pool.ts to be much simpler. fiatjaf 2023-12-17 11:19:44 -03:00
  • 420a6910e9 fix Queue, tweaks on relay.ts and make relay.test.ts pass. fiatjaf 2023-12-17 00:27:03 -03:00
  • 7a640092d0 rewrite relay.ts to be much simpler. fiatjaf 2023-12-16 18:56:15 -03:00
  • 3d541e537e move to bun and bun:test and remove jest. fiatjaf 2023-12-16 14:53:32 -03:00
  • 1357642575 adjust packages exported. fiatjaf 2023-12-16 13:08:37 -03:00
  • d16f3f77c3 prettify and lint. fiatjaf 2023-12-16 12:39:24 -03:00
  • 0108e3b605 remove nip-44 stuff. fiatjaf 2023-12-16 12:39:07 -03:00
  • 2ac69278ce simplify nip-42. fiatjaf 2023-12-16 11:21:49 -03:00
  • bf31f2eba3 fix nip-47 by removing some useless time checks. fiatjaf 2023-12-16 11:08:51 -03:00
  • 39cfc5c09e cleanup nip-11. fiatjaf 2023-12-16 11:00:46 -03:00