diff --git a/.changeset/ws-admission-buffer.md b/.changeset/ws-admission-buffer.md deleted file mode 100644 index 2465fac33..000000000 --- a/.changeset/ws-admission-buffer.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"nostream": patch ---- - -fix(relay): handle messages sent immediately after a WebSocket opens - -Attaches a temporary message listener before the awaited connection -rate-limit check, pauses the socket during admission, and buffers early -frames with bounded limits (64 messages / 1 MiB). Once admission succeeds the -adapter is created, buffered frames are replayed in arrival order, and the -socket resumes. Rate-limited connections are still terminated before any -message is processed, and buffer overflow closes with code 1009 instead of -silently dropping frames. Adds regression tests for early-message replay, -rate-limited rejection, and overflow handling. diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a5cf246c..75f17b793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # nostream +## 3.12.1 + +### Patch Changes + +- [#1045](https://github.com/cameri/nostream/pull/1045) [`ccb1c40`](https://github.com/cameri/nostream/commit/ccb1c40c0b2e370d248518d6de505bef2bf57191) Thanks [@Ferryx349](https://github.com/Ferryx349)! - fix(relay): handle messages sent immediately after a WebSocket opens + + Attaches a temporary message listener before the awaited connection + rate-limit check, pauses the socket during admission, and buffers early + frames with bounded limits (64 messages / 1 MiB). Once admission succeeds the + adapter is created, buffered frames are replayed in arrival order, and the + socket resumes. Rate-limited connections are still terminated before any + message is processed, and buffer overflow closes with code 1009 instead of + silently dropping frames. Adds regression tests for early-message replay, + rate-limited rejection, and overflow handling. + ## 3.12.0 ### Minor Changes diff --git a/package.json b/package.json index 78aa5d1f9..18ff68ff5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nostream", - "version": "3.12.0", + "version": "3.12.1", "packageManager": "pnpm@10.33.0", "private": true, "description": "A Nostr relay written in Typescript.",