Commit Graph

740 Commits

Author SHA1 Message Date
Jon Staab 99c1d09b62 Various optimizations 2026-02-05 17:48:29 -08:00
Jon Staab d2756ead28 Bump version 2026-02-04 10:43:41 -08:00
Jon Staab c7211e3dec Add pubkey file 2026-02-04 10:31:09 -08:00
Jon Staab 69faa1d6a8 Bump nostr editor 2026-02-04 10:30:06 -08:00
Jon Staab debc3080c3 Fix deleted event handling in repository stores 2026-02-03 17:39:00 -08:00
Jon Staab c5f3681739 0.8.2 2026-01-26 14:58:46 -08:00
Jon Staab a5a22b273e Add deriveDeduplicatedByValue 2026-01-26 14:57:49 -08:00
Jon Staab 1ce053b26f Stringify supported nips 2026-01-26 10:08:37 -08:00
Jon Staab 1c0204c17c Add switch_relays to nip 46 signer 2026-01-20 12:56:17 -08:00
Jon Staab 414854a392 Add commands for setting relay lists 2026-01-16 16:22:16 -08:00
Jon Staab e77c4d4b3d Add support for blocked relays 2026-01-16 14:44:55 -08:00
Jon Staab 79a5c0104e Refine outbox loader 2026-01-16 12:32:13 -08:00
Jon Staab 7a3af853c5 Fix relay quality checking 2026-01-16 12:04:17 -08:00
Jon Staab 481a1fc5b7 bump version 2026-01-16 10:50:23 -08:00
Jon Staab 56ac4c3bee Make svelte peer dependency more permissive 2026-01-13 13:11:42 -08:00
Jon Staab 09e687ab05 Remove promenade and pomade stuff from signer package 2026-01-13 10:25:29 -08:00
Jon Staab 0728910d63 Switch stuff to peer dependencies 2026-01-09 09:06:14 -08:00
Jon Staab cd7644d7c3 Add some logging to failed signing 2026-01-08 10:08:54 -08:00
Jon Staab c850ab405c Add ping policy 2026-01-06 21:18:15 -08:00
Jon Staab de9d137b57 Make outbox loader more aggressive 2026-01-06 16:49:21 -08:00
Jon Staab 72194fb959 Time out signing, rework signer log 2026-01-06 15:35:30 -08:00
Jon Staab a7aa15d527 Add helper for deriving events directly 2026-01-06 13:36:11 -08:00
Jon Staab d5724fbdf2 remove fetch relay via dufflepud 2026-01-06 11:28:44 -08:00
Jon Staab cee6ec1124 remove old css 2026-01-06 11:06:24 -08:00
Jon Staab 282b20c460 Add pomade signer 2026-01-06 08:01:01 -08:00
Jon Staab e9b1172d15 Add doLet util 2025-12-17 17:43:35 -08:00
Jon Staab 780148a31e Add a few utils, fix relay fetching 2025-12-12 13:28:48 -08:00
Jon Staab 483fff2fbb Bump version to 0.7.1 2025-12-05 09:47:08 -08:00
Jon Staab 2f6875cca6 Fix zapper loading 2025-12-05 09:44:21 -08:00
Jon Staab d81ec62d2b Add since to reqs that get re-opened to avoid re-downloading and gaps in active subscriptions. Also add some getters for event stores and event sort utils 2025-12-04 15:16:56 -08:00
Jon Staab 7b96e52349 Remove debug code 2025-12-04 13:24:05 -08:00
Jon Staab 36997c127f Add fromPromenade method to Nip46Bunker 2025-12-04 11:31:02 -08:00
Jon Staab 2381c29799 Bump version to 0.7.0 2025-12-02 13:18:38 -08:00
Jon Staab 351b60631e Move key stuff to util, add pow util 2025-12-02 13:15:24 -08:00
Jon Staab 6da8e6c654 Make it easier to link nostr editor 2025-11-25 16:32:59 -08:00
Jon Staab 52785afb10 Fix some bugs 2025-11-25 14:54:10 -08:00
Jon Staab 92af4dcfde Clean up user data a tad 2025-11-25 14:19:11 -08:00
Jon Staab 250f5c772f Fix some bugs with deriving events by url 2025-11-24 09:52:47 -08:00
Jon Staab 2fec078a5b Update docs, tweak url based event derivation 2025-11-20 15:08:59 -08:00
Jon Staab 6d36f5a912 Migrate collections to new stores, change some conventions 2025-11-19 16:47:17 -08:00
Jon Staab d197acc41e Modify loader, apply changes to app stores 2025-11-19 15:41:56 -08:00
Jon Staab cd553d6f6a Update getter to dynamically switch between modes 2025-11-19 15:15:25 -08:00
Jon Staab 6028c68fe8 Remove collection, make loader standalone 2025-11-19 14:44:59 -08:00
Jon Staab d54923e8f0 Re-work repository derivation 2025-11-19 14:30:54 -08:00
Jon Staab de5695339d 1. throttle (line 1146-1174)
Before: Used recursive setTimeout calls via unpause, creating nested closures and multiple timer contexts.

After:
- Tracks a single timeoutId to manage timer lifecycle
- Eliminates nested closure creation
- Cleaner timer chain when calls are pending

2. batch (line 1204-1227)

Before: Used throttle internally, inheriting its timer overhead.

After:
- Direct timer management without the throttle wrapper
- Single timeoutId tracked explicitly
- Maintains the same semantics (first item processed immediately, rest batched)

3. batcher (line 1235-1259)

Before:
- Created new timer every time queue went from empty to non-empty
- Had unnecessary async in forEach and await r when r was already type U

After:
- Tracks timeoutId to prevent duplicate timer creation
- Only creates timer when queue is truly empty
- Removed unnecessary async/await in result handling
- More efficient error handling (rejects all items at once if length mismatch)

Performance Benefits:

These changes should significantly reduce timer overhead by:
- Fewer timer objects: Only one active timer per throttled/batched function instead of chains
- Less garbage collection: Fewer closure allocations and intermediate objects
- Better memory usage: Explicit timer ID tracking instead of implicit state in closures
2025-11-14 15:29:03 -08:00
Jon Staab 2675f57ebc Fix update for remove method on repository 2025-11-13 14:52:15 -08:00
Jon Staab 24860c9a02 Add prepend util 2025-11-12 11:06:13 -08:00
Jon Staab cc17711dc0 Bump version 2025-11-11 14:06:34 -08:00
Jon Staab e582d46afd Break down relay utils, replace removeNil with removeUndefined 2025-11-11 14:05:30 -08:00
Jon Staab 4c1c138329 Forget about null, use undefined 2025-11-06 12:10:24 -08:00