Releases: CodyTseng/nostr-relay-nestjs
Releases · CodyTseng/nostr-relay-nestjs
v2.2.0
v2.1.1
Change Log
- fix: resolve parameterized replaceable events insertion failure by @CodyTseng in #299
Full Changelog: v2.1.0...v2.1.1
v2.1.0
Change Log
- feat: add whitelist and blacklist
- feat: add task to periodically delete expired events
- feat: add a simple metrics dashboard
- feat: optimize tag query
- refactor: replace typeorm with kysely
- chore: update dependencies
Full Changelog: v2.0.0...v2.1.0
v2.0.0
Change Log
- refactor: powered by @nostr-relay/* packages
- feat: enable cors
- feat: change DOMAIN from required to optional environment variable
- perf: optimize filtering by tags
- fix: ensure removal of old replaceable events
Full Changelog: v1.0.0...v1.1.0
Migration
In the previous version, due to indexing errors and some defects, there might be multiple versions of replaceable events. This version improves the indexing and insertion methods to fix this bug. It is necessary to clean up replaceable events before running the current version.
Clean up multiple versions of replaceable events:
WITH duplicates AS (
SELECT id,
ROW_NUMBER() OVER(PARTITION BY kind, author, d_tag_value ORDER BY created_at DESC) AS rn
FROM events
WHERE d_tag_value IS NOT NULL
)
DELETE FROM events
WHERE id IN (SELECT id FROM duplicates WHERE rn > 1)
After completing the cleanup, execute
npm run migration:run
Release 1.0.0
Features
- NIP-01: Basic protocol flow description
- NIP-02: Contact List and Petnames
- NIP-04: Encrypted Direct Message
- NIP-11: Relay Information Document
- NIP-13: Proof of Work
- NIP-22: Event created_at Limits
- NIP-26: Delegated Event Signing
- NIP-28: Public Chat
- NIP-40: Expiration Timestamp
- NIP-42: Authentication of clients to relays
- NIP-50: Keywords filter
Extra Features
- TOP verb