Skip to content

Commit

Permalink
early return when encountering an empty-filter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Nov 17, 2024
1 parent db0b637 commit 4dc980c
Show file tree
Hide file tree
Showing 18 changed files with 123 additions and 23 deletions.
5 changes: 0 additions & 5 deletions .changeset/fair-pugs-doubt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-shoes-double.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-rats-pretend.md

This file was deleted.

16 changes: 16 additions & 0 deletions ndk-cache-dexie/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @nostr-dev-kit/ndk-cache-dexie

## 2.5.7

### Patch Changes

- Updated dependencies
- @nostr-dev-kit/ndk@2.10.6

## 2.5.6

### Patch Changes

- Updated dependencies [5939a3e]
- Updated dependencies
- Updated dependencies [f2a0cce]
- @nostr-dev-kit/ndk@2.10.5

## 2.5.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion ndk-cache-dexie/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostr-dev-kit/ndk-cache-dexie",
"version": "2.5.5",
"version": "2.5.7",
"description": "NDK Dexie Cache Adapter",
"license": "MIT",
"docs": "typedoc",
Expand Down
16 changes: 16 additions & 0 deletions ndk-cache-nostr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @nostr-dev-kit/ndk-cache-nostr

## 0.1.6

### Patch Changes

- Updated dependencies
- @nostr-dev-kit/ndk@2.10.6

## 0.1.5

### Patch Changes

- Updated dependencies [5939a3e]
- Updated dependencies
- Updated dependencies [f2a0cce]
- @nostr-dev-kit/ndk@2.10.5

## 0.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion ndk-cache-nostr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostr-dev-kit/ndk-cache-nostr",
"version": "0.1.4",
"version": "0.1.6",
"description": "NDK cache adapter that uses a local nostr relay.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
16 changes: 16 additions & 0 deletions ndk-cache-redis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @nostr-dev-kit/ndk-cache-redis

## 2.1.23

### Patch Changes

- Updated dependencies
- @nostr-dev-kit/ndk@2.10.6

## 2.1.22

### Patch Changes

- Updated dependencies [5939a3e]
- Updated dependencies
- Updated dependencies [f2a0cce]
- @nostr-dev-kit/ndk@2.10.5

## 2.1.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion ndk-cache-redis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostr-dev-kit/ndk-cache-redis",
"version": "2.1.21",
"version": "2.1.23",
"description": "NDK cache adapter for redis.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
16 changes: 16 additions & 0 deletions ndk-svelte-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @nostr-dev-kit/ndk-svelte-components

## 2.3.4

### Patch Changes

- Updated dependencies
- @nostr-dev-kit/ndk@2.10.6

## 2.3.3

### Patch Changes

- Updated dependencies [5939a3e]
- Updated dependencies
- Updated dependencies [f2a0cce]
- @nostr-dev-kit/ndk@2.10.5

## 2.3.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion ndk-svelte-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostr-dev-kit/ndk-svelte-components",
"version": "2.3.2",
"version": "2.3.4",
"description": "",
"license": "MIT",
"type": "module",
Expand Down
20 changes: 20 additions & 0 deletions ndk-svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @nostr-dev-kit/ndk-svelte

## 2.3.1

### Patch Changes

- Updated dependencies
- @nostr-dev-kit/ndk@2.10.6

## 2.3.0

### Minor Changes

- 7bddeff: skip by default, PRE that have been tagged as "deleted"

### Patch Changes

- Updated dependencies [5939a3e]
- Updated dependencies
- Updated dependencies [f2a0cce]
- @nostr-dev-kit/ndk@2.10.5

## 2.2.22

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion ndk-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostr-dev-kit/ndk-svelte",
"version": "2.2.22",
"version": "2.3.1",
"description": "This package provides convenience functionalities to make usage of NDK with Svelte nicer.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
16 changes: 16 additions & 0 deletions ndk-wallet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @nostr-dev-kit/ndk-cache-redis

## 0.3.14

### Patch Changes

- Updated dependencies
- @nostr-dev-kit/ndk@2.10.6

## 0.3.13

### Patch Changes

- Updated dependencies [5939a3e]
- Updated dependencies
- Updated dependencies [f2a0cce]
- @nostr-dev-kit/ndk@2.10.5

## 0.3.12

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion ndk-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostr-dev-kit/ndk-wallet",
"version": "0.3.12",
"version": "0.3.14",
"description": "NDK Wallet",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
14 changes: 14 additions & 0 deletions ndk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @nostr-dev-kit/ndk

## 2.10.6

### Patch Changes

- bump

## 2.10.5

### Patch Changes

- 5939a3e: fix: authed relays weren't reported as connected on connectedRelays
- fix (NDKRelayConnectivity) reconnection Issues
- f2a0cce: add netDebug direction

## 2.10.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion ndk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostr-dev-kit/ndk",
"version": "2.10.4",
"version": "2.10.6",
"description": "NDK - Nostr Development Kit",
"homepage": "https://ndk.fyi",
"documentation": "https://github.com/nostr-dev-kit/ndk/blob/master/docs/modules.md",
Expand Down
3 changes: 2 additions & 1 deletion ndk/src/relay/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ export class NDKRelaySubscription {
const filters = Array.from(this.items.values()).map((item) => item.filters);
if (!filters[0]) {
this.debug("👀 No filters to merge", this.items);
console.trace("No filters to merge");
console.error("BUG: No filters to merge!", this.items);
return [];
}
const filterCount = filters[0].length;

Expand Down

0 comments on commit 4dc980c

Please sign in to comment.