Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket(s): 36
Problem
Axios has limited platform support.
Solution
Replace it with
fetch()
With native
fetch()
, we can support almost all JS runtimes and platforms.Except Node and Bun I see atm some downsides:
fetch()
support, and will be maintained until 2023-09-11. Taking your requirement into consideration @ptpaterson to support it, the question that I see is if it could be a temporary solution with one of the following options:a. forked Cross-Fetch version*,
b. Isomorphic Unfetch*,
c. dedicated node-fetch package*,
d. dedicated Axios package*,
e. ...?
* all of them lack support for HTTP/2
Progress:
fetch
, we have specified HTTP codes for mocks. The codes need to be verified if they match the server specification.Result
Out of scope
Testing