Description
The new fetch API is just a copy of bs-fetch
with a bit of re-arranging to separate out the inner modules (this aids tree shaking).
There are far better ways to do most of this in ReScript now; the API would benefit a lot from records-as-objects and polymorphic-variants-as-strings. Unfortunately, to a tree-shaking benefit from this the old Functor approach has to be removed.
As much as I'd like to update the API, there are over 1300 repositories depending on bs-fetch
. Now that I know ReScript 10 will break their code, I want to start by making migration as seamless as possible for them.
So I'm tagging it as release 2.0 for now. If we have time for both the API update and a migration guide before ReScript 10 is released we can consider merging it in the 1.0 release.