Fix list loading in feeds hanging and pagination in feeds with since/until

This commit is contained in:
Jon Staab
2025-07-25 11:04:28 -07:00
parent 16ca2b53ac
commit dc9a873d92
16 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/app",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of svelte stores for use in building nostr client applications.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/content",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities for parsing nostr note content.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/editor",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "A batteries-included nostr editor.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/feeds",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "Utilities for building dynamic nostr feeds.",
+3 -1
View File
@@ -267,6 +267,7 @@ export class FeedCompiler {
const eventsByAddress = new Map<string, TrustedEvent>()
await requestPage({
autoClose: true,
signal: this.options.signal,
context: this.options.context,
filters: getIdFilters(addresses),
@@ -302,9 +303,10 @@ export class FeedCompiler {
await Promise.all(
labelItems.map(({mappings, relays, ...filter}) =>
requestPage({
relays,
autoClose: true,
signal: this.options.signal,
context: this.options.context,
relays,
filters: [{kinds: [1985], ...filter}],
onEvent: (e: TrustedEvent) => events.push(e),
}),
+1 -1
View File
@@ -147,7 +147,7 @@ export class FeedController {
return filterSince < until && filterUntil > since
})
// Modify the filters to define our window
.map((filter: Filter) => ({...filter, until, limit, since}))
.map((filter: Filter) => ({since, until, limit, ...filter}))
if (requestFilters.length === 0) {
return onExhausted?.()
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/lib",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/net",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "Utilities for connecting with nostr relays.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/relay",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "An in-memory nostr relay implementation.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/router",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities for nostr relay selection.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/signer",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "A nostr signer implemenation supporting several login methods.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/store",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities based on svelte/store for use with welshman",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/util",
"version": "0.4.0",
"version": "0.4.1",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of nostr-related utilities.",