chore(deps): bump sha2 from 0.10.9 to 0.11.1 (#807)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-11-17 11:57:28 -07:00
1 parent a076dfd648
commit 73680940cb
4 files changed
+9 -7

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ publish = false
[dependencies]
async-trait = "0.1"
base64 = "0.23.1" # For carrying body chunks over a text-only plugin transport
hex = { workspace = true }
log = { workspace = true }
md5 = "0.8.0"
sha2 = { workspace = true }
+2 -2
View File
@@ -1675,7 +1675,7 @@ fn content_hash(value: Value, keep_order: bool) -> String {
fn hash_comparable(value: &Value) -> String {
let canonical = serde_json::to_string(&sorted_keys(value.clone())).unwrap_or_default();
format!("{}{:x}", content_hash_version(value), Sha256::digest(canonical.as_bytes()))
format!("{}{}", content_hash_version(value), hex::encode(Sha256::digest(canonical.as_bytes())))
}
/// The fields two comparable forms disagree on, so a preview row can explain itself.
@@ -3806,7 +3806,7 @@ mod tests {
let mut value = comparable(serde_json::to_value(environment).unwrap());
value["name"] = json!(environment.name);
let canonical = serde_json::to_string(&sorted_keys(value)).unwrap();
let hash = format!("v1:{:x}", Sha256::digest(canonical.as_bytes()));
let hash = format!("v1:{}", hex::encode(Sha256::digest(canonical.as_bytes())));
let row = source_rows(&query_manager, workspace_id)
.into_iter()
.find(|r| r.model_id.as_deref() == Some(environment.id.as_str()))