Commit Graph

  • 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
  • 3d767beeb9 NIP-06: Support multiple account private keys derived from seed words (#219) futpib 2023-12-16 17:15:37 +04:00
  • 36e0de2a68 Add NIP-30 module for custom emojis Alex Gleason 2023-07-06 13:08:38 -05:00
  • 9cd4f16e45 nip11 - Types, requestRelayInfos() and tests Giacomo Gagliano 2023-07-10 17:24:19 +02:00
  • 6a07e7c1cc remove the kind type parameter from events and filters. fiatjaf 2023-12-16 10:10:37 -03:00
  • 1939c46eaa turn kinds enum into simple constants in kinds.ts, bring more kind numbers from the nips readme. fiatjaf 2023-12-16 09:27:59 -03:00
  • 93538d2373 update dependencies. fiatjaf 2023-12-16 08:51:43 -03:00
  • 19b3faea17 fix nip05 test. fiatjaf 2023-12-16 08:51:33 -03:00
  • 867aa11d12 remove all the NIP-26 stuff. fiatjaf 2023-12-13 15:24:57 -03:00
  • 4fcf925387 nip04: augment tests with cross-compatibility vectors. fiatjaf 2023-12-02 13:13:16 -03:00
  • 40c5337ef0 Update @noble/curves to 1.2.0 Yijia Su 2023-11-29 01:15:51 +08:00
  • 350d8ec3b6 remove nip06 from main export bundle. fiatjaf 2023-11-13 17:35:32 -03:00
  • c5f3c8052e update to test for body payload and payload hash Josh Remaley 2023-11-13 08:26:22 -06:00
  • dc04d1eb85 update to support body payload and hash Josh Remaley 2023-11-13 08:26:04 -06:00
  • 2fccf0ae48 Update event.ts kind-as-number Alex Gleason 2023-11-06 08:23:35 +09:00
  • 842cba25f3 turn Kind enum into a simple object with numbers. fiatjaf 2023-10-30 08:03:42 -03:00
  • a2a15567b7 clean up test with a minor refactor to delete the ts-ignore William Connatser 2023-10-23 20:19:47 -05:00
  • 318e3f8c88 we don't have to bump to 2.0.0 since this will not break backwards-compatibility. v1.17.0 fiatjaf 2023-10-15 17:58:42 -03:00
  • 894ffff1f0 prefix exported modules with ./ (esbuild requires this apparently). fiatjaf 2023-10-14 07:57:30 -03:00
  • ce11a5fc89 Organize build, allow one entrypoint per file (#305) franzap 2023-10-01 21:20:53 +00:00
  • 5e85bbc2ed Fix nip44 vectors (#308) Paul Miller 2023-09-30 23:46:45 +02:00
  • eb0a9093f2 Implement NIP-44: secure versioned replacement for NIP4 (#221) Paul Miller 2023-09-30 01:43:48 +02:00
  • b7b0817a40 tag v1.16.0 v1.16.0 fiatjaf 2023-09-26 12:21:02 -03:00
  • c73268c4e2 Add kind to nevent decode and encode (#304) Sherry 2023-09-26 23:20:17 +08:00
  • 6874f58c0a apply prettier. fiatjaf 2023-09-26 12:19:01 -03:00
  • e899cc32b7 edit batchedList and add mergeFilters to it Sepehr Safari 2023-09-25 00:31:55 +03:30
  • de72172583 add helper functions for nip-47 Sam Samskies 2023-08-09 18:39:30 -05:00
  • 073dcaafd6 Update README.md Sepehr Safari 2023-09-15 22:43:58 +03:30