@kodio.io/medusa-js-fetch
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Medusa JS Client based on Fetch API

Version

The Medusa JS Client provides easy access to the Medusa API from a client written in Typescript.

Why replace Axios with fetch?

On Next.js projects, the official Axios based client does not work on middleware functions, or anything running on the Edge runtime. Using fetch allows you to use the client on the Edge.

Documentation

In most cases, this client should be a drop-in replacement for the Axios based one. Beware that this client is not considered stable, and you may experience some issues.

To learn more about the API endpoints that this client allows you to access check out the docs for the official JS Client.

Known Issues

This client does currently not support retries.

/@kodio.io/medusa-js-fetch/

    Package Sidebar

    Install

    npm i @kodio.io/medusa-js-fetch

    Weekly Downloads

    0

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    692 kB

    Total Files

    7

    Last publish

    Collaborators

    • olavurdj
    • kodio.agency