https://github.com/nbd-wtf/nostr-tools/releases/tag/v2.0.0 was released with many changes that will break your app. Congratulations. I am too tired to test this now, so please test it for me and report bugs.
Discussion
I see you love JavaScript, keep going
classic fiatjaf
please leave nostr-tools low-level 😁😁
Vendoring promotion
nip19.decode() on an nsec returns a Uint8Array instead of a hex string. I submitted a pr for this, but it’s a quick fix regardless.