Update docs, bump version

This commit is contained in:
Jon Staab
2025-09-05 09:30:27 -07:00
parent 0382dd479a
commit 8716d1fdb1
16 changed files with 30 additions and 21 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/app",
"version": "0.4.3",
"version": "0.4.4",
"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.3",
"version": "0.4.4",
"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.3",
"version": "0.4.4",
"author": "hodlbod",
"license": "MIT",
"description": "A batteries-included nostr editor.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/feeds",
"version": "0.4.3",
"version": "0.4.4",
"author": "hodlbod",
"license": "MIT",
"description": "Utilities for building dynamic nostr feeds.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/lib",
"version": "0.4.3",
"version": "0.4.4",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities.",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/net",
"version": "0.4.3",
"version": "0.4.4",
"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.3",
"version": "0.4.4",
"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.3",
"version": "0.4.4",
"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.3",
"version": "0.4.4",
"author": "hodlbod",
"license": "MIT",
"description": "A nostr signer implemenation supporting several login methods.",
+5 -5
View File
@@ -42,7 +42,7 @@ describe("Store utilities", () => {
describe("synced", () => {
it("should sync with localStorage", async () => {
const store = await synced({
const store = synced({
key: "testKey",
storage: localStorageProvider,
defaultValue: "default",
@@ -63,7 +63,7 @@ describe("Store utilities", () => {
it("should load existing value from localStorage", async () => {
localStorage.setItem("testKey", JSON.stringify("existing"))
const store = await synced({
const store = synced({
key: "testKey",
storage: localStorageProvider,
defaultValue: "default",
@@ -78,7 +78,7 @@ describe("Store utilities", () => {
describe("getter", () => {
it("should return current store value", async () => {
const store = await synced({
const store = synced({
key: "test",
storage: localStorageProvider,
defaultValue: "initial",
@@ -98,7 +98,7 @@ describe("Store utilities", () => {
describe("withGetter", () => {
it("should add getter to writable store", async () => {
const store = withGetter(
await synced({
synced({
key: "test",
storage: localStorageProvider,
defaultValue: "initial",
@@ -117,7 +117,7 @@ describe("Store utilities", () => {
describe("throttled", () => {
it("should throttle updates", async () => {
const mockFn = vi.fn()
const store = await synced({
const store = synced({
key: "test",
storage: localStorageProvider,
defaultValue: 0,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/store",
"version": "0.4.3",
"version": "0.4.4",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities based on svelte/store for use with welshman",
+1 -2
View File
@@ -40,8 +40,7 @@ export interface SyncedConfig<T> {
export const synced = <T>({key, storage, defaultValue}: SyncedConfig<T>) => {
const store = writable<T>(defaultValue) as Synced<T>
const syncPromise = sync({key, store, storage})
store.ready = syncPromise
store.ready = sync({key, store, storage})
return store
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/util",
"version": "0.4.3",
"version": "0.4.4",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of nostr-related utilities.",