-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
1 changed file
with
19 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Changelog | ||
|
||
## [6.0.0] | ||
|
||
### ⚠️ Breaking Changes | ||
|
||
- **ApiClient data format changed**: The `ApiClient` class constructor now expects variables in JSON format instead of params. | ||
- **Method name change**: To call the client, use `request` instead of `query`. | ||
|
||
### Added | ||
|
||
- **`rawRequest` method**: Allows fetching data in the old format, returning `data`, `errors`, `extensions`... | ||
- **Versions validation**: The client now validates the version of the API it’s interacting with. | ||
- **Enhanced request configuration**: The `ApiClient` class now accepts a `requestConfig` object, allowing for additional customization options. | ||
- **`ClientError` type for error handling**: Introduced the `ClientError` type, providing a structured format for handling errors consistently within the `ApiClient`. | ||
|
||
### Fixed | ||
|
||
- **GraphQL library dependency**: Resolved an issue where the GraphQL library was sometimes required as a dependency; this is now included by default. |