Skip to content

Commit

Permalink
Merge pull request #39 from mondaycom/feature/romka/add-changelog
Browse files Browse the repository at this point in the history
add changelog
  • Loading branch information
RomKadria authored Nov 3, 2024
2 parents 151ea57 + afb7aff commit 14d9a54
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/api/CHANGELOG.MD
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.

0 comments on commit 14d9a54

Please sign in to comment.