BetterTyped / hyper-fetch

⚡ Fetching and realtime data exchange framework.
https://hyperfetch.bettertyped.com/
Apache License 2.0
1.02k stars 27 forks source link

Version 4.0 #47

Closed GerasNyx closed 1 year ago

GerasNyx commented 1 year ago

Highlights

✨ New response interface

We have changed the structure of our response interface. Instead of an array, it now returns an object. The interface also provides additional data objects with adapter-specific data. By default, it gives you response headers.

🔮 Improved adapters

We have improved our adapters. The new interface allows for much greater configuration and extensibility. Now you can easily attach any library with any protocol you want. This comes with a next-level TypeScript interface that controls type safety.

🎭 Mocker

Create your own responses with full support for functionalities like success/error responses, request sequences, upload/download progress, response time, and more.

💎 Request Mappers

Modify, map, or validate requests before sending them to the server.

🚀 Response Mappers

Modify, map, or validate responses from the server.

Other changes:

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit 515e3d71 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (0% is the threshold).

This pull request will bring the total coverage in the repository to 100.0%.

View more on Code Climate.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 4.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: