Skip to content

Commit

Permalink
update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Oct 7, 2024
1 parent 50d0752 commit 2e8d36d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/docs/releases/2.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Release date: Not yet released

## Change Logs

### Behavior Change

#### `JsonOptions` Configuration

One of the most significant changes in version 2.0 was the transition from Newtonsoft.Json to System.Text.Json. Initially, we configured the default `JsonOptions` to match the settings we used for serializing documents. However, in this release, we’ve reverted that decision and no longer configure `JsonOptions` by default, allowing you the flexibility to customize it as needed.

If your API returns YesSql documents as JSON (e.g., ContentItem, User, Query, Notification), you may need to use `DocumentJsonSerializerOptions` for accurate serialization. For example, when using Minimal API, instead of returning the result with `TypedResults.Ok(document)`, you should return it using `Results.Json(document, options.Value.SerializerOptions);`, resolving `IOptions<DocumentJsonSerializerOptions>` from the IoC container.

### Users Feature

#### External Authentication Logic Has Been Separated From the Users Feature
Expand Down

0 comments on commit 2e8d36d

Please sign in to comment.