Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions crates/graphql-orm-router/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ supersedes: []

# Changelog

## 0.5.4 - 2026-10-01

- Replace the deprecated atomic `fetch_update` in saturating metrics decrements
with an equivalent compare-exchange loop supported by Rust 1.90. Preserve
relaxed ordering and saturation while allowing warnings-denied builds on
current Rust. Public APIs, counters and router behavior remain unchanged.

## 0.5.3 - 2026-09-27

- Updated the private Hive runtime from 0.0.87 to published 0.2.19, including
Expand Down
2 changes: 1 addition & 1 deletion crates/graphql-orm-router/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graphql-orm-router"
version = "0.5.3"
version = "0.5.4"
edition = "2024"
rust-version = "1.90"
description = "Federated GraphQL router for graphql-orm and project-neutral subgraphs"
Expand Down
6 changes: 6 additions & 0 deletions crates/graphql-orm-router/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ supersedes: []

# graphql-orm-router migration guide

## 0.5.3 to 0.5.4

No code, configuration or stored-data migration is needed. Rebuild to retain
warnings-denied compilation on current Rust without raising the Rust 1.90 MSRV.
Metrics preserve their atomic saturating decrement and relaxed ordering.

## Workspace release dependency alignment

For workspace releases selecting `agql-auth` v0.19.1, direct consumers must use
Expand Down
2 changes: 1 addition & 1 deletion crates/graphql-orm-router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This unpublished package is Git-only:

```toml
[dependencies]
graphql-orm-router = { git = "https://github.com/Dastari/graphql-orm.git", rev = "<reviewed-full-40-character-commit-sha>", version = "0.5.3" }
graphql-orm-router = { git = "https://github.com/Dastari/graphql-orm.git", rev = "<reviewed-full-40-character-commit-sha>", version = "0.5.4" }
```

Enable `auth-agql` only when adapting a separately configured
Expand Down
17 changes: 14 additions & 3 deletions crates/graphql-orm-router/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,20 @@ impl RouterMetrics {
}

fn decrement(counter: &AtomicUsize, count: usize) {
let _ = counter.fetch_update(Ordering::Relaxed, Ordering::Relaxed, |current| {
Some(current.saturating_sub(count))
});
// Keep the atomic saturating update compatible with the Rust 1.90 MSRV;
// current Rust deprecates fetch_update in favor of the newer try_update.
let mut current = counter.load(Ordering::Relaxed);
loop {
match counter.compare_exchange_weak(
current,
current.saturating_sub(count),
Ordering::Relaxed,
Ordering::Relaxed,
) {
Ok(_) => break,
Err(observed) => current = observed,
}
}
}

#[cfg(test)]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/workspace-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ changes.
| `graphql-orm-backup` | `0.7.2` | `crates/graphql-orm-backup` | `local` | `graphql-orm` (optional), `graphql-orm-storage` |
| `graphql-orm-macros` | `0.35.2` | `crates/graphql-orm-macros` | `sqlite` | none |
| `graphql-orm-operation-catalog` | `0.4.0` | `crates/graphql-orm-operation-catalog` | none | `graphql-orm-router-protocol` (optional) |
| `graphql-orm-router` | `0.5.3` | `crates/graphql-orm-router` | none | `graphql-orm-router-protocol` |
| `graphql-orm-router` | `0.5.4` | `crates/graphql-orm-router` | none | `graphql-orm-router-protocol` |
| `graphql-orm-router-protocol` | `0.2.1` | `crates/graphql-orm-router-protocol` | none | none |
| `graphql-orm-storage` | `0.6.2` | `crates/graphql-orm-storage` | `local` | none |

Expand Down
Loading