Skip to content

Releases: jiftechnify/nostr-fetch

v0.17.0

08 Oct 02:34
d8fa160
Compare
Choose a tag to compare

What's Changed

New Feature

Bug fixes

  • Fix event verfiers by @jiftechnify in #342
    • Add check whether event's id matchs with its hash

Full Changelog: v0.16.0...v0.17.0

v0.16.0

04 Oct 09:46
e548cfe
Compare
Choose a tag to compare

What's Changed

New Features

  • add webSocketConstructor to option for NostrFetcher.init() (6335b4d)
  • add eventVerifier to FetcherOptions, to make the event verification logic customizable (75810b3)
    • add noopVerifier for skipping event verification (72cbc17)
  • give up checking tag query key syntax statically (aa9d893)

Improvements

  • allow async-iter fetchers do clean up on early return/break (f79e6ef)
  • fix event ordering; event with lower id comes first if two events have the same created_at (70626e5)
  • drop special treatment for WebSocket close status code 4000 (c3d2586)

Bug Fixes

  • timer leak on aborting fetch (707b9bd)
  • make Filter type compatible with NDK (d9fb6f4)

Deprecations

  • deprecate eventKind constants (edbcc08)
  • deprecate skipVerification & reduceVerification options (6a43d71)
  • rename the option: abortSignal -> signal
    • abortSignal is now deprecated

Full Changelog: v0.15.1...v0.16.0

0.15.1

20 Mar 10:27
b76ebe5
Compare
Choose a tag to compare

What's Changed

  • Fix bug: fetchLatestEventsPerKey never ends with duplicated key by @jiftechnify in #241
  • Update dependencies

Full Changelog: v0.15.0...v0.15.1

0.15.0

05 Jan 15:24
af9082c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.14.1...v0.15.0

0.14.1

14 Dec 15:26
3eac38e
Compare
Choose a tag to compare

Only updated @nostr-fetch/adapter-ndk in this release. Other packages remain unchanged from 0.14.0.

What's Changed

Full Changelog: v0.14.0...v0.14.1

0.14.0

14 Dec 14:33
ab0d3c4
Compare
Choose a tag to compare

What's Changed

  • Check if events returned from relays match filters in REQ by default by @jiftechnify in #158
    • You can disable this feature by setting skipFilterMatchcing option to true.
  • Upgrade supported node version by @jiftechnify in #144
    • nostr-fetch is no longer tested on node v16 and v19. On the other hand, added v21 as new test target.
  • Handle CLOSED message from relays by @jiftechnify in #155
    • When fetchers receive a CLOSED message, they simply abort fetching.
  • Simplify event go-backing algorithm by @jiftechnify in #157
    • Assuming all relays treat time-range filters as "inclusive" (since <= created_at <= until).
  • Upgrade dependencies

Full Changelog: v0.13.1...v0.14.0

0.13.1

30 Oct 08:20
d459346
Compare
Choose a tag to compare

What's Changed

  • Workaround a problem with workerd by @jiftechnify in #126
    • This makes nostr-fetch usable in Cloudflare Workers without any problems!
  • docs: use AbortSignal.timeout in cancelling example by @jiftechnify in #97
  • Upgrade dependencies

Full Changelog: v0.13.0...v0.13.1

0.13.0

01 Sep 16:29
8f84972
Compare
Choose a tag to compare

New Features

  • Improve fetch stats by @jiftechnify in #93
    • Added elapsedTimeMs, shows time elapsed since the start of fetch
    • Added relay status: connection-failed
  • Add ability to fetch latest events as of specified time by @jiftechnify in #94
    • Added asOf option to "fetch latest" fetchers. It takes unixtime and if specified a fetcher fetches latest events as of the time

Bug Fix

  • Fix: matching an error with fetcher backend signal classes by @jiftechnify in #86

Changes to Adapters

  • Fix relay pool adapters by @jiftechnify in #90
    • Bumped minimum supported version for some adaptees (NDK, rx-nostr). See README of each adaptee for detail

Other Changes

Full Changelog: v0.12.2...v0.13.0

0.12.2

24 Jul 16:55
9bea661
Compare
Choose a tag to compare

What's Changed

  • Add kind 30402 by @jiftechnify in #74
  • Fixups before 0.12.2 by @jiftechnify in #77
    • Exported types: FetchFilter and FetchTimeRangeFilter
    • Update the list of standardized event kinds: added 30024 and 30403
    • etc.
  • chore(deps-dev): bump @typescript-eslint/parser from 5.62.0 to 6.1.0 by @dependabot in #76

Full Changelog: v0.12.1...v0.12.2

0.12.1

17 Jul 14:49
3e28f04
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.12.0...v0.12.1