Skip to content

Commit

Permalink
Release 0.8.0 - Fix native performance bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 11, 2024
1 parent ebceb07 commit 636d391
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))


Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ dependencies = [

[[package]]
name = "ewebsock"
version = "0.7.0"
version = "0.8.0"
dependencies = [
"async-stream",
"document-features",
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ewebsock/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ewebsock"
version = "0.7.0"
version = "0.8.0"
authors = ["Emil Ernerfeldt <[email protected]>"]
description = "WebSocket client that works natively and on the web (WASM)"
edition = "2021"
Expand Down
19 changes: 14 additions & 5 deletions scripts/generate_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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])
Expand Down Expand Up @@ -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))

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 636d391

Please sign in to comment.