-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab2e3a7
commit c6c8b2f
Showing
12 changed files
with
825 additions
and
781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,11 @@ | ||
--- | ||
title: What's new | ||
description: List of changes per RestSharp version. | ||
description: List of changes for the current major version | ||
sidebar_position: 2 | ||
--- | ||
|
||
# Changelog | ||
|
||
This changelog is only maintained since v111. For release notes of previous versions, please check the [Releases page](https://github.com/restsharp/RestSharp/releases) in RestSharp GitHub repository. | ||
For release notes of previous versions, please check the [Releases page](https://github.com/restsharp/RestSharp/releases) in RestSharp GitHub repository. | ||
|
||
Only the most important or breaking changes are listed there. All other changes can be found in each release on GitHub. | ||
|
||
## v111.3 | ||
|
||
New extensions: | ||
* `RestResponse.GetHeader` for getting one response header value | ||
* `RestResponse.GetHeaders` for getting a collection of header values | ||
* `IRestClient.(Execute)Get(Async)` with string resource instead of request object | ||
* `IRestClient.(Execute)Delete(Async)` with string resource instead of request object | ||
|
||
## v111.2 | ||
|
||
* `Execute` extensions that were accidentally removed from v111 are back | ||
* Several authenticators got renamed by unintentional refactoring, that change has also been reverted. | ||
|
||
## v111.0 | ||
|
||
> The package for v111.0 is listed as unsupported on NuGet as it has API changes that weren't planned. Use the patched version v111.2 or later. | ||
* Added [interceptors](advanced/interceptors.md). | ||
* As interceptors provide a better way to interject the request and response execution flow, request properties `OnBeforeRequest`, `OnBeforeDeserialization` and `OnAfterRequest` are marked obsolete and will be removed in future versions. | ||
* **Breaking change.** Client option `MaxTimeout` renamed to `Timeout` and changed type to `Timespan` for clarity. It doesn't configure the `HttpClient` timeout anymore. Instead, the same method is used for client and request level timeouts with cancellation tokens. | ||
* **Breaking change.** Request option `Timeout` changed type to `Timespan` for clarity. | ||
* Added .NET 8 target. | ||
* Support uploading files as content without multipart form. | ||
* Added `CacheControl` options to client and requests. | ||
* Allow using `AddJsonBody` to serialize top-level strings. | ||
Changes between major versions are documented in the documentation for each version on this website. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,24 @@ | ||
--- | ||
title: What's new | ||
description: List of changes per RestSharp version. | ||
description: List of changes for the current major version | ||
sidebar_position: 2 | ||
--- | ||
|
||
# Changelog | ||
|
||
This changelog is only maintained since v111. For release notes of previous versions, please check the [Releases page](https://github.com/restsharp/RestSharp/releases) in RestSharp GitHub repository. | ||
For release notes of previous versions, please check the [Releases page](https://github.com/restsharp/RestSharp/releases) in RestSharp GitHub repository. | ||
|
||
Only the most important or breaking changes are listed there. All other changes can be found in each release on GitHub. | ||
## What's Changed | ||
* Added default parameters to the request. They got missing somehow. | ||
* Consider the boundary quotes request option value. | ||
* Made `BuildUrl` an extension so it can be used publicly. | ||
* Added client-level cookie container. | ||
|
||
## v111.3 | ||
## Breaking change | ||
|
||
New extensions: | ||
* `RestResponse.GetHeader` for getting one response header value | ||
* `RestResponse.GetHeaders` for getting a collection of header values | ||
* `IRestClient.(Execute)Get(Async)` with string resource instead of request object | ||
* `IRestClient.(Execute)Delete(Async)` with string resource instead of request object | ||
The `IRestClient` interface signature is different, so any non-standard implementations need to adopt the changes. | ||
|
||
## v111.2 | ||
To keep `DefaultParameters` thread-safe, it got a new type `DefaultParameters`, and request property `Parameters` has a dedicated type `RequestParameter`. Code-wise the change is non-breaking as the signatures are the same, but v110 is not binary compatible with previous versions. The difference is that `DefaultParameters` collection wraps all its mutations in a lock. | ||
|
||
* `Execute` extensions that were accidentally removed from v111 are back | ||
* Several authenticators got renamed by unintentional refactoring, that change has also been reverted. | ||
**Full Changelog**: https://github.com/restsharp/RestSharp/compare/109.0.1...110.0.0 | ||
|
||
## v111.0 | ||
|
||
> The package for v111.0 is listed as unsupported on NuGet as it has API changes that weren't planned. Use the patched version v111.2 or later. | ||
* Added [interceptors](advanced/interceptors.md). | ||
* As interceptors provide a better way to interject the request and response execution flow, request properties `OnBeforeRequest`, `OnBeforeDeserialization` and `OnAfterRequest` are marked obsolete and will be removed in future versions. | ||
* **Breaking change.** Client option `MaxTimeout` renamed to `Timeout` and changed type to `Timespan` for clarity. It doesn't configure the `HttpClient` timeout anymore. Instead, the same method is used for client and request level timeouts with cancellation tokens. | ||
* **Breaking change.** Request option `Timeout` changed type to `Timespan` for clarity. | ||
* Added .NET 8 target. | ||
* Support uploading files as content without multipart form. | ||
* Added `CacheControl` options to client and requests. | ||
* Allow using `AddJsonBody` to serialize top-level strings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.