Skip to content

Commit

Permalink
Prepare CHANGELOG for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Flix committed Jul 25, 2024
1 parent ae0dbd2 commit 132d48e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to this project will be documented in this file.

## [unreleased] - 2024-07-25

### Bug Fixes

- Atomically patch request settings to not overwrite unrelated changes.

### Features

- Add derive Hash to codes
- **breaking**: Revamp auth_callback
- Introduce the `LoginManager` trait for more flexible authentication management.
- Allow mutable access in auth_callback.
- Improve internal request logic to not run multiple auth callbacks at the same time.

## [0.12.0] - 2024-05-26

### Features
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This is a [FHIR](https://www.hl7.org/fhir/) library in its early stages. The mod
```rust
use fhir_sdk::r5::resources::Patient;
use fhir_sdk::client::{*, r5::*};
use fhir_sdk::TryStreamExt;
use fhir_sdk::{TryStreamExt, header};

#[tokio::main]
async fn main() -> Result<(), Error> {
Expand Down Expand Up @@ -147,7 +147,7 @@ async fn main() -> Result<(), Error> {
// Register struct with state. Overwrites previous callback.
.auth_callback(MyLogin { valid: std::time::Instant::now() })
// Register async closure. Overwrites previous callback.
.auth_callback(|_client: HttpClient| async move { Ok(HeaderValue::from_static("hi")) })
.auth_callback(|_client: HttpClient| async move { eyre::Ok(HeaderValue::from_static("hi")) })
.build()?;

// Create a Patient resource using a builder.
Expand Down

0 comments on commit 132d48e

Please sign in to comment.