chore(deps): bump nostr-tools to ^2.23.3 to match lnbits #63
No reviewers
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bump-nostr-tools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Align
nostr-toolswith the version lnbits pins (^2.23.3, resolves to2.23.5at install time, up from2.15.0). Same library version across both ends eases the path to Nostr-native transport onceaiolabs/lnbitsPR #4 lands.Breaking surface in webapp code
Only one:
SimplePool.subscribeMany()dropped theFilter[]form. A single subscription now takes oneFilter, and multi-filter REQs go throughsubscribeMap()(commit c9ff51e upstream).Fix: new private
RelayHub.poolSubscribe(relays, filters, params)adapter routes single-filter throughpool.subscribe()and multi-filter throughpool.subscribeMap()(cartesian over relays × filters so each relay still receives every filter in one REQ). The externalRelayHub.subscribe(config: SubscriptionConfig)API is unchanged — no downstream module touches.Other 2.15 → 2.23 surface that doesn't affect us
Eventis now atypealias forNostrEvent; nointerface ... extends Eventusage in the codebase, so harmless.nip04,nip19,nip59,finalizeEvent,EventTemplate,Filter,getPublicKey,generateSecretKey— signatures stable.enablePing()/enableReconnect()/AbortSignal/maxWaitForConnection— left off. RelayHub already has its own VisibilityService-driven reconnect; mixing the two is a follow-up worth doing carefully.Peer-dep blast radius
@noble/{ciphers,curves,hashes}and@scure/*step from 1.x to 2.x with this bump.pnpm why @noble/hashesshowsnostr-toolsis the only consumer in the lockfile — single 2.0.1 resolution, no duplicate-version split.Test plan
pnpm installcleanpnpm run build(vue-tsc + Vite) greenpnpm why @noble/hashesshows single 2.x versionpnpm run devboots;curl localhost:5173/→ 200subscribeManyrefactor)nip04.encrypt/decryptandfinalizeEventwith Uint8Array privkey)nip59.unwrapEvent)Don't merge until browser smoke passes on
aio-demoper the webapp release flow (dev → staging → main).Follow-ups (separate PRs)
pool.enableReconnect()and retire RelayHub's manual reconnect path if the two prove equivalent.hexToUint8Array()re-implementations across modules ontosrc/lib/utils/crypto.ts.can't test out feed module yet cause it's not present in the webapp at the moment. not going to bother with the chat since i have to update it to NIP-17 anyway