Commit Graph
31 Commits
Author SHA1 Message Date
Kaiandfiatjaf e1f3ffdece fix: format pool.test.ts and relay.test.ts (pre-existing) 2026-04-25 13:41:06 -03:00
arthurfrancaandGitHub 54199504a7 oninvalidevent 2026-02-26 18:08:17 -03:00
b40f59af74 Upgrade to @noble/curves ^2.0.1 and @noble/hashes ^2.0.1
This commit upgrades the noble cryptography dependencies to v2.0.1, which includes:

Breaking changes addressed:
- Updated all @noble imports to include .js extensions (required by v2 ESM-only API)
- Changed @noble/hashes/sha256 to @noble/hashes/sha2.js across 8 files
- Fixed secp256k1 API changes: methods now require Uint8Array instead of hex strings
- Updated schnorr.utils.randomPrivateKey() to schnorr.utils.randomSecretKey()

Files modified (27 total):
- package.json: Bump dependency versions
- Source files (12): pure.ts, nip04.ts, nip06.ts, nip13.ts, nip19.ts, nip44.ts,
  nip49.ts, nip77.ts, nip98.ts, nipb7.ts, utils.ts, wasm.ts
- Test files (14): All corresponding test files updated

Benefits:
- Latest security updates from audited noble libraries
- Smaller bundle sizes from v2 optimizations
- Future-proof ESM-only compatibility
- All tests passing

Co-authored-by: OpenCode <opencode@anomalyco.com>
2026-01-24 09:41:15 -03:00
fiatjaf 85c964be3d enableReconnect() always update the filters to the time of the last received event on each subscription. 2025-12-05 13:24:49 -03:00
Chris McCormickandGitHub bc1294e4e6 Reconnect with exponential backoff flag: enableReconnect (#507)
https://github.com/nbd-wtf/nostr-tools/pull/507
2025-09-30 10:01:07 -03:00
Chris McCormickandGitHub 226d7d07e2 Improvements to enablePing() & tests (#506)
https://github.com/nbd-wtf/nostr-tools/pull/506
2025-09-29 10:41:40 -03:00
fiatjaf c9ff51e278 subscribeMap() now sends multiple filters to the same relay in the same REQ.
because the initiative to get rid of multiple filters went down.
2025-09-20 16:54:12 -03:00
fiatjaf 1437bbdb0f update removed function in test. 2025-05-28 14:52:36 -03:00
Asai Toshiyaandfiatjaf_ 7064e0b828 make it possible to track relays on publish. 2024-10-10 14:45:37 -03:00
fiatjaf 87a91c2daf fix useWebSocketImplementation so it works with pool on nodejs esm. 2024-05-29 13:39:00 -03:00
fiatjaf 0a5eaac088 pool.subscribeManyMap() 2024-04-12 21:50:26 -03:00
fiatjaf 62e5730965 call useWebSocketImplementation() on relay and pool tests. 2024-02-14 13:26:38 -03:00
fiatjaf 2f0ef90bd5 delete some unnecessary code from mock-relay implementation. 2024-01-20 12:48:46 -03:00
Sepehr Safari dd0014aee3 refactor pool.test.ts and update with new mock relay class 2024-01-20 11:29:46 +03:30
fiatjaf 3b81e5e762 use mock relays on pool tests. 2024-01-19 16:12:02 -03:00
Akiomi Kamakuraandfiatjaf_ 7d58705e9a Fix typo 2024-01-08 13:50:48 -03:00
fiatjaf 9ac1b63994 a test on pool subscribing to many relays, getting many events then closing on eose. 2023-12-22 08:21:58 -03:00
fiatjaf 7067b47cd4 remove last remains of pool-pure.ts 2023-12-22 07:51:17 -03:00
fiatjaf 7f11c0c618 unsplit, backwards-compatibility, wasm relay and pool must be configured manually from the abstract classes. 2023-12-21 19:57:28 -03:00
fiatjaf fe87529646 change tests and nips to use the new api. 2023-12-19 13:58:37 -03:00
fiatjaf 8840c4d8e2 final adjustments and now even the flaky tests that depend on others's relay should pass most of the time. 2023-12-19 10:01:52 -03:00
fiatjaf 804403f574 change the way eose and connection timeouts work. 2023-12-18 17:11:16 -03:00
fiatjaf 88703e9ea2 update readme with new api. 2023-12-17 22:46:35 -03:00
fiatjaf f56f2ae709 pool tests and pool.ts tweaks. 2023-12-17 22:19:28 -03:00
fiatjaf 420a6910e9 fix Queue, tweaks on relay.ts and make relay.test.ts pass. 2023-12-17 00:27:03 -03:00
fiatjaf 3d541e537e move to bun and bun:test and remove jest. 2023-12-16 14:53:32 -03:00
William Connatserandfiatjaf_ a2a15567b7 clean up test with a minor refactor to delete the ts-ignore 2023-10-24 08:41:40 -03:00
Alex Gleason 718032022c just format 2023-08-31 13:42:15 -05:00
futpibandfiatjaf_ 0041008b22 Add an option to disable seenOn 2023-07-06 16:38:30 -03:00
Alex Gleasonandfiatjaf_ 08885ab8da Refactor imports: use file extension, improve tree shaking, update tests 2023-05-12 17:03:41 -03:00
Alex Gleasonandfiatjaf_ 18e8227123 Convert all tests to TypeScript 2023-05-10 21:20:27 -03:00