bump version

This commit is contained in:
Jon Staab
2026-01-16 10:50:23 -08:00
parent 1947522620
commit 481a1fc5b7
14 changed files with 20 additions and 22 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@welshman", "name": "@welshman",
"private": true, "private": true,
"version": "0.8.0-pre.1", "version": "0.8.0",
"workspaces": [ "workspaces": [
"packages/*" "packages/*"
], ],
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/app", "name": "@welshman/app",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A collection of svelte stores for use in building nostr client applications.", "description": "A collection of svelte stores for use in building nostr client applications.",
@@ -24,7 +24,7 @@
"throttle-debounce": "^5.0.2" "throttle-debounce": "^5.0.2"
}, },
"peerDependencies": { "peerDependencies": {
"@pomade/core": "^0.0.9", "@pomade/core": "^0.0.12",
"@welshman/feeds": "workspace:*", "@welshman/feeds": "workspace:*",
"@welshman/lib": "workspace:*", "@welshman/lib": "workspace:*",
"@welshman/net": "workspace:*", "@welshman/net": "workspace:*",
+1 -10
View File
@@ -113,16 +113,7 @@ export const updateSession = (pubkey: string, f: (session: Session) => Session)
putSession(f(getSession(pubkey))) putSession(f(getSession(pubkey)))
export const dropSession = (_pubkey: string) => { export const dropSession = (_pubkey: string) => {
const $signer = getSigner.pop(getSession(_pubkey)) getSigner.pop(getSession(_pubkey))?.cleanup()
if ($signer instanceof Nip46Signer) {
$signer.broker.cleanup()
}
if ($signer instanceof PomadeSigner) {
$signer.client.rpc.stop()
}
pubkey.update($pubkey => ($pubkey === _pubkey ? undefined : $pubkey)) pubkey.update($pubkey => ($pubkey === _pubkey ? undefined : $pubkey))
sessions.update($sessions => omit([_pubkey], $sessions)) sessions.update($sessions => omit([_pubkey], $sessions))
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/content", "name": "@welshman/content",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A collection of utilities for parsing nostr note content.", "description": "A collection of utilities for parsing nostr note content.",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/editor", "name": "@welshman/editor",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A batteries-included nostr editor.", "description": "A batteries-included nostr editor.",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/feeds", "name": "@welshman/feeds",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "Utilities for building dynamic nostr feeds.", "description": "Utilities for building dynamic nostr feeds.",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/lib", "name": "@welshman/lib",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A collection of utilities.", "description": "A collection of utilities.",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/net", "name": "@welshman/net",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "Utilities for connecting with nostr relays.", "description": "Utilities for connecting with nostr relays.",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/router", "name": "@welshman/router",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A collection of utilities for nostr relay selection.", "description": "A collection of utilities for nostr relay selection.",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/signer", "name": "@welshman/signer",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A nostr signer implemenation supporting several login methods.", "description": "A nostr signer implemenation supporting several login methods.",
+2
View File
@@ -512,4 +512,6 @@ export class Nip46Signer implements ISigner {
this.getPubkey().then(pubkey => this.broker.signEvent(prep(template, pubkey))), this.getPubkey().then(pubkey => this.broker.signEvent(prep(template, pubkey))),
options, options,
) )
cleanup = async () => this.broker.cleanup()
} }
+5
View File
@@ -45,6 +45,7 @@ export interface ISigner {
nip04: EncryptionImplementation nip04: EncryptionImplementation
nip44: EncryptionImplementation nip44: EncryptionImplementation
getPubkey: () => Promise<string> getPubkey: () => Promise<string>
cleanup?: () => Promise<void>
} }
export const decrypt = async (signer: ISigner, pubkey: string, message: string) => export const decrypt = async (signer: ISigner, pubkey: string, message: string) =>
@@ -83,6 +84,10 @@ export class WrappedSigner extends Emitter implements ISigner {
decrypt: async (pubkey: string, message: string) => decrypt: async (pubkey: string, message: string) =>
this.wrapMethod("nip44.decrypt", () => this.signer.nip44.decrypt(pubkey, message)), this.wrapMethod("nip44.decrypt", () => this.signer.nip44.decrypt(pubkey, message)),
} }
async cleanup() {
await this.signer.cleanup?.()
}
} }
export const signWithOptions = ( export const signWithOptions = (
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/store", "name": "@welshman/store",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A collection of utilities based on svelte/store for use with welshman", "description": "A collection of utilities based on svelte/store for use with welshman",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@welshman/util", "name": "@welshman/util",
"version": "0.8.0-pre.1", "version": "0.8.0",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
"description": "A collection of nostr-related utilities.", "description": "A collection of nostr-related utilities.",