Releases: jiftechnify/nostr-fetch
Releases · jiftechnify/nostr-fetch
v0.17.0
What's Changed
New Feature
- Make NostrFetcher
dispose
-able by @jiftechnify in #344- You can now enjoy explicit resource management with
using
keyword for theNostrFetcher
.
- You can now enjoy explicit resource management with
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
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)
- add
- 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
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
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
What's Changed
- Add adapter for SimplePool in nostr-tools v2 by @jiftechnify in #180
- Restore note for Node.js users by @jiftechnify in #166
Full Changelog: v0.14.1...v0.15.0
0.14.1
Only updated @nostr-fetch/adapter-ndk in this release. Other packages remain unchanged from 0.14.0.
What's Changed
- Bump minimum supported version of NDK by @jiftechnify in #159
Full Changelog: v0.14.0...v0.14.1
0.14.0
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 totrue
.
- You can disable this feature by setting
- 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
).
- Assuming all relays treat time-range filters as "inclusive" (
- Upgrade dependencies
Full Changelog: v0.13.1...v0.14.0
0.13.1
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
New Features
- Improve fetch stats by @jiftechnify in #93
- Added
elapsedTimeMs
, shows time elapsed since the start of fetch - Added relay status:
connection-failed
- Added
- 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
- Added
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
- Add newly defined kinds and missing tag names by @jiftechnify in #91
- Setup pkgzap by @jiftechnify in #78
Full Changelog: v0.12.2...v0.13.0
0.12.2
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
What's Changed
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.62.0 to 6.0.0 by @dependabot in #72
- Fix rx-nostr adapter by @jiftechnify in #73
Full Changelog: v0.12.0...v0.12.1