260 Commits

Author SHA1 Message Date
Jon Staab e0d48a9f1f Bump version 2026-05-28 11:57:52 -07:00
Jon Staab 4137f35cee Bump version 2026-05-11 09:16:05 -07:00
Jon Staab a126907338 Bump version 2026-05-06 13:22:51 -07:00
Jon Staab eb4eae748f Fix css import and timestamp formatting 2026-04-16 11:12:58 -07:00
Jon Staab 00ee93674f Fix formatTimestampRelative for future timestamps 2026-04-16 11:12:58 -07:00
Jon Staab cf14af06e7 Bump version 2026-04-16 11:10:43 -07:00
Jon Staab 5f745359e1 Revert changes to poll 2026-04-02 06:55:59 -07:00
Jon Staab a3da60b898 Bump version 2026-04-01 11:33:47 -07:00
Jon Staab 4b4878f5cc Bump version 2026-03-30 11:39:03 -07:00
Jon Staab a21448c0df Make sure deletes are by the same author 2026-03-23 10:03:52 -07:00
Jon Staab 6d912cd808 Add some commands for setting relays 2026-03-12 08:07:21 -07:00
Jon Staab fa7b6bb526 Add no-text and livekit tag support to rooms 2026-03-06 09:13:47 -08:00
Jon Staab 7f257a3fff Accept iterable in chunk 2026-03-06 09:13:47 -08:00
Jon Staab ddd28508ce Bump version 2026-02-26 13:40:11 -08:00
Jon Staab 1d94221d1b Bump version 2026-02-25 15:32:42 -08:00
Jon Staab f92725b93b Bump version 2026-02-23 15:24:56 -08:00
Jon Staab e2f438799f Make outbox loader useful for non plain replaceables, add tap and bind 2026-02-18 15:27:34 -08:00
Jon Staab 55c75479c1 Version 0.8.4 2026-02-09 17:26:41 -08:00
Jon Staab 119cb6248b Fix task queue 2026-02-09 10:02:02 -08:00
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 c5f3681739 0.8.2 2026-01-26 14:58:46 -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 e77c4d4b3d Add support for blocked relays 2026-01-16 14:44:55 -08:00
Jon Staab 481a1fc5b7 bump version 2026-01-16 10:50:23 -08:00
Jon Staab 09e687ab05 Remove promenade and pomade stuff from signer package 2026-01-13 10:25:29 -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 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 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 52785afb10 Fix some bugs 2025-11-25 14:54:10 -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 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 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
Jon Staab d04284cde8 Bump version 2025-11-06 11:12:04 -08:00
Jon Staab 5345cc1405 Bump version 2025-11-05 11:50:02 -08:00
Jon Staab b0718ec840 Bump version 2025-11-05 09:39:03 -08:00
Jon Staab 2d75d9de6f Bump to 0.6.4 2025-11-04 17:00:37 -08:00
Jon Staab 8426febcdf Memoize some stores, improve room support 2025-11-03 13:26:47 -08:00
Jon Staab 3132b8c59a Make sorting/limit more resilient in repository 2025-10-28 13:23:25 -07:00
Jon Staab e2bdb88cc2 Fix compilation error, add mergeRepositoryUpdates 2025-10-27 10:39:36 -07:00
Jon Staab c386e21321 Bump version 2025-10-24 06:43:31 -07:00
Jon Staab a03a289e93 Improve relay tracking with thunks, add/rename some kinds 2025-10-24 06:41:56 -07:00