Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .changeset/ws-admission-buffer.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
Loading