diff --git a/.changeset/validate-relay-url.md b/.changeset/validate-relay-url.md deleted file mode 100644 index e820f851e..000000000 --- a/.changeset/validate-relay-url.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"nostream": patch ---- - -fix(settings): validate `info.relay_url` is a usable absolute URL - -`validateSettings()` now rejects a `relay_url` that is not a valid absolute URL, parses with an empty host (scheme-only strings like `localhost:8008`), or uses a protocol other than `ws`/`wss`/`http`/`https`. Previously an invalid value started cleanly and then broke every HTTP request with `500 TypeError: Invalid URL`, including the Admin Console, leaving the bad setting fixable only by editing the file by hand. Found in #824. diff --git a/CHANGELOG.md b/CHANGELOG.md index bb87430ab..9308f681a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # nostream +## 3.4.1 + +### Patch Changes + +- [#825](https://github.com/cameri/nostream/pull/825) [`48fe9c4`](https://github.com/cameri/nostream/commit/48fe9c46489fb500699675c073a8638da28dfd71) Thanks [@chappie-daemon](https://github.com/chappie-daemon)! - fix(settings): validate `info.relay_url` is a usable absolute URL + + `validateSettings()` now rejects a `relay_url` that is not a valid absolute URL, parses with an empty host (scheme-only strings like `localhost:8008`), or uses a protocol other than `ws`/`wss`/`http`/`https`. Previously an invalid value started cleanly and then broke every HTTP request with `500 TypeError: Invalid URL`, including the Admin Console, leaving the bad setting fixable only by editing the file by hand. Found in [#824](https://github.com/cameri/nostream/issues/824). + ## 3.4.0 ### Minor Changes diff --git a/package.json b/package.json index 050fa91b9..6b4a3d11e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nostream", - "version": "3.4.0", + "version": "3.4.1", "packageManager": "pnpm@10.33.0", "private": true, "description": "A Nostr relay written in Typescript.",