Skip to content

Commit 04e4213

Browse files
committed
Update version to 0.1.0-alpha.5 and enhance CHANGELOG
- Bumped the version of the `rillflow` package to 0.1.0-alpha.5 in `Cargo.toml` and `Cargo.lock`. - Updated the CHANGELOG with highlights for the new version, including improvements to the Snapshotter, document repository, stream aliases, and added tests for various features. - Made minor code adjustments for clarity and performance in `subscriptions.rs`, `events.rs`, and `query/mod.rs`.
1 parent cc75818 commit 04e4213

7 files changed

Lines changed: 24 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 0.1.0-alpha.5
2+
3+
Highlights:
4+
- Snapshotter: background compaction API (`Snapshotter`, `AggregateFolder`), CLI (`snapshots compact-once`, `run-until-idle`), metrics/tracing, README example.
5+
- Document repo DX: optimistic concurrency (`put`, `update`), versioned `get`, soft delete column and DSL knobs (`include_deleted`, `only_deleted`), CLI for docs.
6+
- Stream aliases: `stream_aliases` table, `Store::resolve_stream_alias`, CLI `streams resolve`.
7+
- Projection: metrics command (`projections metrics`).
8+
9+
Tests:
10+
- Snapshotter test for long streams, docs repo e2e, idempotency conflict, consumer groups and manual ack, stream aliases.
11+
112
## 0.1.0-alpha.4
213

314
Highlights:

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rillflow"
3-
version = "0.1.0-alpha.4"
3+
version = "0.1.0-alpha.5"
44
edition = "2024"
55
rust-version = "1.85"
66
description = "Rillflow — a lightweight document + event store for Rust, powered by Postgres."

src/events.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ impl Events {
100100
}
101101

102102
pub async fn read_stream_envelopes(&self, stream_id: Uuid) -> Result<Vec<EventEnvelope>> {
103+
#[allow(clippy::type_complexity)]
103104
let rows: Vec<(
104105
i64,
105106
Uuid,

src/query/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ impl QuerySpec {
177177
if !include_deleted {
178178
builder.push(if has_where { " and " } else { " where " });
179179
builder.push("deleted_at is null");
180-
has_where = true;
181180
}
182181

183182
if !sort.is_empty() {

src/subscriptions.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl Subscriptions {
110110
Ok(c) => c,
111111
Err(_) => return,
112112
};
113-
let set_path = format!("set search_path to \"{}\"", schema.replace('"', "\""));
113+
let set_path = format!("set search_path to \"{}\"", schema);
114114
let _ = sqlx::query(&set_path).execute(&mut *conn).await;
115115
// Start optional listener for NOTIFY wakeups
116116
let mut listener = if let Some(chan) = &opts.notify_channel {
@@ -312,16 +312,14 @@ impl Subscriptions {
312312
.execute(&mut *conn)
313313
.await;
314314
}
315-
} else {
316-
if matches!(opts.ack_mode, AckMode::Auto) {
317-
let _ = sqlx::query(
318-
"update subscriptions set last_seq = $2, updated_at = now() where name = $1",
319-
)
320-
.bind(&name_s)
321-
.bind(cursor)
322-
.execute(&mut *conn)
323-
.await;
324-
}
315+
} else if matches!(opts.ack_mode, AckMode::Auto) {
316+
let _ = sqlx::query(
317+
"update subscriptions set last_seq = $2, updated_at = now() where name = $1",
318+
)
319+
.bind(&name_s)
320+
.bind(cursor)
321+
.execute(&mut *conn)
322+
.await;
325323
}
326324
last_checkpoint = Instant::now();
327325
}

tests/idempotency.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::Result;
2-
use rillflow::{Error, Event, Expected, Store};
2+
use rillflow::{Error, Event, Store};
33
use serde_json::json;
44
use testcontainers::{
55
GenericImage, ImageExt,

0 commit comments

Comments
 (0)