Skip to content

Commit

Permalink
chore: bump pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
v0l committed Dec 26, 2024
1 parent e9fd593 commit f8f07a0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions packages/system-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snort/system-react",
"version": "1.6.0",
"version": "1.6.1",
"description": "React hooks for @snort/system",
"main": "dist/index.js",
"module": "src/index.ts",
Expand All @@ -17,7 +17,7 @@
],
"dependencies": {
"@snort/shared": "^1.0.17",
"@snort/system": "^1.6.0",
"@snort/system": "^1.6.1",
"react": "^18.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/system/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snort/system",
"version": "1.6.0",
"version": "1.6.1",
"description": "Snort nostr system package",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/system/src/nostr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface TaggedNostrEvent extends NostrEvent {
/**
* A list of relays this event was seen on
*/
relays: Array<string>;
relays?: Array<string>;

/**
* Additional context
Expand Down
4 changes: 2 additions & 2 deletions packages/system/src/note-collection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SortedMap, dedupe } from "@snort/shared";
import { SortedMap, appendDedupe, dedupe } from "@snort/shared";
import { EventExt, EventType, TaggedNostrEvent } from ".";
import { findTag } from "./utils";
import { EventEmitter } from "eventemitter3";
Expand Down Expand Up @@ -72,7 +72,7 @@ export class KeyedReplaceableNoteStore extends HookedNoteStore {
const existing = this.#events.get(keyOnEvent);
if (a.created_at > (existing?.created_at ?? 0)) {
if (existing) {
a.relays = dedupe([...(existing.relays ?? []), ...a.relays]);
a.relays = appendDedupe(existing.relays, a.relays);
}
this.#events.set(keyOnEvent, a);
changes.push(a);
Expand Down
4 changes: 2 additions & 2 deletions packages/wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snort/wallet",
"version": "0.2.3",
"version": "0.2.4",
"description": "Snort wallet system package",
"type": "module",
"main": "dist/index.js",
Expand All @@ -23,7 +23,7 @@
"@lightninglabs/lnc-web": "^0.3.1-alpha",
"@scure/base": "^1.1.6",
"@snort/shared": "^1.0.17",
"@snort/system": "^1.6.0",
"@snort/system": "^1.6.1",
"debug": "^4.3.4",
"eventemitter3": "^5.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/worker-relay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@snort/worker-relay",
"version": "1.3.0",
"version": "1.3.1",
"description": "A nostr relay in a service worker",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit f8f07a0

Please sign in to comment.