From e437c9bd82487a15496accb822575b89a5855012 Mon Sep 17 00:00:00 2001 From: Matt Tanous Date: Sun, 11 Oct 2026 10:47:49 -0400 Subject: [PATCH] chore(release): 2.4.0 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 9 +++++++++ Cargo.lock | 10 +++++----- Cargo.toml | 4 ++-- README.md | 20 ++++++++++---------- docs/quick-start.md | 8 ++++---- docs/testing.md | 2 +- docs/tracing.md | 2 +- hammerwork-web/README.md | 4 ++-- 8 files changed, 34 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bc1d29..dfa1317 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.4.0] - 2026-10-11 + +A bug-fix release for #100 to #106. It is a minor version because it adds a database +migration (019, run it before upgrading workers or archivers) and new public items +(`JobHistory::jobs_with_status`, `EventManager::delivers_payload` and +`EventManager::payload_wanted`), and because several fixes change observable behaviour +(see below). The one signature change is `hammerwork-web`'s `jobs::routes`, which now +needs `T: JobHistory`. + ### Behaviour changes to check when upgrading - **`maintenance vacuum` and `backup create`** treat "failed" as `Failed`, `Dead` or diff --git a/Cargo.lock b/Cargo.lock index ea4db12..e05ce3c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -902,7 +902,7 @@ dependencies = [ [[package]] name = "cargo-hammerwork" -version = "2.3.0" +version = "2.4.0" dependencies = [ "anyhow", "base64 0.22.1", @@ -1951,7 +1951,7 @@ dependencies = [ [[package]] name = "hammerwork" -version = "2.3.0" +version = "2.4.0" dependencies = [ "aes-gcm", "apache-avro", @@ -2013,7 +2013,7 @@ dependencies = [ [[package]] name = "hammerwork-web" -version = "2.3.0" +version = "2.4.0" dependencies = [ "anyhow", "base64 0.22.1", @@ -2849,7 +2849,7 @@ checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" [[package]] name = "mysql-integration" -version = "2.3.0" +version = "2.4.0" dependencies = [ "chrono", "hammerwork", @@ -3339,7 +3339,7 @@ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" [[package]] name = "postgres-integration" -version = "2.3.0" +version = "2.4.0" dependencies = [ "chrono", "hammerwork", diff --git a/Cargo.toml b/Cargo.toml index 0bf6232..d868b8d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ resolver = "3" [workspace.package] -version = "2.3.0" +version = "2.4.0" edition = "2024" license = "MIT" repository = "https://github.com/CodingAnarchy/hammerwork" @@ -19,7 +19,7 @@ documentation = "https://docs.rs/hammerwork" rust-version = "1.91.1" [workspace.dependencies] -hammerwork = { version = "2.3.0", path = "." } +hammerwork = { version = "2.4.0", path = "." } tokio = { version = "1.0", features = ["full"] } sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "chrono", "uuid", "json"] } chrono = { version = "0.4", features = ["serde"] } diff --git a/README.md b/README.md index 1579134..ff069c2 100644 --- a/README.md +++ b/README.md @@ -35,30 +35,30 @@ A high-performance, database-driven job queue for Rust with comprehensive featur ```toml [dependencies] # Default features include metrics and alerting -hammerwork = { version = "2.3", features = ["postgres"] } +hammerwork = { version = "2.4", features = ["postgres"] } # or -hammerwork = { version = "2.3", features = ["mysql"] } +hammerwork = { version = "2.4", features = ["mysql"] } # With encryption for PII protection -hammerwork = { version = "2.3", features = ["postgres", "encryption"] } +hammerwork = { version = "2.4", features = ["postgres", "encryption"] } # With AWS KMS integration for enterprise key management -hammerwork = { version = "2.3", features = ["postgres", "encryption", "aws-kms"] } +hammerwork = { version = "2.4", features = ["postgres", "encryption", "aws-kms"] } # With Google Cloud KMS integration for enterprise key management -hammerwork = { version = "2.3", features = ["postgres", "encryption", "gcp-kms"] } +hammerwork = { version = "2.4", features = ["postgres", "encryption", "gcp-kms"] } # With HashiCorp Vault KMS integration for enterprise key management -hammerwork = { version = "2.3", features = ["postgres", "encryption", "vault-kms"] } +hammerwork = { version = "2.4", features = ["postgres", "encryption", "vault-kms"] } # With distributed tracing -hammerwork = { version = "2.3", features = ["postgres", "tracing"] } +hammerwork = { version = "2.4", features = ["postgres", "tracing"] } # Full feature set -hammerwork = { version = "2.3", features = ["postgres", "encryption", "aws-kms", "gcp-kms", "vault-kms", "tracing"] } +hammerwork = { version = "2.4", features = ["postgres", "encryption", "aws-kms", "gcp-kms", "vault-kms", "tracing"] } # Minimal installation -hammerwork = { version = "2.3", features = ["postgres"], default-features = false } +hammerwork = { version = "2.4", features = ["postgres"], default-features = false } ``` **Feature Flags**: `postgres`, `mysql`, `metrics` (default), `alerting` (default), `encryption` (optional), `aws-kms` (optional), `gcp-kms` (optional), `vault-kms` (optional), `tracing` (optional), `test` (for TestQueue) @@ -71,7 +71,7 @@ cargo install hammerwork-web --features postgres # Or add to your project [dependencies] -hammerwork-web = { version = "2.3", features = ["postgres"] } +hammerwork-web = { version = "2.4", features = ["postgres"] } ``` Start the dashboard: diff --git a/docs/quick-start.md b/docs/quick-start.md index a9859eb..fad5def 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -21,16 +21,16 @@ Add Hammerwork to your `Cargo.toml`: ```toml [dependencies] # PostgreSQL support with default features (metrics, alerting) -hammerwork = { version = "2.3", features = ["postgres"] } +hammerwork = { version = "2.4", features = ["postgres"] } # MySQL support -hammerwork = { version = "2.3", features = ["mysql"] } +hammerwork = { version = "2.4", features = ["mysql"] } # With distributed tracing -hammerwork = { version = "2.3", features = ["postgres", "tracing"] } +hammerwork = { version = "2.4", features = ["postgres", "tracing"] } # Minimal installation without default features -hammerwork = { version = "2.3", features = ["postgres"], default-features = false } +hammerwork = { version = "2.4", features = ["postgres"], default-features = false } # Additional dependencies for examples serde_json = "1.0" diff --git a/docs/testing.md b/docs/testing.md index 631145b..f464ffc 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -23,7 +23,7 @@ Add TestQueue to your test dependencies: ```toml [dependencies] -hammerwork = { version = "2.3", features = ["test"] } +hammerwork = { version = "2.4", features = ["test"] } [dev-dependencies] tokio-test = "0.4" diff --git a/docs/tracing.md b/docs/tracing.md index 7dfbcec..683a664 100644 --- a/docs/tracing.md +++ b/docs/tracing.md @@ -19,7 +19,7 @@ The trace fields (`with_trace_id`, `with_correlation_id`, ...) are available on ```toml [dependencies] -hammerwork = { version = "2.3", features = ["postgres", "tracing"] } +hammerwork = { version = "2.4", features = ["postgres", "tracing"] } ``` ### Initialize Tracing diff --git a/hammerwork-web/README.md b/hammerwork-web/README.md index 9e3e783..fc35488 100644 --- a/hammerwork-web/README.md +++ b/hammerwork-web/README.md @@ -123,9 +123,9 @@ Add to your `Cargo.toml`: ```toml [dependencies] -hammerwork-web = { version = "2.3", features = ["postgres"] } +hammerwork-web = { version = "2.4", features = ["postgres"] } # or for MySQL: -# hammerwork-web = { version = "2.3", features = ["mysql"] } +# hammerwork-web = { version = "2.4", features = ["mysql"] } ``` ### Programmatic Usage