Skip to content

Releases: CodyTseng/nostr-relay-nestjs

v2.2.0

07 Sep 14:48
Compare
Choose a tag to compare

Change Log

  • feat: support WoT
  • feat: support RESTFul API
  • feat: add DATABASE_MAX_CONNECTIONS environment variable
  • fix: disable console logging in production environment
  • chore: update node image

Full Changelog: v2.1.1...v2.2.0

v2.1.1

05 Apr 04:10
Compare
Choose a tag to compare

Change Log

  • fix: resolve parameterized replaceable events insertion failure by @CodyTseng in #299

Full Changelog: v2.1.0...v2.1.1

v2.1.0

16 Mar 10:32
Compare
Choose a tag to compare

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

08 Feb 05:38
Compare
Choose a tag to compare

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