From 636d3912e1d2e7389f343774a1ad8f8ec77df085 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 11 Nov 2024 16:41:15 +0100 Subject: [PATCH] Release 0.8.0 - Fix native performance bug --- CHANGELOG.md | 10 +++++++--- Cargo.lock | 2 +- Cargo.toml | 2 +- ewebsock/Cargo.toml | 2 +- scripts/generate_changelog.py | 19 ++++++++++++++----- 5 files changed, 24 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 796b3e3..1368d8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,23 @@ ## [Unreleased](https://github.com/rerun-io/ewebsock/compare/latest...HEAD) -## [0.7.0]((https://github.com/rerun-io/ewebsock/compare/0.6.0...0.7.0) - 2024-10-10 +## 0.8.0 - 2024-11-11 - Fix native performance bug +* Fix blocking receiver sleeping after every read [#48](https://github.com/rerun-io/ewebsock/pull/48) by [@jprochazk](https://github.com/jprochazk) + + +## [0.7.0](https://github.com/rerun-io/ewebsock/compare/0.6.0...0.7.0) - 2024-10-10 * Fix crash when error_event does not have "message" or "error" fields [#37](https://github.com/rerun-io/ewebsock/pull/37) (thanks [@romamik](https://github.com/romamik)!) * Add `Options::additional_headers` and `subprotocols` [#27](https://github.com/rerun-io/ewebsock/pull/27) (thanks [@Its-Just-Nans](https://github.com/Its-Just-Nans)!) * Update to `tungstenite` 0.23 [#39](https://github.com/rerun-io/ewebsock/pull/39) (thanks [@Its-Just-Nans](https://github.com/Its-Just-Nans)!) * Add support for tungstenite 0.24 [#46](https://github.com/rerun-io/ewebsock/pull/46) -## [0.6.0]((https://github.com/rerun-io/ewebsock/compare/0.5.0...0.6.0) - 2024-05-21 +## [0.6.0](https://github.com/rerun-io/ewebsock/compare/0.5.0...0.6.0) - 2024-05-21 * Allow closing the connecting by returning `ControlFlow::Break` [#33](https://github.com/rerun-io/ewebsock/pull/33) * Update MSRV to Rust 1.76 [#35](https://github.com/rerun-io/ewebsock/pull/35) -## [0.5.0]((https://github.com/rerun-io/ewebsock/compare/0.4.1...0.5.0) - 2024-02-26 +## [0.5.0](https://github.com/rerun-io/ewebsock/compare/0.4.1...0.5.0) - 2024-02-26 * Add `Options` for controlling max frame size of incoming messages - ([#29](https://github.com/rerun-io/ewebsock/pull/29)) diff --git a/Cargo.lock b/Cargo.lock index 4ae67bb..972930f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1124,7 +1124,7 @@ dependencies = [ [[package]] name = "ewebsock" -version = "0.7.0" +version = "0.8.0" dependencies = [ "async-stream", "document-features", diff --git a/Cargo.toml b/Cargo.toml index 7ebbb03..f160a72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ members = ["ewebsock", "example_app", "echo_server"] [workspace.dependencies] -ewebsock = { version = "0.7.0", path = "ewebsock", default-features = false } +ewebsock = { version = "0.8.0", path = "ewebsock", default-features = false } async-stream = "0.3" document-features = "0.2" diff --git a/ewebsock/Cargo.toml b/ewebsock/Cargo.toml index 6bd3cfd..7496e8e 100644 --- a/ewebsock/Cargo.toml +++ b/ewebsock/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ewebsock" -version = "0.7.0" +version = "0.8.0" authors = ["Emil Ernerfeldt "] description = "WebSocket client that works natively and on the web (WASM)" edition = "2021" diff --git a/scripts/generate_changelog.py b/scripts/generate_changelog.py index 60ad831..b98d945 100755 --- a/scripts/generate_changelog.py +++ b/scripts/generate_changelog.py @@ -88,11 +88,18 @@ def fetch_pr_info(pr_number: int) -> Optional[PrInfo]: def get_commit_info(commit: Any) -> CommitInfo: - match = re.match(r"(.*) \(#(\d+)\)", commit.summary) - if match: + # Squash-merge commits: + if match := re.match(r"(.*) \(#(\d+)\)", commit.summary): title = str(match.group(1)) pr_number = int(match.group(2)) return CommitInfo(hexsha=commit.hexsha, title=title, pr_number=pr_number) + + # Normal merge commits: + elif match := re.match(r"Merge pull request #(\d+) from (.*)", commit.summary): + title = str(match.group(2)) + pr_number = int(match.group(1)) + return CommitInfo(hexsha=commit.hexsha, title=title, pr_number=pr_number) + else: return CommitInfo(hexsha=commit.hexsha, title=commit.summary, pr_number=None) @@ -111,7 +118,7 @@ def print_section(crate: str, items: list[str]) -> None: print() -def commit_range(new_version: str) -> str: +def calc_commit_range(new_version: str) -> str: parts = new_version.split(".") assert len(parts) == 3, "Expected version to be on the format X.Y.Z" major = int(parts[0]) @@ -144,8 +151,10 @@ def main() -> None: parser.add_argument("--version", required=True, help="The version of the new release, e.g. 0.42.0") args = parser.parse_args() + commit_range = calc_commit_range(args.version) + repo = Repo(".") - commits = list(repo.iter_commits(commit_range(args.version))) + commits = list(repo.iter_commits(commit_range)) commits.reverse() # Most recent last commit_infos = list(map(get_commit_info, commits)) @@ -201,7 +210,7 @@ def main() -> None: print(f"## {args.version} - {date.today()}") print() - print(f"Full diff at https://github.com/{OWNER}/{REPO}/compare/{args.commit_range}") + print(f"Full diff at https://github.com/{OWNER}/{REPO}/compare/{commit_range}") print() print_section("PRs", prs) print_section("Unsorted commits", unsorted_commits)