Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@stefanoverna stefanoverna released this 26 Oct 11:08
· 88 commits to main since this release

If your Javascript environment does not provide the Fetch API interface — for example, if you are using a version of Node lower than 18 — you will need to specify a ponyfill during client configuration:

import { buildClient } from '@datocms/cma-client-node';
import { fetch } from '@whatwg-node/fetch';

const client = buildClient({ apiToken: '<YOUR_TOKEN>', fetchFn: fetch });